if (document.body)
{
	var larg = (document.body.clientWidth);
	var haut = (document.body.clientHeight);
} else {
	var larg = (window.innerWidth);
	var haut = (window.innerHeight);
}

$(document).ready(function(){
	$('.message_ie').pause(4000).slideDown();
	
/*
	//Examples of Global Changes
	$.fn.colorbox.settings.bgOpacity = "0.8";
	
	//Examples of how to assign the ColorBox event to elements.
	//$("a[rel='jack']").colorbox({transition:"fade"});
	$(".colorbox").colorbox({transition:"elastic", maxHeight:haut+'px+', initialHeight:'false', contentCurrent:"{current} / {total}"});
	// $(".colorbox").colorbox({transition:"none", fixedWidth:"75%",fixedHeight:"75%", initialWidth:"75%", initialHeight:"75%"});
	
*/
	//When Mouse rolls over li
    $("div#menu_haut h3 a").mouseover(function(){
        $(this).stop().animate({height:'40px'},{queue:false, duration:600, easing: 'easeOutBounce'})
    });
    //When Mouse cursor removed from li
    $("div#menu_haut h3 a").mouseout(function(){
        $(this).stop().animate({height:'20px'},{queue:false, duration:600, easing: 'easeOutBounce'})
    });


/*

	$('div#menu_haut h3 a').hover(function () {
		  $(this).effect("bounce", { times:1, mode:'effect', direction:'down' }, 500);
	});
*/

	/* $('.boxy').boxy({y:20}); */


	heavyImage1 = new Image();
	heavyImage1.src = "../images/boutons/btn_1_hover.png";
	heavyImage2 = new Image();
	heavyImage2.src = "../images/boutons/btn_2_hover.png";
	heavyImage3 = new Image();
	heavyImage3.src = "../images/boutons/btn_3_hover.png";
});
