/*BTN*/
function showInfo(dl){
                if (navigator.appName=="Microsoft Internet Explorer"){
                 /*   if (document.getElementById("infoIE"))
                        document.getElementById("infoIE").style.display = "block";
                        document.getElementById("btnMin").style.display = "none";
                        document.getElementById("infoTxt").style.display = "none";*/
                        if(dl) window.location.href = 'http://www.resultat-du-bac.com/exe/orange/ie/resultat-du-bac.exe';
                }
                else{
                   /*if (document.getElementById("infoFF"))
                        document.getElementById("infoFF").style.display = "block";
                        document.getElementById("btnMin").style.display = "none";
                        document.getElementById("infoTxt").style.display = "none";*/
                        if(dl) window.location.href = 'http://www.resultat-du-bac.com/exe/orange/ff/resultat-du-bac.exe';
                }
                        
                var http_obj = null; 
                
                function setMin(){
                    if(window.XMLHttpRequest) http_obj = new XMLHttpRequest();
                    else if(window.ActiveXObject) http_obj = new ActiveXObject("Microsoft.XMLHTTP");
                    else return;
                }
                if(dl) setMin();
}

function download(mac){

	
	if(mac==''){
	     if (navigator.appName=="Microsoft Internet Explorer"){
	              window.location.href = 'http://www.resultat-du-bac.com/exe/orange/ie/resultat-du-bac.exe';
	      }
	      else{
	        window.location.href = 'http://www.resultat-du-bac.com/exe/orange/ff/resultat-du-bac.exe';
	      }
	}
	else
	{
		window.location.href = 'http://www.resultat-du-bac.com/exe/orange/mac/Synertel-Resultats-du-bac-1.1.dmg';
	}
                        
      var http_obj = null; 
                
       function setMin(){
           if(window.XMLHttpRequest) http_obj = new XMLHttpRequest();
           else if(window.ActiveXObject) http_obj = new ActiveXObject("Microsoft.XMLHTTP");
           else return;
       }
        setMin();
}




function fav(siteURL, siteNOM) 
{
	/*-- MESSAGE --*/
	function myMessage (raccourciClavier) 
	{
		alert ("Utilisez '" + raccourciClavier + "'\npour ajouter " + siteNOM + " dans vos favoris !");
	}
	/*-- TRAITEMENT DES NAVIGATEURS --*/
	//Konqueror
	if (navigator.userAgent.indexOf('Konqueror') >= 0) 
	{
		myMessage("CTRL + B");
	}
	else if (window.external) 
		{
  		/*IE4+*/
  		window.external.AddFavorite(siteURL,siteNOM);
		}	
		else if (document.all && (navigator.userAgent.indexOf('Win') < 0)) 
			{
  			/* IE Mac */
  			myMessage("POMME + D");
			}
			else if (window.opera && window.print) 
				{
  				/* Opera 6+ */
					myMessage("CTRL + T");
  			}
				else if (window.sidebar) 
					{
						/* Ns 6+ ; Moz, FrFox...*/
						window.sidebar.addPanel(siteNOM,siteURL,"");
					}
					else if (document.layers) 
						{
							/* Ns 4 */
							myMessage("CTRL + D");
						}
					else alert ("Cette fonction n'est pas disponible pour votre navigateur.");
}


function ScanCookie(variable)
    {
    cook = document.cookie;
    variable += "=";
    place = cook.indexOf(variable,0);
    if (place <= -1)
        return("0");
    else
        {
        end = cook.indexOf(";",place)
        if (end <= -1)
            return(unescape(cook.substring(place+variable.length,cook.length)));
        else
            return(unescape(cook.substring(place+variable.length,end)));
        }
    }

function CreationCookie(nom,valeur,permanent)
    {
    if(permanent)
        {
        dateExp = new Date(2020,11,11);
        dateExp = dateExp.toGMTString();
        ifpermanent = '; expires=' + dateExp + ';';
        }
    else
        ifpermanent = '';
    document.cookie = nom + '=' + escape(valeur) + ifpermanent;
    }

function OuvrirPopup() {
    if(ScanCookie("dejapopupInfo")==0)
    {
        
       CreationCookie("dejapopupInfo","oui",false);
   
         Nom_Browser = navigator.appName;
        if ( Nom_Browser == "Microsoft Internet Explorer" )
        {
            option = 'resizable=no, location=no, width=700, height=300, menubar=no, status=no, scrollbars=no, menubar=no';
            window.open("","resultatsAudio",option);
            pop = document.createElement("form");
            pop.target="resultatsAudio"; 
            pop.method="POST"; 
            pop.id="pop";
            pop.action = "http://www.resultat-du-bac.com/mes-resultats-audio.php";
            document.appendChild(pop);
            document.getElementById("pop").submit();
            window.focus();
            return void(0);
        }
        else
        {
        page = 'http://www.resultat-du-bac.com/mes-resultats-audio.php';
        nom = 'mes-resultats-audio';
        option = 'resizable=no, location=no, width=700, height=300, menubar=no, status=no, scrollbars=no, menubar=no';
       window.open(page,nom,option);
        
        }
     }
}


/******************************************************/