function mouseOverSubMenu(menuID, subMenuID){
	var mmid = "#mainMenuLink_" + menuID + "_" + subMenuID;
	var smid = "#subMenu_" + menuID + "_" + subMenuID;
	
	if( $(smid).width() < $(mmid).width()) {
		$(smid).css({width: $(mmid).width() + 2 + "px"});
	}
	else {
		$(smid).css({width: $(smid).width() + "px"});
	}
	
	if( $(smid).css("display") == "none" ) {
		$(smid).css({opacity: 0});
		$(smid).show();
	}
	$(smid).stop().animate({opacity: 1}, 200);
}

function mouseOutSubMenu(menuID, subMenuID){
	var mmid = "#mainMenuLink_" + menuID + "_" + subMenuID;
	var smid = "#subMenu_" + menuID + "_" + subMenuID;
	
	$(smid).stop().animate({opacity: 0}, 300, function(){ $(smid).hide(); });
}


function visibilite(thingId)
{
	var targetElement;
	targetElement = document.getElementById(thingId) ;
	
	if (targetElement.style.display == "none") {
		targetElement.style.display = "" ;
	} else {
		targetElement.style.display = "none" ;
	}
}

	/* Set Last Visited Page 
	$.load("http://www.yak-yeti.com/ajax/setLvp.php", {lvp: document.location.href, rnd:Math.random()}); */
	jQuery.getScript("http://www.yak-yeti.com/ajax/setLvp.php?lvp="+document.location.href);
