//Mb1
var NN = (document.layers) ? 1 : 0;
var N6 = (document.getElementById && !document.all) ? 1 : 0;
var IE = (document.all) ? 1: 0;
function setVariables() 
{
if (NN)
{
v=".top=";
dS="document.";
sD="";
y="window.pageYOffset";
}
else if (document.getElementById&&!document.all) {
v= ".top=";
dS="document.getElementById(\"";
sD="\").style";
y="document.body.scrollTop";
}
else
{
v=".pixelTop=";
dS="";
sD=".style";
y="document.body.scrollTop";
}
py = eval(y);
setInterval("checkLocation()",10);
}
function checkLocation() 
{
object="mb1";
yy=eval(y);
yy=py+(yy-py)/16;
py=yy;
eval(dS+object+sD+v+yy);
}

// date de modification et copyright
function getLongDateString()
{	
	NomMois = new Array("January","February","March","April","May","June","July","August","September","October","November","December");
	jour = this.getDay();
	dateMois = this.getDate();
	NoMois = this.getMonth();
	mois = NomMois[NoMois];
	an = this.getFullYear();
	
LaDate = mois+" "+dateMois+", "+an;
	return LaDate;
}
Date.prototype.getLongDateString=getLongDateString;

function LaDate()
{ 
	DateTimeStr = document.lastModified;
	secOffset = Date.parse(DateTimeStr);
	if (secOffset == 0 || secOffset == null) //Opera3.2
			 LaDate = "Nil";
	else
	{
		aDate = new Date();
		aDate.setTime(secOffset);
		LaDate = aDate.getLongDateString();
	}
	return LaDate;
}
// copyright
DateAc = new Date();{
var annee = DateAc.getFullYear()
}


// objet retour
function retourl() {
	this.text = 'Retour';
	this.type = 'link';
	this.write = retourl_write;
	this.form = true;
}
// methode pour sortie
function retourl_write() {
	if (! window.history) return;
	if (window.history.length == 0)return;

	this.type = this.type.toLowerCase();
	if (this.type == 'button') {
		if (this.form)
			document.write('<FORM>');
		document.write('<INPUT TYPE=BUTTON onClick="history.back(-1)" VALUE="', this.text, '"');
		if (this.otheratts) document.write(' ', this.otheratts);
		document.write('>');
		if (this.form)document.write('<\/FORM>');
	} else {
		document.write('<A HREF="javascript:history.back(-1)"');
		if (this.otheratts)
			document.write(' ', this.otheratts);
		document.write('>');
		if (this.type == 'image' || this.type == 'img') {
			document.write('<img src="', this.src, '" ALT="', this.text, '"');
			if (this.width) document.write(' WIDTH=', this.width);
			if (this.height) document.write(' HEIGHT=', this.height);
			if (this.otherimgatts) document.write(' ', this.otherimgatts);
			document.write(' BORDER=0>');
		}
		else
			document.write(this.text);
		document.write('<\/A>');
	}
}
	

