var booking={description:"objns.",version:"1.0"};
booking.CSS={units:{px:"px"}};
booking.utils={ie:{}};
booking.utils.ie.hideIntersectingElements=function(_1,_2){
var i,hidee;
_1.offsetBottom=_1.offsetTop+_1.offsetHeight;
_1.offsetRight=_1.offsetLeft+_1.offsetWidth;
for(i=0;i<_2.length;i++){
hidee=_2[i];
hidee.offsetBottom=hidee.offsetTop+hidee.offsetHeight;
hidee.offsetRight=hidee.offsetLeft+hidee.offsetWidth;
if(hidee.offsetLeft<_1.offsetRight&&hidee.offsetRight>_1.offsetLeft&&hidee.offsetTop<_1.offsetBottom&&hidee.offsetBottom>_1.offsetTop){
hidee.style.visibility="hidden";
}else{
hidee.style.visibility="visible";
}
}
};
booking.utils.ie.hideIntersectingElements.description="Used by IE =6 window.onload, window.onresize or hider.ondrag to hide elements such as selects that otherwise render above absolutely positioned elements.";
var shown=new Array();
function popitup(_4,_5,_6){
newwindow=window.open(_4,"popup","scrollbars=1,height="+_6+",width="+_5);
if(window.focus){
newwindow.focus();
}
return false;
}
function blocktoggle(i){
if(document.getElementById){
shown[i]=(shown[i])?false:true;
currentdisplay=(shown[i])?"block":"none";
document.getElementById("blocktoggle"+i).style.display=currentdisplay;
}
}
function blockdisplay(i){
if(document.getElementById){
if(document.getElementById("blockdisplay"+i)){
for(j=1;j<1000;j++){
if(document.getElementById("blockdisplay"+j)){
document.getElementById("blockdisplay"+j).style.display="none";
}else{
j=1000;
}
}
if(i){
document.getElementById("blockdisplay"+i).style.display="block";
}
}
}
}
function printDoc(){
if(window.print){
window.print();
}else{
alert(tr.pressCltP);
}
}
function bookmark(_9,_a){
if(window.external){
window.external.AddFavorite(_9,_a);
}else{
alert(tr.pressCtlD);
}
}
function showPhoto(_b,_c,_d){
if(document.getElementById){
var c=document.getElementById(_c);
if(c.style.display!="block"){
c.innerHTML="<img src=\""+_b+"\">";
}else{
c.innerHTML="<img src=\""+tr.icons+"/transparent.gif\">";
c.style.display="none";
}
}
}
function hideEl(el){
if(document.getElementById){
var _10=document.getElementById(el).style.display;
if(_10!="none"){
document.getElementById(el).style.display="none";
}
}
}
function showEl(el){
if(document.getElementById){
document.getElementById(el).style.display="block";
}
}
function tickCheckBox(el){
if(document.getElementById){
if(document.getElementById(el)){
document.getElementById(el).checked=true;
}
}
return true;
}
function openCurrencyConverter(obj){
if(document.getElementById){
positionObj(obj,"currencyConverter");
document.getElementById("currencyConverter").style.display="block";
}
}
function calculateCurrency(){
if(document.getElementById){
var a=document.getElementById("amount").value;
var sc=currencydb[document.getElementById("sourceCurrency").value];
var sd=currencydb[document.getElementById("destinationCurrency").value];
var da=Math.round(100*a*(sd.val/sc.val))/100;
document.getElementById("displayCurrencyResults").innerHTML=sc.symbol+" "+a+" = "+sd.symbol+" "+da;
document.getElementById("currencyResults").style.display="block";
return false;
}
}
function closeCurrencyConverter(){
if(document.getElementById){
document.getElementById("currencyConverter").style.display="none";
}
}
function showDiv(el,div,_1a,_1b){
if(document.getElementById){
var i=document.getElementById(el);
var c=document.getElementById(div);
if(c.style.display!="block"){
var box=getDimensions(i);
var _1f=box.x,top=box.y;
c.style.visibility="hidden";
c.style.display="block";
if(_1a=="left"){
_1f-=c.offsetWidth;
}else{
_1f+=i.offsetWidth;
}
if(_1b=="top"){
top-=c.offsetHeight;
}else{
top+=i.offsetHeight;
}
if(top<10){
top=10;
}
if(gClientIsIE5){
_1f+=document.body.scrollLeft;
top+=document.body.scrollTop;
}
c.style.left=_1f+"px";
c.style.top=top+"px";
c.style.visibility="visible";
}else{
c.style.display="none";
}
}
}
function hideDiv(div){
if(document.getElementById){
var c=document.getElementById(div);
c.style.display="none";
}
}
var hide=true;
function positionObj(p,el){
if(document.getElementById){
var e=document.getElementById(el);
var bw=getBrowserWidth();
var box=getDimensions(p);
var _27=box.x,top=box.y;
e.style.visibility="hidden";
e.style.display="block";
if((_27+e.offsetWidth)>bw){
_27=(bw-e.offsetWidth-30);
}
var x=document.getElementById("bodyconstraint").offsetLeft;
_27-=x;
e.style.display="none";
e.style.visibility="visible";
e.style.left=_27+"px";
e.style.top=top+"px";
}
}
function getBrowserWidth(){
var w=0;
if(typeof (window.innerWidth)=="number"){
w=window.innerWidth;
}else{
if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){
w=document.documentElement.clientWidth;
}else{
if(document.body&&(document.body.clientWidth||document.body.clientHeight)){
w=document.body.clientWidth;
}
}
}
return w;
}
function getBrowserHeight(){
var h=0;
if(typeof (window.innerWidth)=="number"){
h=window.innerHeight;
}else{
if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){
h=document.documentElement.clientHeight;
}else{
if(document.body&&(document.body.clientWidth||document.body.clientHeight)){
h=document.body.clientHeight;
}
}
}
return h;
}
function showBlock(el){
if(document.getElementById){
document.getElementById(el).style.display="block";
}
}
function getDimensions(elm){
var box={x:0,y:0,w:0,h:0};
if(document.getBoxObjectFor){
var _2e=document.getBoxObjectFor(elm);
box.x=_2e.x;
box.y=_2e.y;
box.w=_2e.width;
box.h=_2e.height;
}else{
if(elm.getBoundingClientRect){
var _2f=/MSIE 5\.0/g;
var _30=elm.getBoundingClientRect();
box.x=_30.left;
box.y=_30.top;
box.w=(_30.right-_30.left);
box.h=(_30.bottom-_30.top);
if(document.compatMode&&document.compatMode!="BackCompat"){
box.x+=document.documentElement.scrollLeft-2;
box.y+=document.documentElement.scrollTop-2;
}else{
if(!gClientIsIE5){
box.x+=document.body.scrollLeft-2;
box.y+=document.body.scrollTop-2;
}
}
}else{
box.w=elm.offsetWidth;
box.h=elm.offsetHeight;
while(elm){
box.x+=elm.offsetLeft;
box.y+=elm.offsetTop;
if(elm.offsetParent){
elm=elm.offsetParent;
}else{
break;
}
}
}
}
var cc;
if(cc=document.getElementById("bodyconstraint")){
box.x-=cc.offsetLeft;
}
return box;
}
function addListener(elm,_33,_34){
if(elm.addEventListener){
elm.addEventListener(_33,_34,false);
}else{
if(elm.attachEvent){
elm.attachEvent("on"+_33,_34);
}else{
elm["on"+_33]=_34;
}
}
}
function removeListener(elm,_36,_37){
if(elm.removeEventListener){
elm.removeEventListener(_36,_37,false);
}else{
if(elm.detachEvent){
elm.detachEvent("on"+_36,_37);
}
}
}
var DOM={isParentOf:function(_38,_39){
while(_39&&(_39!=_38)){
_39=_39.parentNode;
}
return (_39==_38);
},getParentOrSelf:function(_3a,_3b){
_3b=_3b.toLowerCase();
while(_3a.nodeName.toLowerCase()!=_3b&&_3a.parentNode){
_3a=_3a.parentNode;
}
return _3a;
},addClass:function(elm,_3d){
elm.className+=" "+_3d;
},removeClass:function(elm,_3f){
var _40=new RegExp("\\b"+_3f+"\\b","g");
if(_40.test(elm.className)){
elm.className=elm.className.replace(_40," ");
}
}};
var gClientIsGecko=(window.controllers)?true:false;
var gClientIsOpera=(window.opera)?true:false;
var gClientIsIE=(document.all&&!gClientIsOpera)?true:false;
var gClientIsIE5=(gClientIsIE&&/MSIE 5\.0/.test(navigator.appVersion))?true:false;
var gClientIsIE55=(gClientIsIE&&/MSIE 5\.5/.test(navigator.appVersion))?true:false;
var gClientIsIE6=(gClientIsIE&&/MSIE 6\.0/.test(navigator.appVersion))?true:false;
var gClientIsIE7=(gClientIsIE&&/MSIE 7\.0/.test(navigator.appVersion))?true:false;
var gClientIsMac=(/Mac/.test(navigator.appVersion))?true:false;
function _init(){
if(window.initDaySelect){
initDaySelect();
}
}
addListener(window,"load",_init);
String.prototype.deCode=function(){
return this.replace(/[a-zA-Z]/g,function(c){
return String.fromCharCode((c<="Z"?90:122)>=(c=c.charCodeAt(0)+13)?c:c-26);
});
};
if(!Array.prototype.pop){
Array.prototype.pop=function(){
var _42;
if(this.length>0){
_42=this[this.length-1];
this.length--;
}
return _42;
};
}
if(!Array.prototype.push){
Array.prototype.push=function(){
var _43=this.length;
for(var i=0;i<arguments.length;i++){
this[_43+i]=arguments[i];
}
return this.length;
};
}
if(!Array.prototype.shift){
Array.prototype.shift=function(){
var _45=this[0];
if(_45){
this.splice(0,1);
}
return _45;
};
}
if(!Array.prototype.unshift){
Array.prototype.unshift=function(){
this.reverse();
for(var i=arguments.length-1;i>=0;i--){
this[this.length]=arguments[i];
}
this.reverse();
return this.length;
};
}
function toggleTxt(_47,_48,_49){
var _4a=document.getElementById(_47),ulBlockDisplay=_4a.style.display,txtAll=document.getElementById(_48),txtTop=document.getElementById(_49);
if(ulBlockDisplay=="none"){
txtAll.style.display="none";
txtTop.style.display="inline";
}else{
txtAll.style.display="inline";
txtTop.style.display="none";
}
}
function showVid(url,_4c){
if(document.getElementById){
var c=document.getElementById(_4c);
c.innerHTML="<object width=\"425\" height=\"355\"><param name=\"movie\" value=\""+url+"\"></param><param name=\"wmode\" value=\"transparent\"></param><embed src=\""+url+"\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"425\" height=\"355\"></embed></object>";
}
}

function showAllRooms(table) {
    var theTable = document.getElementById(table);
    var rows = theTable.getElementsByTagName("tr");
    for (var i = 0; i < rows.length; i++) {
        rows[i].style.display = "";
    }
}