Cartouche=function(A){this.bhv="web_fr";this.urlEnville;this.urlMoteur;this.urlShopping;this.urlPlus;if(A!=null){this.bhv=A;}};Cartouche.prototype={setBhv:function(A){this.bhv=A;},getBhv:function(){return this.bhv;},setUrlEnville:function(A){this.urlEnville=A;},getUrlEnville:function(){return this.urlEnville;},setUrlMoteur:function(A){this.urlMoteur=A;},getUrlMoteur:function(A){return this.urlMoteur;},setUrlShopping:function(A){this.urlShopping=A;},getUrlShopping:function(){return this.urlShopping;},setUrlPlus:function(A){this.urlPlus=A;},getUrlPlus:function(){return this.urlPlus;},initSearch:function(C,A,B){switch(A){case"rns":switch(C){case"monochamp":case"home":if(B){this.setSearch("searchmono","top","top");}else{this.initSearch("searchmonoInactive",A);}break;case"searchmonoInactive":default:this.selectItem("cmn_l118712","searchmono");this.hideMonoSearch();if(typeof affichageMonForm4ChampsHeader=="function"){affichageMonForm4ChampsHeader(C);}break;}break;case"search":default:this.setSearch(C,"top","top");break;}},setSearch:function(B,C,A){if(C=="bottom"&&document.getElementById("cmn_headSearch_bottom")){document.getElementById("cmn_headSearch").rdata.value=document.getElementById("cmn_headSearch_bottom").rdata.value;}else{if(C=="top"&&document.getElementById("cmn_headSearch_bottom")){document.getElementById("cmn_headSearch_bottom").rdata.value=document.getElementById("cmn_headSearch").rdata.value;}}switch(B){case"actu":case"actu_video":case"actu_image":case"actu_lire":case"site":case"web_fr":case"web_mondial":case"guide":this.selectItem("cmn_lWeb",B);if(typeof orangesearch!="undefined"&&orangesearch.completion){this.initCartoucheCompletion("web");}document.getElementById("cmn_btnHeadForm").title=document.getElementById("cmn_btnHeadForm").alt="rechercher dans le web";if(document.getElementById("cmn_headSearch_bottom")){document.getElementById("cmn_btnHeadForm_bottom").title=document.getElementById("cmn_btnHeadForm_bottom").alt="rechercher dans le web";}break;case"images":this.selectItem("cmn_lImg",B);this.showMonoSearch();if(typeof orangesearch!="undefined"&&orangesearch.completion){this.initCartoucheCompletion("images");}document.getElementById("cmn_btnHeadForm").title=document.getElementById("cmn_btnHeadForm").alt="rechercher des images";if(document.getElementById("cmn_headSearch_bottom")){document.getElementById("cmn_btnHeadForm_bottom").title=document.getElementById("cmn_btnHeadForm_bottom").alt="rechercher des images";}break;case"videos_mos":case"videos_list":this.selectItem("cmn_lVid",B);this.showMonoSearch();if(typeof orangesearch!="undefined"&&orangesearch.completion){this.initCartoucheCompletion("videos");}document.getElementById("cmn_btnHeadForm").title=document.getElementById("cmn_btnHeadForm").alt="rechercher des videos";if(document.getElementById("cmn_headSearch_bottom")){document.getElementById("cmn_btnHeadForm_bottom").title=document.getElementById("cmn_btnHeadForm_bottom").alt="rechercher des videos";}break;case"shopping":this.selectItem("cmn_lShop",B);this.showMonoSearch();if(typeof orangesearch!="undefined"&&orangesearch.completion){this.initCartoucheCompletion("shopping");}document.getElementById("cmn_btnHeadForm").title=document.getElementById("cmn_btnHeadForm").alt="rechercher des produits";if(document.getElementById("cmn_headSearch_bottom")){document.getElementById("cmn_btnHeadForm_bottom").title=document.getElementById("cmn_btnHeadForm_bottom").alt="rechercher des produits";}break;case"searchmono":this.selectItem("cmn_l118712","searchmono");this.showMonoSearch();if(typeof orangesearch!="undefined"&&orangesearch.completion){this.initCartoucheCompletion("searchmono");}break;case"epresse":this.showMonoSearch();document.getElementById("cmn_btnHeadForm").title=document.getElementById("cmn_btnHeadForm").alt="rechercher dans la presse";break;case"boutique":this.selectItem("cmn_lBoutique_bottom",B);if(document.getElementById("radio_boutique")){document.getElementById("radio_boutique").checked=true;}this.showMonoSearch();if(typeof orangesearch!="undefined"&&orangesearch.completion){this.initCartoucheCompletion("boutique");}document.getElementById("cmn_btnHeadForm").title=document.getElementById("cmn_btnHeadForm").alt="rechercher dans la boutique orange";if(document.getElementById("cmn_headSearch_bottom")){document.getElementById("cmn_btnHeadForm_bottom").title=document.getElementById("cmn_btnHeadForm_bottom").alt="rechercher dans la boutique orange";}break;default:this.selectItem("cmn_lWeb","web_fr");this.showMonoSearch();if(typeof orangesearch!="undefined"&&orangesearch.completion){this.initCartoucheCompletion("web");}document.getElementById("cmn_btnHeadForm").title=document.getElementById("cmn_btnHeadForm").alt="rechercher dans le web";if(document.getElementById("cmn_headSearch_bottom")){document.getElementById("cmn_btnHeadForm_bottom").title=document.getElementById("cmn_btnHeadForm_bottom").alt="rechercher dans le web";}break;}if(A=="bottom"&&document.getElementById("cmn_rdata_bottom")){document.getElementById("cmn_rdata_bottom").focus();}else{if(A=="top"&&document.getElementById("cmn_divFormOrange").style.display=="block"){document.getElementById("cmn_rdata").focus();}}},selectItem:function(A,B){if(B!="boutique"&&document.getElementById("cmn_lWeb")){document.getElementById("cmn_lWeb").className="noSelect";}if(document.getElementById("cmn_lImg")){document.getElementById("cmn_lImg").className="noSelect";}if(document.getElementById("cmn_lVid")){document.getElementById("cmn_lVid").className="noSelect";}if(document.getElementById("cmn_lSite")){document.getElementById("cmn_lSite").className="noSelect";}if(document.getElementById("cmn_lShop")){document.getElementById("cmn_lShop").className="noSelect";}if(document.getElementById("cmn_l118712")){document.getElementById("cmn_l118712").className="noSelect";}if(document.getElementById("cmn_lWeb_bottom")){document.getElementById("cmn_lWeb_bottom").className="noSelect";}if(document.getElementById("cmn_lImg_bottom")){document.getElementById("cmn_lImg_bottom").className="noSelect";}if(document.getElementById("cmn_lVid_bottom")){document.getElementById("cmn_lVid_bottom").className="noSelect";}if(document.getElementById("cmn_lSite_bottom")){document.getElementById("cmn_lSite_bottom").className="noSelect";}if(document.getElementById("cmn_lShop_bottom")){document.getElementById("cmn_lShop_bottom").className="noSelect";}if(document.getElementById("cmn_l118712_bottom")){document.getElementById("cmn_l118712_bottom").className="noSelect";}if(document.getElementById("cmn_lBoutique_bottom")){document.getElementById("cmn_lBoutique_bottom").className="noSelect";}if(document.getElementById(A)){document.getElementById(A).className="select";if(document.getElementById(A+"_bottom")){document.getElementById(A+"_bottom").className="select";}}else{document.getElementById("cmn_lWeb").className="select";if(document.getElementById("cmn_lWeb_bottom")){document.getElementById("cmn_lWeb_bottom").className="select";}}document.getElementById("cmn_bhv").value=B;},initCartoucheCompletion:function(B){var D={enable:false,gstat:""};var C=((typeof hostcompletion!="undefined"&&hostcompletion)?hostcompletion:"");var A=((typeof hostcompletion_rns!="undefined"&&hostcompletion_rns)?hostcompletion_rns:"");switch(B){case"web":D.enable=true;D.url=C+"/fr/completion_orange_lr/xml/fullxml";D.blocks=[{"label":"suggestions","baseId":-1}];D.useHistory=false;D.gstat="O_LR_Completion_Web";break;case"boutique":D.enable=true;D.petale=true;D.url=C+"/fr/completion_orange_boutique_lr/xml/fullxml";D.blocks=[{"label":"","baseId":-4}];D.useHistory=false;D.gstat="O_LR_Completion_Boutique";break;case"images":break;case"videos":D.enable=true;D.url=C+"/fr/cmplvideo_orange_lr/xml/fullxml";D.blocks=[{"label":"suggestions","baseId":1}];D.useHistory=false;D.gstat="O_LR_Completion_Videos";break;case"shopping":D.enable=true;D.url=C+"/fr/completion_orange_lr/xml/fullxml";D.blocks=[{"label":"suggestions","baseId":2}];D.useHistory=false;D.gstat="O_LR_Completion_Shopping";break;case"searchmono":D.enable=true;D.url=A+"/fr/cmplmonochamp/xml/fullxml";D.blocks=[{"label":"suggestions","baseId":-2}];D.useHistory=true;break;}if(typeof refGstat!="undefined"&&refGstat==""){refGstat=D.gstat;}if(!appliKeweb){prepareCompletion(D);}},formSubmit:function(C){var E=document.getElementById("cmn_bhv").value;if(E=="shopping"){return this.validateShopping();}else{if((E=="searchinv")||(E=="searchpar")||(E=="searchspa")||(E=="searchproxi")||(E=="home")||(E=="searchmono")){return this.validateEnvilleMonochamp("enville",E,C);}else{var F=encodeURIComponent(document.getElementById("cmn_rdata").value);if(typeof sUrlReferrer=="undefined"){sUrlReferrer="";}var B="";var A=document.getElementById("cmn_profil").value;if((A=="")||(A=="undefined")||(A=="enville")||(A=="orange_enville")||(A=="118712")){B+="&profil=orange";}else{B+="&profil="+A;}if(E!=""){B+="&bhv="+E;}if((document.getElementById("cmn_alt").value!="")&&((E=="site")||(E=="web_fr"))){B+="&alt="+document.getElementById("cmn_alt").value;}var D=this.getUrlMoteur()+"?rdata="+F+B;if(F!=""){if((typeof (BLO_Autocompletion)!="undefined")&&((BLO_Autocompletion._started)&&refGstat)){if(BLO_Autocompletion.isSelectedSuggestion()){D+="&suggest=on";}D=getGStatUrlJS(refGstat,encodeURIComponent(D));}refGstat=newRefGstat;self.document.location.href=D;}}}return false;},validateShopping:function(){searchform=document.getElementById("cmn_headSearch");searchform.rdata.value=trim(searchform.rdata.value);if(searchform.rdata.value.length>0){searchform.action=this.getUrlShopping();top.location.href=this.getUrlShopping()+"?rdata="+escape(searchform.rdata.value);}return false;},validateEnvilleMonochamp:function(B,E,D){var F=document.getElementById("cmn_headSearch");if(!F){return false;}if(trim(F.rdata.value)==""){return false;}F.name.value=F.rdata.value;F.profil.value=B;F.bhv.value=E;F.action=this.getUrlEnville();F.method="post";F.target="_top";if(D&&D.div){params=BLO_Autocompletion.getSuggestionParam(D.div.id,"params");for(var C in params){var A=document.createElement("input");A.setAttribute("type","hidden");A.setAttribute("name",C);A.setAttribute("value",params[C]);F.appendChild(A);}}F.submit();return true;},showMonoSearch:function(){if(typeof hide4Fields=="function"){hide4Fields();}if(document.getElementById("cmn_divFormOrange")&&document.getElementById("cmn_divFormOrange").style.display!="block"){document.getElementById("cmn_divFormOrange").style.display="block";document.getElementById("rns_bascule4champs").style.display="block";}},hideMonoSearch:function(){if(document.getElementById("cmn_divFormOrange")&&document.getElementById("cmn_divFormOrange").style.display=="block"){document.getElementById("cmn_divFormOrange").style.display="none";}},setRdata:function(A){document.getElementById("cmn_rdata").value=trim(A);document.getElementById("cmn_name").value=trim(A);}};var refGstat="";var newRefGstat="";function BLO_AutocompletionOnSelectEntry(A){return o_bHeaderFormSubmitv2(A);}function prepareCompletion(A){if(!A){return false;}if(typeof BLO_Autocompletion=="undefined"){BLO_Autocompletion=new orangesearch.completion.Component();}if(!BLO_Autocompletion.isStarted()){A.field=document.getElementById("cmn_rdata");A.callbacks={"submit":{context:null,method:"BLO_AutocompletionOnSelectEntry"}};A.queryParamName="kw";A.additionalParams="dtd=2.0";A.cssPrefix="cartWeb";A.maxNbSuggestions=10;A.maxNbChar=39;A.clearAccents=true;A.isFormSubmit=false;A.closeLink=false;if(typeof A.petale!="undefined"&&A.petale==true){A.plugins=["CookieHistory","Petale"];if(typeof petaleDefaultImages!="undefined"){A.petaleDefaultImages=petaleDefaultImages;}}else{A.plugins=["CookieHistory"];}A.nameOfInstanceForJsonP="BLO_Autocompletion";BLO_Autocompletion.setProperties(A);BLO_Autocompletion.start();}else{BLO_Autocompletion.restart(A);}if(typeof debugCompletionPetale!="undefined"&&debugCompletionPetale===true){BLO_Autocompletion.setDebugMode(true);}if(BLO_Autocompletion.isStarted()){if(!A.enable){BLO_Autocompletion.disable();}else{BLO_Autocompletion.enable();}}}function o_bHeaderFormSubmitv2(A){if(typeof (cartouche)!="undefined"){return cartouche.formSubmit(A);}return false;}function o_bHeaderSetSearchv2(A,B){if(typeof (cartouche)!="undefined"){cartouche.setSearch(B,"top","top");}return false;}function trim(A){return A.replace(/(^\s*)|(\s*$)/g,"");}
