
$(document).ready(function(){

	// IE6 PNG Fix
	// jQuery.each(jQuery.browser, function(i, val) {
	//   if(i=="msie" && jQuery.browser.version.substr(0,1)=="6")
    // 	 DD_belatedPNG.fix('#CloudsOne, #CloudsTwo, #CloudsThree, #Header, #HeaderLeft');
	// });

	
	
	// Function for moving clouds in header
	function goClouds(who, params) {
		$(who).css({backgroundPosition: params['backgroundPosition']});
		$(who).animate({backgroundPosition: params['target']},params['duration'],'linear',function() {goClouds(who,params)});
	}
	// Settings for the position and speed of the clouds	   
	goClouds('#CloudsOne',{backgroundPosition: '0 0px',target: '(-1500px 0px)','duration':200000});
	goClouds('#CloudsTwo',{backgroundPosition: '0 70px',target: '(-1500px 70px)','duration':150000});
	goClouds('#CloudsThree',{backgroundPosition: '0 150px',target: '(-1500px 150px)','duration':250000});
	
	
	// Configuration for left side accordion menu
	$('#accordionMenu').hoverAccordion({
		speed: 'normal', // Speed at which the subitems open up - valid options are: slow, normal, fast
		activateitem: 'true', // 'true': Automatically activate items with links corresponding to the current page, '2': Activate item #2
		active: 'active', // Class name of the initially active element
		header: 'title', // Class name for header items
		hover: 'highlight', // Class name for hover effect
		opened: 'opened', // Class name for open header items
		closed: 'closed', // Class name for closed header items
		keepheight: 'false' // 'true': Set the height of each accordion item to the size of the largest one, 'false': Leave height as is
	});
	$('#accordionMenu').css('display','block');
		
});