Array.prototype.remove=function(c){if(!c){c=function(e){return e==undefined||e==null?true:false}}var a=this.length;var d=0;for(var b=0;b-1||document.forms[0].elements[i].id.indexOf("rightPart")>-1){continue}switch(document.forms[0].elements[i].type){case"checkbox":case"password":case"radio":case"text":case"select-one":case"select-multiple":case"textarea":try{document.forms[0].elements[i].focus();return}catch(a){}}}}function handleSearchKeyPress(b){if((event.which&&event.which==13)||(event.keyCode&&event.keyCode==13)){var a=getElement(b);if(a!=null){event.returnValue=false;a.click();return false}}return true}function popupPlan(a){popup(a,560,590)}function popup(f,b,e){if(typeof(b)=="undefined"){b=350}if(typeof(e)=="undefined"){e=450}var a=(screen.width-b)/2;var d=(screen.height-e)/2;var c="scoll=no,status=no,menu=no,location=no,modal=yes,resizable=no,help=no,width="+b+",height="+e+",left="+a+",top="+d;var g=window.open(f,"popup",c);if(g==null||g=="undefined"){alert("Pour utiliser cette fonction, vous devez autoriser l'affichage des fen\u00EAtres popup.")}}function popupCondition(){popup("/Composants/Popups/Statiques/ConditionModifCommande.htm",440,440)}function VerifyCookies(){var a=new Date();chkcookie=(a.getTime()+"");document.cookie="chkcookie="+chkcookie+"; path=/";var c=(document.cookie.indexOf(chkcookie,0)>-1);if(!c){var b="
";b+="

Veuillez activer les cookies

";b+="

Pour utiliser correctement le site Intermarche.com, votre navigateur doit accepter les cookies.

";b+="

Nous vous rappelons qu'un cookie est un petit fichier texte totalement inoffensif que notre site Internet enregistre temporairement sur le disque dur de votre ordinateur pour vous identifier le temps de votre visite sur notre site.

";b+="

";b+="
";document.body.innerHTML=b+document.body.innerHTML}}function hideDiv(a){if(a!=null){document.getElementById(a).style.visibility="hidden";document.getElementById(a).style.display="none"}}function showDiv(a){if(a!=null){document.getElementById(a).style.visibility="visible";document.getElementById(a).style.display="block"}}function resizeDiv(a){if(a!=null){document.getElementById(a).style.top=document.body.offsetTop;document.getElementById(a).style.left=document.body.offsetLeft;document.getElementById(a).style.width=document.body.offsetWidth+"px";document.getElementById(a).style.height=document.body.offsetHeight+"px"}}function centerdiv(a){if(a!=null){document.getElementById(a).style.left=(document.body.offsetWidth/2)-(document.getElementById(a).offsetWidth/2)+"px"}}function findPosX(a){var b=0;if(a.offsetParent){do{b+=a.offsetLeft}while(a=a.offsetParent)}return b-document.body.offsetLeft}function findPosY(b){var a=0;if(b.offsetParent){do{a+=b.offsetTop}while(b=b.offsetParent)}if($.browser.msie){if($.browser.version==8){return a-document.body.offsetTop-48}else{return a-document.body.offsetTop}}else{return a-document.body.offsetTop-36}}function d2h(a){return a.toString(16)}function h2d(a){return parseInt(a,16)}function calculerNouvelleCouleur(a,b){if(a<255){while(a+b>255&&a<255){b=parseInt(b/2)}a=a+b}return a}function calculerCouleurTransparente(e,d){var g;var f;var a;if($.browser.msie){g=h2d(e.substr(1,2));f=h2d(e.substr(3,2));a=h2d(e.substr(5,2))}else{e=e.replace("rgb(","");e=e.replace(")","");e=e.replace(" ","");var c=e.split(",");if(c.length>=3){g=parseInt(c[0]);f=parseInt(c[1]);a=parseInt(c[2])}}var b="#";b+=d2h(calculerNouvelleCouleur(g,d));b+=d2h(calculerNouvelleCouleur(f,d));b+=d2h(calculerNouvelleCouleur(a,d));return b}function clone(a){if(typeof(a)!="object"||a==null){return a}var c=a.constructor();for(var b in a){c[b]=clone(a[b])}return c}function SaisieEntier(b){var a=b.which?b.which:b.keyCode;if((a<48||a>57)&&(a!=13)&&(a!=8)&&(a!=9)&&(a!=127)){b.returnValue=false;b.preventDefault()}}function queryString(c){var b=new String(c);var a=window.location.search.indexOf("&"+b+"=");if(a==-1){a=window.location.search.indexOf("?"+b+"=")}if(a==-1){return null}return(window.location.search.indexOf("&",a+b.length+2)==-1)?window.location.search.substr(a+b.length+2):window.location.search.substr(a+b.length+2,window.location.search.indexOf("&",a+b.length+2)-(a+b.length+2))};