document.observe("dom:loaded",function(){for(i=1;i<=26;i++){Event.observe('region'+i,'mouseover',function(event){$('survolregion').addClassName('survol'+this.id);});Event.observe('region'+i,'mouseout',function(event){$('survolregion').removeClassName('survol'+this.id);});} Event.observe('categorie','change',function(event){affichecriteresrecherche(this.value);});if($('categorie').value!=0){affichecriteresrecherche($('categorie').value);} Event.observe('motscle','focus',function(event){this.select();});Event.observe('motscle','blur',function(event){if(this.value==''){this.value='Mots clé';}});});function affichecriteresrecherche(categorie){if(categorie==11){$('criteresrechercheauto').show();}else{$('criteresrechercheauto').hide();} if(categorie==13){$('criteresrecherchemoto').show();}else{$('criteresrecherchemoto').hide();} if(categorie==31){$('criteresrechercheventeimmobiliere').show();}else{$('criteresrechercheventeimmobiliere').hide();} if(categorie==32||categorie==33){$('criteresrecherchelocationimmobiliere').show();}else{$('criteresrecherchelocationimmobiliere').hide();} if(categorie==34){$('criteresrecherchelocationvacances').show();}else{$('criteresrecherchelocationvacances').hide();} if(categorie==35){$('criteresrecherchelocauxcommerciaux').show();}else{$('criteresrecherchelocauxcommerciaux').hide();}}