//resize taille ecran entier
maxx= screen.availWidth;
maxy= screen.availHeight;
window.moveTo(0,0);
window.resizeTo(maxx,maxy);

// Menu 1 - ACTUALITES

function Apparaitre1() {
  if (navigator.appName=='Microsoft Internet Explorer')
  {
       document.all.menu1.style.visibility='visible'
  }
  else
  {
       document.getElementById('menu1').style.visibility='visible'
  }
         ;}
		 
function Disparaitre1() {
  if (navigator.appName=='Microsoft Internet Explorer')
  {
       document.all.menu1.style.visibility='hidden'
  }
  else
  {
       document.getElementById('menu1').style.visibility='hidden'
  }
         ;}

// Menu 2 - DOSSIERS

function Apparaitre2() {
  if (navigator.appName=='Microsoft Internet Explorer')
  {
       document.all.menu2.style.visibility='visible'
  }
  else
  {
       document.getElementById('menu2').style.visibility='visible'
  }
         ;}
		 
function Disparaitre2() {
  if (navigator.appName=='Microsoft Internet Explorer')
  {
       document.all.menu2.style.visibility='hidden'
  }
  else
  {
       document.getElementById('menu2').style.visibility='hidden'
  }
         ;} 


// Menu 3 - emploi

function Apparaitre3() {
  if (navigator.appName=='Microsoft Internet Explorer')
  {
       document.all.menu3.style.visibility='visible'
  }
  else
  {
       document.getElementById('menu3').style.visibility='visible'
  }
         ;}
		 
function Disparaitre3() {
  if (navigator.appName=='Microsoft Internet Explorer')
  {
       document.all.menu3.style.visibility='hidden'
  }
  else
  {
       document.getElementById('menu3').style.visibility='hidden'
  }
         ;} 
		 

// Menu 4 - ANNUAIRES

function Apparaitre4() {
  if (navigator.appName=='Microsoft Internet Explorer')
  {
       document.all.menu4.style.visibility='visible'
  }
  else
  {
       document.getElementById('menu4').style.visibility='visible'
  }
         ;}
		 
function Disparaitre4() {
  if (navigator.appName=='Microsoft Internet Explorer')
  {
       document.all.menu4.style.visibility='hidden'
  }
  else
  {
       document.getElementById('menu4').style.visibility='hidden'
  }
         ;} 

// Menu 5

function Apparaitre5() {
  if (navigator.appName=='Microsoft Internet Explorer')
  {
       document.all.menu5.style.visibility='visible'
  }
  else
  {
       document.getElementById('menu5').style.visibility='visible'
  }
         ;}
		 
function Disparaitre5() {
  if (navigator.appName=='Microsoft Internet Explorer')
  {
       document.all.menu5.style.visibility='hidden'
  }
  else
  {
       document.getElementById('menu5').style.visibility='hidden'
  }
         ;} 

// Menu 5

function Apparaitre6() {
  if (navigator.appName=='Microsoft Internet Explorer')
  {
       document.all.menu6.style.visibility='visible'
  }
  else
  {
       document.getElementById('menu6').style.visibility='visible'
  }
         ;}
		 
function Disparaitre6() {
  if (navigator.appName=='Microsoft Internet Explorer')
  {
       document.all.menu6.style.visibility='hidden'
  }
  else
  {
       document.getElementById('menu6').style.visibility='hidden'
  }
         ;} 

//popupcentre
function popupcentree(page,largeur,hauteur,options)
{
var top=(screen.height-hauteur)/2;
var left=(screen.width-largeur)/2;
window.open(page,"","top="+180+",left="+left+",width="+largeur+",height="+hauteur+","+options);
}

//date
month = new Array(12);
	month[0]="Janvier"
	month[1]="Fevrier"
	month[2]="Mars"
	month[3]="Avril"
	month[4]="Mai"
	month[5]="Juin"
	month[6]="Juillet"
	month[7]="Aout"
	month[8]="Septembre"
	month[9]="Octobre"
	month[10]="Novembre"
	month[11]="Decembre"
	day = new Array(7);
	day[0]="Dimanche"
	day[1]="Lundi"
	day[2]="Mardi"
	day[3]="Mercredi"
	day[4]="Jeudi"
	day[5]="Vendredi"
	day[6]="Samedi"
	today=new Date();
	d0=today.getDay();
	m0=today.getMonth();
	d1=today.getDate();

//infobulle
var IB=new Object; 
var posX=0;posY=0; 
var xOffset=10;yOffset=10; 
function AffichBulle2(texte2) { 
contenu2="<TABLE border=0 width=250px cellspacing=0 cellpadding="+IB.NbPixel+"><TR bgcolor='"+IB.ColContour+"'><TD><TABLE width=250px border=0 cellpadding=2 cellspacing=0 bgcolor='"+IB.ColFond+"'><TR><TD><FONT size='1' face='Verdana, Arial, Helvetica, sans-serif' color='#666666' >"+texte2+"</FONT></TD></TR></TABLE></TD></TR></TABLE> "; 
var finalPosX=posX-xOffset; 
if (finalPosX<0) finalPosX=0; 
if (document.layers) { 
document.layers["bulle2"].document.write(contenu2); 
document.layers["bulle2"].document.close(); 
document.layers["bulle2"].top=posY+yOffset; 
document.layers["bulle2"].left=finalPosX; 
document.layers["bulle2"].visibility="show";} 
if (document.all) { 
//var f=window.event; 
//doc=document.body.scrollTop; 
bulle2.innerHTML=contenu2; 
document.all["bulle2"].style.top=posY+yOffset; 
document.all["bulle2"].style.left=finalPosX;//f.x-xOffset; 
document.all["bulle2"].style.visibility="visible"; 
} 
//modif CL 09/2001 - NS6 : celui-ci ne supporte plus document.layers mais document.getElementById 
else if (document.getElementById) { 
document.getElementById("bulle2").innerHTML=contenu2; 
document.getElementById("bulle2").style.top=posY+yOffset; 
document.getElementById("bulle2").style.left=finalPosX; 
document.getElementById("bulle2").style.visibility="visible"; 
} 
} 
function getMousePos(e) { 
if (document.all) { 
posX=event.x+document.body.scrollLeft; //modifs CL 09/2001 - IE : regrouper l'évènement 
posY=event.y+document.body.scrollTop; 
} 
else { 
posX=e.pageX; //modifs CL 09/2001 - NS6 : celui-ci ne supporte pas e.x et e.y 
posY=e.pageY; 
} 
} 
function HideBulle2() { 
if (document.layers) {document.layers["bulle2"].visibility="hide";} 
if (document.all) {document.all["bulle2"].style.visibility="hidden";} 
else if (document.getElementById){document.getElementById("bulle2").style.visibility="hidden";} 
} 

function InitBulle2(ColTexte,ColFond,ColContour,NbPixel) { 
IB.ColTexte=ColTexte;IB.ColFond=ColFond;IB.ColContour=ColContour;IB.NbPixel=NbPixel; 
if (document.layers) { 
window.captureEvents(Event.MOUSEMOVE);window.onMouseMove=getMousePos; 
document.write("<LAYER name='bulle2' top=0 left=0 visibility='hide'></LAYER>"); 
} 
if (document.all) { 
document.write("<DIV id='bulle2' onmouseleave ='HideBulle2()' style='position:absolute;top:0;left:0;visibility:hidden;z-index:30;onmouseover:HideBulle2()'></DIV>"); 
document.onmousemove=getMousePos; 
} 
//modif CL 09/2001 - NS6 : celui-ci ne supporte plus document.layers mais document.getElementById 
else if (document.getElementById) { 
document.onmousemove=getMousePos; 
document.write("<DIV id='bulle2' onmouseleave ='HideBulle2()' style='position:absolute;top:0;left:0;visibility:hidden;z-index:30;onmouseover:HideBulle2()'></DIV>"); 
} 

} 
document.onclick = HideBulle2;

//pop
function pop()
{	
var pop = document.getElementById('pop');	
if (pop) {pop.style.display = 'block';};	
if (pop) {pop.onclick = function() {
this.style.display = 'none';};
};
}

window.onload = pop;

//titleno
function titleno(page,largeur,hauteur,options)
{
var top=180;
var left=(screen.width-650)/2;
popupWin=window.open(page,"","top="+180+",left="+left+",width="+650+",height="+300+",fullscreen=1,"+options);
popupWin.resizeTo(650, 360);
popupWin.moveTo(left,top);
}

//makevisible
function makevisible(cur,which){
if (which==0) cur.filters.alpha.opacity=100
else cur.filters.alpha.opacity=40 }


function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);


function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

 // JavaScript Document