$(document).ready(function() {
	$('body').supersleight();
	
	$(".btnFold").hover(
		function() {
			$(this).find("div.btnFoldSubcontent").show();
		},
		function() {
			$(this).find("div.btnFoldSubcontent").hide();
		});
	
	$('.expand').click(
		function(){			
			if ($("div.footerContent").is(":visible")) {
				$("div.footerContent").hide();
				$(this).find("img").attr("src", $(this).find("img").attr("src").replace(/\_a.png$/, '_i.png'));
			} else {
				$("div.footerContent").show();
				$(this).find("img").attr("src", $(this).find("img").attr("src").replace(/\_i.png$/, '_a.png'));
			}
			return false;
		}
	);
		
	$("#formSubmit").click(function(){		
		$(this).hide();
		$("#sending").show();
		
	});

	$("a.inzendingFullsize, .comic").fancybox(
	{
		'zoomSpeedIn':	400, 
		'zoomSpeedOut':	400, 
		'overlayShow':	true
	}
	);
	
	$(".printlink").click(function(){
		top.window.print();
	});
	
	$("#startQuizGraphic").click(function(){
		$(this).hide();
		$("#quizIframe").attr("src", "/vragenlijst/start/?newUser");
		$("#quizIframe").show();
	});
	
});


function openGame(lang) {
	window.open('/game/' + lang + '/','game', 'width=800,height=600,scrollbars=no,toolbar=no,location=no,resize=no');
}

