//-------------------------------- ROLLOVER MENU DE LA PAGE ENTRE --------------------------------------------------
var menuEnSurvol = false;
var timeoutMouseout;
function imageOverMenu( imageId, imageSrc ) {
    //Enregistrement du id dans les var global
    imageOverId 		= imageId;
    imageNormalSrc 		= document.getElementById( imageId ).src;
    
    //Traitement
    document.getElementById( imageId ).src = imageSrc;

    if( imageId == "recherche_par_references" && document.getElementById( "menu_references" ) ){
if( document.getElementById( "menu_expertise" ) ) {
     if(document.getElementById( "menu_expertise" ).style.display == "block"){
        document.getElementById( "menu_expertise" ).style.display = "none"
     }
}
        document.getElementById( "menu_references" ).style.display = "block";
}

   if( imageId == "recherche_par_expertise" && document.getElementById( "menu_expertise" ) ){
if(document.getElementById( "menu_references" ).style.display == "block"){
document.getElementById( "menu_references" ).style.display = "none"
}
        document.getElementById( "menu_expertise" ).style.display = "block";
}

    menuEnSurvol = true;
}

function imageOutMenu() {
    //Traitement
    document.getElementById( imageOverId ).src = imageNormalSrc;

    menuEnSurvol = false;
    timeoutMouseout = setTimeout( timeoutImageOutMenu, 500 );
}

function imageOutMenuBouton() {
    menuEnSurvol = false;
    timeoutMouseout = setTimeout( timeoutImageOutMenu, 500 );
}

function timeoutImageOutMenu() {
    if( !menuEnSurvol ) {
        if( document.getElementById( "menu_references" ) ) 
            document.getElementById( "menu_references" ).style.display = "none";

       if( document.getElementById( "recherche_par_references" ) )
           document.getElementById( "recherche_par_references" ).src = "http://www.ideapme.ca/ineo/web/image/U130/btn_references_web.gif";

        if( document.getElementById( "menu_expertise" ) ) 
            document.getElementById( "menu_expertise" ).style.display = "none";

        if( document.getElementById( "recherche_par_expertise" ) )
           document.getElementById( "recherche_par_expertise" ).src = "http://www.ideapme.ca/ineo/web/image/U130/btn_rechercher_par_expertise.gif";
    }
}

//Au survol de l'image
function imageOver( imageId, imageSrc ) {
	//Enregistrement du id dans les var global
	imageOverId 		= imageId;
	imageNormalSrc 		= document.getElementById( imageId ).src;
	
	//Traitement
	document.getElementById( imageId ).src = imageSrc;
}

//A la sortie de l'image
function imageOut() {
	//Traitement
	document.getElementById( imageOverId ).src = imageNormalSrc;
}

