if (jQuery.browser.msie && parseInt(jQuery.browser.version, 10) == 6)
{
	try
  {
		document.execCommand("BackgroundImageCache", false, true);
	}
	catch (err)
	{
	}
}

var page_actions = {
	'page9': function()
	{
	 	$('#frontpage_moods .innerfade_list').innerfade({
		    	animationtype: 'fade'
				, speed: 1500
				, timeout: 6000
/*				, containerheight: '209px' */
		}); 
		w_out = '335px';
		w_in  = '615px';
		dh = $('#drawer_facts .drawer_handle');
		dh.css({'cursor': 'pointer'});
		dh.click(function(){
			dw = $('#drawer_facts .drawer_wrap');
			$('#drawer_facts .drawer_wrap').animate({
				  	left: dw.css('left') == w_out ? w_in : w_out
  				}
				, {
					  duration: "slow"
					, easing: "easeOutExpo"
				}
			);
		});

	}
	
};


$(document).ready(function(){
	
	body_id = document.body.id;
	if(page_actions[body_id])
	{
		page_actions[body_id]();
	}
	 
	$("a[rel^='prettyPhoto']").prettyPhoto({theme: 'dark_square'});	

});


