document.__resbooker={id:null,loaded:false,iframe:{load:function(c){var a="",b="xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(f){var e=Math.random()*16|0,d=f=="x"?e:(e&3|8);return d.toString(16)}).toLowerCase();document.__resbooker.id=c+b;a="<iframe ";a+='name="'+document.__resbooker.id+'_iframe" ';a+='id="'+document.__resbooker.id+'_iframe" ';a+='scrolling="no" ';a+='marginwidth="0" ';a+='marginheight="0" ';a+='frameborder="0" ';a+='vspace="0" ';a+='hspace="0" ';a+='width="100%" ';a+='style="width: 100%; display: none;" ';a+='onload="document.__resbooker.stretch(this);" ';a+="></iframe>";document.write(a)},resize:function(c){var b=null,e=500,a=e;try{if(c.style.display!=""){c.style.display=""}if(c.style.height!=""){c.style.height=""}document.getElementById(c.id).height=e+"px";b=document.frames?document.frames[c.name]:document.getElementById(c.id);b=b.contentWindow||b;a=parseInt(b.document.body.scrollHeight);document.getElementById(c.id).height=(a>e)?a+"px":e+"px";document.getElementById(c.id).width=c.parentNode.offsetWidth+"px"}catch(d){}}},lightbox:{opacity:65,width:616,widthUnit:"px",content:function(){var a=document.getElementById(document.__resbooker.id+"_content");if(a==null){a=document.createElement("div");a.setAttribute("id",document.__resbooker.id+"_content");a.style.display="none";a.style.position="absolute";a.style.zIndex="1002";a.style.left="50%";a.style.width=this.width+this.widthUnit;a.style.marginLeft=-parseInt(this.width/2)+this.widthUnit;a.style.padding="0";a.style.backgroundColor="white";a.style.border="3px solid #cbcbcb";a.style.borderTopWidth="1px";document.body.appendChild(a);a=document.getElementById(document.__resbooker.id+"_content")}return a},overlay:function(){var a=document.getElementById(document.__resbooker.id+"_overlay");if(a==null){a=document.createElement("div");a.setAttribute("id",document.__resbooker.id+"_overlay");a.style.display="none";a.style.position="absolute";a.style.zIndex="1001";a.style.top="0%";a.style.height="100%";a.style.left="0%";a.style.width="100%";a.style.backgroundColor="black";a.style.MozOpacity=this.opacity/100;a.style.opacity=this.opacity/100;a.style.filter="alpha(opacity="+this.opacity+")";document.body.appendChild(a);a=document.getElementById(document.__resbooker.id+"_overlay")}return a},hide:function(){var b=this.content(),a=this.overlay();document.body.style.overflow="auto";b.style.display="none";a.style.display="none"},height:function(){if(typeof window.innerHeight!="undefined"){return window.innerHeight}else{if(typeof document.documentElement!="undefined"&&typeof document.documentElement.clientHeight!="undefined"&&document.documentElement.clientHeight!=0){return document.documentElement.clientHeight}else{return document.getElementsByTagName("body")[0].clientHeight}}},offset:function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop},show:function(d){var c="",a="",e=this.content(),b=this.overlay();b.style.display="block";b.style.top=this.offset()+"px";e.style.display="block";e.style.height=this.height()*0.8+"px";e.style.top=this.offset()+this.height()*0.1+"px";document.body.style.overflow="hidden";c='<div style="height: 24px; background: url(/resbooker/Assets/Images/lightbox_menu.gif) repeat-x; text-align: right; padding-right: 3px; padding-top: 2px;">';c+='<a href="javascript:void(0);" onclick="document.__resbooker.lightbox.hide();" style="color: black; font-family: Arial, Tahoma,sans-serif; font-size: 13px; text-decoration: none;">';c+='<img src="/resbooker/Assets/Images/lightbox_close.gif" width="11" height="11" border="0" alt="" style="margin-right: 3px;" />Close';c+="</a>";c+="</div>";a="<iframe ";a+='name="'+document.__resbooker.id+'_lightbox" ';a+='id="'+document.__resbooker.id+'_lightbox" ';a+='scrolling="auto" ';a+='marginwidth="0" ';a+='marginheight="0" ';a+='frameborder="0" ';a+='vspace="0" ';a+='hspace="0" ';a+='width="100%" ';a+='style="border: 0; margin: 0; padding: 0; width: 100%; height: '+(e.offsetHeight-30)+'px;" ';a+='src="'+d+'" ';a+="></iframe>";e.innerHTML=c+a}},stretch:function(d){var b="www",c=document.domain,a=function(h){var f=0,g,e=[];for(f=0;f<document.getElementsByTagName("script").length;f++){if(document.getElementsByTagName("script")[f].src.toLowerCase().indexOf("resbooker.js")>=0){e=document.getElementsByTagName("script")[f].src.substring(document.getElementsByTagName("script")[f].src.indexOf("resbooker.js")+13).split("&")}}for(f=0;f<e.length;f++){g=e[f].split("=");if(g[0].toLowerCase()==h){return(g.length==2)?unescape(g[1]):""}}return""};if(!this.loaded){if(document.domain.indexOf(".")>0){c=(a("host")!=""?a("host").toLowerCase():b)+"."+c}d.src=document.location.protocol+"//"+c+"/resbooker/"+location.search;this.loaded=true}window.setTimeout(function(){document.__resbooker.iframe.resize(d)},10)}};document.domain=location.host.replace(/^www./gi,"");document.__resbooker.iframe.load("__resbooker__");