
$(function(){
		   
	//CUFON
	Cufon.replace('h1');

	//NAVIGATION DROPDOWN
	$('#lavaLampBasicImage li').hover(
		function () { $('ul', this).fadeIn(500);	},
		function () { $('ul', this).fadeOut(200); }
	);
	
	//NAVIGATION LAVALAMP
		$('#lavaLampBasicImage').lavaLamp({
			fx: "backout",
			autoResize:true,
			speed: 700
		});

	//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>';
		}
   });
   
	//FANCYBOX PROJECTEN
	$("a.single_image").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>';
		}
	});
	
	//CYCLE ARTIKEL HOME
	$('#header_cycle_type').cycle({
		fx: 'fade',
		random: 1
	});
	$('#header_cycle').cycle({
		fx: 'scrollUp,scrollDown,scrollLeft,scrollRight',
		speed: 2000,
		timeout: 5000,
		random: 1
	});
	$("#header div.cycle").each(function(){
		$(this).cycle({
			fx: 'scrollUp,scrollDown,scrollLeft,scrollRight',
			speed: 2000,
			timeout: 5000
		});
	});

	$("#header div.cycle img, #header_cycle img").each(function(){
		$(this).not(":first").hide();
	});

	$("#floorplanner").click(function(){return false;});

	//FANCYBOX GOOGLEMAPS
	$("a.readmore").fancybox({
		'width'				: '75%',
		'height'			: '75%',
		'autoScale'     	: false,
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'type'				: 'iframe'
	});

	$(".fancy").fancybox({});

	$("#brochureAfb").each(function(){
		$(this).css('top',$(this).offset().top + parseInt($("#brochure").css('margin-top')));
	});

});

if (navigator.appName != "Microsoft Internet Explorer" ) {
	$(window).load(function(){
		
	});
}

