window.UI_BASE_URL="http://gecko-ui.s3.amazonaws.com";window.MEDIA_BASE_URL="http://media.geckogo.com/";window.JSON=YAHOO.lang.JSON;function goBack(){window.history.go(-1)}function commonInit(){registerEnter(document.searchForm,doMainSearch)}YAHOO.util.Event.onDOMReady(commonInit);function Browser(){var D,E,C;this.isSupported=false;this.isIE=false;this.isNS=false;this.isGecko=false;this.isMacGecko=false;this.isSafari=false;this.isOpera=false;this.version=null;D=navigator.userAgent;E="MSIE";if((C=D.indexOf(E))>=0){this.isIE=true;this.version=parseFloat(D.substr(C+E.length));if(this.version>=6){this.isSupported=true}return }E="Safari/";if((C=D.indexOf(E))>=0){this.isSafari=true;this.version=parseFloat(D.substr(C+E.length));this.isSupported=true;return }E="Opera/";if((C=D.indexOf(E))>=0){this.isOpera=true;this.version=parseFloat(D.substr(C+E.length));this.isSupported=true;return }E="Netscape6/";if((C=D.indexOf(E))>=0){this.isNS=true;this.version=parseFloat(D.substr(C+E.length));return }E="Gecko";if((C=D.indexOf(E))>=0){var B="Firefox/";var A=D.indexOf(B);this.realVersion=parseFloat(D.substr(A+B.length));if(this.version>=1.5){this.isSupported=true}this.isNS=true;this.version=6.1;if(D.indexOf("Mac")>=0){this.isMacGecko=true}this.isGecko=true}}var webBrowser=new Browser();if(webBrowser.isIE){if(webBrowser.version<7){document.write('<link rel="stylesheet" href="http://ui.geckogo.com/ui/styles/browser-ie-v6.css"/>')}else{document.write('<link rel="stylesheet" href="http://ui.geckogo.com/ui/styles/browser-ie.css"/>')}}else{if(webBrowser.isSafari){document.write('<link rel="stylesheet" href="http://ui.geckogo.com/ui/styles/browser-safari.css"/>')}else{document.write('<link rel="stylesheet" href="http://ui.geckogo.com/ui/styles/browser-gecko.css"/>')}}function decode(A){return decodeURIComponent(A).replace(/\+/g," ")}function encode(A){return encodeURIComponent(A).replace(/\+/g," ").replace(/'/g,"%27")}function getElementByTagName(B,C){var A=C.getElementsByTagName(B);if(A.length==0){return""}else{return A[0]}}function getElementText(B,C){if(!C){return""}var A=C.getElementsByTagName(B);if(A.length==0){return""}else{return getText(A[0])}}function getText(A){if(A.firstChild){return A.firstChild.data}else{return""}}function doMainSearch(){var A=document.searchForm.search.value;if(A=="<search>"){A=""}window.location="/Search/?q="+encode(A)}function getRadioValue(B){for(var A=0;A<B.length;A++){if(B[A].checked){return B[A].value}}return""}function renderRadioValue(C,B){for(var A=0;A<B.length;A++){if(B[A].value==C){B[A].checked=true}else{B[A].checked=false}}}function getUserId(){var A=document.getElementById("userId");if(A){return A.value}else{return 0}}function isFbConnect(){return(document.getElementById("fbConnect").value=="true")}var loginPopup;var activeUserCallback=null;function requireActiveUser(B,A){establishActiveUser(function(C){if(C!="cancel"){B()}},A)}function establishActiveUser(F,E,B){activeUserCallback=F;var C=getUserId();if(B||C=="0"||C==""){if(!E){E="Please login or signup!"}var D=document.getElementById("loginRegisterArea");var A=makePopup(D,E);if(A){loginPopup=A}registerEnter(document.loginForm,establishActiveUserLogin);registerEnter(document.registerForm,establishActiveUserSignUp)}else{activeUserCallback("skip")}}function isLoggedIn(){return document.getElementById("headerUsername")}function establishActiveUserSignUp(){signup(document.registerForm,function(){closePopup(loginPopup);activeUserCallback("new")},function(A){return establishActiveUserShowMessage(A)},true)}function signup(C,H,G,B,K){var E=C.firstName.value.trim();var A=C.lastName.value.trim();var J=C.password.value.trim();var F=C.email.value.trim();if(!C.terms.checked){return G("You must agree to the Terms of Service.")}if(!E||E.length<2){return G("Please input your first name. (minimum 2 characters)")}if(!A||A.length<2){return G("Please input your last name. (minimum 2 characters)")}if(!J||J.length<4){return G("Please input your password. (minimum 4 characters)")}if(E.search(/^\w+( \w+|-\w+)?$/)==-1||A.search(/^\w+( \w+)?$/)==-1){return G("Your first or last name may not contain numbers or special characters.")}if(!F){return G("Please input your email.")}if(!isValidEmail(F)){return G("Please input a valid email address.")}var D="event=signup&firstName="+E.capitalize()+"&lastName="+A.capitalize()+"&email="+encode(F)+"&password="+encode(J);if(B){D+="&mode=popup"}if(K){D+="&mode=invite"}if(C.gender){var I=getSelectedCheckboxes(C.gender);if(I){I=I.replace(/,/,"");D+="&gender="+I}}YAHOO.util.Connect.asyncRequest("POST","/Users/",{success:function(M){var L=JSON.parse(M.responseText);if(L.status!="OK"){G(L.status)}else{var N=document.getElementById("userId");if(N){N.value=L.userId}H()}},failure:function(L){G()}},D)}function establishActiveUserLogin(){var B=document.loginForm.email.value;var A=document.loginForm.password.value;login(B,A,function(){closePopup(loginPopup);activeUserCallback("new")},function(C){return establishActiveUserShowMessage(C)})}function login(C,B,D,A,F){if(!C){return A("Please input your email.")}if(!B){return A("Please input your password.")}var E="event=login&email="+encode(C)+"&password="+encode(B);if(F){E+="&mode="+F}YAHOO.util.Connect.asyncRequest("POST","/Users/",{success:function(H){var G=JSON.parse(H.responseText);if(G.status!="OK"){A("Please check your email and password.")}else{var I=$("userId");if(I){I.value=G.userId}D()}},failure:function(G){A()}},E)}function establishActiveUserCancel(){activeUserCallback("cancel");closePopup(loginPopup)}function establishActiveUserShowMessage(A){document.getElementById("loginRegisterMessage").innerHTML=A;document.getElementById("loginRegisterMessage").style.display=""}function showHideArea(A,B){if(typeof (A)=="string"){A=document.getElementById(A)}A.style.display=(B)?"":"none"}function applyCheckboxes(C,F){var C=C.split(/,\s*/);var A=document.form[F];for(var D=0;D<A.length;D++){var E=A[D].value;for(var B=0;B<C.length;B++){if(C[B]==E){A[D].checked=true}}}}function getSelectedCheckboxes(A){var C="";for(var B=0;B<A.length;B++){if(A[B].checked){C+=A[B].value+","}}return C}function delegateCallback(A,B){if(!(B instanceof Function)){B=A[B]}return function(){B.apply(A,arguments)}}function clearFieldDefault(A){if(A.value.match(/Start searching/)){A.value=""}}function getIconNameForType(A,B){if(A==10||A==20){return"destination"}else{if(A==40){return"tip"}else{if(A==60){return"tip"}else{if(A==70){return"blog"}else{if(A==11){if(B==1){return"destination"}else{if(B==10){return"attraction"}else{if(B==14){return"restaurant"}else{if(B==13){return"lodging"}else{if(B==15){return"nightlife"}else{if(B==12){return"transportation"}else{return"activity"}}}}}}}}}}}}function getNameForType(A,B){if(A==10||A==20||B==1){return"destination"}else{if(A==40){return"tip"}else{if(B==10){return"attraction"}else{if(B==14){return"restaurant"}else{if(B==13){return"lodging"}else{if(B==15){return"nightlife"}else{if(B==12){return"transportation"}else{if(B==16){return"tour"}else{if(B==17){return"resource"}}}}}}}}}}function getTagLabelByType(A,B){if(A==40||A==60){return"Type"}else{if(B==10){return"What's There"}else{if(B==14){return"Cuisine"}else{if(B==13){return"Amenities"}else{if(B==15){return"Style"}else{if(B==16){return"Type"}}}}}}}function getANameByType(A){if(A==10){return"an attraction"}else{if(A==14){return"a restaurant"}else{if(A==13){return"a hotel"}else{if(A==15){return"nightlife"}else{alert(A)}}}}}var popups=new Array();var greyWin=null;function makePopup(H,M,C){var K=null;var F=C?"-new":"";if(H.nodeName){K=H;H=H.innerHTML;K.innerHTML=""}for(var D=0;D<popups.length;D++){if(popups[D].title==M){return null}}var J="<div id='popupTitle' class='popup-title"+F+"'>"+M+"</div>";var G="<div class='popup-body"+F+"'>"+H+"</div>";var A=document.createElement("DIV");A.innerHTML=J+G;A.className="popup"+F;document.body.appendChild(A);var O=null;if(!C){O=document.createElement("DIV");O.className="popup-shadow";document.body.appendChild(O);O.style.width=A.offsetWidth+"px";O.style.height=A.offsetHeight+"px"}var E=A.offsetHeight;var I=C?(getViewportWidth()-A.offsetWidth)/2:300;var B=(E>300)?50:100;var L=new Array(I,YAHOO.util.Dom.getDocumentScrollTop(document)+B);YAHOO.util.Dom.setXY(A,L);if(!C){L[0]+=8;L[1]+=8;YAHOO.util.Dom.setXY(O,L)}var N=new YAHOO.util.DD(A);if(!C){N.onDrag=function(){var P=YAHOO.util.Dom.getXY(this.getEl());P[0]+=8;P[1]+=8;YAHOO.util.Dom.setXY(this.shadowDiv,P)};N.setHandleElId("popupTitle")}if(greyWin==null){greyWin=document.createElement("div");document.body.appendChild(greyWin);greyWin.className="grey-backdrop";greyWin.style.width=YAHOO.util.Dom.getDocumentWidth()+"px";greyWin.style.height=YAHOO.util.Dom.getDocumentHeight()+"px";YAHOO.util.Dom.setStyle(greyWin,"opacity",0.6)}greyWin.style.display="block";N.srcDiv=K;N.srcHtml=H;N.shadowDiv=O;N.title=M;N.newStyle=C?true:false;N.setXY=function(P){YAHOO.util.Dom.setXY(this.getEl(),P);if(!this.newStyle){P[0]+=8;P[1]+=8;YAHOO.util.Dom.setXY(this.shadowDiv,P)}};popups.push(N);return N}function closePopup(B){if(!B&&popups.length>0){B=popups[popups.length-1]}if(!B||B.wasClosed){return }B.wasClosed=true;var D=B.getEl();YAHOO.util.Dom.setStyle(D,"display","none");D.parentNode.removeChild(D);var A=null;if(!B.newStyle){A=B.shadowDiv;A.parentNode.removeChild(A)}for(var C=0;C<popups.length;C++){if(popups[C].title==B.title){popups.splice(C,1);break}}if(B.srcDiv&&B.srcHtml){B.srcDiv.innerHTML=B.srcHtml}if(greyWin&&popups.length==0){greyWin.style.display="none"}}function registerEnter(A,B){YAHOO.util.Event.addListener(A,"keypress",function(C){var D=YAHOO.util.Event.getCharCode(C);if(D==13){B()}})}function getChildElements(B){if(typeof (B)=="string"){B=YAHOO.util.Dom.get(B)}if(!B){alert("node not found");return }var A=YAHOO.util.Dom.getChildrenBy(B,function(C){return(C&&C.nodeType==1)});return A}function removeNode(A){A.parentNode.removeChild(A)}Array.prototype.indexOf=function(B){for(var A=0;A<this.length;A++){if(this[A]==B){return A}}return -1};Array.prototype.shuffle=function(){var A;var C;for(var B=0;B!=this.length;B++){C=Math.floor(Math.random()*this.length);A=this[B];this[B]=this[C];this[C]=A}};String.prototype.trim=function(){return this.replace(/^\s*([\S\s]*)\b\s*$/,"$1")};String.prototype.stripHtml=function(){if(this.length==0){return this}var A=this.replace(/<BR>/g,"@BREAK@");A=A.replace(/<.*?>/g,"");A=A.replace(/@BREAK@/g,"<BR>");A=A.replace(/&nbsp;/g," ");A=A.replace(/&.*?;/g,"");return A};String.prototype.trimSize=function(G){if(this.length<=G){return this}G--;var F=this.substring(0,G);var C=F.lastIndexOf(" ");if(C>G*2/3){F=F.substring(0,C)}var E=F.toLowerCase();for(var C=0;C<this.SUPPORTED_HTML_TAG_PAIRS;C++){var A=this.SUPPORTED_HTML_TAG_PAIRS[C];var B=E.lastIndexOf("<"+A);var D=E.lastIndexOf("</"+A);if(B>D){F+="</"+A+">"}}return F+"..."};String.SUPPORTED_HTML_TAG_PAIRS=["b","i","a","li","ul"];function prepareText(A,B){if(!A){return A}var A=A.stripHtml();if(B){return A.trimSize(B)}else{return A}}function isValidEmail(A){return A.isValidEmail()}function scrollToTop(){window.top.scrollTo(0,0)}function Basket(){}Basket.toggle=function(){if(Basket.isOpen){Basket.close()}else{Basket.open()}};Basket.open=function(){if(Basket.popup){return }if(Basket.elem){Basket.popup=makePopup(Basket.elem,"My Travel Pack");var A=YAHOO.util.Dom.getXY("basketLink");A[0]-=Basket.popup.getEl().offsetWidth-30;A[1]+=20;Basket.popup.setXY(A)}else{Basket.elem=document.createElement("div");document.body.appendChild(Basket.elem);Basket.elem.style.display="none";Basket.loadPlans()}};Basket.clear=function(){if(Basket.elem){Basket.elem.parentNode.removeChild(Basket.elem);Basket.elem=null}};Basket.close=function(){closePopup(Basket.popup);Basket.popup=null};Basket.loadPlans=function(){var A="/Planner?event=getBasket";YAHOO.util.Connect.asyncRequest("GET",A,{success:function(B){Basket.makeBasket(B)},failure:function(B){}})};Basket.makeBasket=function(H){var N=H.responseXML;var K="<div class='basket'><div class='basket-body'>";var M=N.getElementsByTagName("place");if(M.length==0){K+="To start planning your trip, visit our travel guides and clip items that are interesting."}else{var I=null;for(var J=0;J<M.length;J++){var F=M[J].getAttribute("country");if(F!=I){I=F;K+="<div class='basket-country'>"+F+"</div>"}var C=M[J].getAttribute("name");var D=M[J].getAttribute("id");K+="<div class='basket-group'>";K+="<div class='basket-place'><a href='/Guides?guide="+D+"'>"+C+"</a></div>";var E=M[J].getElementsByTagName("plan");for(var G=0;G<E.length;G++){var C=E[G].getAttribute("name");var L=E[G].getAttribute("type");var B=E[G].getAttribute("url");var A="http://ui.geckogo.com/ui/media/"+getIconNameForType(11,L)+".png";K+="<div class='basket-listing'>";K+="<div class='basket-photo'><img src='"+A+"' class='icon'></div>";K+="<div class='basket-info'><a href='"+B+"'>"+C+"</a></div>";K+="</div>"}K+="</div>"}}K+="</div><div class='basket-footer'><a href='#' onclick='Basket.close();return false'>Close</a></div></div>";Basket.elem.innerHTML=K;Basket.open()};function setCookie(B,D,A,F,C,E){document.cookie=B+"="+encode(D)+((A)?"; expires="+A.toGMTString():"")+((F)?"; path="+F:"")+((C)?"; domain="+C:"")+((E)?"; secure":"")}function getCookie(C){var B=document.cookie;var E=C+"=";var D=B.indexOf("; "+E);if(D==-1){D=B.indexOf(E);if(D!=0){return null}}else{D+=2}var A=document.cookie.indexOf(";",D);if(A==-1){A=B.length}return decode(B.substring(D+E.length,A))}function deleteCookie(A,C,B){if(getCookie(A)){document.cookie=A+"="+((C)?"; path="+C:"")+((B)?"; domain="+B:"")+"; expires=Thu, 01-Jan-70 00:00:01 GMT"}}function getSessionParams(){return""}function syncRequest(D,A,C){var B=YAHOO.util.Connect.createXhrObject("xa").conn;B.open(D,A,false);B.setRequestHeader("Content-Type","application/x-www-form-urlencoded");B.send(C)}function addOnload(A){YAHOO.util.Event.onDOMReady(function(){try{A()}catch(B){logError(B.name+":"+B.message,window.location,B.lineNumber)}})}function getTestCase(B){var A=Math.round(Math.random()*B.length);return new Array(A,B[A])}function logAction(E,A,B,C){var D="t="+E+"&m="+encode(A);if(C){D+="&d="+encode(C)}if(B){syncRequest("POST","/services/Logger",D)}else{YAHOO.util.Connect.asyncRequest("POST","/services/Logger",{},D)}}function removeAction(E,A,B,C){var D="t="+E+"&m="+encode(A);if(C){D+="&d="+encode(C)}D+="&remove=true";if(B){syncRequest("POST","/services/Logger",D)}else{YAHOO.util.Connect.asyncRequest("POST","/services/Logger",{},D)}}function logError(D,B,A){var C="msg="+encode(D)+"&url="+encode(B)+"&line="+A}window.onerror=logError;String.prototype.capitalizeLine=function(){if(this.length<=1){return this}else{return this.charAt(0).toUpperCase()+this.substr(1)}};function getDateString(){var A=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");var B=new Date();return A[parseInt(B.getMonth())]+" "+B.getDate()+", "+B.getFullYear()}function navLink(A){window.top.location=A}String.prototype.capitalize=function(){var A=this;A=A.replace(/[^ -]+/g,function(B){for(var C in String.noncapWords){if(B==String.noncapWords[C]){return B}}return B.charAt(0).toUpperCase()+B.substr(1).toLowerCase()});if(A.charAt(0).match(/[a-z]/)){A=A.charAt(0).toUpperCase()+A.substr(1)}return A};String.prototype.isValidEmail=function(){var A=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;return this.match(A)};function disableSelection(A){A.onselectstart=function(){return false};A.unselectable="on";A.style.MozUserSelect="none";A.style.cursor="default"}function renderMessage(B){var A=document.getElementById("error");if(A){A.innerHTML=B;A.style.display="";window.scrollTo(0,0)}else{alert(B)}}function hideMessage(){document.getElementById("error").style.display="none"}var spinnerAreas=[];function startSpinner(B,C){if(!C){C="Please wait..."}if(typeof (B)=="string"){B=document.getElementById(B)}var A=document.createElement("div");B.parentNode.insertBefore(A,B);A.innerHTML="<img src='http://ui.geckogo.com/ui/media/spinner.gif'>&nbsp;&nbsp;<span style='font-weight:bold;position:relative;bottom:13px'>"+C+"</span>";B.style.display="none";spinnerAreas.push(B)}function endSpinner(){while(spinnerAreas.length>0){var A=spinnerAreas.pop();A.previousSibling.style.display="none";A.style.display=""}}function escapeQuote(A){if(!A){return""}A=A.replace(/"/g,"&quot;");return A.replace(/'/g,"&#39;")}var importedScripts={};function requireJS(A){if(!importedScripts[A]){importJS(A);importedScripts[A]=true}}function importJS(B){var A=document.createElement("script");A.setAttribute("src",B);A.setAttribute("type","text/javascript");document.getElementsByTagName("head")[0].appendChild(A)}function waitFor(A,B){if(!A){A=waitingFor.name;B=waitingFor.callback;alert(B)}if(window[A]){setTimeout(B,100)}else{waitingFor={name:A,callback:B};setTimeout(waitFor,10)}}function doReload(){var B=window.location+"";if(B.indexOf("#")>0){B=B.substring(0,B.indexOf("#"))}var A=Math.round(Math.random()*1000);if(B.indexOf("?")<0){B=B+"?n="+A}else{B=B+"&n="+A}window.location=B}function reportAjaxFailure(){}if(!Array.indexOf){Array.prototype.indexOf=function(B){for(var A=0;A<this.length;A++){if(this[A]==B){return A}}return -1}}function getViewportWidth(){return YAHOO.util.Dom.getViewportWidth()}function getViewportHeight(){return YAHOO.util.Dom.getViewportHeight()}function initFB(){FB.init({appId:fbApiKey,status:true,cookie:true})}var fbReady=false;function startFB(C){window.fbAsyncInit=function(){initFB();fbReady=true;if(C){C()}};var A=document.createElement("div");A.id="fb-root";document.body.appendChild(A);var B=document.createElement("script");B.async=true;B.src=document.location.protocol+"//connect.facebook.net/en_US/all.js";A.appendChild(B)}function fbLogin(B){var A={};if(webBrowser.isIE&&webBrowser.version<7){}else{A.perms="email"}FB.login(function(C){if(C.session){B(C.session.uid)}},A)}var fbcNames=["expires","session_key","ss","user"];function afterFbLoginInline(){window.fbInlineLogin="inline";afterFbLogin()}function afterFbLogin(A){getUserInfo(A,fbConnect)}function getFriends(A){FB.api("/friends?fields=id,name,picture",A)}function getUserInfo(A,B){FB.api("/me",B)}function fbConnect(A){var B="event=fbConnect";B+="&uid="+encode(A.id);B+="&firstName="+encode(A.first_name);B+="&lastName="+encode(A.last_name);B+="&email="+encode(A.email);if(document.form&&document.form.merge&&document.form.merge.value=="true"){B+="&merge=true"}YAHOO.util.Connect.asyncRequest("GET","/Users/?"+B,{success:function(D){if(window.fbInlineLogin){closePopup(loginPopup);activeUserCallback("new")}else{var C=D.responseText;if(getNextUrl()){window.location=getNextUrl()}else{window.location="/MyProfile/"}}}})}function getNextUrl(){if(window.location.search.match(/next=(.*)/)){var A="http://"+window.location.host;return A+decode(RegExp.$1)}else{return null}}function $(A){return document.getElementById(A)}function getActiveUserId(){return document.forms.userForm.userId.value}function hasUserPriv(){return(document.forms.userForm.userType.value=="true")}function publishFeed(K,H,D,L,C,I,G,A,J,B){var F={};F.title=K;F.body=H;F.actionText=G;F.actionLink=A;if(J){var E={};E.src=J;E.href=B;F.images=[];F.images.push(E)}if(I){I={value:I}}FB_RequireFeatures(["Integration"],function(){FB.Facebook.init(fbApiKey,"xd-receiver.html",null);FB.Integration.showFeedDialog(fbFeedTplId,F,null,D,null,false,L,C,I)})}function fbInvite(){FB_RequireFeatures(["XFBML"],function(){FB.Facebook.init(fbApiKey,"xd-receiver.html",null);var B='<fb:request-form action="<url>" method="POST" invite="true" type="Contest" content="Enter to win a trip for 2 to the Galapagos Islands worth $12,000!  <fb:req-choice url=\'url\' label=\'Enter now\' />  " >  <fb:multi-friend-selector rows="3" cols="3" showborder="false" email_invite="true" actiontext="Share this contest with your friends">  </fb:request-form> ';var A=new FB.UI.FBMLPopupDialog("Share This Contest With Your Friends",B);A.setFBMLContent(B);A.setContentWidth(630);A.setContentHeight(560);A.show()})}var planGuide=null;var planItemName=null;var planElem=null;function clipItem(C,A,B){addPlan(C,null,A,B)}function addPlan(D,C,A,B){planType=B||"guide";planId=D;planItemName=A;planElem=C;Basket.clear();establishActiveUser(addPlanNow)}function addPlanNow(B){if(B!="cancel"){var C=planId||document.form.guide.value;var A="/Planner/?event=addPlan&";A+=planType+"="+C;YAHOO.util.Connect.asyncRequest("GET",A,{success:function(E){if(planElem){planElem.innerHTML="Saved!"}else{var F=(planItemName)?planItemName+" has been added to  <a href='http://www.geckogo.com/MyProfile/?event=clipped'>your wishlist</a>!":"Saved to <a href='http://www.geckogo.com/MyProfile/?event=clipped'>your wishlist</a>!";F+="<BR><BR><button type='button' onclick='closePopup()'>Close</button>";var D=makePopup(F,"Item has been clipped...");setTimeout(function(){closePopup(D)},5000)}}})}}function makeFixed(C,A,B){if(webBrowser.isIE){YAHOO.util.Event.addListener(window,"scroll",function(){YAHOO.util.Dom.setX(C,YAHOO.util.Dom.getDocumentScrollLeft()+A);YAHOO.util.Dom.setY(C,YAHOO.util.Dom.getDocumentScrollTop()+B)})}else{C.style.position="fixed";C.style.left=A+"px";C.style.top=B+"px"}}addOnload(function(){if(webBrowser.isIE&&webBrowser.version<7){var A=document.getElementsByTagName("BODY")[0];A.className=A.className+" ie6";var C=YAHOO.util.Dom.getElementsByClassName("tab");for(var B=0;B<C.length;B++){C[B].className="tab-ie6"}}});function prepMhl(){var A=YAHOO.util.Dom.getElementsByClassName("mhl","span");for(var B=0;B<A.length;B++){YAHOO.util.Event.addListener(A[B],"click",function(){if(this.className.match(/mhl (.*)/)){window.location=RegExp.$1.replace(/_/g,"/")}})}}function prepNav(){if(!$("navArea")){return }var D=YAHOO.util.Dom.getElementsBy(function(){return true},"a",$("navArea"));var A=$("subNavArea");if(A){var C=YAHOO.util.Dom.getElementsBy(function(){return true},"a",A);D=D.concat(C)}for(var B=0;B<D.length;B++){YAHOO.util.Event.addListener(D[B].parentNode.parentNode,"click",function(E){YAHOO.util.Event.preventDefault(E);window.location=this.firstChild.firstChild.href})}}function openNewWindow(A){if(webBrowser.isGecko){window.location=A}else{var B=Math.floor(Math.random()*10000);window.open(A,"window"+B)}}addOnload(prepNav);SHORT_MONTHS=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function getFirstElementByClassName(B,C){var A=YAHOO.util.Dom.getElementsByClassName(B,null,C);if(A!=null){return A[0]}else{return null}}function showPrompt(B,A){if(!A){A=B;B="Notice"}A+="<br><br><div><button type='button' onclick='closePopup()'>Close</button></div>";makePopup(A,B)}function selectField(A){A.select()}function doBooking(A,C){var B=(document.form.guideName)?document.form.guideName.value:document.form.name.value;logAction("booking-check",C,true,B);openNewWindow(A)};
