// le menu deroulant
sfHover = function() {
	var sfEls = document.getElementById("menuDeroulant").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);



// avec jquery //

$(document).ready(function() {
						   
/* onglet encart page home*/

		var ie55 = (navigator.appName == "Microsoft Internet Explorer" && parseInt(navigator.appVersion) == 4 && navigator.appVersion.indexOf("MSIE 5.5") != -1);

	if (jQuery.browser.msie && (ie55)) {
	} else {
		$("#encartActu h2").hide();
		$("#encart2-2").hide();
		$("#encart2").css({overflow:'hidden'});
		$("#encart1").css({overflow:'hidden'});
		$("#encart1").prepend("<div id='btMoments' class='btMoments'></div>");
		
		$("#encart2").prepend("<div id='actu2' class='actu2-1' style='float:left; height:50px; width:100%;' title='Cliquez pour afficher le résumé'></div>");
		$("#actu2").prepend("<div id='btConccurrents' style='float:left; width:125px; height:42px; cursor:pointer' ></div>");
		$("#actu2").prepend("<div id='btJournalistes' style='float:left; width:149px; height:42px; cursor:pointer' ></div>");
	
		$("#btConccurrents").click( function() { 
			$("#encart2-1").hide(); 
			$("#encart2-2").show(); 
			$("#actu2").addClass("actu2-2");
			$("#actu2").removeClass("actu2-1");
			} 
		);
		$("#btJournalistes").click( function() { 
			$("#encart2-2").hide(); 
			$("#encart2-1").show(); 
			$("#actu2").addClass("actu2-1");
			$("#actu2").removeClass("actu2-2");
			} 
		);	
	}
	
	$("a div").css({cursor:'pointer'});
	$("a span").css({cursor:'pointer'});
	$("li a span").css({cursor:'default'});
	
});