step=1
timerDown=""

window.onload = function( ) {

	scrollDivDown();

	if (document.getElementById("imggarantie1")) {
		var imggaranti1 = document.getElementById("imggarantie1");
		imggaranti1.onmouseover = function( ) {	affiche_bulle_garantie(1);	}
		imggaranti1.onmouseout = function( ) {	cache_bulle_garantie(1);	}
	}
	if (document.getElementById("imggarantie1")) {
		var imggaranti2 = document.getElementById("imggarantie2");
		imggaranti2.onmouseover = function( ) {	affiche_bulle_garantie(2);	}
		imggaranti2.onmouseout = function( ) {	cache_bulle_garantie(2);	}
	}
	if (document.getElementById("imggarantie1")) {
		var imggaranti3 = document.getElementById("imggarantie3");
		imggaranti3.onmouseover = function( ) {	affiche_bulle_garantie(3);	}
		imggaranti3.onmouseout = function( ) {	cache_bulle_garantie(3);	}
	}
	if (document.getElementById("codepostal")) {
		var codepostal = document.getElementById("codepostal");
		codepostal.onkeyup = function( ) {   if ((codepostal.value) && (codepostal.value.length > 4)) {	getNomVille(codepostal.value) ;  codepostal.onchange=null; 	} ;	  } ;
		codepostal.onchange = function( ) {   if ((codepostal.value) && (codepostal.value.length > 4)) {	getNomVille(codepostal.value) ;   	} ;	  } ;
	}
	if (document.getElementById("2_4_257_794_1")) {
		var identifiant = document.getElementById("2_4_257_794_1");
		identifiant.onclick = function( )	{  	alert('Ne rien saisir.\nVotre identifiant correspond automatiquement à votre Email.\nMerci') ;   } ;
		identifiant.onclick = function( )	{  	alert('Ne rien saisir.\nVotre identifiant correspond automatiquement à votre Email.\nMerci') ;   } ;
	}
	if (document.getElementById("scrollUp")) {
		var identifiant = document.getElementById("scrollUp");
		identifiant.onmouseover = function(){ scrollDivPlusOver(); };
		identifiant.onmouseout = function(){ 	scrollDivPlusOut(); };
	}
	if (document.getElementById("scrollDown")) {
		var identifiant = document.getElementById("scrollDown");
		identifiant.onmouseover = function(){ scrollDivMinusOver(); };
		identifiant.onmouseout = function(){ 	scrollDivMinusOut(); };
	}

	var allPageTags = new Array();
	var allPageTags=document.getElementsByTagName("img");
	for (i=0; i<allPageTags.length; i++) {
		if (allPageTags[i].className=="img_plus") {
			allPageTags[i].onmouseover = function(){ return overlib('<b>Pour choisir plusieurs<br>réponses, cliquez ici !</b>'); };
			allPageTags[i].onmouseout = function(){ return nd(); };
		}
	}


}

function affiche_bulle_garantie(num_bulle) {
	document.getElementById("bulle"+num_bulle+"_garanties").style.visibility = "visible";
}

function cache_bulle_garantie(num_bulle) {
	document.getElementById("bulle"+num_bulle+"_garanties").style.visibility = "hidden";
}



function scrollDivDown(){
	if(el=document.getElementById("scroll")) {
		clearTimeout(timerDown)
		el.scrollTop += step
		timerDown = setTimeout("scrollDivDown()",50)
		if(el.scrollTop>=el.scrollHeight-el.offsetHeight){ el.scrollTop=0 }
	}
}

function scrollDivPlusOver() { 	step = 4; }
function scrollDivPlusOut()  {	step = 1; }
function scrollDivMinusOver(){	step = -3;}
function scrollDivMinusOut() {	step = -1;}
