if (window != top) top.location.href = location.href;
//window.defaultStatus="KartOO baseline....";
function open_win(ima,w,h,n,s) {
	var l=window.screen.width-w-8;
	mywin = window.open(ima,n,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars='+s+',resizable=1,width='+w+',height='+h+',top=0,left='+l);
	mywin.focus();
}
function form_win(f,ima,w,h,n) {
	var l=window.screen.width-w-8;
    ima += '?';
	for(var j = 0; j < document.forms[f].elements.length; j++) {
     	if(j>0) ima += '&';
    	if(document.forms[f].elements[j].type != 'radio' || document.forms[f].elements[j].checked) {
	 	ima += document.forms[f].elements[j].name + '=';
	 	ima += document.forms[f].elements[j].value;
    	}
	}
	mywin = window.open(ima,n,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width='+w+',height='+h+',top=0,left='+l);
	mywin.focus();
}
function datefr() {
	var m=new Array(13);
	m[0]="Janvier";m[1]="F&eacute;vrier";m[2]="Mars";m[3]="Avril";m[4]="Mai";m[5]="Juin";
	m[6]="Juillet";m[7]="Aout";m[8]="Septembre";m[9]="Octobre";m[10]="Novembre";m[11]="D&eacute;ecembre";
	var j=new Array(7);
	j[0]="Dimanche";j[1]="Lundi";j[2]="Mardi";j[3]="Mercredi";j[4]="Jeudi";j[5]="Vendredi";j[6]="Samedi";
	var time=new Date();
	var mois=m[time.getMonth()];
	var jour=j[time.getDay()];
	var date=time.getDate();
	var an=time.getYear();
	if(an <= 200) an=1900+an;
	document.write(jour+" "+date+" "+mois+" "+an);
}
function dateen() {
	var m=new Array(13);
	m[0]="January";m[1]="February";m[2]="March";m[3]="April";m[4]="May";m[5]="June";
	m[6]="July";m[7]="August";m[8]="September";m[9]="October";m[10]="November";m[11]="December";
	var j=new Array(7);
	j[0]="Sunday";j[1]="Monday";j[2]="Tuesday";j[3]="Wednesday";j[4]="Thursday";j[5]="Friday";j[6]="Saturday";
	var time=new Date();
	var mois=m[time.getMonth()];
	var jour=j[time.getDay()];
	var date=time.getDate();
	var an=time.getYear();
	if(an <= 200) an=1900+an;
	document.write(jour+", "+mois+" "+date+", "+an);
}
function cellColor(id,color) {
		id.bgColor = color;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
MM_preloadImages(
'gif/btn_menu1b.jpg','gif/btn_menu2b.jpg','gif/btn_menu4b.jpg',
'gif/btn_menu5b.jpg','gif/btn_menu6b.jpg',
'gif/puce_ok.gif', 'gif/puce_on.gif', 'gif/puce_off.gif');

var ns4 = (document.layers)? true:false;				//NS 4
var ie4 = (document.all)? true:false;					//IE 4
var dom = (document.getElementById)? true:false;	//DOM

//Paramètre à définir
var DivWidth = 780;			//Largeur du DIV contenant le message
var ScrollSpeed = 15;		//vitesse du message (tempo en millisecondes)

//Déclaration des variables globales
var DivLeft	= 0;				//Position du Div par rapport au côté gauche de la page
var DivTop	= 0;				//Position du Div par rapport au haut de la page
var MessageWidth = 0;		//Largeur du Message
var first = true;				//Indication de démarrage du défilement
var StartPos = 0;				//Position de départ du DIV contenant le message
var EndPos = 0;				//Position finale du DIV contenant le message
var MyPos = StartPos;		//Position courante du DIV contenant le message
var DivClipLeft = 0;			//Début de la partie visible du DIV
var DivClipRight = 0;		//Fin de la partie visible du DIV


function ScrollInit(ID_Anchor,Name_Anchor,ID_Div)
//Fonction faisant l'initialisation du DIV contenant le message
//et le lancement du défilement du message
	{
	if (dom)
		{
		pos = document.getElementById(ID_Anchor);
		MessageWidth = document.getElementById(ID_Div).offsetWidth;
		DivLeft = getLeft(pos);
		DivTop = getTop(pos);
		StartPos = DivLeft + DivWidth;
		EndPos = DivLeft - MessageWidth;
		MyPos = StartPos;
		document.getElementById(ID_Div).style.top = DivTop;
		
		}
	else if (ie4) 
		{
		pos = document.all[ID_Anchor];
		MessageWidth = document.all[ID_Div].clientWidth;
		DivLeft = getLeft(pos);
		DivTop = getTop(pos);
		StartPos = DivLeft + DivWidth;
		EndPos = DivLeft - MessageWidth;
		MyPos = StartPos;
		document.all[ID_Div].style.posTop = DivTop;
		}
	else if (ns4)
		{
		pos = document.anchors[Name_Anchor];
		MessageWidth = document.layers[ID_Div].clip.width;
		DivLeft = pos.x;
		DivTop = pos.y;
		StartPos = DivLeft + DivWidth;
		EndPos = DivLeft - MessageWidth;
		MyPos = StartPos;
		document.layers[ID_Div].pageY = DivTop;
		}
	setInterval("Scrolling('"+ID_Div+"')", ScrollSpeed);
	}

		
function getLeft(MyObject)
//Fonction permettant de connaître la position d'un objet
//par rapport au bord gauche de la page.
//Cet objet peut être à l'intérieur d'un autre objet.
	{
	if (MyObject.offsetParent)
		return (MyObject.offsetLeft + getLeft(MyObject.offsetParent));
	else 
		return (MyObject.offsetLeft);
	}

	
function getTop(MyObject)
//Fonction permettant de connaître la position d'un objet
//par rapport au bord haut de la page.
//Cet objet peut être à l'intérieur d'un autre objet.
	{
	if (MyObject.offsetParent)
		return (MyObject.offsetTop + getTop(MyObject.offsetParent));
	else
		return (MyObject.offsetTop);
	}


function Scrolling(ID_Div)
//Fonction faisant défilé le message
	{
	if (MyPos < EndPos) MyPos = StartPos;
	DivClipLeft = DivLeft - MyPos;
	DivClipRight = StartPos - MyPos;
	if (dom)
		{
		document.getElementById(ID_Div).style.left = MyPos;
		document.getElementById(ID_Div).style.top = DivTop;
		document.getElementById(ID_Div).style.clip = "rect(auto "+DivClipRight+"px auto "+DivClipLeft+"px)";
		if (first) document.getElementById(ID_Div).style.visibility = "visible";
		}
	else if (ie4)
		{
		document.all[ID_Div].style.posLeft = MyPos;
		document.all[ID_Div].style.posTop = DivTop;
		document.all[ID_Div].style.clip = "rect(auto "+DivClipRight+"px auto "+DivClipLeft+"px)";
		if (first) document.all[ID_Div].style.visibility = "visible";
		}
	else if (ns4)
		{
		document.layers[ID_Div].pageX = MyPos;
		document.layers[ID_Div].clip.left = DivClipLeft;
		document.layers[ID_Div].clip.right = DivClipRight;
		if (first) document.layers[ID_Div].visibility = "show";
		}
	first = false;
	MyPos = MyPos - 1;
	}