   var rep_images = "/picts/moteur/horaire/";
   
   function testNavigateurFirefox()
   { 
        var strChUserAgent = navigator.userAgent;
        var intSplitStart = strChUserAgent.indexOf("(",0);
        var intSplitEnd = strChUserAgent.indexOf(")",0);
        var strChStart = strChUserAgent.substring(0,intSplitStart);
        var strChMid = strChUserAgent.substring(intSplitStart, intSplitEnd);
        var strChEnd = strChUserAgent.substring(strChEnd);
        
        if((strChEnd.indexOf("Firefox/2") != -1) || (strChEnd.indexOf("Firefox") != -1) ) 
            return true;
        else 
        	return false;
    }   
    
    function testNavigateurIE6()
    {
    	var agt=navigator.userAgent.toLowerCase();
		var appVer = navigator.appVersion.toLowerCase();
		var is_minor = parseFloat(appVer);
		var is_major = parseInt(is_minor);
		var iePos = appVer.indexOf('msie');
		if (iePos !=-1) {
		is_minor = parseFloat(appVer.substring(iePos+5,appVer.indexOf(';',iePos)))
		is_major = parseInt(is_minor);
		}
		var is_getElementById = (document.getElementById) ? "true" : "false";
		var is_getElementsByTagName = (document.getElementsByTagName) ? "true" : "false";
		var is_documentElement = (document.documentElement) ? "true" : "false";
		var is_ie = ((iePos!=-1));
		
		if(is_ie && is_major == 6)
			return true;
		else
			return false;
    }
    
   	function survol(bouton_courant, bouton_survol)
   	{ 
    	if(testNavigateurIE6())
    		bouton_courant.style.backgroundImage = "url("+rep_images+bouton_survol+")";
	}
    
    function survol_img(bouton_courant, bouton_survol)
	{ 
		bouton_courant.src = rep_images+bouton_survol;
	}


	var newWin;     //--Tableau des pointeurs sur fenêtres enfants
	function openPop(url, name, refresh, width, height, resizable, scrollbars,toolbar, menubar)
	{
        var settings='';
        var reOpen=true;

        if(newWin==null)
                newWin = new Array();

        //--Fenêtre déjà  ouverte ?
        if(newWin[name])
        {
                //--Si la fenêtre n'est pas fermée>> focus
                if(!newWin[name].closed)
                {
                        reOpen=false;


                        //--Raffraichissement du contenu ?
                        if(refresh)
                                newWin[name].document.location=url;

                        newWin[name].focus();

                }

        }
        if(reOpen)
        {
                //--Pour centrage ecran
                leftf =(screen.width-width)/2;
                topf  = (screen.height-height)/2;

                settings = "width="+width+",height="+height+", top="+topf +",left="+leftf+",";
                settings += "scrollbars=" + ((scrollbars) ? "yes," : "no,");
                settings += "toolbar=" + ((toolbar) ? "yes," : "no,");
                //settings += "location=" + ((locationbar) ? "yes," : "no,");
                settings += "menubar=" + ((menubar) ? "yes," : "no,");
                //settings += "status=" + ((statusbar) ? "yes," : "no,");
                settings += "resizable=" + ((resizable) ? "yes" : "no");

                newWin[name] = window.open(url,name, settings);
                newWin[name].focus();
        }

}

