$(document).ready(function(){
	handleEmailFriend();
	handlePrettyPhoto();
	handleCycle();
});
function handlePrettyPhoto() {
	$("a[rel^='prettyPhoto']").prettyPhoto({theme:'light_square'});
}
function handleEmailFriend() {
	//$("#email-friend-link").show();
	$("#email-friend-link a").attr("href", "/email_friend.asp?url=" + escape(location.href) + "&iframe=true&width=480&height=500");
}
function handleCycle() {
	$('#tmpl-footer-partners-logos').cycle({
		fx: 'fade',
		timeout: 8500,
		speed: 1000,
		cleartype: true,
		cleartypeNoBg: true,
		random: 0
	})
}

// older legacy scripts
function showpref(suffix,servervariables) {
	var pathname = location.pathname;
	var filename = pathname.substr(pathname.lastIndexOf("\\")+1,pathname.length);
	filename = filename.substr(0,filename.indexOf("."))
	filename = filename+"_pr." + suffix + "?" + servervariables;
	link = window.open(filename,"print","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=620,height=400,left=200,top=100");
}

