function Chargement() {
    CacherMenus();
}

function Showdealerdpt() {
	document.getElementById("hidden-select").style.display="block";
}

function MontrerMenu(strMenu) {
    CacherMenus();  
    document.getElementById(strMenu).style.visibility="visible";
	with(document.getElementById("link-"+strMenu).style){
		backgroundImage="url(styles/img/bg_header_link.jpg)";
		backgroundRepeat="repeat-x";
	}
}

function CacherMenus() {
	var i;
    for(i=1;i<=1;i++){
      with(document.getElementById("ssmenu"+i).style) 
        visibility="hidden";
	  with(document.getElementById("link-ssmenu"+i).style) 
	  		backgroundImage="none";
	}
}


function choix(formulaire) {
i = formulaire.domaine.selectedIndex;

formulaire.pratique.options.length= 0;


switch (i) {
case 0 : var txt = new Array ('Loisir','loisir','XC','xc','XC Marathon','marathon','Enduro','enduro','Freeride','freeride','Descente','descente'); break;
case 1 : var txt = new Array ('Compétition','competition','Cyclosport','cyclosport','Cyclotourisme','cyclotourisme'); break;
case 2 : var txt = new Array ('Tous','all'); break;
case 3 : var txt = new Array ('Tous','all'); break;
}


for (i=0;i<txt.length;i=i+2) {
  var o=new Option(txt[i],txt[i+1]);         
  formulaire.pratique.options[formulaire.pratique.options.length]=o; 
 }
}

function lanceForm(lien){
	var formulaire = document.getElementById("type-pneu");
	var cat = formulaire.domaine.options[formulaire.domaine.selectedIndex].value;
	var pratique = formulaire.pratique.options[formulaire.pratique.selectedIndex].value;
	if(pratique !='all')
		lien.href="catalogue.php?cat="+cat+"&sub="+pratique;
	else
		lien.href="catalogue.php?cat="+cat;
}
