/* FONCTIONS UTILES AU COMBO BOX*/
function selectDonneeCombo(nomId, titreId, texte, id){
	document.getElementById(nomId).value = id;
	document.getElementById(titreId).value = texte;
}

function selectAccesRapide(nomId, titreId, texte, id, pageHTML){
	document.getElementById(nomId).value = id;
	document.getElementById(titreId).value = texte;
	location.replace(chemin+langue+'/2/'+id+'/'+pageHTML+'.html');
} 
/* FIN DES FONCTIONS UTILES AU COMBO BOX*/

/*  FONCTIONS UTILES A LA SCROLLBAR VERTICALE*/
var TimerScrollBarVerticale;
var PasScrollBarVerticale = 3;
function moveLayer(Sens) {
	Objet=document.getElementById("contenuAScroller");
    if(parseInt(Objet.style.top) + (PasScrollBarVerticale*Sens)>0)  {
		clearTimeout(TimerScrollBarVerticale);
	}
	else if(parseInt(Objet.style.top) + (PasScrollBarVerticale*Sens)<-(Objet.offsetHeight-document.getElementById("support").offsetHeight)) {
		clearTimeout(TimerScrollBarVerticale);
	}
    else {
        Objet.style.top = (parseInt(Objet.style.top) + (PasScrollBarVerticale*Sens)) + "px";
	}
	TimerScrollBarVerticale = setTimeout("moveLayer(" + Sens + ");", 30);
}
/*  FIN FONCTIONS UTILES A LA SCROLLBAR VERTICALE */
////////////  FIN SCROLLBAR  /////////


function forceDepart(idComposant)
{
		if(idComposant == '7')
		{
			selectDonneeCombo('valeurSelectCombo1','titreCombo1','Cannes','1');
			document.getElementById('departProtection').style.display='block';
		}
		else
		{
			document.getElementById('departProtection').style.display='none';
		}
}
