1Navigation.prototype.constructor=Navigation;function Navigation(e,t){this.CatIsSelect=new Array;this.BrandIsSelect=new Array;this.ModelIsSelect=new Array;this.RubriqueIsSelect=new Array;this.SsRubriqueComIsSelect=new Array;this.CatIsFixe=new Array;this.BrandIsFixe=new Array;this.ModelIsFixe=new Array;this.TypeIsFixe=new Array;this.RubriqueIsFixe=new Array;this.SsRubriqueComIsFixe=new Array;this.TagIsFixe=new Array;this.CatSelect=new Array;this.BrandSelect=new Array;this.ModelSelect=new Array;this.RubriqueSelect=new Array;this.SsRubriqueSelect=new Array;this.CatFixe=new Array;this.BrandFixe=new Array;this.ModelFixe=new Array;this.TypeFixe=new Array;this.RubriqueFixe=new Array;this.SsRubriqueComFixe=new Array;this.TagFixe=new Array;this.date_=new Date;this.xmlhttp_data=new Array;this.nb_max_req=20;if(typeof t=="undefined"){this.testing=false}else{this.testing=t}this.Tind=e;for(i in this.Tind){if(this.CatIsSelect[this.Tind[i]]=document.getElementById("select_categ_"+this.Tind[i])!=null){this.CatSelect[this.Tind[i]]=document.getElementById("select_categ_"+this.Tind[i])}if(this.BrandIsSelect[this.Tind[i]]=document.getElementById("select_brand_"+this.Tind[i])!=null){this.BrandSelect[this.Tind[i]]=document.getElementById("select_brand_"+this.Tind[i])}if(this.ModelIsSelect[this.Tind[i]]=document.getElementById("select_model_"+this.Tind[i])!=null){this.ModelSelect[this.Tind[i]]=document.getElementById("select_model_"+this.Tind[i])}if(this.RubriqueIsSelect[this.Tind[i]]=document.getElementById("select_rubrique_"+this.Tind[i])!=null){this.RubriqueSelect[this.Tind[i]]=document.getElementById("select_rubrique_"+this.Tind[i])}if(this.SsRubriqueComIsSelect[this.Tind[i]]=document.getElementById("select_ssrubrique_"+this.Tind[i])!=null){this.SsRubriqueSelect[this.Tind[i]]=document.getElementById("select_ssrubrique_"+this.Tind[i])}if(this.CatIsFixe[this.Tind[i]]=document.getElementById("fixe_categ_"+this.Tind[i])!=null){this.CatFixe[this.Tind[i]]=document.getElementById("fixe_categ_"+this.Tind[i])}if(this.BrandIsFixe[this.Tind[i]]=document.getElementById("fixe_brand_"+this.Tind[i])!=null){this.BrandFixe[this.Tind[i]]=document.getElementById("fixe_brand_"+this.Tind[i])}if(this.ModelIsFixe[this.Tind[i]]=document.getElementById("fixe_model_"+this.Tind[i])!=null){this.ModelFixe[this.Tind[i]]=document.getElementById("fixe_model_"+this.Tind[i])}if(this.TypeIsFixe[this.Tind[i]]=document.getElementById("fixe_type_"+this.Tind[i])!=null){this.TypeFixe[this.Tind[i]]=document.getElementById("fixe_type_"+this.Tind[i])}if(this.RubriqueIsFixe[this.Tind[i]]=document.getElementById("fixe_rubrique_"+this.Tind[i])!=null){this.RubriqueFixe[this.Tind[i]]=document.getElementById("fixe_rubrique_"+this.Tind[i])}if(this.SsRubriqueComIsFixe[this.Tind[i]]=document.getElementById("fixe_ssrubrique_"+this.Tind[i])!=null){this.SsRubriqueFixe[this.Tind[i]]=document.getElementById("fixe_ssrubrique_"+this.Tind[i])}if(this.TagIsFixe[this.Tind[i]]=document.getElementById("fixe_tag_"+this.Tind[i])!=null){this.TagFixe[this.Tind[i]]=document.getElementById("fixe_tag_"+this.Tind[i])}}this.typeNav=new Array;this.TypeFilter=new Array;this.getType();this.TabType=new Array("","essai","fiche-fiabilite","comparatif","fiche-expresse","actualite","video","video","photo")}Navigation.prototype.getType=function(){for(i in this.Tind){if(this.TagIsFixe[this.Tind[i]]){this.typeNav[this.Tind[i]]=18}else if(this.CatIsSelect[this.Tind[i]]&&!this.RubriqueIsFixe[this.Tind[i]]){if(this.BrandIsFixe[this.Tind[i]]){this.typeNav[this.Tind[i]]=4}else if(this.BrandIsSelect[this.Tind[i]]){this.typeNav[this.Tind[i]]=1}else{this.typeNav[this.Tind[i]]=6}}else if(this.BrandIsSelect[this.Tind[i]]&&this.ModelIsSelect[this.Tind[i]]&&!this.RubriqueIsFixe[this.Tind[i]]){if(this.CatIsFixe[this.Tind[i]]){this.typeNav[this.Tind[i]]=2}else{this.typeNav[this.Tind[i]]=5}}else if(this.BrandIsFixe[this.Tind[i]]&&this.ModelIsSelect[this.Tind[i]]){this.typeNav[this.Tind[i]]=3}else if(this.CatIsFixe[this.Tind[i]]&&this.RubriqueIsSelect[this.Tind[i]]){this.typeNav[this.Tind[i]]=7}else if(this.BrandIsFixe[this.Tind[i]]&&this.RubriqueIsSelect[this.Tind[i]]){this.typeNav[this.Tind[i]]=8}else if(this.ModelIsFixe[this.Tind[i]]&&this.RubriqueIsSelect[this.Tind[i]]){this.typeNav[this.Tind[i]]=9}
1else if(this.BrandIsSelect[this.Tind[i]]&&this.RubriqueIsFixe[this.Tind[i]]){this.typeNav[this.Tind[i]]=10}else if(this.CatIsSelect[this.Tind[i]]&&this.RubriqueIsFixe[this.Tind[i]]){this.typeNav[this.Tind[i]]=11}else if(this.CatIsFixe[this.Tind[i]]&&this.RubriqueIsFixe[this.Tind[i]]){this.typeNav[this.Tind[i]]=12}else if(this.BrandIsFixe[this.Tind[i]]&&this.RubriqueIsFixe[this.Tind[i]]){this.typeNav[this.Tind[i]]=13}else if(this.ModelIsFixe[this.Tind[i]]&&this.RubriqueIsFixe[this.Tind[i]]){this.typeNav[this.Tind[i]]=14}else if(this.RubriqueIsFixe[this.Tind[i]]){this.typeNav[this.Tind[i]]=15}else if(this.BrandIsSelect[this.Tind[i]]){this.typeNav[this.Tind[i]]=16}else if(this.RubriqueIsSelect[this.Tind[i]]){this.typeNav[this.Tind[i]]=17}if(this.TypeIsFixe[this.Tind[i]]){this.TypeFilter[this.Tind[i]]=this.TypeFixe[this.Tind[i]].value}else{this.TypeFilter[this.Tind[i]]=""}}};Navigation.prototype.initMe=function(){var e;for(e in this.Tind){if(this.typeNav[this.Tind[e]]==1){this.BrandSelect[this.Tind[e]].disabled=true;this.ModelSelect[this.Tind[e]].disabled=true;this.initCat(this.Tind[e])}else if(this.typeNav[this.Tind[e]]==2||this.typeNav[this.Tind[e]]==5||this.typeNav[this.Tind[e]]==10||this.typeNav[this.Tind[e]]==18){this.ModelSelect[this.Tind[e]].disabled=true;this.initBrand(this.Tind[e])}else if(this.typeNav[this.Tind[e]]==16){this.initBrand(this.Tind[e])}else if(this.typeNav[this.Tind[e]]==3){this.initModel(this.Tind[e])}else if(this.typeNav[this.Tind[e]]==4||this.typeNav[this.Tind[e]]==6||this.typeNav[this.Tind[e]]==11){this.initCat(this.Tind[e])}else if(this.typeNav[this.Tind[e]]==7||this.typeNav[this.Tind[e]]==8||this.typeNav[this.Tind[e]]==9){this.SsRubriqueSelect[this.Tind[e]].disabled=true;this.initRubrique(this.Tind[e])}else if(this.typeNav[this.Tind[e]]==12||this.typeNav[this.Tind[e]]==13||this.typeNav[this.Tind[e]]==14||this.typeNav[this.Tind[e]]==15){this.initSsRubrique(this.Tind[e])}else if(this.typeNav[this.Tind[e]]==17){this.initRubrique(this.Tind[e])}}};Navigation.prototype.initRubrique=function(e){if(typeof e=="undefined"){e=0}if(this.typeNav[e]==7){var i=this.CatFixe[e].value.replace(/;.*$/,"");this.request(e,"Rubrique","Cat:"+i)}else if(this.typeNav[e]==8){var t=this.BrandFixe[e].value.replace(/;.*$/,"");this.request(e,"Rubrique","Brand:"+t)}else if(this.typeNav[e]==9){var s=this.ModelFixe[e].value.replace(/;.*$/,"");this.request(e,"Rubrique","Model:"+s)}else if(this.typeNav[e]==17){this.request(e,"Rubrique","")}};Navigation.prototype.initSsRubrique=function(e){if(typeof e=="undefined"){e=0}var i=this.RubriqueFixe[e].value.replace(/;.*$/,"");if(this.typeNav[e]==12){var t=this.CatFixe[e].value.replace(/;.*$/,"");this.request(e,"SsRubrique","Cat:"+t+";Rubrique:"+i)}else if(this.typeNav[e]==13){var s=this.BrandFixe[e].value.replace(/;.*$/,"");this.request(e,"SsRubrique","Brand:"+s+";Rubrique:"+i)}else if(this.typeNav[e]==14){var a=this.ModelFixe[e].value.replace(/;.*$/,"");this.request(e,"SsRubrique","Model:"+a+";Rubrique:"+i)}else if(this.typeNav[e]==15){this.request(e,"SsRubrique","Rubrique:"+i)}};Navigation.prototype.initCat=function(e){if(typeof e=="undefined"){e=0}if(this.typeNav[e]==1){this.request(e,"Cat","none");this.request(e,"Brand","Cat:all")}else if(this.typeNav[e]==4){var i=this.BrandFixe[e].value.replace(/;.*$/,"");this.request(e,"Cat","Brand:"+i)}else if(this.typeNav[e]==6){this.request(e,"Cat","none")}else if(this.typeNav[e]==11){var t=this.RubriqueFixe[e].value.replace(/;.*$/,"");this.request(e,"Cat","Rubrique:"+t)}};Navigation.prototype.initBrand=function(e){if(typeof e=="undefined"){e=0}if(this.typeNav[e]==2||this.typeNav[e]==5||this.typeNav[e]==16){var i="all";if(this.typeNav[e]==2){i=this.CatFixe[e].value.replace(/;.*$/,"")}this.request(e,"Brand","Cat:"+i)}else if(this.typeNav[e]==10){var t=this.RubriqueFixe[e].value.replace(/;.*$/,"");this.request(e,"Brand","Rubrique:"+t)}else if(this.typeNav[e]==18){var s=this.TagFixe[e].value.replace(/;.*$/,"");this.request(e,"Brand","Tag:"+s)}};Navigation.prototype.initModel=function(e){if(typeof e=="undefined"){e=0}var i=this.BrandFixe[e].value.replace(/;.*$/,"");this.request(e,"Model","Brand:"+i)};Navigation.prototype.CatChange=function(e){if(typeof e=="undefined"){e=0}
1if(this.typeNav[e]!=1){return}var i=this.CatSelect[e].options[this.CatSelect[e].selectedIndex].value.replace(/;.*$/,"");if(i==""){i="all"}this.ClearCombo(this.BrandSelect[e]);this.ClearCombo(this.ModelSelect[e]);this.request(e,"Brand","Cat:"+i)};Navigation.prototype.RubriqueChange=function(e){if(typeof e=="undefined"){e=0}if(this.typeNav[e]!=7&&this.typeNav[e]!=8&&this.typeNav[e]!=9&&this.typeNav[e]!=17){return}this.ClearCombo(this.SsRubriqueSelect[e]);var i=this.RubriqueSelect[e].value.replace(/;.*$/,"");if(this.typeNav[e]==7){var t=this.CatFixe[e].value.replace(/;.*$/,"");this.request(e,"SsRubrique","Cat:"+t+";Rubrique:"+i)}else if(this.typeNav[e]==8){var s=this.BrandFixe[e].value.replace(/;.*$/,"");this.request(e,"SsRubrique","Brand:"+s+";Rubrique:"+i)}else if(this.typeNav[e]==9){var a=this.ModelFixe[e].value.replace(/;.*$/,"");this.request(e,"SsRubrique","Model:"+a+";Rubrique:"+i)}else if(this.typeNav[e]==17){this.request(e,"SsRubrique","Rubrique:"+i)}};Navigation.prototype.BrandChange=function(e){if(typeof e=="undefined"){e=0}if(this.typeNav[e]!=1&&this.typeNav[e]!=2&&this.typeNav[e]!=5&&this.typeNav[e]!=10&&this.typeNav[e]!=18){return}var i="";if(this.typeNav[e]==1){i=this.CatSelect[e].options[this.CatSelect[e].selectedIndex].value.replace(/;.*$/,"")}else if(this.typeNav[e]==2){i=this.CatFixe[e].value.replace(/;.*$/,"")}var t=this.BrandSelect[e].value.replace(/;.*$/,"");this.ClearCombo(this.ModelSelect[e]);if(this.typeNav[e]==5||this.typeNav[e]==1&&this.CatSelect[e].selectedIndex==0){this.request(e,"Model","Cat:all;Brand:"+t)}else if(this.typeNav[e]==18){var s=this.TagFixe[e].value;this.request(e,"Model","Tag:"+s+";Brand:"+t)}else if(this.typeNav[e]!=10){this.request(e,"Model","Cat:"+i+";Brand:"+t)}else if(this.typeNav[e]==10){var a=this.RubriqueFixe[e].value;this.request(e,"Model","Rubrique:"+a+";Brand:"+t)}};Navigation.prototype.ClearCombo=function(e){if(e!=null){e.options.length=1;e.disabled=true}};Navigation.prototype.Validate=function(e){genereXtClick(id_context+"::"+id_page+"::BlocRechercheSalon_BoutonOK_XTC","N",xtn2);if(typeof e=="undefined"){e=0}var i;var t;if(this.typeNav[e]==1){if(this.ModelSelect[e].selectedIndex>0){i=this.ModelSelect[e].options[this.ModelSelect[e].selectedIndex].value.replace(/^.*;/,"")}else if(this.BrandSelect[e].selectedIndex>0){var s=this.CatSelect[e].options[this.CatSelect[e].selectedIndex].value.replace(/^.*;/,"");i=this.BrandSelect[e].options[this.BrandSelect[e].selectedIndex].value.replace(/^.*;/,"")+(s!=""?"--"+s:"")}else if(this.CatSelect[e].selectedIndex>0){i=this.CatSelect[e].options[this.CatSelect[e].selectedIndex].value.replace(/^.*;/,"")}else{return}}else if(this.typeNav[e]==2){if(this.ModelSelect[e].selectedIndex>0){i=this.ModelSelect[e].options[this.ModelSelect[e].selectedIndex].value.replace(/^.*;/,"")}else if(this.BrandSelect[e].selectedIndex>0){var s=this.CatFixe[e].value.replace(/^.*;/,"");i=this.BrandSelect[e].options[this.BrandSelect[e].selectedIndex].value.replace(/^.*;/,"")+"--"+s}else{return}}else if(this.typeNav[e]==3){if(this.ModelSelect[e].selectedIndex>0){i=this.ModelSelect[e].options[this.ModelSelect[e].selectedIndex].value.replace(/^.*;/,"")}}else if(this.typeNav[e]==4){if(this.CatSelect[e].selectedIndex>0){var s=this.CatSelect[e].options[this.CatSelect[e].selectedIndex].value.replace(/^.*;/,"");i=this.BrandFixe[e].value.replace(/^.*;/,"")+"--"+s}}else if(this.typeNav[e]==5){if(this.ModelSelect[e].selectedIndex>0){i=this.ModelSelect[e].options[this.ModelSelect[e].selectedIndex].value.replace(/^.*;/,"")}else if(this.BrandSelect[e].selectedIndex>0){i=this.BrandSelect[e].options[this.BrandSelect[e].selectedIndex].value.replace(/^.*;/,"")}else{return}}else if(this.typeNav[e]==6){if(this.CatSelect[e].selectedIndex>0){i=this.CatSelect[e].options[this.CatSelect[e].selectedIndex].value.replace(/^.*;/,"")}}else if(this.typeNav[e]==7){i=this.CatFixe[e].value}else if(this.typeNav[e]==8){i=this.BrandFixe[e].value}else if(this.typeNav[e]==9){i=this.ModelFixe[e].value}else if(this.typeNav[e]==10){if(this.ModelSelect[e].selectedIndex>0){i=this.ModelSelect[e].options[this.ModelSelect[e].selectedIndex].value.replace(/^.*;/,"")}else if(this.BrandSelect[e].selectedIndex>0){i=this.BrandSelect[e].options[this.BrandSelect[e].selectedIndex].value.replace(/^.*;/,"")}else{return}}
1else if(this.typeNav[e]==11){if(this.CatSelect[e].selectedIndex>0){i=this.CatSelect[e].options[this.CatSelect[e].selectedIndex].value.replace(/^.*;/,"")}}else if(this.typeNav[e]==12){i=this.CatFixe[e].value}else if(this.typeNav[e]==13){i=this.BrandFixe[e].value}else if(this.typeNav[e]==14){i=this.ModelFixe[e].value}else if(this.typeNav[e]==15){i=""}else if(this.typeNav[e]==16){if(this.BrandSelect[e].selectedIndex>0){i=this.BrandSelect[e].options[this.BrandSelect[e].selectedIndex].value.replace(/^.*;/,"")}else{return}}else if(this.typeNav[e]==17){i=""}else if(this.typeNav[e]==18){if(this.ModelSelect[e].selectedIndex>0){i=this.TagFixe[e].value+"/"+this.ModelSelect[e].options[this.ModelSelect[e].selectedIndex].value.replace(/^.*;/,"")}else if(this.BrandSelect[e].selectedIndex>0){i=this.TagFixe[e].value+"/"+this.BrandSelect[e].options[this.BrandSelect[e].selectedIndex].value.replace(/^.*;/,"")}else{return}}if(this.SsRubriqueSelect[e]&&this.SsRubriqueSelect[e].selectedIndex>0&&this.RubriqueIsSelect[e]){i=i+(i!=""?"/":"")+"actualite--"+this.RubriqueSelect[e].options[this.RubriqueSelect[e].selectedIndex].value.replace(/^.*;/,"")+"--"+this.SsRubriqueSelect[e].options[this.SsRubriqueSelect[e].selectedIndex].value.replace(/^.*;/,"")}else if(this.SsRubriqueSelect[e]&&this.SsRubriqueSelect[e].selectedIndex>0&&this.RubriqueIsFixe[e]){i=i+(i!=""?"/":"")+"actualite--"+this.RubriqueFixe[e].value.replace(/^.*;/,"")+"--"+this.SsRubriqueSelect[e].options[this.SsRubriqueSelect[e].selectedIndex].value.replace(/^.*;/,"")}else if(this.RubriqueSelect[e]&&this.RubriqueSelect[e].selectedIndex>0){i=i+(i!=""?"/":"")+"actualite--"+this.RubriqueSelect[e].options[this.RubriqueSelect[e].selectedIndex].value.replace(/^.*;/,"")}else if(this.RubriqueFixe[e]&&this.RubriqueFixe[e]!=""){i=i+(i!=""?"/":"")+"actualite--"+this.RubriqueFixe[e].value}else if(this.TypeFixe[e]&&this.TypeFixe[e]!=""&&(this.typeNav[e]<=6||this.typeNav[e]>=16)){i=i.replace(/\/photo$/,"")+(i!=""?"/":"")+this.TabType[this.TypeFixe[e].value]}if(i){if(this.testing){alert("/"+i.replace(/\/$/,"")+"/")}else{window.location="/"+i.replace(/\/$/,"")+"/"}}};Navigation.prototype.request=function(e,t,s){var a=host_cara+"/js-dynamic/req_obj_nav.php?";i=0;while(this.xmlhttp_data[i]!=null){i++}try{this.xmlhttp_data[i]=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP")}catch(e){alert("Votre navigateur ne supporte pas ajax !")}if(this.xmlhttp_data[i]!=null){a=a+"idx="+e+"&type_nav="+this.typeNav[e]+"&type_article="+this.TypeFilter[e]+"&type="+t+"&filter="+s;this.xmlhttp_data[i].onreadystatechange=triggered_res;this.xmlhttp_data[i].open("GET",a+"&uncache="+this.cacheKiller());this.xmlhttp_data[i].send(null)}};Navigation.prototype.cacheKiller=function(){return this.date_.getHours()+""+parseInt(this.date_.getMinutes()/10)};function triggered_res(){var idx;var T=new Array;var i;var obj=null;var Tab=new Array;var Tdata=new Array;for(idx=0;idx<obj_nav.nb_max_req;idx++){if(obj_nav.xmlhttp_data[idx]!=null){if(obj_nav.xmlhttp_data[idx].readyState==4&&obj_nav.xmlhttp_data[idx].status==200){T=obj_nav.xmlhttp_data[idx].responseText.split(/\n/);Tab=T[0].split(/;/);eval("obj=obj_nav."+Tab[0]+"Select["+Tab[1]+"];");for(i=1;i<T.length;i++){if(T[i]!=""){Tdata=T[i].split(/;/);if(typeof Tdata[3]=="undefined"||Tdata[3]==""){obj.options[obj.options.length]=new Option(Tdata[1],Tdata[0]+";"+Tdata[2])}else{obj.options[obj.options.length]=new Option(Tdata[1]+" ("+Tdata[3]+")",Tdata[0]+";"+Tdata[2])}}}obj.disabled=T.length==1;obj_nav.xmlhttp_data[idx]=null}}}}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.