
function handleKeypress(e){var keycode;if(window.event){e=window.event;keycode=e.keyCode;}
else if(e){keycode=e.which;}
if(keycode==13){var tg=(e.target)?e.target:e.srcElement;if(tg&&tg.form==formObject&&tg.type!="select-one"&&tg.type!="select-multiple"){formObject.submit();return false;}}
return true;};function Rcertify(){popupWin=window.open('http://www.bbbonline.org/cks.asp?id=875001246','Participant','location=yes,scrollbars=yes,width=450,height=300');window.name='opener';}

var viewport={getWinWidth:function(){this.width=0;if(window.innerWidth)this.width=window.innerWidth-18;else if(document.documentElement&&document.documentElement.clientWidth)
this.width=document.documentElement.clientWidth;else if(document.body&&document.body.clientWidth)
this.width=document.body.clientWidth;},getWinHeight:function(){this.height=0;if(window.innerHeight)this.height=window.innerHeight-18;else if(document.documentElement&&document.documentElement.clientHeight)
this.height=document.documentElement.clientHeight;else if(document.body&&document.body.clientHeight)
this.height=document.body.clientHeight;},getScrollX:function(){this.scrollX=0;if(typeof window.pageXOffset=="number")this.scrollX=window.pageXOffset;else if(document.documentElement&&document.documentElement.scrollLeft)
this.scrollX=document.documentElement.scrollLeft;else if(document.body&&document.body.scrollLeft)
this.scrollX=document.body.scrollLeft;else if(window.scrollX)this.scrollX=window.scrollX;},getScrollY:function(){this.scrollY=0;if(typeof window.pageYOffset=="number")this.scrollY=window.pageYOffset;else if(document.documentElement&&document.documentElement.scrollTop)
this.scrollY=document.documentElement.scrollTop;else if(document.body&&document.body.scrollTop)
this.scrollY=document.body.scrollTop;else if(window.scrollY)this.scrollY=window.scrollY;},getAll:function(){this.getWinWidth();this.getWinHeight();this.getScrollX();this.getScrollY();}}

var menuLayers={timer:null,activeMenuID:null,offX:-235,offY:-60,show:function(id,e){var mnu=document.getElementById?document.getElementById(id):null;if(!mnu)return;this.activeMenuID=id;if(mnu.onmouseout==null)mnu.onmouseout=this.mouseoutCheck;if(mnu.onmouseover==null)mnu.onmouseover=this.clearTimer;viewport.getAll();this.position(mnu,e);},show2:function(id,e,xOffset,yOffset){this.offX=xOffset;this.offY=yOffset;var mnu=document.getElementById?document.getElementById(id):null;if(!mnu)return;this.activeMenuID=id;if(mnu.onmouseout==null)mnu.onmouseout=this.mouseoutCheck;if(mnu.onmouseover==null)mnu.onmouseover=this.clearTimer;viewport.getAll();this.position(mnu,e);},showUsingTimer:function(id){var mnu=document.getElementById?document.getElementById(id):null;if(!mnu)return;this.activeMenuID=id;if(mnu.onmouseout==null)mnu.onmouseout=this.mouseoutCheck;if(mnu.onmouseover==null)mnu.onmouseover=this.clearTimer;viewport.getAll();this.showItem(mnu);},hide:function(){this.clearTimer();if(this.activeMenuID&&document.getElementById)
this.timer=setTimeout("document.getElementById('"+menuLayers.activeMenuID+"').style.visibility = 'hidden'",200);},position:function(mnu,e){var x=e.pageX?e.pageX:e.clientX+viewport.scrollX;var y=e.pageY?e.pageY:e.clientY+viewport.scrollY;if(x+mnu.offsetWidth+this.offX>viewport.width+viewport.scrollX)
x=x-mnu.offsetWidth-this.offX;else x=x+this.offX;if(y+mnu.offsetHeight+this.offY>viewport.height+viewport.scrollY)
y=(y-mnu.offsetHeight-this.offY>viewport.scrollY)?y-mnu.offsetHeight-this.offY:viewport.height+viewport.scrollY-mnu.offsetHeight;else y=y+this.offY;mnu.style.left=x+"px";mnu.style.top=y+"px";this.timer=setTimeout("document.getElementById('"+menuLayers.activeMenuID+"').style.visibility = 'visible'",200);},showItem:function(mnu){this.timer=setTimeout("document.getElementById('"+menuLayers.activeMenuID+"').style.visibility = 'visible'",200);},mouseoutCheck:function(e){e=e?e:window.event;var mnu=document.getElementById(menuLayers.activeMenuID);var toEl=e.relatedTarget?e.relatedTarget:e.toElement;if(mnu!=toEl&&!menuLayers.contained(toEl,mnu))menuLayers.hide();},contained:function(oNode,oCont){if(!oNode)return;while(oNode=oNode.parentNode)
if(oNode==oCont)return true;return false;},clearTimer:function(){if(menuLayers.timer)clearTimeout(menuLayers.timer);}}

var isAOL=false,isIE6=false,isIE55=false,isIE5=false,isIE4=false,isIE3=false,isIE=false
var isNN6=false,isNN5=false,isNN4=false,isNN3=false
var isMac=false,isWB5=false,isWB4=false,isWB3=false,isSafari=false
var browser_name=navigator.appName;var browser_version=parseFloat(navigator.appVersion);if(navigator.appVersion.indexOf('AOL')>-1){isAOL=true;}
if(navigator.appVersion.indexOf('Mac')>-1){isMac=true;}
if(navigator.appVersion.indexOf('Safari')>-1){isSafari=true;}
if(navigator.appName.indexOf('Netscape')>-1){if(navigator.userAgent.indexOf('6.')>-1){isNN6=true;}else if(browser_version>=5){isNN5=true;}else if(browser_version>=4){isNN4=true;}else if(browser_version>=3){isNN3=true;}}else if(navigator.appName.indexOf('Microsoft Internet Explorer')>-1){isIE=true;isIE7=false;if(navigator.appVersion.indexOf('MSIE 7')>-1){isIE7=true;}else if(navigator.appVersion.indexOf('MSIE 6.0')>-1){isIE6=true;}else if(navigator.appVersion.indexOf('MSIE 5.5')>-1){isIE55=true;}else if(navigator.appVersion.indexOf('MSIE 5.0')>-1){isIE5=true;}else if(navigator.appVersion.indexOf('MSIE 4.')>-1){isIE4=true;}else{isIE3=true;}}else{if(browser_version>=5){isWB5=true;}else if(browser_version>=4){isWB4=true;}else if(browser_version>=3){isWB3=true;}}

function call_fc_flash(arg1,arg2){if(typeof(fc_flash)=="function"){fc_flash(arg1,arg2);}}
function hideInterstitial(){document.write('</div>');if(document.getElementById){document.getElementById('interstitial-box').style.display='none';document.getElementById('loading-container').style.display='block';if(document.body){document.body.style.backgroundImage="url(/images/promotions/bg_tile.gif)";}
if(document.documentElement){document.documentElement.style.backgroundImage="url(/images/promotions/bg_tile.gif)";}}}
function hideInterstitial2(){if(document.getElementById){document.getElementById('interstitial-box').style.display='none';document.getElementById('loading-container').style.display='block';if(document.body){document.body.style.backgroundImage="url(/images/promotions/bg_tile.gif)";}
if(document.documentElement){document.documentElement.style.backgroundImage="url(/images/promotions/bg_tile.gif)";}}}
function showInterstitialFlash(){document.write('<object type="application/x-shockwave-flash" data="/images/chrysalis/interstitial/searching.swf" width="250" height="160">\n');document.write('  <param name="movie" value="/images/chrysalis/interstitial/searching.swf" />\n');document.write('  <img src="/images/chrysalis/interstitial/searching.png" width="250" height="160" alt="Loading" />\n');document.write('</object>\n');}
function hideWaitScreen(){var oWait=null,elemWait=null;if(document.getElementById){elemWait=document.getElementById('waitScreen');if(elemWait!=null){oWait=elemWait.style;}}else if(document.layers){oWait=document.layers['waitScreen'];}else if(document.all){elemWait=document.all['waitScreen'];if(elemWait!=null){oWait=elemWait.style;}}
if(oWait!=null){oWait.visibility='hidden';}}
function popupBook(url){var w=window.open(url,"myWindow",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=503,height=250');w.focus();}
function popUp(url){sealWin=window.open(url,"win",'toolbar=0,location=0,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,width=500,height=450');self.name="mainWin";}
function openNewWindow(fileName,windowName,theWidth,theHeight){if(windowName=="newWindow"){windowName=new String(Math.round(Math.random()*100000));}
window.open(fileName,windowName,"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width="+theWidth+",height="+theHeight)}
function openMapWindow(mapUrl,windowName,width,height){window.open(mapUrl,windowName,"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width="+width+",height="+height)}
function openMapWithPropInfo(mapUrl,propInfo,propInfoString,windowName,width,height){var newUrl;if(isNN3||isNN4||isNN6){newUrl=mapUrl+propInfo+propInfoString;}else{newUrl=mapUrl+propInfo+escape(propInfoString);}
window.open(newUrl,windowName,"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width="+width+",height="+height)}
function openNewWindowEscape(fileName,windowName,theWidth,theHeight,to){if(windowName=="newWindow"){windowName=new String(Math.round(Math.random()*100000));}
var encoded=escape(to);encoded=fileName+encoded;window.open(encoded,windowName,"toolbar=1,location=1,directories=0,status=0,menubar=1,scrollbars=1,resizable=1,width="+theWidth+",height="+theHeight)}
function openNewWindowReturnFalse(fileName,windowName,theWidth,theHeight){if(windowName=="newWindow"){windowName=new String(Math.round(Math.random()*100000));}
var w=window.open(fileName,windowName,"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width="+theWidth+",height="+theHeight);return false;}
function openPopup(url,to,windowName,theWidth,theHeight){var newURL;if(isNN3||isNN4){newURL=url+to;}else{newURL=url+escape(to);}
window.open(newURL,windowName,"toolbar=1,location=1,directories=0,status=0,menubar=1,scrollbars=1,resizable=1,width="+theWidth+",height="+theHeight)}
function openPopup3(url,name1,param1,name2,param2,name3,param3,windowName,theWidth,theHeight){var wSettings='toolbar=1,location=1,directories=0,status=0,menubar=1,scrollbars=1,resizable=1';openPopupWin(url,name1,param1,name2,param2,name3,param3,windowName,wSettings,theWidth,theHeight);}
function openMapNetscape(url,name1,param1,name2,param2,name3,param3,windowName,theWidth,theHeight){var wSettings='toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1';openPopupWin(url,name1,param1,name2,param2,name3,param3,windowName,wSettings,theWidth,theHeight);}
function openPopupWin(url,name1,param1,name2,param2,name3,param3,windowName,windowSettings,theWidth,theHeight){var newURL;windowSettings+=',width='+theWidth+',height='+theHeight;if(isNN3||isNN4){newURL=url+name1+param1+name2+param2+name3+param3;}else{newURL=url+name1+escape(param1)+name2+escape(param2)+name3+escape(param3);}
window.open(newURL,windowName,windowSettings);}
function open_calendar(strType){document.myform.inout.value=strType;new_window=window.open("calendar.htm","","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width=300,height=200");}
function popup(url,name,width,height){settings="toolbar=yes,location=yes,directories=yes,"+"status=no,menubar=no,scrollbars=yes,"+"resizable=yes,width="+width+",height="+height;MyNewWindow=window.open("http://"+url,name,settings);}
function getMousePos(e){xPos=0;yPos=0;if(!e)var e=window.event;if(e.pageX||e.pageY)
{xPos=e.screenX;yPos=e.screenY;}
else if(e.clientX||e.clientY)
{xPos=e.screenX;yPos=e.screenY;}}
function openPopWindow(pageLocation,winName,pgW,pgH){winStats='toolbar=no,location=no,directories=no,menubar=no,';winStats+='scrollbars=no,width='+pgW+',height='+pgH;if(navigator.appName.indexOf("Microsoft")>=0){winStats+=',left='+(xPos)+',top='+(-200+yPos);}else{winStats+=',screenX='+(xPos)+',screenY='+(yPos-300);}
floater=window.open(pageLocation,winName,winStats);if(floater!=null){if(floater.focus){floater.focus()}};}
function openCalWindow(thisPage,strType,CalLocation){document.myform.inout.value=strType;if(thisPage=='popcal.html'){thisPage='popcal.jsp';}
if(strType=='out'){thisPage=thisPage+'?'+new String(document.myform.COMonth.value-1)+','+document.myform.COYear.value}else{thisPage=thisPage+'?'+new String(document.myform.CIMonth[document.myform.CIMonth.selectedIndex].value-1)+','+document.myform.CIYear.value}
winStats='toolbar=no,location=no,directories=no,menubar=no,'
if(navigator.appName.indexOf("Microsoft")>=0){winStats+='scrollbars=no,width=160,height=180'}
else{winStats+='scrollbars=no,width=160,height=170'}
if(navigator.appName.indexOf("Microsoft")>=0){if(CalLocation=='leftNavArea')
{winStats+=',left='+(xPos)+',top='+(yPos)}
else if(CalLocation=='contentArea')
{winStats+=',left='+(-200+xPos)+',top='+(-160+yPos)}
else if(CalLocation=='calendarArea')
{winStats+=',left='+(-150+xPos)+',top='+(yPos+20)}}else{if(CalLocation=='leftNavArea')
{winStats+=',screenX='+(xPos)+',screenY='+(yPos)}
else if(CalLocation=='contentArea')
{winStats+=',screenX='+(-150+xPos)+',screenY='+(-230+yPos)}
else if(CalLocation=='calendarArea')
{winStats+=',screenX='+(-150+xPos)+',screenY='+(yPos+20)}}
floater=window.open(thisPage,"myform",winStats)
if(floater!=null){if(floater.focus){floater.focus()}};}
function openCalWindowDo(thisPage,strType,CalLocation,year,month,day){if(document.forms[0].name=="myform"){document.forms[0].inout.value=strType;}else{document.forms[1].inout.value=strType;}
if(thisPage=='popcal.html'){thisPage='popcal.jsp'}
if(thisPage=='popcal.jsp'){thisPage='/popCalendar.do'}
var formDay;var formMonth;var formYear;if(document.forms[0].name=="myform"){if(strType=='out'){formDay=document.forms[0].CODay[document.forms[0].CODay.selectedIndex];formMonth=document.forms[0].COMonth[document.forms[0].COMonth.selectedIndex];formYear=document.forms[0].COYear.value;}else{formDay=document.forms[0].CIDay[document.forms[0].CIDay.selectedIndex];formMonth=document.forms[0].CIMonth[document.forms[0].CIMonth.selectedIndex];formYear=document.forms[0].CIYear.value;}}else{if(strType=='out'){formDay=document.forms[1].CODay[document.forms[1].CODay.selectedIndex];formMonth=document.forms[1].COMonth[document.forms[1].COMonth.selectedIndex];formYear=document.forms[1].COYear.value;}else{formDay=document.forms[1].CIDay[document.forms[1].CIDay.selectedIndex];formMonth=document.forms[1].CIMonth[document.forms[1].CIMonth.selectedIndex];formYear=document.forms[1].CIYear.value;}}
var currDay=formDay.value;var currMonth=formMonth.value;if(currMonth>1&&currDay==-1){currDay=0;}else if(currMonth<1||currDay<1){currDay=day;currMonth=month;formYear=year;}
else{var monthText=formMonth.text;if(monthText.length>5&&monthText.charAt(monthText.length-5)==' '){formYear=monthText.substr(monthText.length-4);}}
thisPage=thisPage
+'?'+currMonth
+','+formYear
+','+formYear
+','+currMonth
+','+currDay
winStats='toolbar=no,location=no,directories=no,menubar=no,'
if(navigator.appName.indexOf("Microsoft")>=0){winStats+='scrollbars=no,width=160,height=180'}
else{winStats+='scrollbars=no,width=160,height=170'}
if(navigator.appName.indexOf("Microsoft")>=0){if(CalLocation=='leftNavArea')
{winStats+=',left='+(xPos)+',top='+(yPos)}
else if(CalLocation=='contentArea')
{winStats+=',left='+(-200+xPos)+',top='+(-160+yPos)}
else if(CalLocation=='calendarArea')
{winStats+=',left='+(-150+xPos)+',top='+(yPos+20)}}else{if(CalLocation=='leftNavArea')
{winStats+=',screenX='+(xPos)+',screenY='+(yPos)}
else if(CalLocation=='contentArea')
{winStats+=',screenX='+(-150+xPos)+',screenY='+(-230+yPos)}
else if(CalLocation=='calendarArea')
{winStats+=',screenX='+(-150+xPos)+',screenY='+(yPos+20)}}
floater=window.open(thisPage,"myform",winStats)
if(floater!=null){if(floater.focus){floater.focus()}};}
function openWindow(thisPage,strType){document.myform.inout.value=strType;thisPage=thisPage+'?'+new String(document.myform.CIMonth[document.myform.CIMonth.selectedIndex].value-1)+','+document.myform.CIYear.value
if(strType=='out'){thisPage=thisPage+'?'+new String(document.myform.COMonth.value-1)+','+document.myform.COYear.value}
winStats='toolbar=no,location=no,directories=no,menubar=no,'
winStats+='scrollbars=no,width=160,height=140'
if(navigator.appName.indexOf("Microsoft")>=0){winStats+=',left='+(xPos)+',top='+(yPos)}else{winStats+=',screenX='+(xPos)+',screenY='+(yPos)}
floater=window.open(thisPage,"myform",winStats)
if(floater!=null){if(floater.focus){floater.focus()}};}
function initializeDates()
{var thisdate=new Date();var thismonth=thisdate.getMonth();var thisday=thisdate.getDate();var thisyear=thisdate.getFullYear();document.myform.CIMonth.value=thismonth+1;document.myform.CIYear.value=thisyear;document.myform.CIDay.value=thisday+7;document.myform.COMonth.value=thismonth+1
document.myform.COYear.value=thisyear;document.myform.CODay.value=thisday+7+1;}
function doSelectOptions(theValue,theField){var objForm=document.myform;for(i=0;i<objForm[theField].options.length;i++)
if(objForm[theField].options[i].value==theValue){objForm[theField].options[i].selected=true;}}
function updateBothDates(theForm)
{var worker=new Date();calcBothDates(theForm,(worker.getYear()%1900+1900),worker.getMonth()+1,worker.getDate());}
function calcBothDates(theForm,ty,tm,td)
{calcBothDates2(theForm,ty,tm,td,2);}
function calcBothDates2(theForm,ty,tm,td,daysInAdvance)
{var today=new Date((ty%1900+1900),tm-1,td,0,0,0);var inDate=new Date((ty%1900+1900),parseInt(document.myform.CIMonth[document.myform.CIMonth.selectedIndex].value)-1,document.myform.CIDay[document.myform.CIDay.selectedIndex].value,0,0,0);if(inDate.getMonth()<today.getMonth()){ty=ty+1;inDate=new Date((ty%1900+1900),parseInt(document.myform.CIMonth[document.myform.CIMonth.selectedIndex].value)-1,document.myform.CIDay[document.myform.CIDay.selectedIndex].value,0,0,0);}
var outDate=new Date((ty%1900+1900),parseInt(document.myform.CIMonth[document.myform.CIMonth.selectedIndex].value)-1,parseInt(document.myform.CIDay[document.myform.CIDay.selectedIndex].value)+daysInAdvance,0,0,0);if(inDate.getTime()<today.getTime()){inDate.setYear((today.getYear()%1900+1900)+1);outDate.setYear((today.getYear()%1900+1900)+1);}
theForm.CIYear.value=(inDate.getYear()%1900)+1900;doSelectOptions(inDate.getMonth()+1,'CIMonth');doSelectOptions(inDate.getDate(),'CIDay');theForm.COYear.value=(outDate.getYear()%1900)+1900;doSelectOptions(outDate.getMonth()+1,'COMonth');doSelectOptions(outDate.getDate(),'CODay');}
function updateCIDate(theForm)
{var worker=new Date();calcCIDate(theForm,(worker.getYear()%1900+1900),worker.getMonth()+1,worker.getDate());}
function calcCIDate(theForm,ty,tm,td)
{var today=new Date((ty%1900+1900),tm-1,td,0,0,0);var inDate=new Date((ty%1900+1900),parseInt(document.myform.CIMonth[document.myform.CIMonth.selectedIndex].value)-1,document.myform.CIDay[document.myform.CIDay.selectedIndex].value,0,0,0);if(inDate.getTime()<today.getTime()){inDate.setYear((today.getYear()%1900+1900)+1);}
theForm.CIYear.value=(inDate.getYear()%1900)+1900;doSelectOptions(inDate.getMonth()+1,'CIMonth');doSelectOptions(inDate.getDate(),'CIDay');}
function updateCODate(theForm)
{var worker=new Date();calcCODate(theForm,(worker.getYear()%1900+1900),worker.getMonth()+1,worker.getDate());}
function calcCODate(theForm,ty,tm,td)
{var today=new Date((ty%1900+1900),tm-1,td,0,0,0);var outDate=new Date((ty%1900+1900),parseInt(document.myform.COMonth[document.myform.COMonth.selectedIndex].value)-1,parseInt(document.myform.CODay[document.myform.CODay.selectedIndex].value),0,0,0);if((parseInt(theForm.CIYear.value)%1900)>(today.getYear()%1900)||(outDate.getTime()<today.getTime())){outDate=new Date((ty%1900+1900)+1,parseInt(document.myform.COMonth[document.myform.COMonth.selectedIndex].value)-1,parseInt(document.myform.CODay[document.myform.CODay.selectedIndex].value),0,0,0);}
theForm.COYear.value=(outDate.getYear()%1900)+1900;doSelectOptions(outDate.getMonth()+1,'COMonth');doSelectOptions(outDate.getDate(),'CODay');}
function searchDebug(){alert('CIYear='+myform.CIYear.value+', COYear='+myform.COYear.value);}
function changeRezDebug(){alert('CIYear='+myform.CIYear.value+', COYear='+myform.COYear.value);}
function debugRefineLeftnav(){alert('CIYear='+myform.CIYear.value+', COYear='+myform.COYear.value);}
function focusOnSecTwo(destNum){if(isIE){if(document.forms.myform.usertypedcity.value!=""){document.forms.myform.destination[0].checked=true;}else{if(destNum>1){destNumAry=new Array(2,5,8,11,14,3,6,9,12,15,4,7,10,13,16);eval('document.forms.myform.destination['+destNumAry[destNum]+'].checked = true;');}}
window.setTimeout('document.forms.myform.CIMonth.focus()',200);}else{document.forms.myform.CIMonth.focus();}}
function selectUserTyped(){if(isIE){if(document.forms.myform.usertypedcity.value!=""){document.forms.myform.destination[0].checked=true;}}}
function setCookie(name,value,expires,path,domain,secure){document.cookie=name+"="+escape(value)+
((expires)?"; expires="+expires.toGMTString():"")+
((path)?"; path="+path:"")+
((domain)?"; domain="+domain:"")+
((secure)?"; secure":"");}
function getCookie(name){var dc=document.cookie;var prefix=name+"=";var begin=dc.indexOf("; "+prefix);if(begin==-1){begin=dc.indexOf(prefix);if(begin!=0)return null;}else{begin+=2;}
var end=document.cookie.indexOf(";",begin);if(end==-1){end=dc.length;}
return unescape(dc.substring(begin+prefix.length,end));}
function getRequestedPage(currentPage,direction){alert(direction);var requestedPage=document.getElementById("requestedPage");if(direction=="next")
requestedPage.value=currentPage+1;if(direction=="previous")
requestedPage.value=currentPage-1;alert("after being set :: "+requestedPage.value);}
function setCurrentTab(tab,anchor){var target=anchor.href;if(target.indexOf('?')>0){target+='&tab='+tab;}else{target+='?tab='+tab;}
if(isSafari){anchor.href=target;}else{window.location=target;}}
function setCurrency(currency){var target=window.location.href;var curIndex=target.indexOf('currency');var anchorIndex=target.indexOf('#');var trailer='';if(curIndex>0)
{if(curIndex+12<target.length){trailer=target.substring(curIndex+12);}
target=target.substr(0,curIndex-1);}else if(anchorIndex>0){trailer=target.substr(anchorIndex);target=target.substr(0,anchorIndex);}
if(target.indexOf('?')>0){target+='&currency='+currency;}else{target+='?currency='+currency;}
target+=trailer;window.location=target;}
function setCountry(country){if(country==null||country.length<0){return false;}
var target=window.location.protocol+'//'+window.location.hostname;if(window.location.port!=null){target+=':'+window.location.port;}
target+='/?requestedCountry='+country;window.location=target;return true;}
function showCurrentTab(currentTab){if(currentTab){var elem=document.getElementById(currentTab+"Link");elem.onmouseover=function(evt){};elem.onmouseout=function(evt){};var img=document.images[currentTab];img.src="/images/header/tab-"+currentTab+"_on.gif";}}

if(typeof(Hotels)=="undefined"){Hotels=new Object();}
if(typeof(Hotels.Common)=="undefined"){var isCSS,isW3C,isIE4,isNN4;function initCommon(){if(document.images){isCSS=(document.body&&document.body.style)?true:false;isW3C=(isCSS&&document.getElementById)?true:false;isIE4=(isCSS&&document.all)?true:false;isNN4=(document.layers)?true:false;isIE6CSS=(document.compatMode&&document.compatMode.indexOf("CSS1")>=0)?true:false;}}
if(window.onload){var oldonload=window.onload
window.onload=function(){oldonload.call()
initCommon();}}else{window.onload=initCommon;}
function seekLayer(doc,name){var theObj;for(var i=0;i<doc.layers.length;i++){if(doc.layers[i].name==name){theObj=doc.layers[i];break;}
if(doc.layers[i].document.layers.length>0){theObj=seekLayer(document.layers[i].document,name);}}
return theObj;}
function getRawObject(obj){var theObj;if(typeof obj=="string"){if(isW3C){theObj=document.getElementById(obj);}else if(isIE4){theObj=document.all(obj);}else if(isNN4){theObj=seekLayer(document,obj);}}else{theObj=obj;}
return theObj;}
function getObject(obj){var theObj=getRawObject(obj);if(theObj&&isCSS){theObj=theObj.style;}
return theObj;}
function shiftTo(obj,x,y){var theObj=getObject(obj);if(theObj){if(isCSS){var units=(typeof theObj.left=="string")?"px":0;theObj.left=x+units;theObj.top=y+units;}else if(isNN4){theObj.moveTo(x,y)}}}
function shiftBy(obj,deltaX,deltaY){var theObj=getObject(obj);if(theObj){if(isCSS){var units=(typeof theObj.left=="string")?"px":0;theObj.left=getObjectLeft(obj)+deltaX+units;theObj.top=getObjectTop(obj)+deltaY+units;}else if(isNN4){theObj.moveBy(deltaX,deltaY);}}}
function setZIndex(obj,zOrder){var theObj=getObject(obj);if(theObj){theObj.zIndex=zOrder;}}
function setBGColor(obj,color){var theObj=getObject(obj);if(theObj){if(isNN4){theObj.bgColor=color;}else if(isCSS){theObj.backgroundColor=color;}}}
function show(obj){var theObj=getObject(obj);if(theObj){theObj.visibility="visible";}}
function hide(obj){var theObj=getObject(obj);if(theObj){theObj.visibility="hidden";}}
function getObjectLeft(obj){var elem=getRawObject(obj);var result=0;if(document.defaultView){var style=document.defaultView;var cssDecl=style.getComputedStyle(elem,"");result=cssDecl.getPropertyValue("left");}else if(elem.currentStyle){result=elem.currentStyle.left;}else if(elem.style){result=elem.style.left;}else if(isNN4){result=elem.left;}
return parseInt(result);}
function getObjectTop(obj){var elem=getRawObject(obj);var result=0;if(document.defaultView){var style=document.defaultView;var cssDecl=style.getComputedStyle(elem,"");result=cssDecl.getPropertyValue("top");}else if(elem.currentStyle){result=elem.currentStyle.top;}else if(elem.style){result=elem.style.top;}else if(isNN4){result=elem.top;}
return parseInt(result);}
function getObjectWidth(obj){var elem=getRawObject(obj);var result=0;if(elem.offsetWidth){result=elem.offsetWidth;}else if(elem.clip&&elem.clip.width){result=elem.clip.width;}else if(elem.style&&elem.style.pixelWidth){result=elem.style.pixelWidth;}
return parseInt(result);}
function getObjectHeight(obj){var elem=getRawObject(obj);var result=0;if(elem.offsetHeight){result=elem.offsetHeight;}else if(elem.clip&&elem.clip.height){result=elem.clip.height;}else if(elem.style&&elem.style.pixelHeight){result=elem.style.pixelHeight;}
return parseInt(result);}
function getInsideWindowWidth(){if(window.innerWidth){return window.innerWidth;}else if(isIE6CSS){return document.body.parentElement.clientWidth;}else if(document.body&&document.body.clientWidth){return document.body.clientWidth;}
return 0;}
function getInsideWindowHeight(){if(window.innerHeight){return window.innerHeight;}else if(isIE6CSS){return document.body.parentElement.clientHeight;}else if(document.body&&document.body.clientHeight){return document.body.clientHeight;}
return 0;}
function setCookie(name,value,expires,path,domain,secure){document.cookie=name+"="+escape(value)+
((expires)?"; expires="+expires.toGMTString():"")+
((path)?"; path="+path:"")+
((domain)?"; domain="+domain:"")+
((secure)?"; secure":"");}
function getCookie(name){var dc=document.cookie;var prefix=name+"=";var begin=dc.indexOf("; "+prefix);if(begin==-1){begin=dc.indexOf(prefix);if(begin!=0)return null;}
else{begin+=2;}
var end=document.cookie.indexOf(";",begin);if(end==-1){end=dc.length;}
return unescape(dc.substring(begin+prefix.length,end));}
function deleteCookie(name,path,domain){if(getCookie(name)){document.cookie=name+"="+
((path)?"; path="+path:"")+
((domain)?"; domain="+domain:"")+"; expires=Thu, 01-Jan-70 00:00:01 GMT";}}
function getDomain(){var host=document.location.hostname;var dot=host.indexOf(".");if(dot==-1){return null;}
return host.substring(dot+1);}
function getScroll(){var x,y;if(document.all){if(!document.documentElement.scrollLeft)
x=document.body.scrollLeft;else
x=document.documentElement.scrollLeft;if(!document.documentElement.scrollTop)
y=document.body.scrollTop;else
y=document.documentElement.scrollTop;}else{x=window.pageXOffset;y=window.pageYOffset;}
return[x,y];}
function makeNonSelectable(el){if(typeof el.style.MozUserSelect!="undefined"){el.style.MozUserSelect="none"}else if(typeof el.onselectstart!="undefined"){el.onselectstart=noop;}else{el.onmousedown=noop;}
el.style.cursor="default";}
function noop(){return false;}
function getMyForm(){var form=document.forms[0];if(form.name!="myform"){form=document.forms[1];}
return form;}
function getRefToDiv(divID,oDoc){if(document.getElementById){return document.getElementById(divID);}
if(document.all){return document.all[divID];}
if(!oDoc){oDoc=document;}
if(document.layers){if(oDoc.layers[divID]){return oDoc.layers[divID];}else{for(var x=0,y;!y&&x<oDoc.layers.length;x++){y=getRefToDiv(divID,oDoc.layers[x].document);}
return y;}}
return false;}
function showDiv(divID_as_a_string){var myReference=getRefToDiv(divID_as_a_string);document.getElementById(divID_as_a_string).style.display='';if(!myReference){return;}
if(myReference.style){myReference.style.visibility='visible';}else{if(myReference.visibility){myReference.visibility='show';}else{return;}}}
function hideDiv(divID_as_a_string){var myReference=getRefToDiv(divID_as_a_string);document.getElementById(divID_as_a_string).style.display='none';if(!myReference){return;}
if(myReference.style){myReference.style.visibility='hidden';}else{if(myReference.visibility){myReference.visibility='hide';}else{return;}}}
function getLeadingHtml(input,maxChars,elipse){var token=/\w+|[^\w<]|<(\/)?(\w+)[^>]*(\/)?>|</g,selfClosingTag=/^(?:[hb]r|img)$/i,output="",charCount=0,openTags=[],match;maxChars=maxChars||250;while((charCount<maxChars)&&(match=token.exec(input))){if(match[2]){output+=match[0];if(!(match[3]||selfClosingTag.test(match[2]))){if(match[1])openTags.pop();else openTags.push(match[2]);}}else{charCount+=match[0].length;if(charCount<=maxChars)output+=match[0];}}
if(elipse&&input.length>output.length)output+="..."
var i=openTags.length;while(i--)output+="</"+openTags[i]+">";return output;};if(typeof($)=="undefined"){var $=function(element){if(typeof element=="string")
return document.getElementById(element);else
return element;}}
if(typeof(Class)=="undefined"){var Class={create:function(){return function(){this.initialize.apply(this,arguments);}}}}
Hotels.Common=new Object();}

if(typeof(Hotels)=="undefined"){Hotels=new Object();}
if(typeof(Hotels.ClickTrack)=="undefined"){Hotels.ClickTrack={debug:false,page:"Results",clicked:new Object(),click:function(key){}}
function fc_click(key){}}
