// JavaScript Document

/******************************************************************************/
/* Emule l'tat :hover sur les lments non <a> dans les browser non standard */
/* dans ce cas si les <li>  l'intrieur du #menuPrincipal                    */
/******************************************************************************/
sfHover = function() {
	var sfEls = document.getElementById("menu").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);



$(document).ready(function(){
slURL = document.URL

if (slURL == "http://www.quebeccityconference.com/eng/index.php" || slURL == "http://quebeccityconference.com/eng/index.php"  || slURL == "http://www.v3wdev.com/navcs/eng/index.php"  ) 
{
	$(".specForum").children("ul").css("display","block");
	$(".specForum").attr("class","sideon");
	
}
else
{
	$("#menuGauche li.pageli").each(function(){
	
		if($(this).children("a").attr("href") == slURL )
		{
				
			$(this).children("a").attr("class", "pageon");
			$(this).parent("ul").css("display","block");
			
			$(this).parent("ul").parent("li").attr("class","sideon");
			$(this).parent("ul").parent("li").parent("ul").css("display","block");
		}	
	
	})
}


	$("#menuGauche a").click(function() {		
		$(this).parent("li").parent("ul").children("li").children("ul").slideUp(); $(this).parent("li").children("ul").slideToggle(); 
		
	});
	
	


/***************************/
$(".drop2").each(function(){
	//alert("heho")
	$(this).children(".dropforum").css("display","none");

})


$(".drop2").click(
	function(){
		closeAll()
		$(this).children(".dropforum").css("display","block")
	}
)

});

function closeAll()
{
$(".drop2").each(function(){
	//alert("heho")
	$(this).children(".dropforum").css("display","none")

})
}



