function loginBoxFocusIn(a){if(document.getElementById(a).value=="Email ID"){document.getElementById(a).value=""}}function loginBoxFocusOut(a){if(document.getElementById(a).value==""){document.getElementById(a).value="Email ID"}}function passBoxFocusIn(a){document.getElementById("PasswordText").style.display="none"}function passBoxFocusOut(a){if(document.getElementById(a).value==""){document.getElementById(a).value="";document.getElementById("PasswordText").style.display="block"}else{document.getElementById("PasswordText").style.display="none"}}function validateLoginEmailID(a,b){b.IsValid=(!(b.Value=="Email ID"))}function validateLoginPass(a,b){b.IsValid=(!(b.Value==""))}function ShowMoreLinks(){document.getElementById("more").style.visibility="visible";document.getElementById("more").style.display="block"}function HideMoreLinks(){document.getElementById("more").style.visibility="hidden";document.getElementById("more").style.display="none"}function ShowHideHelp(e,d,c,a,b){if(document.getElementById("divHelpContainer").style.display=="none"){if(!b){SetHelpDivText(e,d,c,a)}document.getElementById("divHelpContainer").style.visibility="visible";document.getElementById("divHelpContainer").style.display="block";document.getElementById("imgHelp").src=e+"/images/questionMark_close.gif"}else{document.getElementById("divHelpContainer").style.visibility="hidden";document.getElementById("divHelpContainer").style.display="none";document.getElementById("imgHelp").src=e+"/images/questionMark.gif"}}function SetHelpDivText(e,d,c,a){var b='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="'+c+'" height="'+a+'"><param name="movie" value="'+e+"/images/"+d+'" /><param name="quality" value="high" /><embed src="'+e+"/images/"+d+'" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="'+c+'" height="'+a+'"></embed></object>';document.getElementById("divHelpContainer").innerHTML=b}var isIE=(navigator.appVersion.indexOf("MSIE")!=-1)?true:false;var isWin=(navigator.appVersion.toLowerCase().indexOf("win")!=-1)?true:false;var isOpera=(navigator.userAgent.indexOf("Opera")!=-1)?true:false;function ControlVersion(){var e;var d;var f;try{d=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");e=d.GetVariable("$version")}catch(f){}if(!e){try{d=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");e="WIN 6,0,21,0";d.AllowScriptAccess="always";e=d.GetVariable("$version")}catch(f){}}if(!e){try{d=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");e=d.GetVariable("$version")}catch(f){}}if(!e){try{d=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");e="WIN 3,0,18,0"}catch(f){}}if(!e){try{d=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");e="WIN 2,0,0,11"}catch(f){e=-1}}return e}function GetSwfVer(){var n=-1;if(navigator.plugins!=null&&navigator.plugins.length>0){if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){var o=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";var l=navigator.plugins["Shockwave Flash"+o].description;var p=l.split(" ");var r=p[2].split(".");var m=r[0];var i=r[1];var q=p[3];if(q==""){q=p[4]}if(q[0]=="d"){q=q.substring(1)}else{if(q[0]=="r"){q=q.substring(1);if(q.indexOf("d")>0){q=q.substring(0,q.indexOf("d"))}}}var n=m+"."+i+"."+q}}else{if(navigator.userAgent.toLowerCase().indexOf("webtv/2.6")!=-1){n=4}else{if(navigator.userAgent.toLowerCase().indexOf("webtv/2.5")!=-1){n=3}else{if(navigator.userAgent.toLowerCase().indexOf("webtv")!=-1){n=2}else{if(isIE&&isWin&&!isOpera){n=ControlVersion()}}}}}return n}function DetectFlashVer(i,m,n){versionStr=GetSwfVer();if(versionStr==-1){return false}else{if(versionStr!=0){if(isIE&&isWin&&!isOpera){tempArray=versionStr.split(" ");tempString=tempArray[1];versionArray=tempString.split(",")}else{versionArray=versionStr.split(".")}var l=versionArray[0];var h=versionArray[1];var g=versionArray[2];if(l>parseFloat(i)){return true}else{if(l==parseFloat(i)){if(h>parseFloat(m)){return true}else{if(h==parseFloat(m)){if(g>=parseFloat(n)){return true}}}}}return false}}}function AC_AddExtension(c,d){if(c.indexOf("?")!=-1){return c.replace(/\?/,d+"?")}else{return c+d}}function AC_Generateobj(h,i,g){var l="";if(isIE&&isWin&&!isOpera){l+="<object ";for(var f in h){l+=f+'="'+h[f]+'" '}l+=">";for(var f in i){l+='<param name="'+f+'" value="'+i[f]+'" /> '}l+="</object>"}else{l+="<embed ";for(var f in g){l+=f+'="'+g[f]+'" '}l+="> </embed>"}document.write(l)}function AC_FL_RunContent(){var b=AC_GetArgs(arguments,".swf","movie","clsid:d27cdb6e-ae6d-11cf-96b8-444553540000","application/x-shockwave-flash");AC_Generateobj(b.objAttrs,b.params,b.embedAttrs)}function AC_SW_RunContent(){var b=AC_GetArgs(arguments,".dcr","src","clsid:166B1BCA-3F9C-11CF-8075-444553540000",null);AC_Generateobj(b.objAttrs,b.params,b.embedAttrs)}function AC_GetArgs(i,p,n,q,m){var l=new Object();l.embedAttrs=new Object();l.params=new Object();l.objAttrs=new Object();for(var r=0;r<i.length;r=r+2){var o=i[r].toLowerCase();switch(o){case"classid":break;case"pluginspage":l.embedAttrs[i[r]]=i[r+1];break;case"src":case"movie":i[r+1]=AC_AddExtension(i[r+1],p);l.embedAttrs.src=i[r+1];l.params[n]=i[r+1];break;case"onafterupdate":case"onbeforeupdate":case"onblur":case"oncellchange":case"onclick":case"ondblClick":case"ondrag":case"ondragend":case"ondragenter":case"ondragleave":case"ondragover":case"ondrop":case"onfinish":case"onfocus":case"onhelp":case"onmousedown":case"onmouseup":case"onmouseover":case"onmousemove":case"onmouseout":case"onkeypress":case"onkeydown":case"onkeyup":case"onload":case"onlosecapture":case"onpropertychange":case"onreadystatechange":case"onrowsdelete":case"onrowenter":case"onrowexit":case"onrowsinserted":case"onstart":case"onscroll":case"onbeforeeditfocus":case"onactivate":case"onbeforedeactivate":case"ondeactivate":case"type":case"codebase":case"id":l.objAttrs[i[r]]=i[r+1];break;case"width":case"height":case"align":case"vspace":case"hspace":case"class":case"title":case"accesskey":case"name":case"tabindex":l.embedAttrs[i[r]]=l.objAttrs[i[r]]=i[r+1];break;default:l.embedAttrs[i[r]]=l.params[i[r]]=i[r+1]}}l.objAttrs.classid=q;if(m){l.embedAttrs.type=m}return l}var searchTextBoxID;var currentSectionNumber;arrCitys=new Array();arrLinks=new Array();var tempChar,tempValue;var startLen,endLen,highlightedID="",event1;document.onclick=SearchHideLinks;var relPath;function AssignTextBoxName(b,a){searchTextBoxID=b;a=a}function SearchCheckForValue(b){event1=b;var a=(b.which)?b.which:event.keyCode;if(a!=40&&a!=38){val=document.getElementById(searchTextBoxID).value;tempval=val.substring(0,1);if(val.length==0){if(document.getElementById("mainDiv")!=null){document.getElementById("mainDiv").style.display="none"}if(document.getElementById("divExplore")!=null){document.getElementById("divExplore").style.display="none"}}if(tempChar!=tempval){tempChar=tempval;if(tempval!=""){SearchCallServer("1~"+tempval,"")}}else{if(val.length>=1){if(document.getElementById("mainDiv")!=null){document.getElementById("mainDiv").innerHTML=""}tempValue="";for(j=1;j<arrCitys.length;j++){if(arrCitys[j].toLowerCase().substring(0,val.length)==val.toLowerCase()){if(tempValue==""){startLen=j}tempValue+='<LI onmouseover="higlightSelection(this.id)" id="scroll_'+j+'">'+arrCitys[j]+"</LI>";endLen=j}}if(tempValue!=""){if(document.getElementById("mainDiv")!=null){document.getElementById("mainDiv").innerHTML="<UL>"+tempValue+"</UL>";higlightSelection("scroll_"+startLen);document.getElementById("mainDiv").style.display="block"}}else{if(document.getElementById("mainDiv")!=null){document.getElementById("mainDiv").style.display="none"}if(document.getElementById("divExplore")!=null){document.getElementById("divExplore").style.display="none"}}}}}}function selectValueForOneChar(){val=document.getElementById(searchTextBoxID).value;document.getElementById("scroll_0").style.backgroundColor="#cccccc";tempValue="";for(j=1;j<arrCitys.length;j++){if(tempValue==""){startLen=j}tempValue+='<LI onmouseover="higlightSelection(this.id)" id="scroll_'+j+'">'+arrCitys[j]+"</LI>";endLen=j}if(document.getElementById("mainDiv")!=null){document.getElementById("mainDiv").innerHTML="<UL>"+tempValue+"</UL>"}higlightSelection("scroll_"+startLen);SearchCheckForValue(event1)}function SearchReceiveServerData(a){if(document.getElementById("mainDiv")!=null){if(a!=""){document.getElementById("mainDiv").innerHTML="";vCitys=a.split("$")[0];vfirstChar=a.split("$")[0];vfirstChar=vfirstChar.split("#")[1].substring(0,1);arrCitys=vCitys.split("#");temp='</LI><LI id="scroll_0">';document.getElementById("mainDiv").innerHTML='<UL><LI id="scroll_0">'+replaceAll(vCitys,"#",temp)+"</UL>";document.getElementById("mainDiv").style.display="block";vLinks=a.split("$")[1];arrLinks=vLinks.split("#");selectValueForOneChar()}else{document.getElementById("mainDiv").style.display="none";document.getElementById("divExplore").style.display="none"}}}function replaceAll(c,b,a){while(c.indexOf(b)!=-1){c=c.replace(b,a)}return c}function checkReturn(){if(document.getElementById("mainDiv").style.display=="none"){return true}else{return false}}function higlightSelection(a){for(k=startLen;k<=endLen;k++){temp=a.toString().split("_")[0]+"_"+k;if(k==a.toString().split("_")[1]){highlightedID=k;document.getElementById(a).style.backgroundColor="#cccccc";if(currentSectionNumber!="2"){destHelpfulLinks(document.getElementById(a).innerHTML,k)}}else{if(document.getElementById(temp)!=null){document.getElementById(temp).style.backgroundColor="#60892f"}}}}function higlightSelectionOnKey(b,c){var a=(b.which)?b.which:event.keyCode;if(a==40){temp=parseInt(highlightedID+1);if(document.getElementById("mainDiv")!=null){document.getElementById("mainDiv").scrollTop+=15}}else{if(a==38){temp=parseInt(highlightedID-1);if(document.getElementById("mainDiv")!=null){document.getElementById("mainDiv").scrollTop-=15}}}if(a==13||a==9||a==32){setValueSrchBox(a,c)}if(a==38||a==40){setScrollValue(a)}}function setScrollValue(a){for(k=startLen;k<=endLen;k++){elementID="scroll_"+k;if(k==temp){if(document.getElementById(elementID)!=null){document.getElementById(elementID).style.backgroundColor="#cccccc"}if(currentSectionNumber!="2"){if(document.getElementById(elementID)!=null){destHelpfulLinks(document.getElementById(elementID).innerHTML,k)}}}else{if(document.getElementById(elementID)!=null){document.getElementById(elementID).style.backgroundColor="#60892f"}}}if(a==40){highlightedID=parseInt(highlightedID+1)}else{if(a==38){highlightedID=parseInt(highlightedID-1)}}}function setValueSrchBox(a,b){elementID="scroll_"+highlightedID;if(document.getElementById(elementID)){if(document.getElementById(searchTextBoxID).value==document.getElementById(elementID).innerHTML){document.getElementById(searchTextBoxID).value=document.getElementById(elementID).innerHTML}}if(document.getElementById("mainDiv")!=null){document.getElementById("mainDiv").style.display="none"}if(document.getElementById("divExplore")!=null){document.getElementById("divExplore").style.display="none"}if(a==13){setTimeout("globalsrch('"+b+"')",1);return false}}function destHelpfulLinks(a,b){var c="";if(arrLinks[b].split(",")[0]!="0"){c='<li><a href="../search/search-hotel-destination.aspx?key=Cheap Hotels in '+a+'"><span class="WhiteV">Budget Hotels in </span>'+a+"</a></li>"}if(arrLinks[b].split(",")[1]!="0"){c+='<li><a href="../search/search-hotel-destination.aspx?key=Hotels in '+a+'"><span class="WhiteV">Hotels in </span>'+a+"</a></li>"}if(arrLinks[b].split(",")[2]!="0"){c+='<li><a href="../search/search-destination.aspx?key='+a+' Travel Guide">'+a+'<span class="WhiteV"> Travel Guide</span></a></li>'}if(arrLinks[b].split(",")[3]!="0"){c+='<li><a href="../search/search-hotel-destination.aspx?key=Mid Priced Hotels in '+a+'"><span class="WhiteV">Mid Priced Hotels in </span>'+a+"</a></li>"}if(arrLinks[b].split(",")[4]!="0"){c+='<li><a href="../search/search-photos-destination.aspx?key='+a+' photos">'+a+'<span class="WhiteV"> Photos</span></a></li>'}if(arrLinks[b].split(",")[5]!="0"){c+='<li><a href="../search/search-direction-to.aspx?key=How to reach '+a+'"><span class="WhiteV">How to reach </span>'+a+"</a></li>"}if(arrLinks[b].split(",")[6]!="0"){c+='<li><a href="../search/search-hotel-destination.aspx?key=Luxury Hotels in '+a+'"><span class="WhiteV">Luxury Hotels in </span>'+a+"</a></li>"}if(arrLinks[b].split(",")[7]!="0"){c+='<li><a href="../search/search-travelogues-destination.aspx?key='+a+' Travelogues">'+a+'<span class="WhiteV"> Travelogues</span></a></li>'}if(c!=""){document.getElementById("divExplore").innerHTML="<ul>"+c+"</ul>";document.getElementById("divExplore").style.display="block"}else{document.getElementById("divExplore").innerHTML="";document.getElementById("divExplore").style.display="none"}}function SearchHideLinks(){if(document.getElementById("mainDiv")!=null){document.getElementById("mainDiv").style.display="none"}if(document.getElementById("divExplore")!=null){document.getElementById("divExplore").style.display="none"}}function showStatusDiv(a){var b=document.getElementById(a);b.style.display="block";b.style.position="absolute";b.style.left="300px";b.style.top="300px";setTimeout("SetLoadingImages()",0)}function SetLoadingImages(){if(document.getElementById("imgWaiting")){document.getElementById("imgWaiting").src=relPath+"/images/wait_ax.gif"}if(document.getElementById("imgLoading")){document.getElementById("imgLoading").src=relPath+"/images/short_Progress.gif"}}function globalsrch(a){if(currentSectionNumber==undefined){sectionName="All"}else{if(currentSectionNumber=="0"){sectionName="Hotels"}else{if(currentSectionNumber=="1"){sectionName="Destinations"}else{if(currentSectionNumber=="2"){sectionName="Directions"}}}}if(trim(document.getElementById(searchTextBoxID).value)!=""&&trim(document.getElementById(searchTextBoxID).value)!="Enter Keyword"&&trim(document.getElementById(searchTextBoxID).value).indexOf("City Name")==-1){showStatusDiv("statusDiv");window.location.href=a+"/Search/Search-result.aspx?txt="+document.getElementById(searchTextBoxID).value+"&Section="+sectionName+""}else{document.getElementById(searchTextBoxID).value="Enter Keyword";document.getElementById(searchTextBoxID).focus()}}function trim(b){var a=b;return a.replace(/^\s+/,"").replace(/\s+$/,"")};