 naver = navigator.appName.substring(0,3);
 nav = navigator.appVersion.substring(0,1);
 versionNav = navigator.appVersion;
 placeMSIE5 = versionNav.indexOf("MSIE 5");
 placeMSIE6 = versionNav.indexOf("MSIE 6");
 
 function add()
         {
         if (placeMSIE5 > -1 || placeMSIE6 > -1)
                 {
                 document.write('<img src="/gfx/demarrage.gif" style="border:0px;" alt="" />&nbsp;<a href="#" onclick="HomePage(this);return(false);" >PZ en d&eacute;marrage</a><br />');
                 }
      
         }
 function HomePage(obj)
         {
         obj.style.behavior='url(#default#homepage)';
         obj.setHomePage('http://www.playingzone.com');
         }
 


function fav () { 
  
    siteURL = "http://www.playingzone.com/" ;
    siteNOM = "PlayingZone : Jeux Vidéo" ;
    
    /*-- MESSAGE --*/ 
    function myMessage (raccourciClavier) { 
        alert ("Utilisez '" + raccourciClavier + "'\npour ajouter " + siteNOM + " dans vos favoris !"); 
    } 
     
  
    /*-- TRAITEMENT DES NAVIGATEURS --*/ 
  
    //Konqueror 
    if (navigator.userAgent.indexOf('Konqueror') >= 0) { 
    /*Test a effectuer avant tout les autres car repond TRUE aux differents tests sans pouvoir les exploiter*/ 
        myMessage("CTRL + B"); 
    } 
     
    else if (window.external) { 
        /* Internet Explorer 4+, et ses dérivés (Crazy Browser, Avent Browser ...) */ 
        window.external.AddFavorite(siteURL,siteNOM); 
    } 
  
    else if (document.all && (navigator.userAgent.indexOf('Win') < 0)) { 
        /* Internet Explorer Mac */ 
        myMessage("POMME + D"); 
    } 
     
    else if (window.opera && window.print) { 
        /* Opera 6+ */ 
        myMessage("CTRL + T"); 
    } 
     
    else if (window.sidebar) { 
        /* Netscape 6+ ; Mozilla, FireFox et compagnie (K-Meleon ...) */ 
        window.sidebar.addPanel(siteNOM,siteURL,""); 
    } 
     
    else if (document.layers) { 
        /* Netsccape 4 */ 
        myMessage("CTRL + D"); 
    } 
     
    else alert ("Cette fonction n'est pas disponible pour votre navigateur."); 
} 
document.write("<img src=\"/gfx/favoris.gif\" style=\"border:0px;\" alt=\"\" />&nbsp;<a href=\"#\" onclick=fav();>PZ en favoris</a><br />");
add();
