function Is() {
    var agent = navigator.userAgent.toLowerCase();
    this.major = parseInt(navigator.appVersion);
    this.minor = parseFloat(navigator.appVersion);

    this.ns  = ((agent.indexOf('mozilla')!=-1) && ((agent.indexOf('spoofer')==-1) && (agent.indexOf('opera')==-1) && (agent.indexOf('compatible') == -1)));
        this.op = (agent.indexOf("opera") != -1);
        this.ns2 = (this.ns && (this.major == 2));
    this.ns3 = (this.ns && (this.major == 3));
    this.ns4b = (this.ns && (this.minor < 4.04));
    this.ns4 = (this.ns && (this.major >= 4 && this.major<5));
    this.ns6 = (this.ns && (this.major >= 5));
    this.ie   = (agent.indexOf("msie") != -1);
    this.ie3  = (this.ie && (this.major == 2));
    this.ie4  = ((this.ie  && (this.major == 4 && this.minor<4))  );
    this.ie5  = (this.ie  && (this.major >=4 & this.minor>=4));
    this.ie5up  = (this.ie  && (this.major >=5 & this.minor>=4));
    this.ie4up  = (this.ie5 || this.ns6);
    this.ns=(this.ns4 || this.ns6);
    this.ie=(this.ie4 || this.ie5);
    this.safari = ((agent.indexOf('safari')!=-1)&&(agent.indexOf('mac')!=-1))?true:false;
    //this.gecko = ((!this.khtml)&&(navigator.product)&&(navigator.product.toLowerCase()=="gecko"))?true:false;
      this.gecko = ((!this.safari)&&(navigator.product)&&(navigator.product.toLowerCase()=="gecko"))?true:false;
    this.moz   = ((agent.indexOf('mozilla/5')!=-1) && (agent.indexOf('spoofer')==-1) &&
                    (agent.indexOf('compatible')==-1) && (agent.indexOf('opera')==-1)  &&
                    (agent.indexOf('webtv')==-1) && (agent.indexOf('hotjava')==-1)     &&
                    (this.gecko) &&  ((navigator.vendor=="")||(navigator.vendor=="Mozilla")));

    this.win   = (agent.indexOf("win")!=-1);
    this.mac   = (agent.indexOf("mac")!=-1);
    this.unix  = (agent.indexOf("x11")!=-1);
}
var is = new Is();
var is_Flash        = false;
var is_FlashVersion = 0;
 function yesflash(x,lg){
   if ((is.ns6 ||is.moz)|| (is.mac&&is.ie5up)) {
      var plugin = (navigator.mimeTypes &&
                    navigator.mimeTypes["application/x-shockwave-flash"] &&
                    navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin) ?
                    navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
      if (plugin) {
         is_Flash = true;
         is_FlashVersion = parseInt(plugin.description.substring(plugin.description.indexOf(".")-1));
      }
   } ;
   if (is.win&&is.ie4up)
   {
      document.write('<scr' + 'ipt language=VBScript>' + '\n' + 'Dim hasPlayer, playerversion' + '\n');
       document.write('hasPlayer = false' + '\n' + 'playerversion = 10' + '\n' +'Do While playerversion > 0' + '\n' +'On Error Resume Next' + '\n');
       document.write('hasPlayer = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & playerversion)))' + '\n' +'If hasPlayer = true Then Exit Do' + '\n' + 'playerversion = playerversion - 1' + '\n');
       document.write('Loop' + '\n' +'is_FlashVersion = playerversion' + '\n' +'is_Flash = hasPlayer' + '\n' +'<\/sc' + 'ript>' );
    };

   if (x==0 && is_Flash && is_FlashVersion>=6 && !is.op && !is.ns4) {window.location.href="index.php?eng="+lg;;}
   else if (x==1 && (!is_Flash || is_FlashVersion<6 || is.op || is.ns4)) {window.location.href="index"+lg+".htm";};

   }
valindex=18;
gard="";
if (self!=top) {top.location.href=self.location.href;};
function addfav()
 {
  if (navigator.appName == "Microsoft Internet Explorer" && parseInt(navigator.appVersion) >= 4)
    {window.external.AddFavorite("../", "Jazzbreak le guide online du Jazz");
   } else {if ((typeof window.sidebar == "object") && (typeof window.sidebar.addPanel == "function")) { window.sidebar.addPanel ("JazzBreak.com","../n6jazzbreak.asp?ENG=0",""); }  ;};
 }


 function fshow(layern)
{if (loaded==1){
if (is.ie4 )
{eval('document.'+layern+'.style.visibility="visible"');
if (gard!="" && gard!=layern) {eval('document.'+gard+'.style.visibility="hidden"');};
}
else if (is.ns4) {
  eval('document.layers["'+layern+'"].visibility="show"');
if (gard!="" && gard!=layern) {    eval('document.layers["'+gard+'"].visibility="hide"'); };
}
else if(is.ie4up)
{ var layer1=document.getElementById(layern) ;
        layer1.style.visibility="visible";
        if ( gard!="" && gard!=layern) {var layer2=document.getElementById(gard) ;
        layer2.style.visibility="hidden";}; };
 gard=layern;
};  };
