Shadowbox.init({
	players: ["iframe"]
});

function openShadowbox(content, player, title, width, height){
	Shadowbox.open({
		content: content,
		player: player,
		title: title,
		width: width,
		height: height
	});
};

$(function() {
	$("#navigation").lavaLamp({
		fx: "backout",
		speed: 700
	});
	$(".partner").cycle({
		fx: "scrollDown",
		sync: 0,
		timeout: 5000,
		speedIn: 500,
		speedOut: 500,
		easeIn: "easeout",
		easeOut: "easein"
	});
	$(".partner img").click(function () {
		if ($(this).attr("rel") != undefined) {
			window.open($(this).attr("rel"));
		}
   	});
   	$(".partner img").hover(function () {
   		if ($(this).attr("rel") != undefined) {
			$(this).css("cursor", "pointer");
		}
   	});
	$(".mainimg").cycle({
		fx: "fade",
		sync: 1,
		timeout: 5000,
		speed: 1000
	});
});