<!--

//SCRIPTS POUR LES MENUS DEROULANTS
function checkBrowser(){
        this.ver=navigator.appVersion
        this.dom=document.getElementById?1:0
        this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
        this.ie4=(document.all && !this.dom)?1:0;
        this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
        this.ns4=(document.layers && !this.dom)?1:0;
        this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5)
        return this
}
bw=new checkBrowser()


//If you want it to move faster you can set this lower:
var speed=50

//Sets variables to keep track of what's happening
var loop, timer

//Object constructor
function makeObj(obj,nest){
    nest=(!nest) ? '':'document.'+nest+'.'
        this.el=bw.dom?document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?eval(nest+'document.'+obj):0;
        this.css=bw.dom?document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?eval(nest+'document.'+obj):0;
        this.scrollHeight=bw.ns4?this.css.document.height:this.el.offsetHeight
        this.clipHeight=bw.ns4?this.css.clip.height:this.el.offsetHeight
        this.up=goUp;this.down=goDown;
        this.moveIt=moveIt; this.x; this.y;
    this.obj = obj + "Object"
    eval(this.obj + "=this")
    return this
}
function moveIt(x,y){
        this.x=x;this.y=y
        this.css.left=this.x
        this.css.top=this.y
}

//Makes the object go up
function goDown(move){
        if(this.y>-this.scrollHeight+oCont.clipHeight){
                this.moveIt(0,this.y-move)
                        if(loop) setTimeout(this.obj+".down("+move+")",speed)
        }
}
//Makes the object go down
function goUp(move){
        if(this.y<0){
                this.moveIt(0,this.y-move)
                if(loop) setTimeout(this.obj+".up("+move+")",speed)
        }
}

//Calls the scrolling functions. Also checks whether the page is loaded or not.
function scroll(speed){
        if(loaded){
                loop=true;
                if(speed>0) oScroll.down(speed)
                else oScroll.up(speed)
        }
}

//Stops the scrolling (called on mouseout)
function noScroll(){
        loop=false
        if(timer) clearTimeout(timer)
}
//Makes the object
var loaded;
function scrollInit(){
        oCont=new makeObj('divCont')
        oScroll=new makeObj('divText','divCont','divboule')
        oScroll.moveIt(0,0)
        oCont.css.visibility='visible'
        loaded=true;
}

//FIN SCRIPTS POUR LES MENUS DEROULANTS


//SCRIPT POUR LES CALQUES ET NETSCAPE
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);


//FONCTION POUR LA DATE SUR LA HOMEPAGE
function makeArray() {
     for (i = 0; i<makeArray.arguments.length; i++)
         this[i] = makeArray.arguments[i];
 }

function getFullYear(d) {
    var y = d.getYear();
    if (y < 1000) {y += 1900};
    return y;
}

//var zone = "EDT";
var days = new makeArray("Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi");
var months = new makeArray("Janvier","Fevrier","Mars","Avril","Mai","Juin","Juillet","Aout","Septembre","Octobre","Novembre","Decembre");


function format_time(t) {


    var Day = t.getDay();
    var Date = t.getDate();
    var Month = t.getMonth();
    var Year = getFullYear(t);


    timeString = "";
    timeString += Date;
    timeString += " ";
    timeString += months[Month];
    timeString += " ";
    timeString += Year;
    //timeString += " ";
    //timeString += zone;

   return timeString;
}


//SCRIPTS POUR AFFICHE/MASQUER DES CALQUES
var ns4=document.layers
var ie4=document.all
var ns6=document.getElementById&&!document.all

function Affiche(nom) {

 if(ie4) { // Internet explorer
    var divie4 =parent.frames['centre'].document.getElementsByTagName("div")
    divie4[nom].style.visibility = 'visible';
  }
  else if(ns4) { // Netscape 4.x
   parent.frames['centre'].document.eval(nom).visibility = 'show';
  }
  else if(ns6) { // Netscape 6 (mozilla)
    var divns6 = parent.frames['centre'].document.getElementsByTagName("div")
    parent.frames['centre'].document.getElementsByTagName("div")[nom].style.visibility = 'visible';
	}
}

//SCRIPTS POUR AFFICHER UNE IMAGE
function Image_on(nom){
   parent.frames['gauche'].document.images["img_"+nom].src= "../../img/gauche/" + nom + "_on.gif" ;
}


//SCRIPTS POUR EFFACER UNE IMAGE
function Image_off(nom){
   parent.frames['gauche'].document.images["img_"+nom].src= "../../img/gauche/" + nom + ".gif" ;
}


function efface_tout_sauf(num)
{//alert (nb_bouton);
	for (i=1; i<=nb_bouton; i++)
	{
		if (i!=num)
		{//alert ("off:" + bouton[i].nom);
			Image_off(bouton[i].nom);
		}
		else
			Image_on(bouton[i].nom);
	}
	//alert(i);
}




function affiche_menu(num)
{
	efface_tout_sauf(num);
	Cache('calque1');
	

	
	if (ie4)
		doc=parent.frames['centre'].document.all.calque;
	else if (ns4)
	{
		doc=parent.frames['centre'].document.layers.calque.document;
	}
	else if (ns6)
	{
		doc=parent.frames['centre'].document.getElementById('calque');
	}


ligne="";
for (j=1; j<=bouton[num].nb_sous_rub; j++)
	{
	    ligne+="<table width='160' border='0' cellspacing='0' cellpadding='0'><tr><td valign='top' width='11'><img src='../../img/dhtml/puce.gif' width='11' height='10'></td><td bgcolor='#1C5AA0' width=150>";
for (j=1; j<=bouton[num].nb_sous_rub; j++)
	{
		ligne += " <table  border='0' cellspacing='0' cellpadding='1'>";
		ligne+="     <tr> ";
		ligne+="           <td width='10' align='center'><img src='../../img/pix.gif' width='11' height='1'></td>";
		ligne+="           <td valign=top><img src='../../img/pix.gif' width='135' height='1'></td>";
		ligne+="    </tr>";
		ligne+="     <tr> ";
		ligne+="           <td width='10' align='center' valign=top><img src='../../img/pix.gif' width='6' height='5'><br><img src='../../img/dhtml/rond.gif' width='6' height='6'></td>";
		ligne+="           <td valign=top width=135><a href="+bouton[num].sous_rub[j].lien+" target='centre' class=dhtml onmouseover=Nivo2("+bouton[num].sous_rub[j].num_srub+");>"+bouton[num].sous_rub[j].nom+"</a></td>";
		ligne+="    </tr>";
		ligne+="  </table>";
	    
	}	
		ligne+="</td></tr></table>";
        ligne+="<table width='160' border='0' cellspacing='0' cellpadding='0'><tr><td><img src='../../img/pix.gif' width='11' height='7'></td><td><img src='../../img/dhtml/bas.gif'  height='5'></td></tr></table>";
		 ligne+="<table width='160' border='0' cellspacing='0' cellpadding='0'><tr><td><img src='../../img/pix.gif' width='11' height='7'></td><td><img src='../../img/pix.gif'  height='5'></td></tr></table>";


		
	}

	if (ie4||ns6)
		doc.innerHTML = ligne;

	else 
	{
		doc.write(ligne);
		doc.close();
	}
	
	
	var place = -10+24*num;
	if (ie4)
	{
		parent.frames['centre'].calque.style.top=place + parent.frames['centre'].document.body.scrollTop;
		parent.frames['centre'].blanc.style.top=place + parent.frames['centre'].document.body.scrollTop-6;
	}
	else if (ns4)
	{
		parent.frames['centre'].document.layers.calque.top=place + parent.frames['centre'].pageYOffset;
		parent.frames['centre'].document.layers.blanc.top=parent.frames['centre'].document.layers.calque.top-6;
	}
	else if (ns6)
	{
		parent.frames['centre'].document.getElementById('calque').style.top=place + parent.frames['centre'].pageYOffset;
		parent.frames['centre'].document.getElementById('blanc').style.top=parent.frames['centre'].document.getElementById('calque').style.top-6;
	}

	Affiche('calque');
}
//-->