      var largeur;
      nets=(navigator.appName.indexOf("Netscape")!=-1) ? true : false;
      largeur=(nets) ? window.outerWidth : window.screen.availwidth;
      hauteur=(nets) ? window.outerHeight : window.screen.availheight;

	  if (largeur<900) 
	     document.write("<link rel='stylesheet' href='Styles/style800.css' type='text/css'>")
	  else if (largeur<1100)
	     document.write("<link rel='stylesheet' href='Styles/style1024.css' type='text/css'>")
	  else 
	     document.write("<link rel='stylesheet' href='Styles/style1200.css' type='text/css'>"); 

	navigateur=navigator.appName;	
	if (nets)
	   { chaine=navigator.appVersion.split("[");
		 version=chaine[0]; }
	else
	   { chaine=navigator.appVersion.split(";");
		 version=chaine[1].substring(chaine[1].length-4,chaine[1].length);};
	version=parseFloat(version);

function montre(j,k,x,y)   // j:numéro du layer   k=1 pour voir   x:abscisse  y:ordonnée
   {if(largeur<900)
         y=y+100
    else if(largeur<1100)
	    {x=Math.round(x*1.34);
         y=y+180;}
    else
	    {x=Math.round(x*1.8);
         y=y+350;};

     if (k==1)
		{document.getElementById("Layer"+j).style.left=x;
		 document.getElementById("Layer"+j).style.top=y;
		 document.getElementById("Layer"+j).style.visibility="visible";	 
		} 		  
     else 
	     document.getElementById("Layer"+j).style.visibility="hidden";
   }

  function ouvre(adresse,taille) 
         { if(taille==1)
			  {xa=Math.round((largeur-540)/2);ya=120;
			  position="width=540,height=450,left="+xa+",screenX="+xa+",top="+ya+",screenY="+ya+","
			  equipement="resizable=1"}
		    else
			  {position="width=600,height=450,left=20,screenX=20,top=20,screenY=20,"
			   equipement="resizable=YES,scrollbars=YES"};			  	  
          fen=window.open(adresse,"",position+equipement);
         }

function fenetre(page)                                                       //Ouverture dans info du jour
{  place="left=200,screenX=200,top=0,screenY=0,width=492,height=700,";
   equipement="resizable=1,scrollbars=1";
   fen=window.open(page,"",place+equipement);
}  

function popu()                                                                // Info ponctuelles
{  place="left=100,screenX=100,top=50,screenY=50,width=450,height=300,";
   equipement="resizable=1,scrollbars=1";
   fen=window.open("popu.asp","",place+equipement);
} 

function dopage()                                                       //Ouverture page sur le dopage
{  place="left=150,screenX=150,top=0,screenY=0,width=580,height=700,";
   equipement="resizable=1,scrollbars=1";
   fen=window.open("dopage.asp","",place+equipement);
}

var semaine=new Array ("Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi");
var an=new Array ("Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Aout","Septembre","Octobre","Novembre","Décembre")
var now= new Date();
var annee = now.getFullYear();
var mois = now.getMonth();
var journee = now.getDate();
var jour= now.getDay();
var DateDuJour=semaine[jour] + "  " + journee + "  " + an[mois] + "  " + annee;

function dirige(i)
  {
  var datej=new Date;
  annee=datej.getFullYear();
  var m=datej.getMonth()+1;
  var an=annee;
  //if(m<4){an=annee-1}; pour les resultats
if (i==1) {parent.middleFrame.location="fede.asp";parent.bottomFrame.location="fedeBas.asp?n=1";}
else if(i==2){parent.middleFrame.location="club.asp";parent.bottomFrame.location="clubBas.asp?n=1";}
else if(i==3){parent.middleFrame.location="ligue.asp";parent.bottomFrame.location="ligueBas.asp?n=1";}
else if(i==4){parent.middleFrame.location="asport_calendar.asp";parent.bottomFrame.location="asport_bas.asp?n=2";}
else if(i==5){parent.middleFrame.location="asport_result_tri.asp?annee="+an;parent.bottomFrame.location="asport_bas.asp?n=4";}
else if(i==6){parent.middleFrame.location="fedeFormation.asp";parent.bottomFrame.location="asport_bas.asp?n=9";}
else if(i==7){parent.middleFrame.location="a_news.asp";parent.bottomFrame.location="com_bas.asp?n=2";}
else if(i==8){parent.middleFrame.location="com_gala.asp";parent.bottomFrame.location="com_bas.asp?n=8";}
else if(i==9){parent.middleFrame.location="passe.asp";}
else if(i==10){parent.middleFrame.location="a_news.asp";parent.bottomFrame.location="com_bas.asp?n=2";}
else if(i==11){parent.middleFrame.location="journal.asp";parent.bottomFrame.location="com_bas.asp?n=3";}
else if(i==12){parent.middleFrame.location="fedeProduit.asp";parent.bottomFrame.location="com_bas.asp?n=9";}
else if(i==13){parent.middleFrame.location="com_forum.asp";parent.bottomFrame.location="com_bas.asp?n=4";}
else if(i==14){parent.middleFrame.location="com_partenaire.asp";parent.bottomFrame.location="com_bas.asp?n=11";}
else if(i==15){parent.middleFrame.location="cha_ligue.asp";}	
else if(i==16){parent.middleFrame.location="a_actualites.asp";parent.bottomFrame.location="com_bas.asp?n=1";};   // Actualités fédérales		
  }
  
function protege(e)
{return false;}

function bloque()
{
	/*
	if(document.images)
  {for(z=0;z<document.images.length;z++)
     document.images[z].oncontextmenu=protege;
  };
 if(event.button==2)alert("Merci de demander le droit d'utilisation des images à la fédération");
 */
}