if(!document.completionorangev2){document.completionorangev2=true;function findAbsolutePosition(a){var b=curtop=0;if(a.offsetParent){do{b+=a.offsetLeft;curtop+=a.offsetTop}while(a=a.offsetParent)}return[b,curtop]}function completionComponent(divCompletion,field,onSubmitFunction,url,paramName,defaultParams,cssPrefix,selectToHide,idField,left,width){completionComponent.count=completionComponent.count+1;this.divCompletion=divCompletion;this.autoDivCompletion=((typeof divCompletion=="undefined")||divCompletion==null)?true:false;this.number=completionComponent.count;field.setAttribute("autocomplete","off");field.form.setAttribute("autocomplete","off");this.field=field;this._idField=idField;this.url=url;this.paramName=paramName;this.defaultParams=defaultParams;this._selectElementToHide=selectToHide;this.cssPrefix=cssPrefix;this._launchSearch=false;this.minReqSize=1;this._maxNbSuggestions=10;this.defaultValue="";this.defaultMessage="";this.changeOnMouseOver=false;this.changeOnArrowKey=true;this.width=(typeof width!="undefined"?width:"*");this.maxNbChar=0;this.left=left||0;this.historyDisplay=false;this.blocksDisplay=false;this._use2ndColumn=false;this._useDirectLinks=false;this._useId=false;this._directLink="";this.clearAccents=true;this.clearSpecialChars=true;this.specialCharExpr=/[^ a-z0-9\'\-\.]/gi;this.cacheActivated=true;this._cacheSize=20;this._blocnumber=-1;this.blocksTitlesList=new Array();this.blocksConditionList=new Array();this.blocksCountList=new Array();this.field.completeur=this;this._onSubmitFunction=onSubmitFunction;this.blocksCallBackFunctions=new Array();this.changeFormActionWithLink=false;this._resultCache=new Array();this.serviceStatus="";if(this.autoDivCompletion){spanAbsPosition=document.createElement("DIV");spanAbsPosition.style.cssText="visibility:visible;position:absolute;text-align:left;";spanAbs2Position=document.createElement("DIV");spanAbs2Position.style.cssText="visibility:visible;position:relative;text-align:left;";spanAbs2Position.appendChild(spanAbsPosition);spanRelPosition=document.createElement("DIV");spanRelPosition.style.cssText="visibility:visible;text-align:left;float:left!important;z-index:800!important;";spanRelPosition.appendChild(spanAbs2Position);field.parentNode.insertBefore(spanRelPosition,field);divBox=document.createElement("DIV");divBox.setAttribute("id","divCompletion"+this.number);positionChamp=findAbsolutePosition(field);largeur=(this.width=="*")?field.clientWidth:field.clientWidth+this.width;hauteur=0;divBox.className=((this.cssPrefix!="")?this.cssPrefix:"")+"AutoCompleteDivBox";styleBox=false;if(divBox.currentStyle){styleBox=divBox.currentStyle}else{if(window.getComputedStyle){styleBox=window.getComputedStyle(divBox,null)}}if(styleBox){blw=styleBox.borderLeftWidth;brw=styleBox.borderRightWidth;largeur=largeur;btw=styleBox.borderTopWidth;bbw=styleBox.borderBottomWidth;hauteur=hauteur+eval(btw.substring(0,btw.length-2))+eval(bbw.substring(0,bbw.length-2))}if(isNaN(hauteur)){hauteur=0}styleField=false;decalageMarge=0;if(divBox.currentStyle){styleField=field.currentStyle}else{if(window.getComputedStyle){styleField=window.getComputedStyle(field,null)}}if(styleField){margeGauche=styleField.marginLeft}divBox.style.cssText="position:absolute;top:"+(field.clientHeight+hauteur)+"px;left:"+(decalageMarge+this.left)+"px;width:"+(largeur)+"px;overflow:hidden;visibility:hidden;background-color:#fff;z-index:1000;text-align:left;";spanAbsPosition.appendChild(divBox);this._completeDiv=divBox}else{this._completeDiv=this.divCompletion;if(typeof(this.cssPrefix)!="undefined"&&this.cssPrefix!=""&&this.cssPrefix!="undefined"){this._completeDiv.className=this.cssPrefix+"AutoCompleteDivListeStyle"}else{this._completeDiv.className="AutoCompleteDivListeStyle"}}this.field.onkeydown=function(event){if(!event&&window.event){event=window.event}if(event){this.completeur._lastKeyCode=event.keyCode;if((this.completeur._lastKeyCode==18)||(this.completeur._lastKeyCode==20)){return false}}if(this.completeur.handleCursorUpDownEnter(this.completeur._lastKeyCode)&&(this.completeur._lastKeyCode!=0)){this.completeur._suggestionUsed=null;this.completeur.PressAction()}else{if(this.completeur._highlightedSuggestionIndex>=0){return false}}};this.field.onkeyup=function(event){if(!event&&window.event){event=window.event}this.completeur._eventKeycode=event.keyCode;if(this.completeur._eventKeycode==18){return false}if(this.completeur._eventKeycode==27){this.completeur.hideCompleteDiv();return false}if(this.completeur._eventKeycode==40||this.completeur._eventKeycode==38){this.completeur.blurThenGetFocus()}var V=this.completeur.field.value;if(this.completeur._eventKeycode!=0){if(this.completeur._eventKeycode==13||this.completeur._eventKeycode==3){var d=this.completeur.field;if(d.createTextRange){d.createTextRange().moveStart("character",d.value.length);d.select()}else{if(d.setSelectionRange){d.setSelectionRange(d.value.length,d.value.length)}}blocnumber=this.completeur._blocnumber;checkCallBackFunc=false;if(blocnumber>=0&&typeof this.completeur.blocksCallBackFunctions!="undefined"&&typeof this.completeur.blocksCallBackFunctions[blocnumber]!="undefined"){checkCallBackFunc=true}anchor=this.completeur._directLink;if((!checkCallBackFunc||this.completeur.blocksCallBackFunctions[blocnumber]==null)&&anchor!=null&&typeof anchor!="undefined"&&anchor.length!=0){document.location=anchor;event.cancelBubble=true;return false}if(this.completeur._useHistory==true){updateCookie(V,this.completeur._cookieName)}if(this.completeur._launchSearch){if(checkCallBackFunc){if(this.completeur.blocksCallBackFunctions[blocnumber]==null){if(!this.completeur._onSubmitFunction){this.completeur._onSubmitFunction=this.completeur.field.form.submit}}else{if(this.completeur.blocksCallBackFunctions[blocnumber]=="none"){this.completeur._onSubmitFunction=this.completeur.field.form.submit}else{this.completeur._onSubmitFunction=this.completeur.blocksCallBackFunctions[blocnumber]}}}else{if(!this.completeur._onSubmitFunction){this.completeur._onSubmitFunction=this.completeur.field.form.submit}}if(this.completeur._onSubmitFunction){if(this.completeur._highlightedSuggestionIndex>=0){if(anchor!=null&&typeof anchor!="undefined"&&anchor.length!=0){if(this.completeur.changeFormActionWithLink){this.completeur.field.form.action=anchor}chaineAppel=this.completeur._onSubmitFunction+'("'+escape(this.completeur.field.value)+'","'+this.completeur._2ndColumnValue+'","'+this.completeur._idValue+'","'+this.completeur.field.id+'","'+anchor+'")'}else{chaineAppel=this.completeur._onSubmitFunction+'("'+escape(this.completeur.field.value)+'","'+this.completeur._2ndColumnValue+'","'+this.completeur._idValue+'","'+this.completeur.field.id+'")'}eval(chaineAppel)}}}this.completeur.hideCompleteDiv();return false}else{if(this.completeur.field.value!=V){this.completeur.field.value=V}}}if((this.completeur._eventKeycode!=40)&&(this.completeur._eventKeycode!=38)){this.completeur._cursorUpDownPressed=false;this.completeur._currentInputFieldValue=V}else{cursorAfterValue(this.completeur.field)}if(this.completeur._oldInputFieldValue!=this.completeur._currentInputFieldValue){var valeur=escape(jstrim(this.completeur._currentInputFieldValue));if(valeur!=""&&valeur.length>=this.completeur.minReqSize&&typeof(valeur)!="undefined"){var suggestions_1=this.completeur._resultCache[this.completeur._currentInputFieldValue.substring(0,this.completeur._currentInputFieldValue.length-1)];if(!suggestions_1||suggestions_1.length!=0){var suggestions=this.completeur._resultCache[this.completeur._currentInputFieldValue];if(suggestions){this.completeur.displayComplete(valeur,suggestions)}else{writeScript(this.completeur.url+"&"+this.completeur.paramName+"="+valeur+"&"+this.completeur.defaultParams);this.completeur.field.focus()}}else{this.completeur._resultCache[this.completeur._currentInputFieldValue]=new Array();if(this.completeur.field.completeur.hideCompleteDiv){this.completeur.field.completeur.hideCompleteDiv()}}}else{if(this.completeur.field.completeur.hideCompleteDiv){this.completeur.field.completeur.hideCompleteDiv()}}}this.completeur._oldInputFieldValue=this.completeur._currentInputFieldValue};this.field.fieldonblursav=this.field.getAttribute("onblur");this.field.onblur=function(event){eval(this.completeur.field.fieldonblursav);if(!this.completeur){return false}if(!this.completeur._cursorUpDownPressed){this.completeur.field.completeur.hideCompleteDiv()}this.completeur._cursorUpDownPressed=false};function jstrim(str,charlist){charlist=!charlist?" \\s\\xA0":charlist.replace(/([\[\]\(\)\.\?\/\*\{\}\+\$\^\:])/g,"$1");var re=new RegExp("^["+charlist+"]+|["+charlist+"]+$","g");return str.replace(re,"")}function completionUsed(){return this._suggestionUsed}function cmpl(jsonData){var liste=this.handleJsonSuggestions(jsonData);this.cacheResults(this._currentInputFieldValue,liste);if(liste.serviceStatus){switch(liste.serviceStatus){case"SUSPENDED":case"KO_CONFIG":case"KO_PARSE":case"KO_MISC":case"LOCK":removeAutoComplete(this.field);return;break;default:break}}this.displayComplete(this._currentInputFieldValue,liste);if(typeof(liste)!="undefined"&&array_key_exists(1,liste)&&liste.length>0&&liste[1][0]!=""&&this._idField!=null&&document.getElementById(this._idField)){document.getElementById(this._idField).value=liste[1][0]}}function cacheResults(debut,suggestions){if(suggestions.serviceStatus){switch(suggestions.serviceStatus){case"TO":case"KO_HTTP":case"KO_CONNECT":return;break;default:break}}if(this._resultCache.length>this._cacheSize){this._resultCache=new Array()}if(this.cacheActivated==true){this._resultCache[debut]=suggestions}}function setStyleForElement(c,name){if(c!=null){if(typeof(this.cssPrefix)!="undefined"&&this.cssPrefix!=""&&this.cssPrefix!="undefined"){c.className=this.cssPrefix+name}else{c.className=name}}}function handleJsonSuggestions(xmlDoc){var options=xmlDoc[1];var optionsListe=new Array();var optionsCol1=new Array();if((options)&&(options.length)){for(var i=0;(i<options.length)&&(i<this._maxNbSuggestions);++i){opt=options[i];if(this.clearAccents){opt=noAccentCmpl(opt)}if(this.clearSpecialChars){opt=noSpecialCmpl(opt,this.specialCharExpr)}optionsCol1.push(opt)}optionsListe.push(optionsCol1)}if(this._use2ndColumn&&xmlDoc[2]){var optionsCol2=this.handle2ndColumn(xmlDoc[2]);if(optionsCol2!=false){optionsListe.push(optionsCol2)}}if(this._useId&&xmlDoc[3]){var optionsCol3=this.handle2ndColumn(xmlDoc[3]);if(optionsCol3!=false){optionsListe.push(optionsCol3)}}if(xmlDoc[4]){var optionsCol4=this.handle2ndColumn(xmlDoc[4]);if(optionsCol4!=false){optionsListe.ID=optionsCol4}}if(xmlDoc[5]){var optionsCol5=this.handle2ndColumn(xmlDoc[5]);if(optionsCol5!=false){optionsListe.Link=optionsCol5}}if(xmlDoc[6]){optionsListe.serviceStatus=xmlDoc[6]}return optionsListe}function displayComplete(valeur,liste){while(this._completeDiv.childNodes.length>0){this._completeDiv.removeChild(this._completeDiv.childNodes[0])}if((liste[0])&&(liste[0].length>0)){if(this._useHistory==true){this.displayHistory()}var completeur=this;for(var f=0,compteur=0,num=0;f<liste[0].length;++f,compteur++){var afficher=false;if(liste.ID&&this.blocksCountList.length>0&&this.blocksConditionList.length>0){var ID=liste.ID[f];if(compteur>=this.blocksCountList[num]||!eval(this.blocksConditionList[num])){compteur=0;num++;ID=liste.ID[f]}if(compteur<this.blocksCountList[num]&&eval(this.blocksConditionList[num])){afficher=true}}else{afficher=true}if(afficher&&(this.blocksCountList.length==0||num<=this.blocksCountList.length)){if(compteur==0){var newDiv=document.createElement("SPAN");if(this.blocksTitlesList[num]){newDiv.innerHTML=this.blocksTitlesList[num]}else{if(this.blocksCountList.length==0){newDiv.innerHTML="Suggestions"}}newDiv.id="completeDivTitle";this.setStyleForElement(newDiv,"AutoCompleteDivTitle");this._completeDiv.appendChild(newDiv)}var newDivLine=document.createElement("div");this.setStyleForElement(newDivLine,"AutoCompleteDiv");newDivLine.setAttribute("blocnumber",num);newContainer=newDivLine;var newSpan=document.createElement("span");var chaineAff=((this.maxNbChar>0&&liste[0][f].length>this.maxNbChar)?liste[0][f].substring(0,this.maxNbChar)+"&hellip;":liste[0][f]);newSpan.innerHTML=getBoldInv(chaineAff,this._currentInputFieldValue,this.clearAccents,this.clearSpecialChars,this.specialCharExpr);newSpan.setAttribute("valeur",liste[0][f]);if(this._useDirectLinks&&(liste.Link)&&(liste.Link[f])){this.setStyleForElement(newSpan,"AutoCompleteDivCol1Anchor")}else{this.setStyleForElement(newSpan,"AutoCompleteDivCol1")}newDivLine.appendChild(newSpan);if(this._use2ndColumn){if((liste[1])&&(liste[1][f])){this.display2ndColumn(newDivLine,liste[1][f])}else{this.display2ndColumn(newDivLine,"&nbsp;")}}if(this._useId){if(this._use2ndColumn&&(liste[2])&&(liste[2][f])){this.displayId(newDivLine,liste[2][f])}else{if(!this._use2ndColumn&&(liste[1][f])){this.displayId(newDivLine,liste[1][f])}}}this._completeDiv.appendChild(newDivLine);newDivLine.onmousedown=function(event){divOnMouseDownV2(completeur,event,this)};newDivLine.onmousemove=function(event){divOnMouseMoveV2(completeur,event,this)};newDivLine.onmouseout=function(event){divOnMouseOutV2(completeur,event,this)};if(this._useDirectLinks&&(liste.Link)&&(liste.Link[f])){newDivLine.setAttribute("href",liste.Link[f]);var newPicAnchor=document.createElement("UL");this.setStyleForElement(newPicAnchor,"AutoCompleteAnchor");newDivLine.insertBefore(newPicAnchor,newSpan)}this._completeDiv.appendChild(newDivLine)}}if(this._selectElementToHide){hideSelectElementCompletion(this._selectElementToHide)}this.PressAction()}else{this.hideCompleteDiv();this._completeDivRows=0}}function handleCursorUpDownEnter(eventCode){if(eventCode==40){this.highlightNewValue(this._highlightedSuggestionIndex+1);return false}else{if(eventCode==38){this.highlightNewValue(this._highlightedSuggestionIndex-1);return false}else{if(eventCode==13||eventCode==3){return false}}}this._suggestionUsed=null;return true}function PressAction(){var suggestionList=this._completeDiv.getElementsByTagName("div");var suggestionLongueur=suggestionList.length;this._completeDivRows=suggestionLongueur;this._completeDivDivList=suggestionList;if(this._currentInputFieldValue==""||suggestionLongueur==0){this.hideCompleteDiv()}else{this.showCompleteDiv()}for(var i=0;i<suggestionLongueur;i++){this.setStyleForElement(suggestionList.item(i),"AutoCompleteDiv")}this._highlightedSuggestionIndex=-1;this._highlightedSuggestionDiv=null;var supprSelection=false;switch(this._eventKeycode){case 8:case 33:case 34:case 35:case 35:case 36:case 37:case 39:case 45:case 46:supprSelection=true;break;default:break}if(!supprSelection&&this._highlightedSuggestionDiv){this.setStyleForElement(this._highlightedSuggestionDiv,"AutoCompleteDivAct");var z=this._currentInputFieldValue}else{this._highlightedSuggestionIndex=-1}}function blurThenGetFocus(completeur){this._cursorUpDownPressed=true;this.field.blur();var _self=this;setTimeout(function(){_self.field.focus();if(_self.field.value){oldValue=_self.field.value;_self.field.value="";_self.field.value=oldValue}},10);return}function hideCompleteDiv(){this._completeDiv.style.visibility="hidden";if(this.autoDivCompletion){this._completeDiv.style.position="absolute"}this._completeDiv.style.height="0";this._highlightedSuggestionIndex=-1;if(this._selectElementToHide){showSelectElementCompletion(this._selectElementToHide)}}function showCompleteDiv(){if(this.autoDivCompletion){this._completeDiv.style.position="relative"}this._completeDiv.style.height="auto";this._completeDiv.style.visibility="visible"}function highlightNewValue(C){if(!this._completeDivDivList||(this._completeDivRows<=0)){return}this.showCompleteDiv();this._suggestionUsed=true;this.setStyleForElement(this._highlightedSuggestionDiv,"AutoCompleteDiv");if(C>=this._completeDivRows){C=-1;this.field.value=this._currentInputFieldValue}else{if(C==-1){this.field.value=this._currentInputFieldValue}else{if(C<-1){C=this._completeDivRows-1}}}this._highlightedSuggestionIndex=C;this._highlightedSuggestionDiv=this._completeDivDivList.item(C);if(this._highlightedSuggestionDiv!=null){this.setStyleForElement(this._highlightedSuggestionDiv,"AutoCompleteDivAct");this.field.value=getSuggestionV2(this._highlightedSuggestionDiv,0);if(this.field.completeur._idField!=null&&document.getElementById(this.field.completeur._idField)){document.getElementById(this.field.completeur._idField).value=getSuggestionV2(this._highlightedSuggestionDiv,1)}this.affectValues(this._highlightedSuggestionDiv);this._completeDiv.scrollTop=C*this._highlightedSuggestionDiv.offsetHeight}}function affectValues(theDiv){if(this._use2ndColumn){this._2ndColumnValue=getSuggestionV2(theDiv,1)}if(this._useId){if(this._use2ndColumn){this._idValue=getSuggestionV2(theDiv,2)}else{this._idValue=getSuggestionV2(theDiv,1)}}anchor=theDiv.getAttribute("href");if(anchor!=null&&typeof anchor!="undefined"&&anchor.length!=0){this._directLink=anchor}else{this._directLink=""}blocnumber=theDiv.getAttribute("blocnumber");if(blocnumber!=null&&typeof blocnumber!="undefined"){this._blocnumber=blocnumber}else{this._blocnumber=-1}}function display2ndColumn(newDiv,element){var newSpan=document.createElement("SPAN");newSpan.innerHTML=element;newSpan.setAttribute("valeur",element);this.setStyleForElement(newSpan,"AutoCompleteDivCol2");newDiv.appendChild(newSpan);return false}function handle2ndColumn(liste){var optionsCol2=new Array();var options2=liste;if((liste)&&(liste.length)){for(var i=0;i<liste.length;++i){optionsCol2.push(liste[i])}return optionsCol2}return false}function displayId(newDiv,element){var newSpan=document.createElement("SPAN");newSpan.innerHTML=element;newSpan.setAttribute("valeur",element);this.setStyleForElement(newSpan,"AutoCompleteId");newDiv.appendChild(newSpan);return false}function displayHistory(){cookieHistory=handleCookieData(this._cookieName,this.field.value);if(cookieHistory.length>0){var historyDiv=document.createElement("SPAN");historyDiv.innerHTML='Historique&nbsp;(<a href="#" class="AutoCompleteDivDel" onClick="javascript:deleteCookie(\''+this._cookieName+"','"+this._completeDiv.id+"','"+this.field.id+"');return false; \">effacer</a>)";historyDiv.id="completeDivTitle";this.setStyleForElement(historyDiv,"AutoCompleteDivTitle");this._completeDiv.appendChild(historyDiv);var completeur=this;for(var f=0;f<cookieHistory.length;f++){var nouveauDiv=document.createElement("DIV");nouveauDiv.onmousedown=function(event){divOnMouseDownV2(completeur,event,this)};nouveauDiv.onmousemove=function(event){divOnMouseMoveV2(completeur,event,this)};nouveauDiv.onmouseout=function(event){divOnMouseOutV2(completeur,event,this)};this.setStyleForElement(nouveauDiv,"AutoCompleteDiv");var nouveauSpan=document.createElement("SPAN");nouveauSpan.innerHTML=cookieHistory[f][0];this.setStyleForElement(nouveauSpan,"AutoCompleteDivCol1");nouveauDiv.appendChild(nouveauSpan);if(this._use2ndColumn){if((cookieHistory[f])&&(cookieHistory[f][1])){this.display2ndColumn(nouveauDiv,cookieHistory[f][1])}else{this.display2ndColumn(nouveauDiv,"&nbsp;")}}this._completeDiv.appendChild(nouveauDiv)}}}this.completionUsed=completionUsed;this.cmpl=cmpl;this.setStyleForElement=setStyleForElement;this.handleJsonSuggestions=handleJsonSuggestions;this.displayComplete=displayComplete;this.handleCursorUpDownEnter=handleCursorUpDownEnter;this.PressAction=PressAction;this.blurThenGetFocus=blurThenGetFocus;this.hideCompleteDiv=hideCompleteDiv;this.showCompleteDiv=showCompleteDiv;this.highlightNewValue=highlightNewValue;this.affectValues=affectValues;this.display2ndColumn=display2ndColumn;this.handle2ndColumn=handle2ndColumn;this.displayId=displayId;this.displayHistory=displayHistory;this.cacheResults=cacheResults;this.hideCompleteDiv()}completionComponent.count=0;function array_key_exists(b,a){if(!a||(a.constructor!==Array&&a.constructor!==Object)){return false}return a[b]!==undefined}function writeScript(c){var d=document.getElementsByTagName("head")[0];var b=document.createElement("script");if(document.getElementById("scrComp")){var a=document.getElementById("scrComp");d.removeChild(a);b.setAttribute("id","scrComp");b.setAttribute("type","text/javascript");b.setAttribute("src",c);d.appendChild(b)}else{b.setAttribute("id","scrComp");b.setAttribute("type","text/javascript");b.setAttribute("src",c);d.appendChild(b)}}function removeAutoComplete(a){a.onkeyup=null}function hideSelectElementCompletion(a){var b=document.getElementById(a).getElementsByTagName("select");for(i=0;i<b.length;i++){b[i].style.visibility="hidden";b[i].cptHideDivAction=0}}function showSelectElementCompletion(a){var b=document.getElementById(a).getElementsByTagName("select");for(i=0;i<b.length;i++){if(b[i].cptHideDivAction==0){b[i].style.visibility="visible"}b[i].cptHideDivAction=1}}function cursorAfterValue(a){if(a.value){oldValue=a.value;a.value="";a.value=oldValue}}function getSuggestionV2(b,a){if((!b)||(!b.getElementsByTagName)||(!(b.getElementsByTagName("span")[a]))){return null}return b.getElementsByTagName("span")[a].getAttribute("valeur")}function gaddEvent(b,c,a){if(b.addEventListener){b.addEventListener(c,a,false)}else{if(b.attachEvent){b.attachEvent("on"+c,a)}else{return false}}}function divOnMouseDownV2(completeur,event,laDiv){blocnumber=laDiv.getAttribute("blocnumber");checkCallBackFunc=false;if(blocnumber>=0&&typeof completeur.blocksCallBackFunctions!="undefined"&&typeof completeur.blocksCallBackFunctions[blocnumber]!="undefined"){checkCallBackFunc=true}anchor=laDiv.getAttribute("href");if((!checkCallBackFunc||completeur.blocksCallBackFunctions[blocnumber]==null)&&anchor!=null&&typeof anchor!="undefined"){document.location=anchor;event.cancelBubble=true;return}completeur.field.value=getSuggestionV2(laDiv,0);if(completeur.field.completeur._idField!=null&&document.getElementById(completeur.field.completeur._idField)){document.getElementById(completeur.field.completeur._idField).value=getSuggestionV2(laDiv,1)}completeur.affectValues(laDiv);completeur._suggestionUsed=true;if(completeur._useHistory==true){var cookieValue=completeur.field.value;if(completeur._use2ndColumn==true){cookieValue+="|"+getSuggestionV2(laDiv,1)}updateCookie(cookieValue,completeur._cookieName)}completeur.hideCompleteDiv();completeur.blurThenGetFocus();completeur._completeDiv.innerHTML="";if(completeur._launchSearch){if(checkCallBackFunc){if(completeur.blocksCallBackFunctions[blocnumber]==null){if(!completeur._onSubmitFunction){completeur._onSubmitFunction=completeur.field.form.submit}}else{if(completeur.blocksCallBackFunctions[blocnumber]=="none"){completeur._onSubmitFunction=completeur.field.form.submit}else{completeur._onSubmitFunction=completeur.blocksCallBackFunctions[blocnumber]}}}else{if(!completeur._onSubmitFunction){completeur._onSubmitFunction=completeur.field.form.submit}}if(completeur._onSubmitFunction){if(anchor!=null&&typeof anchor!="undefined"&&anchor.length!=0){if(completeur.changeFormActionWithLink){completeur.field.form.action=anchor}chaineAppel=completeur._onSubmitFunction+'("'+escape(completeur.field.value)+'","'+completeur._2ndColumnValue+'","'+completeur._idValue+'","'+completeur.field.id+'","'+anchor+'")'}else{chaineAppel=completeur._onSubmitFunction+'("'+escape(completeur.field.value)+'","'+completeur._2ndColumnValue+'","'+completeur._idValue+'","'+completeur.field.id+'")'}eval(chaineAppel)}}}function divOnMouseMoveV2(b,c,a){b._cursorUpDownPressed=false;if(b._highlightedSuggestionDiv){b.setStyleForElement(b._highlightedSuggestionDiv,"AutoCompleteDiv")}children=a.parentNode.childNodes;for(i=0;i<children.length;i++){if(a==children[i]){b._highlightedSuggestionIndex=i-1;b._highlightedSuggestionDiv=a;break}}b.setStyleForElement(a,"AutoCompleteDivAct");if(b.changeOnMouseOver){b._suggestionUsed=true;b.field.value=getSuggestionV2(a,0);if(b.field.completeur._idField!=null&&document.getElementById(b.field.completeur._idField)){document.getElementById(b.field.completeur._idField).value=getSuggestionV2(a,1)}b.affectValues(a)}}function divOnMouseOutV2(b,c,a){b.setStyleForElement(a,"AutoCompleteDiv");if(b.field.completeur._idField!=null&&document.getElementById(b.field.completeur._idField)){document.getElementById(b.field.completeur._idField).value=getSuggestionV2(this,1)}}var _maxHistoryItemNb=5;function itemInCookie(a,c){var b=greadCookie(c);if(b!=null){b=unescape(b);b=b.split("$");for(j=0;j<b.length;j++){if(a==b[j]){return true}}}return false}function handleCookieData(c,e){var a=greadCookie(c);var d=new Array();if(a!=null){a=unescape(a);a=a.split("$");for(i=0;i<a.length;i+=2){var b=a[i].split("|");d.push(b)}}return d}function greadCookie(d){var b=d+"=";var g=b.length;var a=document.cookie.length;var e=0;while(e<a){var c=e+g;if(document.cookie.substring(e,c)==b){var f=document.cookie.indexOf(";",c);if(f==-1){f=document.cookie.length}return unescape(document.cookie.substring(c,f))}e=document.cookie.indexOf(" ",e)+1;if(e==0){break}}return null}function deleteCookie(b,a,c){document.cookie=b+"=;path=/;expires=Thu, 01-Jan-1970 00:00:01 GMT";document.getElementById(a).innerHTML="";document.getElementById(c).focus();return false}function updateCookie(b,a){if(!itemInCookie(b,a)){suggestNoAccent=noAccentCmpl(b);var c=escape(b);c+="$"+escape(suggestNoAccent);var d=greadCookie(a);if(d!=null){d=unescape(d);d=d.split("$");for(i=1;i<=d.length;i+=2){if(i<=_maxHistoryItemNb+2||_maxHistoryItemNb==0){c+="$"+d[i-1]+"$"+d[i]}}}document.cookie=a+"="+escape(c)+";path=/"}}function noAccentCmpl(f){var d="\xE0\xE2\xE4\xE1\xC0\xC1\xC4\xC2\xEB\xE8\xE9\xEA\xCA\xC9\xC8\xCB\xEF\xEE\xED\xEC\xCC\xCD\xCE\xCF\xF2\xF3\xF4\xF6\xD2\xD3\xD4\xD6\xFC\xF9\xFB\xFA\xDA\xD9\xDB\xDC\xE3\xF5\xF1\xC3\xD5\xD1\xE7";var c="aaaaAAAAeeeeEEEEiiiiIIIIooooOOOOuuuuUUUUaonAONc";for(var e=0;e<d.length;e++){f=f.split(d.charAt(e)).join(c.charAt(e))}return f}function noSpecialCmpl(m,h){var g=m.toLowerCase();var f=g.replace(h," ");var n=f.replace(/[ ]+/g," ");var l=n.replace(/^ /,"");var k=l.replace(/ $/,"");return k}function getBoldInv(e,d,b,c,a){newstr="";if(b){d=noAccentCmpl(d)}if(c){d=noSpecialCmpl(d,a)}i=e.indexOf(d);if(i==-1){d=noSpecialCmpl(d,/[^ a-z0-9]/gi);j=e.indexOf(d);if(j==-1){newstr="<b>"+e+"</b>"}else{newstr="<b>"+newstr+e.substring(0,j)+"</b>"+d;deb=j+d.length;if(deb<e.length){newstr=newstr+"<b>"+e.substring(deb)+"</b>"}}}else{newstr="<b>"+newstr+e.substring(0,i)+"</b>"+d;deb=i+d.length;if(deb<e.length){newstr=newstr+"<b>"+e.substring(deb)+"</b>"}}return newstr}var BLAutocompleter=completionComponent}var refGstat="";function Cartouche(c){if(c!==null){var c=c}else{var c="shopping"}var e,d,a,b;this.setBhv=function(f){c=f};this.getBhv=function(){return c};this.setUrlEnville=function(f){e=f};this.setUrlMoteur=function(f){d=f};this.getUrlMoteur=function(f){return d};this.setUrlShopping=function(f){a=f};this.setUrlPlus=function(f){b=f};this.initSearch=function(g,f){switch(f){case"rns":switch(g){case"searchmono":case"home":this.setSearch("searchmono","top","top");break;default:this.selectItem("cmn_l118712","searchmono");this.hideMonoSearch();if(typeof affichageMonForm4ChampsHeader=="function"){affichageMonForm4ChampsHeader(g)}break}break;default:this.setSearch(g,"top","top");break}};this.setSearch=function(g,h,f){if(h==""){h="top"}if(h=="_bottom"&&document.getElementById("cmn_headSearch_bottom")){document.getElementById("cmn_headSearch").rdata.value=document.getElementById("cmn_headSearch_bottom").rdata.value}else{if(h=="top"&&document.getElementById("cmn_headSearch_bottom")){document.getElementById("cmn_headSearch_bottom").rdata.value=document.getElementById("cmn_headSearch").rdata.value}}switch(g){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",g);this.showMonoSearch("");if(document.completionorangev2){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",g);this.showMonoSearch("");if(document.completionorangev2){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",g);this.showMonoSearch("");if(document.completionorangev2){this.initCartoucheCompletion("videos")}document.getElementById("cmn_btnHeadForm").title=document.getElementById("cmn_btnHeadForm").alt="rechercher des vid&eacute;os";if(document.getElementById("cmn_headSearch_bottom")){document.getElementById("cmn_btnHeadForm_bottom").title=document.getElementById("cmn_btnHeadForm_bottom").alt="rechercher des vid&eacute;os"}break;case"shopping":this.selectItem("cmn_lShop",g);this.showMonoSearch("shop");if(document.completionorangev2){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");if(document.completionorangev2){this.initCartoucheCompletion("annu")}removeCompletion("");removeCompletion("_bottom");this.showMonoSearch("");break;default:this.selectItem("cmn_lShop","shopping");this.showMonoSearch("shop");if(document.completionorangev2){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}if(f=="bottom"&&document.getElementById("cmn_rdata_bottom")){document.getElementById("cmn_rdata_bottom").focus()}else{if((f=="top")&&(oInputRdata=document.getElementById("cmn_rdata"))){oInputRdata.focus()}}};this.selectItem=function(f,g){if(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(f)){document.getElementById(f).className="select";if(document.getElementById(f+"_bottom")){document.getElementById(f+"_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=g};this.initCartoucheCompletion=function(f){usedOld=false;if(typeof(BLO_Autocompletion)!="undefined"){usedOld=BLO_Autocompletion.completionUsed()}keCmplUrl="";switch(f){case"web":keCmplUrl=((typeof hostcompletion!="undefined"&&hostcompletion)?hostcompletion:"")+"/fr/completion/xml/fullxml?id=-1,10&an1=8&an2=2&version=2";refGstat="Oshopping_Cartouche_Web";break;case"images":keCmplUrl=((typeof hostcompletion!="undefined"&&hostcompletion)?hostcompletion:"")+"/fr/completion/xml/fullxml?id=1&version=2";refGstat="Oshopping_Cartouche_Images";break;case"videos":keCmplUrl=((typeof hostcompletion!="undefined"&&hostcompletion)?hostcompletion:"")+"/fr/cmplvideo/xml/fullxml?id=1&version=2";refGstat="Oshopping_Cartouche_Videos";break;case"shopping":keCmplUrl=((typeof hostcompletion!="undefined"&&hostcompletion)?hostcompletion:"")+"/fr/completion/xml/fullxml?id=2";refGstat="Oshopping_Cartouche_Shopping";break;case"annu":refGstat="Oshopping_Cartouche_Annu";break;default:refGstat="Oshopping_Cartouche_undefType";break}if(appliKeweb==false){removeCompletion("");removeCompletion("_bottom");if(keCmplUrl!=""){prepareCompletion(keCmplUrl,"");prepareCompletion(keCmplUrl,"_bottom")}if(typeof(BLO_Autocompletion)!="undefined"){BLO_Autocompletion._launchSearch=true;BLO_Autocompletion.used=usedOld}}};this.formSubmit=function(m){var k=document.getElementById("cmn_bhv").value;if(k=="shopping"){return this.validateShopping(m)}else{if((k=="searchinv")||(k=="searchpar")||(k=="searchspa")||(k=="searchproxi")||(k=="home")||(k=="searchmono")){return this.validateEnvilleMonochamp("enville",k,m)}else{var l=encodeURIComponent(document.getElementById("cmn_rdata"+m).value);var g="";var f=document.getElementById("cmn_profil"+m).value;if((f=="")||(f=="undefined")||(f=="enville")||(f=="orange_enville")||(f=="118712")){g+="&profil=orange"}else{g+="&profil="+f}if(k!=""){g+="&bhv="+k}if((document.getElementById("cmn_alt"+m).value!="")&&((k=="site")||(k=="web_fr"))){g+="&alt="+document.getElementById("cmn_alt"+m).value}var h=d+"?rdata="+l+g;if(l!=""){if((typeof(BLO_Autocompletion)!="undefined")&&((BLO_Autocompletion.used||BLO_Autocompletion.completionUsed())&&refGstat)){refGstat+="_withSugg"}h=getGStatUrlJS(refGstat,h);self.document.location.href=h}return false}}};this.validateShopping=function(l){if((l=="top")||(!l)){l=""}searchform=document.getElementById("cmn_headSearch"+l);searchform.rdata.value=escapePlus(trim(searchform.rdata.value));if(searchform.rdata.value.length>0){searchform.action=a;var g=escape(searchform.rdata.value);var k=a+"?rdata="+g;searchform.Cat.value=trim(searchform.Cat.value);var f=escape(searchform.Cat.value);var h="";if(searchform.Cat.value.length>0){k+="&Cat="+f;h="_"+f}if((typeof(BLO_Autocompletion)!="undefined")&&((BLO_Autocompletion.used||BLO_Autocompletion.completionUsed())&&refGstat)){refGstat+="_withSugg"}refGstat+="_"+g+h;k=getGStatUrlJS(refGstat,k);self.document.location.href=k}return false};this.validateEnvilleMonochamp=function(f,g,h){if(searchform=document.getElementById("cmn_headSearch"+h)){searchform.name.value=searchform.rdata.value;searchform.rdata.value=trim(searchform.rdata.value);if(searchform.rdata.value!=""){ref=refGstat+"_"+escape(searchform.rdata.value);trackGstatXhr(ref);searchform.profil.value=f;searchform.bhv.value=g;searchform.action=e;searchform.method="post";searchform.target="_top";searchform.submit()}}return false};this.showMonoSearch=function(k){var h,m;switch(k){case"shop":h="searchTxtMini";m="";break;default:h="searchTxt";m="hide";break}var l;if(l=document.getElementById("cmn_rdata")){l.className=h}if(l=document.getElementById("cmn_rdata_bottom")){l.className=h}var f;if(f=document.getElementById("catShopping")){f.className=m}if(f=document.getElementById("catShopping_bottom")){f.className=m}var g;if(g=document.getElementById("wgCatList")){g.className="wgCatList hide"}if(g=document.getElementById("wgCatList_bottom")){g.className="wgCatList hide"}};this.hideMonoSearch=function(){if(document.getElementById("cmn_divFormOrange")&&document.getElementById("cmn_divFormOrange").style.display=="block"){document.getElementById("cmn_divFormOrange").style.display="none"}};this.setRdata=function(f){document.getElementById("cmn_rdata").value=trim(f);document.getElementById("cmn_name").value=trim(f)}}function prepareCompletion(b,c){var a=new completionComponent(document.getElementById("cmn_autoComp_reskeCmpl"+c),document.getElementById("cmn_rdata"+c),"BLO_AutocompletionOnSelectEntry",b,"kw","dtd=2.0&cbf=BLO_Autocompletion"+c+".cmpl","cartWeb",null,null,-2);a.onMouseOverUpdate=false;a._launchSearch=true;a.blocksTitlesList=["suggestions","sur Orange"];a.blocksConditionList=["ID==1","ID==2"];a.blocksCountList=[8,2];a._use2ndColumn=true;a._useDirectLinks=true;a._useHistory=false;a._maxHistoryItemNb=4;BLO_AutocompletionOnSelectEntry=function(){if((a._launchSearch==true)&&(typeof(cartouche)!="undefined")){cartouche.formSubmit()}};if(c==""){BLO_Autocompletion=a}else{BLO_Autocompletion_bottom=a}}function removeCompletion(a){if(typeof BLO_Autocompletion!="undefined"){removeAutoComplete(document.getElementById("cmn_rdata"))}return false}function trim(a){return a.replace(/(^\s*)|(\s*$)/g,"")}function getGStatUrlJS(b,a){server="http://r.orange.fr/r";gstat_url=server+"?ref="+b+"&url="+encodeURIComponent(a);return gstat_url}function trackGstatXhr(a){imgTrackerUrl="http://r.orange.fr/r?ref="+a+"&url="+escape("http://"+window.location.hostname+"/I/gStat.gif");try{var c;c=getXhrValider();if(c!=false){c.open("GET","/php/wg_tracker.php?url="+escape(imgTrackerUrl),true);c.send(null)}}catch(b){}}window.shopRdata=null;window.shopCat=null;var urlLrShopping="";switch(window.location.hostname){case"shopping.orange.fr":urlLrShopping="http://r.orange.fr/r/Oshopping_search";window.onerror=hideNaggingErrors;break;default:urlLrShopping="http://shopping.orange.fr/recherche.html";break}function hideNaggingErrors(e,b,a){var d=/location\.href$/i;var c=/location\.tostring$/i;if(d.test(e)||c.test(e)){return true}}var appliKeweb=false;var hostcompletion="http://completion.ke.voila.fr";var cartouche=new Cartouche("shopping");cartouche.setUrlMoteur("http://search.ke.voila.fr/S/orange");cartouche.setUrlEnville("http://www.118712.orange.fr/S/searchproxi");cartouche.setUrlPlus("http://r.orange.fr/r?ref=O_LR_plus&amp;url=http%3A//plus.ke.orange.fr");if((typeof(BLO_Autocompletion)!="undefined")&&(BLO_Autocompletion.used||BLO_Autocompletion.completionUsed())){cartouche.setUrlShopping("http://r.orange.fr/r?ref="+refGstat+"&url="+escape(urlLrShopping))}else{cartouche.setUrlShopping(urlLrShopping)}function getParametre_querystring(e,f){var a="";var d=f.indexOf("?");if(d>0){var c=f.indexOf("?"+e+"=",d);if(c<d){c=f.indexOf("&"+e+"=",d)}if(c>=d){c=c+("?"+e+"=").length;var b=f.indexOf("&",c);if(b>=c){a=f.substring(c,b)}else{a=f.substring(c)}}}return a}function remplace(f,d,c){var e=0;while(e!=-1){e=f.indexOf(d,e);if(e>=0){f=f.substring(0,e)+c+f.substring(e+d.length);e+=c.length}}return f}function escapePlus(a){var b="%"+"+".charCodeAt(0).toString(16).toUpperCase();a=a.replace("+",b);a=a.replace(/\s+/," ");a=a.replace(/^ /,"");a=a.replace(/ $/,"");return(a)}function set_form(){if(getParametre_querystring("kwenc",document.location.href)=="utf8"){window.shopRdata=remplace(decodeURIComponent(getParametre_querystring("rdata",document.location.href),"+"," "));window.shopCat=remplace(decodeURIComponent(getParametre_querystring("Cat",document.location.href),"+"," "))}else{window.shopRdata=remplace(unescape(getParametre_querystring("rdata",document.location.href)),"+"," ");window.shopCat=remplace(unescape(getParametre_querystring("Cat",document.location.href)),"+"," ")}var a=document.getElementById("cmn_rdata");a.value=window.shopRdata;setCat(window.shopCat,"");a=document.getElementById("cmn_rdata2");a.value=window.shopRdata}function setCat(b,f){var a="li_cat_a_";(b!="")?a+=b:a+="all";a+=f;var e,c,d;if((d=document.getElementById("resD"+f))&&(e=document.getElementById(a))){d.innerHTML=e.innerHTML;if(c=document.getElementById("cmn_Cat"+f)){c.value=b}}return false}function toggleCatList(b,c){var a;if(a=document.getElementById("wgCatList"+c)){if(b!=null){switch(b){case"hide":a.className="wgCatList hide";break;default:a.className="wgCatList";break}}else{switch(a.className){case"wgCatList hide":a.className="wgCatList";break;default:a.className="wgCatList hide";break}}}return false}function clickItemCatList(b,a){setCat(a,b);toggleCatList(null,b);return false}function shopOnglets(b){var a='  <div class="onglet">';a+="   <ul>";a+='    <li class="select" id="cmn_lWeb'+b+'">';a+='     <div class="v2web">';a+='      <label for="cmn_rdata'+b+'">';a+="       <a title=\"rechercher dans le web\" onkeypress=\"if (event.keyCode != 9){cartouche.setSearch('web_fr','"+b+"','"+b+"');return cartouche.formSubmit('"+b+"');}\" onclick=\"cartouche.setSearch('web_fr','"+b+"','"+b+"');return cartouche.formSubmit('"+b+'\');" href="#">sur le web</a>';a+="      </label>";a+="     </div>";a+="    </li>";a+='    <li class="noSelect" id="cmn_lImg'+b+'">';a+='     <div class="v2image">';a+='      <label for="cmn_rdata'+b+'">';a+="       <a title=\"rechercher des images\" onkeypress=\"if (event.keyCode != 9){cartouche.setSearch('images','"+b+"','"+b+"');return cartouche.formSubmit('"+b+"');}\" onclick=\"cartouche.setSearch('images','"+b+"','"+b+"');return cartouche.formSubmit('"+b+'\');" href="#">images</a>';a+="      </label>";a+="     </div>";a+="    </li>";a+='    <li class="noSelect" id="cmn_lVid'+b+'">';a+='     <div class="v2video">';a+='      <label for="cmn_rdata'+b+'">';a+="       <a title=\"rechercher des vid&eacute;os\" onkeypress=\"if (event.keyCode != 9){cartouche.setSearch('videos_mos','"+b+"','"+b+"');return cartouche.formSubmit('"+b+"');}\" onclick=\"cartouche.setSearch('videos_mos','"+b+"','"+b+"');return cartouche.formSubmit('"+b+'\');" href="#">vid&eacute;os</a>';a+="      </label>";a+="     </div>";a+="    </li>";a+='    <li class="noSelect" id="cmn_lShop'+b+'">';a+='     <div class="v2shop">';a+='      <label for="cmn_rdata'+b+'">';a+="       <a title=\"rechercher des produits\" onkeypress=\"if (event.keyCode != 9){cartouche.setSearch('shopping','"+b+"','"+b+"');return cartouche.validateShopping();}\" onclick=\"cartouche.setSearch('shopping','"+b+"','"+b+'\');return cartouche.validateShopping();" href="#">shopping</a>';a+="      </label>";a+="     </div>";a+="    </li>";a+='     <li class="noSelect" id="cmn_l118712'+b+'">';a+='     <div class="v2enville">';a+="      <label>";a+="       <a onkeypress=\"if (event.keyCode != 9){cartouche.setSearch('searchmono','"+b+"','"+b+"');return cartouche.validateEnvilleMonochamp('enville','searchmono');}\" onclick=\"cartouche.setSearch('searchmono','"+b+"','"+b+'\');return cartouche.validateEnvilleMonochamp(\'enville\',\'searchmono\');" href="#" title="rechercher un professionnel ou un particulier" class="normal">annuaire</a>';a+="      </label>";a+="     </div>";a+="    </li>";a+='    <li class="normalLink noBordure" id="cmn_lOrg'+b+'">';a+='     <a title="tous les services de recherche" href="http://r.orange.fr/r?ref=O_LR_plus&amp;url=http%3A//plus.ke.orange.fr" class="normal">plus ...</a>';a+="    </li>";a+="   </ul>";a+="  </div>";return a}function shopSearch(b){var a="";a+='  <div class="cmn_divFormOrange" id="cmn_divFormOrange'+b+'">';a+="   <form onsubmit=\"return cartouche.formSubmit('"+b+'\');" target="" method="get" action="" class="formSearch" id="cmn_headSearch'+b+'" autocomplete="off">';a+='    <input type="hidden" value="shopping" name="bhv" id="cmn_bhv'+b+'">';a+='    <input type="hidden" value="orange'+(detectFibre()?"_lafibre":"")+'" name="profil" id="cmn_profil'+b+'">';a+='    <input type="hidden" value="kw" name="rtype" id="cmn_rtype'+b+'">';a+='    <input type="hidden" value="1" name="ap" id="cmn_ap'+b+'">';a+='    <input type="hidden" value="" name="alt" id="cmn_alt'+b+'">';a+='    <input type="hidden" value="" name="name" id="cmn_name'+b+'">';a+='    <input type="hidden" value="" name="Cat" id="cmn_Cat'+b+'">';a+='    <div class="divRdata">';a+='     <div class="champNormLeft"></div>';a+='     <div class="champNorm">        ';a+='      <input type="text" class="searchTxtMini" value="" accesskey="0" autocomplete="off" name="rdata" id="cmn_rdata'+b+"\" onclick=\"toggleCatList('hide', '"+b+"');\">";a+='      <div class="catShopping" id="catShopping'+b+'">';a+='       <div class="sepRech" id="sepRech'+b+'"></div>';a+='       <a target="_self" class="btList" id="btList'+b+'" href="#" onclick="return toggleCatList(null,\''+b+"')\">";a+='        <span class="resD" id="resD'+b+'">dans tout le shopping</span>';a+='        <span class="aList" id="aList'+b+'"></span>';a+="       </a>";a+="      </div>";a+='      <input type="submit" value="rechercher" class="searchBtn_buttonOut" title="rechercher dans le web" onmouseover="this.className=\'searchBtn_buttonOver\'" onfocus="this.className=\'searchBtn_buttonOver\'" onmouseout="this.className=\'searchBtn_buttonOut\'" onblur="this.className=\'searchBtn_buttonOut\'" id="cmn_btnHeadForm'+b+'">';a+="     </div>";a+='     <div class="champNormRight"></div>';a+='     <div id="cmn_autoComp_reskeCmpl'+b+'" class="cartWebAutoCompleteDivListeStyle"></div>';a+="    </div>";a+="   </form>";a+='   <div id="wgCatList'+b+'" class="wgCatList hide">';a+='    <ul id="lstD'+b+'">';a+='     <li id="li_cat_0'+b+'"><a target="_self" id="li_cat_a_all'+b+'" href="#" onclick="return clickItemCatList(\''+b+"','');\">dans tout le shopping</a></li>";a+='     <li id="li_cat_1'+b+'"><a target="_self" id="li_cat_a_1000000'+b+'" href="#" onclick="return clickItemCatList(\''+b+"','1000000');\">hi-fi, photo &amp; vid&eacute;o </a></li>";a+='     <li id="li_cat_2'+b+'"><a target="_self" id="li_cat_a_2000000'+b+'" href="#" onclick="return clickItemCatList(\''+b+"','2000000');\">informatique</a></li>";a+='     <li id="li_cat_3'+b+'"><a target="_self" id="li_cat_a_6000000'+b+'" href="#" onclick="return clickItemCatList(\''+b+"','6000000');\">mode &amp; accessoires</a></li>";a+='     <li id="li_cat_4'+b+'"><a target="_self" id="li_cat_a_10000107'+b+'" href="#" onclick="return clickItemCatList(\''+b+"','10000107');\">livres, musique &amp; films</a></li>";a+='     <li id="li_cat_5'+b+'"><a target="_self" id="li_cat_a_10000119'+b+'" href="#" onclick="return clickItemCatList(\''+b+"','10000119');\">sports &amp; loisirs</a></li>";a+='     <li id="li_cat_6'+b+'"><a target="_self" id="li_cat_a_10000243'+b+'" href="#" onclick="return clickItemCatList(\''+b+"','10000243');\">maison &amp; jardin</a></li>";a+='     <li id="li_cat_7'+b+'"><a target="_self" id="li_cat_a_4000000'+b+'" href="#" onclick="return clickItemCatList(\''+b+"','4000000');\">voyages</a></li>";a+='     <li id="li_cat_8'+b+'"><a target="_self" id="li_cat_a_10000364'+b+'" href="#" onclick="return clickItemCatList(\''+b+"','10000364');\">sant&eacute; &amp; beaut&eacute;</a></li>";a+='     <li id="li_cat_9'+b+'"><a target="_self" id="li_cat_a_10000204'+b+'" href="#" onclick="return clickItemCatList(\''+b+"','10000204');\">cadeaux &amp; fleurs</a></li>";a+='     <li id="li_cat_10'+b+'"><a target="_self" id="li_cat_a_10000337'+b+'" href="#" onclick="return clickItemCatList(\''+b+"','10000337');\">b&eacute;b&eacute;s &amp; enfants</a></li>";a+='     <li id="li_cat_11'+b+'"><a target="_self" id="li_cat_a_5080000'+b+'" href="#" onclick="return clickItemCatList(\''+b+"','5080000');\">auto-moto</a></li>";a+='     <li id="li_cat_12'+b+'"><a target="_self" id="li_cat_a_5040400'+b+'" href="#" onclick="return clickItemCatList(\''+b+"','5040400');\">gastronomie</a></li>";a+='     <li id="li_cat_13'+b+'"><a target="_self" id="li_cat_a_10000401'+b+'" href="#" onclick="return clickItemCatList(\''+b+"','10000401');\">&eacute;lectrom&eacute;nager</a></li>";a+="    </ul>";a+="   </div>";a+="  </div>";return a}function afficher_wg_shopping_bottom(){var b=document.getElementById("o_shoppingForm2");if(b){var a=shopOnglets("_bottom");var c=shopSearch("_bottom");b.className="o_walledgardenv2C";b.innerHTML='<div class="moteurLien"><div class="formulaire">'+c+a+"</div></div>";cartouche.initSearch(cartouche.getBhv(),"search")}}function detectFibre(){var a="";if((document.cookie.length>0)&&(document.cookie.indexOf("oHPFibre=")!=-1)){return true}return false}var navig={isIE:(navigator.userAgent.indexOf("MSIE")>-1),isFF:(navigator.userAgent.indexOf("Firefox")>-1),isChrome:(navigator.userAgent.indexOf("Chrome")>-1),isOpera:(window.prop&&window.prop.indexOf("Opera")>-1)||false,isSafari:(navigator.vendor&&navigator.vendor.indexOf("Apple")>-1)||false};function afficher_wg_shopping(){try{var b=document.getElementsByTagName("body")[0];if(document.body){if(window.o_timerWGShop){clearInterval(window.o_timerWGShop)}var k=detectFibre();var c='<div class="moteurLien">';if(k){c+='<div id="logo_fibre" class="c_fl_R"> </div>'}c+=' <div class="logo">';c+='  <a target="_top" href="http://r.orange.fr/r/O'+(k?'home_hpf':'')+'accueil"><img width="44" height="44" title="Orange: retour &agrave; l\'accueil" alt="Orange: retour &agrave; l\'accueil" src="http://c.orange.fr/Icons/Header/orange.gif"></a>';c+='  <span class="cartoucheRetourHome"><a class="orange" target="_top" title="Orange: retour &agrave; l\'accueil" href="http://r.orange.fr/r/O'+(k?'home_hpf':'')+'accueil">accueil</a></span>';c+=" </div>";c+=' <div class="formulaire">';var n=shopOnglets("");var m=shopSearch("");c+=n;c+=m;c+=" </div>";c+=' <div class="liens">';c+="  <ul>";c+='   <li><a target="_top" title="Acc&eacute;dez &agrave; l\'espace client Orange" href="http://r.orange.fr/r/OGespaceclient_accueil?ref=WG_moteur">espace client</a></li>';c+='   <li><a target="_top" title="Acc&eacute;dez &agrave; l\'assistance" href="http://r.orange.fr/r/Oassistance?ref=WG_moteur">assistance</a></li>';c+='   <li style="padding-right: 25px;" class="ligne"><a target="_top" title="Acc&eacute;dez &agrave; l\'espace boutique Orange" href="http://r.orange.fr/r/OGespaceboutique_accueil?ref=WG_moteur">offres et boutiques</a></li>';c+='   <li class="ligne"><a target="_top" title="Acc&eacute;dez &agrave; l\'univers mobile" href="http://r.orange.fr/r/OGmobile_reperes?ref=WG_moteur">rep&egrave;res mobile</a></li>';c+="  </ul>";c+=" </div>";c+="</div>";if(k){var d="c.orange.fr/Css/o_headerPortailFibre.css";var l=document.createElement("link");l.setAttribute("rel","stylesheet");l.setAttribute("type","text/css");l.setAttribute("href",document.location.protocol+"//"+d);b.appendChild(l);if(navig.isIE){var a="c.orange.fr/Css/o_headerPortailFibreVintage.css";var h=document.createElement("link");h.setAttribute("rel","stylesheet");h.setAttribute("type","text/css");h.setAttribute("href",document.location.protocol+"//"+a);b.appendChild(h)}}var f=document.createElement("div");f.setAttribute("id","o_walledgardenv2");f.className="o_walledgardenv2C "+(k?"o_headerShopFibre":"")+" o_r_header";f.innerHTML=c;document.body.insertBefore(f,b.firstChild);if(typeof o_onLoadPush=="function"){o_onLoadPush("afficher_wg_shopping_bottom()")}cartouche.initSearch(cartouche.getBhv(),"search");set_form()}else{if(typeof window.o_timerWGShop=="undefined"){window.o_timerWGShop=setInterval("afficher_wg_shopping()",10)}}}catch(g){}}var o_timerWGShop=setInterval("afficher_wg_shopping()",10);
