<!--//--><![CDATA[//><!
function Init() {
	// variables globales utilisées pour les fonctions verScroll et stopScroll
	scrollTimer = new Array;
	scrollFirstTime = true;
	scrollMarge = 0;

	// pour la gestion des evenements
	if (document.layers) {
		var scrollDn1 = document["scrollDn1"];
		var scrollUp1 = document["scrollUp1"];
		var scrollLf1 = document["scrollLf1"];
		var scrollRg1 = document["scrollRg1"];
		var scrollLf2 = document["scrollLf2"];
		var scrollRg2 = document["scrollRg2"];
		var scrollLf3 = document["scrollLf3"];
		var scrollRg3 = document["scrollRg3"];
		var scrollLf4 = document["scrollLf4"];
		var scrollRg4 = document["scrollRg4"];
		var scrollLf5 = document["scrollLf5"];
		var scrollRg5 = document["scrollRg5"];
		var scrollLf6 = document["scrollLf6"];
		var scrollRg6 = document["scrollRg6"];
		var scrollLf7 = document["scrollLf7"];
		var scrollRg7 = document["scrollRg7"];
		var scrollLf8 = document["scrollLf8"];
		var scrollRg8 = document["scrollRg8"];
		var ville = document["ville"];
	}
	if (document.getElementById) {
		var scrollDn1 = document.getElementById("scrollDn1");
		var scrollUp1 = document.getElementById("scrollUp1");
		var scrollLf1 = document.getElementById("scrollLf1");
		var scrollRg1 = document.getElementById("scrollRg1");
		var scrollLf2 = document.getElementById("scrollLf2");
		var scrollRg2 = document.getElementById("scrollRg2");
		var scrollLf3 = document.getElementById("scrollLf3");
		var scrollRg3 = document.getElementById("scrollRg3");
		var scrollLf4 = document.getElementById("scrollLf4");
		var scrollRg4 = document.getElementById("scrollRg4");
		var scrollLf5 = document.getElementById("scrollLf5");
		var scrollRg5 = document.getElementById("scrollRg5");
		var scrollLf6 = document.getElementById("scrollLf6");
		var scrollRg6 = document.getElementById("scrollRg6");
		var scrollLf7 = document.getElementById("scrollLf7");
		var scrollRg7 = document.getElementById("scrollRg7");
		var scrollLf8 = document.getElementById("scrollLf8");
		var scrollRg8 = document.getElementById("scrollRg8");
		var ville = document.getElementById("ville");
	}
	if (document.all) {
		var scrollDn1 = document.all["scrollDn1"];
		var scrollUp1 = document.all["scrollUp1"];
		var scrollLf1 = document.all["scrollLf1"];
		var scrollRg1 = document.all["scrollRg1"];
		var scrollLf2 = document.all["scrollLf2"];
		var scrollRg2 = document.all["scrollRg2"];
		var scrollLf3 = document.all["scrollLf3"];
		var scrollRg3 = document.all["scrollRg3"];
		var scrollLf4 = document.all["scrollLf4"];
		var scrollRg4 = document.all["scrollRg4"];
		var scrollLf5 = document.all["scrollLf5"];
		var scrollRg5 = document.all["scrollRg5"];
		var scrollLf6 = document.all["scrollLf6"];
		var scrollRg6 = document.all["scrollRg6"];
		var scrollLf7 = document.all["scrollLf7"];
		var scrollRg7 = document.all["scrollRg7"];
		var scrollLf8 = document.all["scrollLf8"];
		var scrollRg8 = document.all["scrollRg8"];
		var ville = document.all["ville"];
	}
	if (scrollDn1 && scrollUp1) {
		scrollDn1.onclick = function() {verScroll('btm',2,true,'scrollTxt1',false); return false;}
		scrollDn1.onmouseover = function() {stopScroll('scrollTxt1'); verScroll('dn',4,true,'scrollTxt1',false); return false;}
		scrollDn1.onmouseout = function() {stopScroll('scrollTxt1'); return false;}
		scrollUp1.onclick = function() {verScroll('top',2,true,'scrollTxt1',false); return false;}
		scrollUp1.onmouseover = function() {stopScroll('scrollTxt1'); verScroll('up',4,true,'scrollTxt1',false); return false;}
		scrollUp1.onmouseout = function() {stopScroll('scrollTxt1'); return false;}
	}

	if (scrollRg1 && scrollLf1) {
		scrollRg1.onclick = function() {horScroll('lf',2,true,'scrollTxt2',false); return false;}
		scrollRg1.onmouseover = function() {stopScroll('scrollTxt2'); horScroll('left',4,true,'scrollTxt2',false); return false;}
		scrollRg1.onmouseout = function() {stopScroll('scrollTxt2'); return false;}
		scrollLf1.onclick = function() {horScroll('rg',2,true,'scrollTxt2',false); return false;}
		scrollLf1.onmouseover = function() {stopScroll('scrollTxt2'); horScroll('right',4,true,'scrollTxt2',false); return false;}
		scrollLf1.onmouseout = function() {stopScroll('scrollTxt2'); return false;}
	}

	if (scrollRg2 && scrollLf2) {
		scrollRg2.onclick = function() {horScroll('lf',2,true,'scrollTxt3',false); return false;}
		scrollRg2.onmouseover = function() {stopScroll('scrollTxt3'); horScroll('left',4,true,'scrollTxt3',false); return false;}
		scrollRg2.onmouseout = function() {stopScroll('scrollTxt3'); return false;}
		scrollLf2.onclick = function() {horScroll('rg',2,true,'scrollTxt3',false); return false;}
		scrollLf2.onmouseover = function() {stopScroll('scrollTxt3'); horScroll('right',4,true,'scrollTxt3',false); return false;}
		scrollLf2.onmouseout = function() {stopScroll('scrollTxt3'); return false;}
	}
	if (scrollRg3 && scrollLf3) {
		scrollRg3.onclick = function() {horScroll('lf',2,true,'scrollTxt4',false); return false;}
		scrollRg3.onmouseover = function() {stopScroll('scrollTxt4'); horScroll('left',4,true,'scrollTxt4',false); return false;}
		scrollRg3.onmouseout = function() {stopScroll('scrollTxt4'); return false;}
		scrollLf3.onclick = function() {horScroll('rg',2,true,'scrollTxt4',false); return false;}
		scrollLf3.onmouseover = function() {stopScroll('scrollTxt4'); horScroll('right',4,true,'scrollTxt4',false); return false;}
		scrollLf3.onmouseout = function() {stopScroll('scrollTxt4'); return false;}
	}
	if (scrollRg4 && scrollLf4) {
		scrollRg4.onclick = function() {horScroll('lf',2,true,'scrollTxt5',false); return false;}
		scrollRg4.onmouseover = function() {stopScroll('scrollTxt5'); horScroll('left',4,true,'scrollTxt5',false); return false;}
		scrollRg4.onmouseout = function() {stopScroll('scrollTxt5'); return false;}
		scrollLf4.onclick = function() {horScroll('rg',2,true,'scrollTxt5',false); return false;}
		scrollLf4.onmouseover = function() {stopScroll('scrollTxt5'); horScroll('right',4,true,'scrollTxt5',false); return false;}
		scrollLf4.onmouseout = function() {stopScroll('scrollTxt5'); return false;}
	}
	if (scrollRg5 && scrollLf5) {
		scrollRg5.onclick = function() {horScroll('lf',2,true,'scrollTxt6',false); return false;}
		scrollRg5.onmouseover = function() {stopScroll('scrollTxt6'); horScroll('left',4,true,'scrollTxt6',false); return false;}
		scrollRg5.onmouseout = function() {stopScroll('scrollTxt6'); return false;}
		scrollLf5.onclick = function() {horScroll('rg',2,true,'scrollTxt6',false); return false;}
		scrollLf5.onmouseover = function() {stopScroll('scrollTxt6'); horScroll('right',4,true,'scrollTxt6',false); return false;}
		scrollLf5.onmouseout = function() {stopScroll('scrollTxt6'); return false;}
	}
	if (scrollRg6 && scrollLf6) {
		scrollRg6.onclick = function() {horScroll('lf',2,true,'scrollTxt7',false); return false;}
		scrollRg6.onmouseover = function() {stopScroll('scrollTxt7'); horScroll('left',4,true,'scrollTxt7',false); return false;}
		scrollRg6.onmouseout = function() {stopScroll('scrollTxt7'); return false;}
		scrollLf6.onclick = function() {horScroll('rg',2,true,'scrollTxt7',false); return false;}
		scrollLf6.onmouseover = function() {stopScroll('scrollTxt7'); horScroll('right',4,true,'scrollTxt7',false); return false;}
		scrollLf6.onmouseout = function() {stopScroll('scrollTxt7'); return false;}
	}
	if (scrollRg7 && scrollLf7) {
		scrollRg7.onclick = function() {horScroll('lf',2,true,'scrollTxt8',false); return false;}
		scrollRg7.onmouseover = function() {stopScroll('scrollTxt8'); horScroll('left',4,true,'scrollTxt8',false); return false;}
		scrollRg7.onmouseout = function() {stopScroll('scrollTxt8'); return false;}
		scrollLf7.onclick = function() {horScroll('rg',2,true,'scrollTxt8',false); return false;}
		scrollLf7.onmouseover = function() {stopScroll('scrollTxt8'); horScroll('right',4,true,'scrollTxt8',false); return false;}
		scrollLf7.onmouseout = function() {stopScroll('scrollTxt8'); return false;}
	}
	if (scrollRg8 && scrollLf8) {
		scrollRg8.onclick = function() {horScroll('lf',2,true,'scrollTxt9',false); return false;}
		scrollRg8.onmouseover = function() {stopScroll('scrollTxt9'); horScroll('left',4,true,'scrollTxt9',false); return false;}
		scrollRg8.onmouseout = function() {stopScroll('scrollTxt9'); return false;}
		scrollLf8.onclick = function() {horScroll('rg',2,true,'scrollTxt9',false); return false;}
		scrollLf8.onmouseover = function() {stopScroll('scrollTxt9'); horScroll('right',4,true,'scrollTxt9',false); return false;}
		scrollLf8.onmouseout = function() {stopScroll('scrollTxt9'); return false;}
	}
	if (ville) {
		ville.onclick = function(event) {
			ville.value="";
			ville.focus();
			ville.select();
		}
	}
}

function verScroll(dir, speed, loop, divId, yoyo) {
	// ******************************************************
	// * fonction pour faire scroller les div verticalement *
	// ******************************************************
	// * dir : 	direction (up / dn / top / btm)         *
	// * speed : 	vitesse de défilement (entier)          *
	// * loop : 	mode défilement continu (true / false)  *
	// * yoyo : 	mode chgt de sens auto (true / false)   *
	// ******************************************************
	if (document.layers) {var divElt = document[divId];}
	if (document.getElementById) {var divElt = document.getElementById(divId);}
	if (document.all) {var divElt = document.all[divId];}
	if (scrollFirstTime) {scrollMarge=divElt.style.top; scrollFirstTime = false;}
	var y_pos = parseInt(divElt.style.top);
	if (dir == "dn") {
		if (divElt.offsetParent.offsetHeight-y_pos<parseInt(divElt.offsetHeight)+40) {
			// scroll vers le bas
			divElt.style.top = (y_pos - (parseInt(speed)))+"px";
		} else {
			// on arrive en bas : inversion du sens si mode 'yoyo'
			if (yoyo == true) {dir="up";} else {loop = false;}
		}
	}
	if (dir == "up") { 
		if (y_pos < parseInt(scrollMarge)) {
			// scroll vers le haut
			divElt.style.top = (y_pos + (parseInt(speed)))+"px";
		} else {
			// on arrive en haut : inversion du sens si mode 'yoyo'
			if (yoyo == true) {dir="dn";} else {loop = false;}
		}
	}
	if (dir == "top") {
		stopScroll(divId);
		loop = false;
		divElt.style.top = parseInt(scrollMarge)+"px";
	}
	if (dir == "btm") {
		stopScroll(divId);
		loop = false;
		divElt.style.top = (divElt.offsetParent.offsetHeight-parseInt(divElt.offsetHeight)-40)+"px";
	}
	if (loop == true) {scrollTimer[divId] = setTimeout("verScroll('"+dir+"', "+speed+", "+loop+", '"+divId+"', "+yoyo+")", 1);}
}
function horScroll(dir, speed, loop, divId, yoyo) {
	// ******************************************************
	// * fonction pour faire scroller les div horizontalement *
	// ******************************************************
	// * dir : 	direction (right / left / rg / lf)         *
	// * speed : 	vitesse de défilement (entier)          *
	// * loop : 	mode défilement continu (true / false)  *
	// * yoyo : 	mode chgt de sens auto (true / false)   *
	// ******************************************************
	if (document.layers) {var divElt = document[divId];}
	if (document.getElementById) {var divElt = document.getElementById(divId);}
	if (document.all) {var divElt = document.all[divId];}
	if (scrollFirstTime) {scrollMarge=divElt.style.left; scrollFirstTime = false;}
	var x_pos = parseInt(divElt.style.left);
	if (dir == "left") {
		if (divElt.offsetParent.offsetWidth-x_pos<parseInt(divElt.offsetWidth)) {
			// scroll vers la gauche
			divElt.style.left = (x_pos - (parseInt(speed)))+"px";
		} else {
			// on arrive à gche : inversion du sens si mode 'yoyo'
			if (yoyo == true) {dir="right";} else {loop = false;}
		}
	}
	if (dir == "right") { 
		if (x_pos < parseInt(scrollMarge)) {
			// scroll vers la droite
			divElt.style.left = (x_pos + (parseInt(speed)))+"px";
		} else {
			// on arrive à drte : inversion du sens si mode 'yoyo'
			if (yoyo == true) {dir="left";} else {loop = false;}
		}
	}
	if (dir == "rg") {
		stopScroll(divId);
		loop = false;
		divElt.style.left = parseInt(scrollMarge)+"px";
	}
	if (dir == "lf") {
		stopScroll(divId);
		loop = false;
		divElt.style.left = (divElt.offsetParent.offsetWidth-parseInt(divElt.offsetWidth))+"px";
	}
	if (loop == true) {scrollTimer[divId] = setTimeout("horScroll('"+dir+"', "+speed+", "+loop+", '"+divId+"', "+yoyo+")", 1);}
}
function stopScroll(divId) {
	if (scrollTimer[divId]) {clearTimeout(scrollTimer[divId]);}
}

window.onload=Init;
//--><!]]>
