$(function(){	
	//NAVIGATION DROPDOWN
	/*
	$('#nav li').hover(
		function () { $('ul', this).fadeIn(500);	}, 
		function () { $('ul', this).fadeOut(200); }
	);   
	*/
   
   //CUFON
   Cufon.replace('h1')('h2');
   Cufon.replace('#subnav a', { hover : true })
	
	
   //CYCLE ARTIKEL HOME
   $('#header_cycle').cycle({
       fx: 'fade',
       timeout: 4500,
       random: 1
   });
   //FANCYBOX
    $(".fancybox").fancybox();
   
   //FANCYBOX FLOORPLANNER
    $("a.fancyboxIframe").fancybox({
        'width'				: '85%',
        'height'			: '85%',
        'autoScale'     	: false,
        'transitionIn'		: 'none',
        'transitionOut'		: 'none',
        'type'				: 'iframe'
    });
   
   //FANCYBOX PROJECTEN
   $("a.gallery").fancybox({
       	titlePosition : 'inside',
		titleFormat   : function(title, currentArray, currentIndex, currentOpts) {
			return '<span id="fancybox-title-inside"><span class="floatRight" style="font-size: 10px; color: #333333;">' +  (currentIndex + 1) + ' / ' + currentArray.length + '</span><span class="flaotLeft">'+title+'</span></span>';
		}
   });
    $("a.fancyboxPlattegronden").fancybox({
       	titlePosition : 'inside',
		titleFormat   : function(title, currentArray, currentIndex, currentOpts) {
			return '<span id="fancybox-title-inside"><span class="floatRight" style="font-size: 10px; color: #333333;">' +  (currentIndex + 1) + ' / ' + currentArray.length + '</span><span class="flaotLeft">Download plattegrond <strong><a href="uploadfiles/plattegronden/'+title+'.pdf">'+title+'</a></strong></span></span>';
		}
   });

});

$(window).load(function(){
	//NAVIGATION LAVALAMP
   $('#nav ul').lavaLamp({
       fx: "backout",
       autoResize:true,
       speed: 700
   });
});

