$(function(){
	//CUFON
		Cufon.replace('h1')('h2');
		Cufon.replace('#subnav a', { hover : true });

	//CYCLE ARTIKEL HOME
		$('#header_cycle').cycle({
			fx: 'fade',
			timeout: 4500
		});
	
		$('#newsArchive').cycle({ 
			fx:     'scrollHorz', 
			speed:   500, 
			speedIn: 700,
			speedOut: 300,
			timeout: 0, 
			pager:  '.pager'
		});
	
	//CYCLE PORTFOLIO
		$('.itemCycle1').cycle({ 
			fx:      'scrollRight', 
			speed:  400, 
			timeout: 0,
			next:   '.next1', 
			prev:   '.prev1' 
		});
		
		$('.itemCycle2').cycle({ 
			fx:      'scrollRight',
			speed:  400, 
			timeout: 0,			
			next:   '.next2', 
			prev:   '.prev2' 
		});

	//FANCYBOX
		$(".single_image").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>';
				}
		});
	

	//DROPDOWN
		$('#nav ul li').hover( function() {
			$(this).children('ul').stop(true, true).fadeIn(200);
		}, function() {
			$(this).children('ul').stop(true, true).fadeOut(200);
		});

	//LAVALAMP MENU
		$('#nav ul#lavaLampBasicImage').lavaLamp({
			fx: "easeInQuad",
			autoResize:true,
			speed: 300
		});
});
