if(window.lang==undefined){}else{if(window.lang=="es"||window.lang=="fr"){var truncater={init:function(){var A=document.getElementsByTagName("*");for(var B=0;B<A.length;B++){if(A[B].className&&(A[B].className.match(/\bcarClass_width\b/)||A[B].className.match(/\bfield_txt\b/)||A[B].className.match(/\bseedeals_txt\b/)||A[B].className.match(/\bmodifyRes\b/)||A[B].className.match(/\bother_Loc\b/)||A[B].className.match(/\bwidth_sel\b/)||A[B].className.match(/\bwidth_partner\b/)||A[B].className.match(/\bselCarBaseRate\b/)||A[B].className.match(/\bsearchByAdd\b/)||A[B].className.match(/\btxtFldWidth_rolouts\b/)||A[B].className.match(/\bselWidth_rollouts\b/)||A[B].className.match(/\bCancelText\b/)||A[B].className.match(/\benroll_txt\b/)||A[B].className.match(/\band_txt\b/)||A[B].className.match(/\blanding_txt\b/)||A[B].className.match(/\bCSS_width\b/)||A[B].className.match(/\binformation_txt\b/)||A[B].className.match(/\bsalutation_horz_text\b/)||A[B].className.match(/\bfirst_horz_text\b/)||A[B].className.match(/\bmi_horz_text\b/)||A[B].className.match(/\blast_horz_text\b/)||A[B].className.match(/\brt_button\b/)||A[B].className.match(/\bcenterHeader\b/)||A[B].className.match(/\bleftColumn\b/)||A[B].className.match(/\bcenterColumn\b/)||A[B].className.match(/\brightColumn\b/)||A[B].className.match(/\bnormalText\b/)||A[B].className.match(/\baccount_landing_txt\b/)||A[B].className.match(/\btripmodule_txt\b/)||A[B].className.match(/\bnextrip_txt\b/)||A[B].className.match(/\bapstlInfo\b/)||A[B].className.match(/\bleftPanelTxt\b/)||A[B].className.match(/\bcustomerTxt\b/)||A[B].className.match(/\brightPanelText\b/)||A[B].className.match(/\btotal_estimate\b/)||A[B].className.match(/\bformRight\b/)||A[B].className.match(/\bresLeft\b/)||A[B].className.match(/\bresCenter\b/)||A[B].className.match(/\bresRight\b/)||A[B].className.match(/\bselCarClass\b/)||A[B].className.match(/\bselCarType\b/))){truncater.truncate(A[B])}}},truncate:function(B){var F=B.getElementsByTagName("span");for(var C=0;C<F.length;C++){if(F[C].className=="truncremove"){B.firstChild.nodeValue+=F[C].firstChild.nodeValue;B.removeChild(F[C])}}var H=document.createElement("span");H.className="truncremove";H.style.display="none";var A=document.createTextNode("");H.appendChild(A);B.appendChild(H);var E=B.firstChild;A.nodeValue+=E.nodeValue;E.nodeValue="X";var G=B.offsetHeight;E.nodeValue="";var D=false;var I;while(!D){I=A.nodeValue.match(/^\s*\S+\s+/);if(!I){if(A.nodeValue!=""){I=A.nodeValue}else{D=true;continue}}E.nodeValue+=I;A.nodeValue=A.nodeValue.substr(I.toString().length);if(B.offsetHeight>G){D=true}}if(B.offsetHeight>G){A.nodeValue=I+A.nodeValue;E.nodeValue=E.nodeValue.substr(0,E.nodeValue.length-I.toString().length-5);E.nodeValue+="...."}},addEvent:function(C,B,A){if(C.attachEvent){C["e"+B+A]=A;C[B+A]=function(){C["e"+B+A](window.event)};C.attachEvent("on"+B,C[B+A])}else{C.addEventListener(B,A,false)}}};var locationInfo=location.href;var timeStr="time-place-submit.ac";var newtimeStr="see-other-locations.ac";var newtimeStr2="start-reservation.ac";var newtimeStr3="search.ac";var newtimeStr4="get-avail-rates.ac";var newtimeStr5="select-other-location.ac";var newtimeStr6="carGuide.ac";var newtimeStr7="modify-car-group.ac";var newtimeStr8="modify-car.ac";var newtimeStr9="get-rates.ac";if(locationInfo.match(timeStr)||locationInfo.match(newtimeStr)||locationInfo.match(newtimeStr2)||locationInfo.match(newtimeStr3)||locationInfo.match(newtimeStr4)||locationInfo.match(newtimeStr5)||locationInfo.match(newtimeStr6)||locationInfo.match(newtimeStr7)||locationInfo.match(newtimeStr8)||locationInfo.match(newtimeStr9)){}else{truncater.addEvent(window,"load",truncater.init);truncater.addEvent(window,"resize",truncater.init)}}}var a=navigator.userAgent.toLowerCase();var iePos=a.indexOf("msie");if(iePos!=-1){is_minor=parseFloat(a.substring(iePos+5,a.indexOf(";",iePos)));is_major=parseInt(is_minor)}var safari=a.indexOf("safari");var isIE=(a.indexOf("msie")>0)?true:false;var isIE6orBelow=(a.indexOf("msie")>0&&is_major<7)?true:false;var isIE7=(a.indexOf("msie")>0&&is_major>=7)?true:false;var isSafari=(safari>0)?true:false;function getElementsByClassName(F,G){var A=[];var E=new RegExp("\\b"+G+"\\b");var D=F.getElementsByTagName("*");for(var C=0,B=D.length;C<B;C++){if(E.test(D[C].className)){A.push(D[C])}}return A}function findPosTop(B){var A=0;if(B.offsetParent){A=B.offsetTop;while(B=B.offsetParent){A+=B.offsetTop}}return A}function findPosLeft(A){var B=0;if(A.offsetParent){B=A.offsetLeft;while(A=A.offsetParent){B+=A.offsetLeft}}return B}function getNextSibling(A){endBrother=A.nextSibling;while(endBrother.nodeType!=1){endBrother=endBrother.nextSibling}return endBrother}function showElement(B,A){if(document.getElementById(B).className.match(A)==A){document.getElementById(B).className=document.getElementById(B).className.substr(0,document.getElementById(B).className.search(A))}}function hideElement(B,A){document.getElementById(B).className=document.getElementById(B).className+" "+A}function hideElement2(A){document.getElementById(A).style.display="none"}function toggleElement(B,A){if(document.getElementById(B).className.match(A)==A){document.getElementById(B).className=document.getElementById(B).className.substr(0,document.getElementById(B).className.search(A))}else{document.getElementById(B).className=document.getElementById(B).className+" "+A}}function hideshowElement(A,B,C){if(A.style.display!="none"){A.style.display="none"}else{A.style.display="block"}toggleElement(B,C)}function domRollover(){if(navigator.userAgent.match(/Opera (\S+)/)){var D=parseInt(navigator.userAgent.match(/Opera (\S+)/)[1])}if(!document.getElementById||D<7){return }var B=document.getElementsByTagName("img");var F=new Array();var E=new Array();var C=new Array();for(i=0;i<B.length;i++){if(B[i].className.indexOf("domroll")!=-1){E[i]=B[i].getAttribute("src");C[i]=B[i].className;F[i]=new Image();if(C[i].match(/domroll (\S+)/)){F[i].src=C[i].match(/domroll (\S+)/)[1]}B[i].setAttribute("xsrc",E[i]);B[i].onmouseover=function(){this.setAttribute("src",this.className.match(/domroll (\S+)/)[1])};B[i].onmouseout=function(){this.setAttribute("src",this.getAttribute("xsrc"))}}}var A=document.getElementsByTagName("INPUT");for(j=0;j<A.length;j++){if((A[j].type=="image")&&(A[j].className.indexOf("domroll")!=-1)){E[j]=A[j].getAttribute("src");C[j]=A[j].className;F[j]=new Image();if(C[j].match(/domroll (\S+)/)){F[j].src=C[j].match(/domroll (\S+)/)[1]}A[j].setAttribute("xsrc",E[j]);A[j].onmouseover=function(){this.setAttribute("src",this.className.match(/domroll (\S+)/)[1])};A[j].onmouseout=function(){this.setAttribute("src",this.getAttribute("xsrc"))}}}}sfHover=function(){var B;for(B=0;B<getElementsByClassName(document,"navigation").length;B++){var D=getElementsByClassName(document,"navigation")[B];var A=(D)?getElementsByClassName(document,"navigation")[B].getElementsByTagName("li"):null;if(A){for(var C=0;C<A.length;C++){if(A[C]&&A[C].id!="pop"&&A[C].id!="bugFixed"){A[C].onmouseover=function(){var J=location.href;var G="/location/";PopDisp(0);this.className+=" sfhover";var I=this.getElementsByTagName("ul");for(var E=0;E<I.length;E++){var K=I[E];var H=K.firstChild;if(H.nodeName!="IFRAME"){var F=document.createElement("iframe");F.style.width=K.offsetWidth+"px";F.style.height=K.offsetHeight+"px";F.style.borderStyle="none";F.src="/car-rental/images/global/en/common/spacer.gif";K.insertBefore(F,K.firstChild)}else{H.style.width=K.offsetWidth+"px";H.style.height=K.offsetHeight+"px"}}}}else{A[C].onmouseover=function(){this.className+=" sfhover";PopDisp(1);var H=this.getElementsByTagName("ul");for(var E=0;E<H.length;E++){var I=H[E];var G=I.firstChild;if(G.nodeName!="IFRAME"){var F=document.createElement("iframe");F.style.width=I.offsetWidth+"px";F.style.height=I.offsetHeight+"px";F.style.borderStyle="none";F.src="/car-rental/images/global/en/common/spacer.gif";I.insertBefore(F,I.firstChild)}else{G.style.width=I.offsetWidth+"px";G.style.height=I.offsetHeight+"px"}}};document.getElementById("residence").onfocus=function(){PopDisp(1);document.getElementById("pop").className+=" sfhover";document.getElementById("mainBodyDiv").onmousemove=function(){PopDisp(1)};document.getElementById("mainBodyDiv").onmouseover=function(){PopDisp(1)}};document.getElementById("residence").onblur=function(){document.getElementById("mainBodyDiv").onmousemove=function(){PopDisp(0)};document.getElementById("mainBodyDiv").onmouseover=function(){PopDisp(0)}}}A[C].onmouseout=function(){this.className=this.className.replace(/sfhover/g,"")}}}}};function PopDisp(A){if(document.getElementById("pop")){if(A==1){document.getElementById("pop").className+=" sfhover";document.getElementById("dispPop").style.display="block";document.getElementById("dispPop").style.visibility="visible"}else{if(A==0){document.getElementById("pop").className=" ";document.getElementById("dispPop").style.display="none";document.getElementById("dispPop").style.visibility="hidden"}}}}var winName;function openNewBrWin(K,I,B){I=I.replace(/\/|\-|\./gi,"_");var A=new RegExp("\\s","g");I=I.replace(A,"");var M=B.split(",");var J=M[0].split("=");var G=M[1].split("=");var L=J[1];var F=G[1];var E=(screen.width-L)/2;var H=(screen.height-F)/2;var D=B+", top="+H+", left="+E+",resizable=yes, toolbar=no, location=no, status=no, menubar=no, scrollbars=yes";var C=window.open(K,I,D);if(parseInt(navigator.appVersion)>=4){C.window.focus()}}function openWin(D,A,C){A=A.replace(/\/|\-|\./gi,"_");var B=new RegExp("\\s","g");A=A.replace(B,"");window.open(D,A,C)}function domPopup(){var B=document.getElementsByTagName("A");var C=new Array();var A=new Array();var D;for(i=0;i<B.length;i++){if(B[i].className.indexOf("domPopup")!=-1){B[i].onclick=function(){var G=this.className.match(/domPopup (\S+)/)[1];var F=G.substring(1,G.length-1);var E=F.split("|");openNewBrWin(E[0],E[1],"width="+E[2]+",height="+E[3]+"")}}}}function openPrivacyPopUp(A){window.open(A,"PrivacyPolicy","height=700,width=600,resizable=yes,toolbar=no,location=no,status=yes,menubar=no,scrollbars=yes")}function openPrivacyPreferencePopUp(A){window.open(A,"PrivacyPreference","height=700,width=600,resizable=yes,toolbar=no,location=no,status=yes,menubar=no,scrollbars=yes")}if(window.attachEvent){window.attachEvent("onload",sfHover)}if(window.addEventListener){window.addEventListener("load",sfHover,true)}function startup(){domRollover();domPopup();headerFunctions()}function xstooltip_findPosX(A){var B=0;if(A.offsetParent){while(A.offsetParent){B+=A.offsetLeft;A=A.offsetParent}}else{if(A.x){B+=A.x}}return B}function xstooltip_findPosY(B){var A=0;if(B.offsetParent){while(B.offsetParent){A+=B.offsetTop;B=B.offsetParent}}else{if(B.y){A+=B.y}}return A}if(window.addEventListener){window.addEventListener("load",startup,true)}if(window.attachEvent){window.attachEvent("onload",startup)}function getXMLHttpObject(){var A=null;if(window.XMLHttpRequest){A=new XMLHttpRequest()}else{if(window.ActiveXObject){A=new ActiveXObject("Microsoft.XMLHTTP")}}return A}function ajaxCallsiteLanguage(id,action){var selectedVal=document.getElementById("residence").value;var url=action+".ac?countryOfResCode="+selectedVal;var xmlhttp=getXMLHttpObject();if(xmlhttp!=null){xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){if(xmlhttp.status>=200&&xmlhttp.status<300){try{var json=eval("("+xmlhttp.responseText+")");if(document.getElementById("usState1")){document.getElementById("usState1").innerHTML=json.siteLanguagePref}}catch(e){}}else{}}};xmlhttp.open("GET",url,true);xmlhttp.send(null)}else{}}function submitSearch(){if(document.getElementById("search_box").className!="searchInputDisabled"){document.question_form.action="/search/SearchMain.jsp";document.question_form.submit()}else{document.question_form.action="/search/SearchMain.jsp";document.question_form.question_box.value="";document.question_form.submit()}}function openHelpWindow(A,B){if(B){getUrl="../content/help.ac?helpKey="+A+"&PICKUPCOUNTRY="+B}else{getUrl="../content/help.ac?helpKey="+A}window.open(getUrl,"help","height=355,width=500, resizable=no, toolbar=no, location=no, status=no, menubar=no, scrollbars=yes")}function trimAJAXContent(C,H,D){if(document.getElementById(C)&&D!="en"){var E=document.getElementById(C);var K='<SPAN class="mandatory">*</SPAN>';var B=E.innerHTML;var I=E.innerHTML;B=B.replace(/&(lt|gt);/g,function(L,M){return(M=="lt")?"<":">"});var G=B.replace(/<\/?[^>]+(>|$)/g,"");var F=G.replace(/&nbsp;/gi,"");var A=F.replace(/^\s*|\s*$/,"");while(A.substring(0,1)==" "){A=A.substring(1,A.length)}while(A.substring(A.length-1,A.length)==" "){A=A.substring(0,A.length-1)}var J=A;if(A.length>H){A=A.substring(0,H);A=A.replace(/\w+$/,"");A+="...";if(I.match(/\bmandatory\b/)){E.style.fontWeight="bold";E.innerHTML="<span>"+A+"</span>"+K}else{if(I.match(/\blabel\b/)){E.style.fontWeight="bold";E.innerHTML="<span>"+A+"</span>"}else{E.innerHTML="<span>"+A+"</span>"}}if(C.indexOf("koLink")!=-1){}else{E.title=J}}}else{if(document.getElementById(C)&&D=="en"){document.getElementById(C).style.width=""}}}function trimAJAXContentForVR(C,H,D){if(document.getElementById(C)&&D!="en"){var E=document.getElementById(C);var K='<SPAN class="mandatory">*</SPAN>';var B=E.innerHTML;var I=E.innerHTML;B=B.replace(/&(lt|gt);/g,function(L,M){return(M=="lt")?"<":">"});var G=B.replace(/<\/?[^>]+(>|$)/g,"");var F=G.replace(/&nbsp;/gi,"");var A=F.replace(/^\s*|\s*$/,"");while(A.substring(0,1)==" "){A=A.substring(1,A.length)}while(A.substring(A.length-1,A.length)==" "){A=A.substring(0,A.length-1)}var J=A;if(A.length>H){A=A.substring(0,H);A=A.replace(/\w+$/,"");A+="...";if(I.match(/\bmandatory\b/)){E.style.fontWeight="bold";E.innerHTML="<span>"+A+"</span>"+K}else{if(I.match(/\blabel\b/)){E.innerHTML="<span>"+A+"</span>"}else{E.innerHTML=A}}if(C.indexOf("koLink")!=-1){}else{E.title=J}}}else{if(document.getElementById(C)&&D=="en"){document.getElementById(C).style.width=""}}}function trimAJAXContentForSmallBiz(C,G,D){if(document.getElementById(C)&&D!="en"){var E=document.getElementById(C);var J='<SPAN class="mandatory">*</SPAN>';var B=E.innerHTML;var H=E.innerHTML;B=B.replace(/&(lt|gt);/g,function(K,L){return(L=="lt")?"<":">"});var F=B.replace(/<\/?[^>]+(>|$)/g,"");var A=F.replace(/^\s*|\s*$/,"");while(A.substring(0,1)==" "){A=A.substring(1,A.length)}while(A.substring(A.length-1,A.length)==" "){A=A.substring(0,A.length-1)}var I=A;if(A.length>G){A=A.substring(0,G);A=A.replace(/\w+$/,"");A+="...";if(H.match(/\bmandatory\b/)){E.style.fontWeight="bold";E.innerHTML="<span>"+A+"</span>"+J;E.innerHTML="<h2>"+A+"</h2>"}else{if(H.match(/\blabel\b/)){E.style.fontWeight="bold";E.innerHTML="<span>"+A+"</span>";E.innerHTML="<h2>"+A+"</h2>"}else{E.innerHTML="<span>"+A+"</span>";E.innerHTML="<h2>"+A+"</h2>"}}if(C.indexOf("koLink")!=-1){}else{E.title=I}}}else{if(document.getElementById(C)&&D=="en"){document.getElementById(C).style.width=""}}}function ActiveTab(B){trimAJAXContent("mainCapt",35,B);trimAJAXContent("mandatoryField",40,B);trimAJAXContent("capt1",28,B);trimAJAXContent("reEnterPsw",25,B);trimAJAXContent("reEnterEmail",25,B);trimAJAXContent("reqPass",30,B);trimAJAXContent("midInitial",15,B);trimAJAXContent("retypePwd",30,B);trimAJAXContent("retypePwd2",35,B);trimAJAXContent("modifyUser",30,B);trimAJAXContent("preferredModifyLDW",30,B);trimAJAXContent("preferredModifyPAI",30,B);trimAJAXContent("preferredModifyPEP",30,B);trimAJAXContent("preferredModifyALI",30,B);trimAJAXContent("preferredModifyER",30,B);trimAJAXContent("preferredModifyPP",30,"es");trimAJAXContent("pref",15,B);trimAJAXContent("Uname",15,B);trimAJAXContent("Uname1",25,B);trimAJAXContent("passwordField1",25,B);trimAJAXContent("passwordField",15,B);trimAJAXContent("emailEAME",20,B);trimAJAXContent("retypeemailEAME",20,B);trimAJAXContentForVR("register_text",37,B);trimAJAXContentForVR("verify_text",80,B);trimAJAXContentForVR("sub_text1",47,B);trimAJAXContentForVR("sub_text2",47,B);trimAJAXContentForVR("gray_sub_text1",47,B);trimAJAXContentForVR("gray_sub_text2",47,B);trimAJAXContentForVR("heading_text",40,B);trimAJAXContentForVR("forgot_wizard_text",40,B);trimAJAXContentForVR("forgot_password_text",40,B);trimAJAXContentForVR("customer_text1",25,B);trimAJAXContentForVR("customer_text2",25,B);trimAJAXContentForVR("customer_text3",25,B);trimAJAXContentForVR("customer_text4",25,B);trimAJAXContentForVR("customer_text5",25,B);trimAJAXContentForVR("customer_text6",25,B);trimAJAXContentForVR("customer_text7",25,B);trimAJAXContentForVR("customer_text8",25,B);trimAJAXContentForVR("customer_text9",25,B);trimAJAXContentForVR("customer_text10",25,B);trimAJAXContentForVR("customer_text11",25,B);trimAJAXContentForSmallBiz("subHeading",75,"fr");trimAJAXContent("nonEditCellPhoneNumber",15,B);trimAJAXContent("nonEditPin",15,B);trimAJAXContent("nonEditLearnMore",15,B);trimAJAXContent("editCellPhone8",18,B);trimAJAXContent("editconfirmCellPhone8",18,B);trimAJAXContent("editPin8",18,B);trimAJAXContent("editConfirmPin8",18,B);trimAJAXContent("phoneFormatInfo",125,B);trimAJAXContent("phoneInfo",125,B);trimAJAXContent("pinFormatInfo",125,B);trimAJAXContent("phoneFormatInfo_Enroll",75,B);trimAJAXContent("phoneInfo_Enroll",75,B);trimAJAXContent("pinFormatInfo_Enroll",75,B);trimAJAXContent("cellPhone_txt1",20,B);trimAJAXContent("cellPhone_txt2",20,B);trimAJAXContent("pin1",20,B);trimAJAXContent("pin2",20,B);trimAJAXContent("phoneInfo",20,B);var M=location.href;var N=M.indexOf("navId=");var D=M.substring(N,parseInt(N)+14);var F=D.substr(6,D.length);var E="content";var A="/profile/route";var K="/location/";var G="contentId";var L=/deals/.test(M);var I=M.indexOf("/car-rental");var J=M.substring(0,I);var H=F;var C=H.substring(0,2);if(M.match(E)){if(L==false&&C=="T4"){if(document.getElementById("primarymenu4")){document.getElementById("primarymenu4").className="carservices_over"}}else{if(L==true&&C=="T3"){if(document.getElementById("primarymenu3")){document.getElementById("primarymenu3").className="deals_over"}}}}if(M.match(A)&&document.getElementById("primarymenu4")){document.getElementById("primarymenu4").className="carservices_over"}if(M.match(K)&&document.getElementById("primarymenu2")){document.getElementById("primarymenu2").className="location_over"}}function ActiveNavTab(B){var A=location.href;var F="content";var D="/profile/route";var E="/location/";var C=B.substring(0,2);if(A.match(F)){if(C=="T4"){if(document.getElementById("primarymenu4")){document.getElementById("primarymenu4").className="carservices_over"}}else{if(C=="T3"){if(document.getElementById("primarymenu3")){document.getElementById("primarymenu3").className="deals_over"}}}}if(A.match(D)&&document.getElementById("primarymenu4")){document.getElementById("primarymenu4").className="carservices_over"}if(A.match(E)&&document.getElementById("primarymenu2")){document.getElementById("primarymenu2").className="location_over"}}function headerFunctions(){if(document.getElementById("search_box")){txtFielddisabled1(document.getElementById("search_box"),"searchInputDisabled","searchInputEnabled")}}var defaultSelVal="";function txtFielddisabled1(D,C,B){var A=false;if(D.value==""){D.value=defaultSelVal;D.className=C}D.value==defaultSelVal?A=true:A=false;if(A==true){D.className=C}if(A==false){D.className=B}D.onfocus=function(){if(D.value==defaultSelVal){D.className=B;D.value=""}};D.onblur=function(){if(D.value==""){D.value=defaultSelVal;D.className=C}}};