/* ********************************* APPEL DES FONCTIONS */
$(document).ready(function() {	

	initopenNavProv = openNavProv();								// navigation provisoire
 

});

 

/* ********************************* SWAP INPUT */
swapInput = function() { swapValues=[]; $(".swapValue").each(function(i){swapValues[i]=$(this).val();$(this).focus(function(){if($(this).val()==swapValues[i]){$(this).val("")}}).blur(function(){if($.trim($(this).val())==""){$(this).val(swapValues[i])}})});};



/* ********************************* HOVER CLASSE POUR IE6 */
$.fn.hoverClass = function(c) {
	return this.each(function(){
		$(this).hover( 
			function() { $(this).addClass(c);  },
			function() { $(this).removeClass(c); }
		);
	});
};

/* ********************************* OPEN/CLOSE NAV PROVISOIRE */
openNavProv = function() {
	$('.navProvOC a').click(function() {	
		if($(this).html()=='ouvrir la nav') {
			$(this).html('fermer la nav');	
		}
		else {
			$(this).html('ouvrir la nav');
		}		
		$('.navProvContent').animate({height: "toggle"}, 100);
		return false;		
	});
}
 
 

 
 
 
/* ********************************************************************************* SOUS MENU */
$(document).ready(function(){
	$("#menu-ul li").hover(function() { 
		$(".sub", this).show();
	}, function() { 
		$(".sub", this).hide();
	});
	if (document.all) {
		$("#menu-ul li").hoverClass ("current");
	}
});

 
 
