/*
 * Javascript pour le menu deroulant sur MSIE
 * et passe en jquery pour sa partie javascript (necessaire sous MSIE)
 *
 */
if (jQuery.browser.msie) {
	if(navigator.appName=="Microsoft Internet Explorer" && navigator.appVersion.substring(22,23) == "7") {
		//IE 7
		$(document).ready(function(){
		    $("#nav li").hover(
		        function(){ $("ul", this).fadeIn("fast");  },
		        function(){ $("ul", this).fadeOut("fast"); }
		    );
		    if (document.all) {
		        $("#nav li").hoverClass ("sfHover");
		    }
		});
		 
		$.fn.hoverClass = function(c) {
		    return this.each(function(){
		        $(this).hover(
		            function() { $(this).addClass(c);  },
		            function() { $(this).removeClass(c); }
		        );
		    });
		};
	} else {
		//IE 6
		$(document).ready(function(){
			$('#nav li').hover(
				function(){$(this).addClass('sfhover')},
				function(){$(this).removeClass('sfhover')}
			);
		});
	}
}