$(document).ready(function(){

		//ie6 bug
		if (jQuery.browser.msie && jQuery.browser.version == '6.0')	{
			$("div#mainLeft").css("width","130px");
			$("div.headerRight").css("width","206px");
			
		}

        $('ul#portfolio').show().innerfade({

            speed: 1000,

            timeout: 5000,

            type: 'sequence',

            containerheight: '30px'

		});

	

	

	$(".rMore").toggle(function(event)	{

		$(this).prev(".hiddenInfo").slideDown("slow", function()	{			

			//fixFooter();

		});

		$(this).html("Minder..");

	},	

	function(event)	{

		$(this).prev(".hiddenInfo").slideUp("slow", function()	{			

			//fixFooter();

		});

		$(this).html("Lees meer..");

	});

	

	//menu

	$('.menuUl').droppy();

	

	//fix 1024

	var winWidth = $(window).width();

	if (winWidth < 1000)

	{

		$(".fLeft").css("margin-left","120px");

		$(".mainInhoudNoMenu").css("padding-left","50px");

		$(".mainInhoud").css("padding-left","50px");

		$(".mainInhoud").css("margin-top","70px");

	}

	

	

	// Add Scroller Object

	  //$jScroller.add("#scroller_container","#scroller","left",7,true);

	

	  // Start Autoscroller

	  //$jScroller.start();
	  
	  if ($("ul#scroller").length > 0)	{
		$("ul#scroller").liScroll();
	}

		

		

		

	//fixFooter();

	

});



function fixFooter()

{

	var totalWeb = $("#websiteMain").height() + 10 - 23;

	var windowH = $(window).height();



	if (totalWeb < windowH)

	{

		var difference = windowH - totalWeb + 10 - 23;

		var totalMargin = difference - 22 - 23;

		

		if (totalMargin < 0)	{

			totalMargin = 10;

		}

		

		$("#footer").css("margin-top",totalMargin+"px");

	}

	else	{

		$("#footer").css("margin-top","10px");

	}

}
