//SCRIPT DE RECUPERATION DE LA DATE
navvers = navigator.appVersion.substring(0,1);
if (navvers > 3)
navok = true;
else
 navok = false;
today = new Date;
jour = today.getDay();
numero = today.getDate();
if (numero<10)
 numero = "0"+numero;
 mois = today.getMonth();
if (navok)
 annee = today.getFullYear();
else
annee = today.getYear();
TabJour = new Array("Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi");
TabMois = new Array("janvier","f&eacute;vrier","mars","avril","mai","juin","juillet","ao&ucirc;t","septembre","octobre","novembre","d&eacute;cembre");
messageDate = TabJour[jour] + " " + numero + " " + TabMois[mois] + " " + annee;
messageDate2 ="mise &agrave; jour :" + numero + "/" + (mois+1) + "/" + annee; 
//SCRIPT POUR L'OUVERTURE DE LA FENETRE DE PLAN DETAILLE
function ouvre_plan(plan){
window.open("plan_"+plan+".html", "", "width=720,height=700, screenX=800,screenY=800, top=100,left=200, scrollbars=yes");
}
//SCRIPT LE DEROULEMENT DES ACCCES DIRECT
function deroule_acces_directe(a){
if(document.getElementById(a) != null)
 {
 var styl =document.getElementById(a).style;
 styl.display=styl.display=="block"?"none":"block";
 } ;
};
//SCRIPT L'AFFICHE/CACHE DES ACTIVITES POLE
function cacher(a,b)
{
	if(document.getElementById(a) != null)
	{	
	var styl =document.getElementById(a).style;
 	styl.display=styl.display=="block"?"none":"block";
		if(styl.display == 'block')
		{	
		var stylb =document.getElementById(b).style;
		stylb.background=stylb.background=="url(images/moins.png) no-repeat"?"url(images/plus.png) no-repeat":"url(images/moins.png) no-repeat";
		}else{
		var stylb =document.getElementById(b).style;
		stylb.background=stylb.background=="url(images/plus.png) no-repeat"?"url(images/moins.png) no-repeat":"url(images/plus.png) no-repeat";
		}
	};
};
function cacher2(a,b)
{
	if(document.getElementById(a) != null)
	{	
	var styl =document.getElementById(a).style;
 	styl.display=styl.display=="block"?"none":"block";
		if(styl.display == 'block')
		{	
		var stylb =document.getElementById(b).style;
		stylb.background=stylb.background=="url(images/moins.png) no-repeat"?"url(images/plus.png) no-repeat":"url(images/moins.png) no-repeat";
		stylb.backgroundPosition="right center";
		}else{
		var stylb =document.getElementById(b).style;
		stylb.background=stylb.background=="url(images/plus.png) no-repeat"?"url(images/moins.png) no-repeat":"url(images/plus.png) no-repeat";
		stylb.backgroundPosition="right center";
		}
	};
};
