function mentions_legales()
{
	var widthFenetre = 365;
	var heightFenetre = 350;

	var chemin = "pages/p_mentions_legales.htm";

	var attribut = "toolbar=0, location=0, directories=0, status=0, scrollbars=1, resizable=0, copyhistory=0, menuBar=0";
		attribut += ", width=" + widthFenetre;
		attribut += ", height=" + heightFenetre;
		attribut += ", left=" + eval((screen.width / 2) - (widthFenetre / 2));
		attribut += ", top=" + eval((screen.height / 2) - (heightFenetre / 2));

	var fenetreActionRubrique = window.open(chemin, "ImediaControl", attribut);
}


function actionLexique(IdMot)
{
	var widthFenetre = 350;
	var heightFenetre = 150;

	var chemin = "pages/p_lexique.php?id_mot=" + IdMot ;

	var attribut = "toolbar=0, location=0, directories=0, status=0, scrollbars=1, resizable=1, copyhistory=0, menuBar=0";
		attribut += ", width=" + widthFenetre;
		attribut += ", height=" + heightFenetre;
		attribut += ", left=" + eval((screen.width / 2) - (widthFenetre / 2));
		attribut += ", top=" + eval((screen.height / 2) - (heightFenetre / 2));

	var fenetreActionRubrique = window.open(chemin, "Définition", attribut);
}

function afficheMenuDeroulant(idMenu)
{
	if(document.getElementById("menuDeroulant" + idMenu))
	{
		document.getElementById("menuDeroulant" + idMenu).style.visibility = "visible";
	}	
}

function couleurParentOver(idMenu)
{

	if(document.getElementById("ida"+idMenu))
	{
		document.getElementById("ida"+idMenu).style.color = "#174A73";
		document.getElementById("ida"+idMenu).style.background = "#4FA6D9";	
	}	

}

function couleurParentOut(idMenu,color,background)
{

	if(document.getElementById("ida"+idMenu))
	{
		document.getElementById("ida"+idMenu).style.color = color;
		document.getElementById("ida"+idMenu).style.background = background;		
	}	

}

function closeMenuDeroulant(idMenu)
{
	if(document.getElementById("menuDeroulant" + idMenu))
		document.getElementById("menuDeroulant" + idMenu).style.visibility = "hidden"; 

}

$(document).ready(function()
{
	$('#nav').droppy();
});

$(function() {
  $('.nyroModal').nyroModal();
});

