/**
 * @author cpaulus
 */

var menu_cur = null;

function checkHover() {
	if(menu_cur) {
		menu_cur.find('ul').hide('slow');
		/* menu_cur.find('ul').fadeOut('slow'); /**/
	} 
 }

jQuery(document).ready(function(){
	
	/*$("#ventre h2").prepend("<span class='left'>&nbsp;</span><span class='text'>");/**/
	
	$("#ventre .titre-sous-bandeau").each(function(i){
		var txt = $(this).html();
		$(this).html(
			"<span class='bottom-right'>"
				+ "<span class='bottom-left'>"
					+ "<span class='top-left'></span>"
				+ "</span>" /* bottom-left */
				+ "<span class='text'>" + txt + "</span>"
				+ "<span class='end'></span>"
			+ "</span>" /* bottom-right */
			);
	});
 
 	$("h2:eq(0)").css({"margin-top": "0"});
 
	/* $('#cx').hover(function(){ /* */
	$('#entete-menu.actif').hover(function(){
		window.status="Afficher les menus complémentaires...";
		$('#oreille').addClass("height-auto");
		$(this).find('strong').addClass("cx-hover");
 		$('#menu-cx').show("normal");
 	},function(){
		/* window.status="Cacher les menus complémentaires..."; */
		window.status="";
		$(this).find('strong').removeClass("cx-hover");
 		$('#menu-cx').hide("normal");
		$('#oreille').removeClass("height-auto");
 	});
 
 	/*
 	 * surveiller le redimensionnement de IE6
 	 * qui ne réagit pas toujours correctement
 	 */
 	if($.browser.msie) { $( function() { 
		var ie_version = $.browser.version;
		if(ie_version < 7) {
			/* alert($('#entete-bottom').height()); /* */
			$("#page").resize( function() {
				
			} );
		}
	} ); }
});
