var tsd;var tempPos;function chkForNavId(A){menuHighLight(A);ActiveNavTab(A)}function menuHighLight(E){var H=document.getElementsByTagName("A");var D=$A(H);var F=document.location.toString();var K=F.split("?");var L=$$("div.left_Navigation");var B=L[0].getElementsByTagName("A");var J=$A(B);for(i=0;i<J.length;i++){var C=J[i].toString();if(C.indexOf(E)!=-1){if(J[i].id=="nonExpander"){J[i].className="lft_Nav_sel2"}else{if(J[i].id=="expander"){var N=$(J[i]).ancestors();for(j=0;j<N.length;j++){var A=N[j].innerHTML;if(A.substring(1,2)=="A"||A.substring(1,2)=="a"){var M=N[j].getElementsByTagName("A");if(M[0].length){M[0][0].className="lft_Nav_sel"}else{M[0].className="lft_Nav_sel"}}}}}}}var G=E.substring(E.indexOf("M"),E.indexOf("M")+3);if($(G)){var I=$(G).ancestors();for(i=0;i<I.length;i++){if(I[i].id){if(I[i].tagName=="DIV"){I[i].style.display="block"}}}$(G).show();var B=$(G).getElementsByTagName("A");for(i=0;i<B.length;i++){var C=B[i].toString();if(C.indexOf(E)!=-1){B[i].className="left_Navigation2_selected";var N=$(B[i]).ancestors();for(j=1;j<N.length;j++){var A=N[j].innerHTML;if(A.substring(1,2)=="A"||A.substring(1,2)=="a"){var M=N[j].getElementsByTagName("A");if(M[0].length){M[0][0].className="lft_Nav_sel"}else{M[0].className="lft_Nav_sel"}}}}}}}function toReduceFontSize(){var A=document.forms;for(i=0;i<A.length;i++){var B=A[i].elements;for(j=0;j<B.length;j++){if(B[j].type=="text"||B[j].type=="password"){B[j].className="txtSize"}}}var C=document.getElementsByTagName("INPUT");for(i=0;i<C.length;i++){if(C[i].type=="text"||C[i].type=="password"){C[i].className="txtSize"}}}function loadInitFunctions(){showsApShuttleInfo();domPopup();showHideFindLoc();showHideMapAdd();showHideClarify();showHideMapAnAdd();showHideTurnByTurn();showHidesmallBigMaps();showHidesmallBigRouteMaps();showChngTopic(document.getElementById("policiesTopic"),"policyQues");showChngTopic(document.getElementById("policiesFaq"),"policyDesc")}if(window.addEventListener){window.addEventListener("load",loadInitFunctions,true)}if(window.attachEvent){window.attachEvent("onload",loadInitFunctions)}function ShowHideAWD(){var D=$("AWD");var B=$$("div#AWDtitle img");var A=new Array("../../images/arrow_downgray.gif","../../images/arrow.gif");var E=$("Edit");var C=$("AWDEdit");if((D.style.display=="none")&&(C.style.display=="")){B[0].src=A[1];E.hide();D.hide()}else{if(D.style.display=="none"){B[0].src=A[0];E.show();D.show()}else{if(D.style.display==""){B[0].src=A[1];E.hide();D.hide()}}}C.hide()}function editAwd(){var C=$("Edit");var A=$("AWD");var B=$("AWDEdit");C.hide();A.hide();B.show()}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("|");openWin(E[0],E[1],"width="+E[2]+", height="+E[3]+", resizable=no, toolbar=no, location=no, status=no, menubar=no, scrollbars=yes")}}}}function openWin(C,A,B){window.open(C,A,B)}function showHideCarDiv(D,E,C,B){var A=$(E).getElementsByTagName("Table");$(D).innerHTML==C?$(D).innerHTML=B:$(D).innerHTML=C;if(A[2].className=="imgNone"){A[2].className="imgDisplay";$(E).removeClassName("carGuide_bg");$(E).removeClassName("abtres_FntClr");$(E).addClassName("carGuide_bgExpand");$(E).addClassName("carClass_fontSize")}else{if(A[2].className=="imgDisplay"){A[2].className="imgNone";$(E).removeClassName("carGuide_bgExpand");$(E).removeClassName("carClass_fontSize");$(E).addClassName("carGuide_bg");$(E).addClassName("abtres_FntClr")}}}function showHideRentalDiv(D,E,C,B){var A=$(E).getElementsByTagName("Table");$(D).innerHTML==C?$(D).innerHTML=B:$(D).innerHTML=C;if(A[2].className=="imgNone"){A[2].className="imgDisplay";$(E).removeClassName("rentalInfo_bg");$(E).removeClassName("abtres_FntClr");$(E).addClassName("carGuide_bgExpand");$(E).addClassName("carClass_fontSize")}else{if(A[2].className=="imgDisplay"){A[2].className="imgNone";$(E).removeClassName("carGuide_bgExpand");$(E).removeClassName("carClass_fontSize");$(E).addClassName("rentalInfo_bg");$(E).addClassName("abtres_FntClr")}}}function showChngTopic(B,A){$(A).className="imgDisplay"}function showDesc(A,B){$(B).className="imgDisplay"}function showHideFindLoc(){getUrl=document.location.toString();if($("searchbyAdd")){var A=$("searchbyAdd");var B=$("searchbyAp");if(getUrl.indexOf("?SEARCHBY=City")!=-1){A.hide();B.show();$("searchbyApTxt").addClassName("nonClicklink");$("searchbyAddTxt").removeClassName("nonClicklink")}else{if(getUrl.indexOf("?SEARCHBY=City")==-1){A.show();B.hide();$("searchbyAddTxt").addClassName("nonClicklink");$("searchbyApTxt").removeClassName("nonClicklink")}}}}function showHideLocDiv(C,A,D,B){showHideFindLocDiv(C,A,D,B)}function showHideFindLocDiv(C,A,D,B){$(C).show();$(A).addClassName("nonClicklink");$(D).hide();if($(B)){$(B).removeClassName("nonClicklink")}}function showHideMapAdd(){var B=document.location.toString();if($("searchMapByAC")){var A=$("searchMapByAC");var C=$("searchMapByDD");if(B.indexOf("directions.ac")!=-1||B.indexOf("dirstartclarify.ac")!=-1||B.indexOf("direndclarify.ac")!=-1||B.indexOf("?option=drivingdirections")!=-1||B.indexOf("dirpickup.ac")!=-1||B.indexOf("dirdropoff.ac")!=-1||B.indexOf("dirdetails.ac")!=-1||B.indexOf("dirmapaddress.ac")!=-1){A.hide();C.show();$("searchMapByDDTxt").addClassName("nonClicklink");$("searchMapByACTxt").removeClassName("nonClicklink")}else{A.show();C.hide();$("searchMapByACTxt").addClassName("nonClicklink");$("searchMapByDDTxt").removeClassName("nonClicklink")}}}function showHideClarify(){var B=document.location.toString();if($("reviseSearchMapByAC")){var A=$("reviseSearchMapByAC");var C=$("reviseSearchMapByDD");if(B.indexOf("directions.ac")==-1&&B.indexOf("dirstartclarify.ac")==-1&&B.indexOf("direndclarify.ac")==-1&&B.indexOf("dirpickup.ac")==-1&&B.indexOf("dirdropoff.ac")==-1&&B.indexOf("dirdetails.ac")==-1&&B.indexOf("dirmapaddress.ac")==-1){A.show();C.hide()}else{A.hide();C.show()}}}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}function showHideMapAnAdd(){var B=document.location.toString();if($("showFields")){var A=$("showFields");var C=$("modifySearch");if(B.indexOf("?landingaction=getForm")!=-1){A.hide();C.show()}else{A.show();C.hide()}}}function showHideTurnByTurn(){var B=document.location.toString();if($("reviseSearch")){var C=$("showData");var A=$("reviseSearch");if(B.indexOf("?action=getTurnByTurnForm")==-1){C.show();A.hide()}else{C.hide();A.show()}}}function hideAllShuttleInfo(){var C=document.getElementsByTagName("DIV");for(i=0;i<C.length;i++){if(C[i].id){var B=C[i].id;if(B.indexOf("apShuttleInfo")!=-1){var A=$(B).className.match(/apstlInfo /);$(B).className=A+" imgNone"}}}}function updateText(){var A=document.getElementsByTagName("A");for(i=0;i<A.length;i++){if(A[i].id&&A[i].id.indexOf("aptxt")!=-1){$(A[i].id).update("See Airport Map");$(A[i].id).removeClassName("nonClicklink")}}}function showsApShuttleInfo(){var A=document.getElementsByTagName("A");for(j=1;j<A.length;j++){if(A[j].id.indexOf("aptxt")!=-1){A[j].onclick=function(){hideAllShuttleInfo();var D=this.id.substring(5,this.id.length);var C=$("apShuttleInfo"+D).className.match(/apstlInfo /);$("apShuttleInfo"+D).className=C+" imgDisplay";document.getElementById("apShuttleInfo"+D).style.top=xstooltip_findPosY(this)+-4+"px";var B=$("iftxt").className.match(/PopMapiFrame /);$("iftxt").className=B+" imgDisplay"}}if(A[j].id.indexOf("closeAPinfo")!=-1||A[j].id.indexOf("clsImgAPinf")!=-1){A[j].onclick=function(){var D=this.id.substring(11,this.id.length);var C=$("apShuttleInfo"+D).className.match(/apstlInfo /);$("apShuttleInfo"+D).className=C+" imgNone";var B=$("iftxt").className.match(/PopMapiFrame /);$("iftxt").className=B+" imgNone"}}}}function hideAllttDirMaps(){var B=$("tblDirections");if($("tblDirections")){var A=B.getElementsByTagName("TR");for(i=0;i<A.length;i++){if(A[i].id){var C=A[i].id;if(C.indexOf("ttDirectionsMap")!=-1){$(C).hide()}}}}}function showHidettDirMaps(F,E){var H=document.getElementById("tblDirections");if(document.getElementById("tblDirections")){var G=H.getElementsByTagName("A");for(j=0;j<G.length;j++){if(G[j].id.indexOf("ttDirectionsMapTxt")!=-1){G[j].onclick=function(){var B=this.id.substring(18,this.id.length);var A=document.getElementById("ttDirectionsMap"+B);if(A.style.display=="none"){$("ttDirectionsMapTxt"+B).update(E);$("ttDirectionsMapTxt"+B).title=E;$("ttDirectionsMap"+B).show();var C=$("ttDirectionsMap"+B).getElementsByTagName("TD");C[1].innerHTML='<div id="'+B+'" style="WIDTH:300px; HEIGHT:150px" />';if(B==-1){showManEndMap(B)}else{showManMap(B)}}else{if(A.style.display==""){$("ttDirectionsMapTxt"+B).update(F);$("ttDirectionsMapTxt"+B).title=F;$("ttDirectionsMap"+B).hide();var C=$("ttDirectionsMap"+B).getElementsByTagName("TD");C[1].innerHTML="&nbsp;"}}return false}}}}}function showHidesmallBigMaps(){if($("locationMap")){var A=$("smallMapTxt");var B=$("bigMapTxt");B.onclick=function(){A.removeClassName("mapnonlink");B.addClassName("mapnonlink");$("smallBigMap").addClassName("wideMap");document.getElementById("smallBigMap").innerHTML='<iframe frameborder="1" class="wideMapiFrame" title="iframeMaps"></iframe><div id="mapWindow" style="position:relative;WIDTH:700px; HEIGHT:427px"></div>';startMap(latArr,lonArr,locNameArr,locAddress1,locAddress2,cityArr,stateCodeArr,zipCodeArr,countryCodeArr,phoneNumberArr,stationHoursArr,size,pageNumber,pageSize,locationCodeArr,pulClosedArr,dolClosedArr,flowPath,pickUpLocationVerified,sameAsDropOff,searchBy,mapServiceDown,soldOut,pageType,locClosedBoth,locClosedPickup,locClosedDropoff,selectLocation,makeReservation,resSize)};A.onclick=function(){B.removeClassName("mapnonlink");A.addClassName("mapnonlink");$("smallBigMap").removeClassName("wideMap");document.getElementById("smallBigMap").innerHTML='<div id="mapWindow" style="position:relative;WIDTH:350px; HEIGHT:427px"></div>';startMap(latArr,lonArr,locNameArr,locAddress1,locAddress2,cityArr,stateCodeArr,zipCodeArr,countryCodeArr,phoneNumberArr,stationHoursArr,size,pageNumber,pageSize,locationCodeArr,pulClosedArr,dolClosedArr,flowPath,pickUpLocationVerified,sameAsDropOff,searchBy,mapServiceDown,soldOut,pageType,locClosedBoth,locClosedPickup,locClosedDropoff,selectLocation,makeReservation,resSize)}}}function showHidesmallBigRouteMaps(){if($("routeMap")){var A=$("smallMapTxt");var B=$("bigMapTxt");B.onclick=function(){A.removeClassName("mapnonlink");B.addClassName("mapnonlink");$("smallBigMap").addClassName("wideMap");document.getElementById("smallBigMap").innerHTML='<iframe frameborder="1" class="wideMapiFrame" title="iframeMaps"></iframe><div id="mapWindow" style="position:relative;WIDTH:700px; HEIGHT:427px"></div>';startRouteMap(latArr,lonArr,locAddress,cityArr,stateCodeArr,zipCodeArr,countryCodeArr,sessionID)};A.onclick=function(){B.removeClassName("mapnonlink");A.addClassName("mapnonlink");$("smallBigMap").removeClassName("wideMap");document.getElementById("smallBigMap").innerHTML='<div id="mapWindow" style="position:relative;WIDTH:350px; HEIGHT:427px"></div>';startRouteMap(latArr,lonArr,locAddress,cityArr,stateCodeArr,zipCodeArr,countryCodeArr,sessionID)}}}function getJSONObj(A){new Ajax.Request(A,{requestHeaders:{Accept:"application/json"},onSuccess:ajaxSuccess,onFailure:function(B){alert("Admin the content has failed")}})}function showChngTopic(B,A){if(B){B.value!=""?$(A).className="imgDisplay":$(A).className="imgNone"}}function chkSelected(D){if(D==null||D==""){var E=document.getElementById("topicSelect");var C=E.options.length;for(i=0;i<=C;i++){E.remove(0)}var A=document.createElement("option");A.text="Please Select";A.value="";try{E.add(A,0)}catch(B){E.add(A)}document.getElementById("policyQues").style.display="none";document.getElementById("policyDesc").style.display="none"}else{document.getElementById("faq").submit()}}function splitUnit(C){if(C&&(lengths=C.search(/px/))){var B="px";var A=C.substr(0,lengths)}else{if(C&&(lengths=C.search(/em/))){var B="em";var A=C.substr(0,lengths)}else{return false}}return new Array(A,B)}function receiveMessageResponse(E,D,A,B){var G=$(E);G.style.display="";createErrorBlock("Processing...",G);var F="POST";var C=null;if(A==null){F="GET"}else{C=$(A).serialize(true)}new Ajax.Request(D,{method:F,parameters:C,message_id:E,onSuccess:function(K){if(K.responseText.indexOf("<table")==-1){createErrorBlock(K.responseText,G);hideThisDiv($(B).id)}else{G.innerHTML="<div>"+K.responseText+"</div>"}var H=G.getHeight();for(i=1;i<=3;i++){var I=$("btnDivPopUp"+i);var J="btnDivPopUp"+i;if(I.className.indexOf("imgDisplay")!=-1){if(document.getElementById("message_center").innerHTML!=""){if(i==1){document.getElementById(I.id).style.top=168+parseInt(H)+"px"}else{if(i==2){document.getElementById(I.id).style.top=250+parseInt(H)+"px"}else{if(i==3){document.getElementById(I.id).style.top=285+parseInt(H)+"px"}else{}}}}}}},onFailure:function(){createErrorBlock("Your request failed, please try again",G);var H=G.getHeight();for(i=1;i<=3;i++){var I=$("btnDivPopUp"+i);if(I.className.indexOf("imgDisplay")!=-1){document.getElementById(I.id).style.top=parseInt(splitUnit(document.getElementById(I.id).style.top)[0])+parseInt(H)+"px"}}}})}function createErrorBlock(B,A){B='<table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td width="6"><img alt="" src="../images/global/en/common/excep_cor1.gif" width="6" height="5" /></td><td class="excep_top"><img src="../images/global/en/common/excep_top.gif" alt="" /></td><td width="6"><img alt="" src="../images/global/en/common/excep_cor2.gif" width="6" height="5" /></td></tr><tr><td class="excep_rt"><img src="../images/global/en/common/excep_rt.gif" alt="" /></td><td class="exception_msg">'+B+'</td><td class="excep_left"><img src="../images/global/en/common/excep_left.gif" alt="" /></td></tr><tr><td width="6"><img alt="" src="../images/global/en/common/excep_cor4.gif" width="6" height="5" /></td><td class="excep_botm"><img src="../images/global/en/common/excep_botm.gif" alt="" /></td><td width="6"><img alt="" src="../images/global/en/common/excep_cor3.gif" width="6" height="5" /></td></tr></table><br/>';$(A).innerHTML=B}function hideThisDiv(A){alert("div : "+A);if(document.getElementById(A).className.match(/(\S+) /)){document.getElementById(A).className=document.getElementById(A).className.match(/(\S+) /)[0]+"imgNone"}else{document.getElementById(A).className="imgNone"}};