$(document).ready(function()			{

	Cufon.replace('h1, .quote, h2.big', {textShadow: '#fff 1px 1px', hover: 'true'});


	$("#open").click(function() {
		$(this).css({ display: "none" });
		$("#kaart").animate({ top: "-300px" }, 500, "easeOutQuart", function () { $(this).css({ zIndex: "99999" }) }).animate({ top: "150px", width: "800px", height: "473px", marginLeft: "-58px"  }, 500);
    });

	

	
	$("#container #header #menu ul li").hover(function() {
		$(this).find(".sub").css({ display: "block" }, 200 );
		
	} , function() { 
		$(this).find(".sub").css({ display: "none" }, 200 );
	});

	// side project code
	$('.side').cycle({
		fx:     'scrollVert', //blindX
		speed: '1500',
		timeout: 8000,
		next: '.next',
		prev: '.prev',
		random: 0
	   });		
	$("#container #content .side  .testimonial").hover(function() {
		$(this).parent().find(".quote").css({ backgroundColor: "#E1E6F3" }, 200 );
		$(this).parent().find(".label").css({ color: "#333" }, 200 );
		$(this).parent().find(".foto").css({ opacity: "0.6" }, 200 );
		$('.side').cycle('pause');
		
	} , function() { 
			$(this).parent().find(".quote").css({ backgroundColor: "#fff" }, 200 );
		$(this).parent().find(".label").css({ color: "#666" }, 200 );
		$(this).parent().find(".foto").css({ opacity: "1" }, 200 );
		$('.side').cycle('resume');		
	});
	$("#container #content .side  .testimonial .controls").hover(function() {
		$('.side').cycle('pause');
		
	} , function() { 
		$('.side').cycle('resume');		
	});	
	
	// klanten anims
	
	$(".klant").hover(function() {
		$(this).find("img").stop().animate({ opacity: "0.6" }, 500 );
	} , function() { 
		$(this).find("img").stop().animate({ opacity: "1" }, 500 );
	});	
	
	// home icons
	
	$(".icons a").hover(function() {
		$(this).find("img").stop().animate({ opacity: "1" }, 200 );
	} , function() { 
		$(this).find("img").stop().animate({ opacity: "0.6" }, 200 );
	});		

	// footer anims
	
	$('.cycle-partners').cycle({
		fx:     'fade', //blindX
		speed: '500',
		timeout: 4000
		//next: '.next',
		//prev: '.prev',
		//random: 1
	   });	
	   
	$('.cycle-klanten').cycle({
		fx:     'fade', //blindX
		speed: '500',
		timeout: 4000,
		//next: '.next',
		//prev: '.prev',
		random: 1
	   });	 

	$(".cycle-partners").hover(function() {
		$(this).cycle('pause');
		$(".cycle-partners-tag").css({ display: "block" });
		
	} , function() { 
		$(this).cycle('resume');
		$(".cycle-partners-tag").css({ display: "none" });		
	});	   
	$(".cycle-klanten").hover(function() {
		$(this).cycle('pause');
		$(".cycle-klanten-tag").css({ display: "block" });
		
	} , function() { 
		$(this).cycle('resume');
		$(".cycle-klanten-tag").css({ display: "none" });		
	});	  
	
});
