// JavaScript Document
<!--
// Booking sequence Javascript functions
function opacityIn(id, opacStart, opacEnd, millisec) {
    //speed for each frame
    var speed = Math.round(millisec / 100);
    var timer = 0;
    if(opacStart > opacEnd) {
        for(i = opacStart; i >= opacEnd; i--) {
            setTimeout("changeOpacIn(" + i + ",'" + id + "')",(timer * speed));
            timer++;
        }
    } else if(opacStart < opacEnd) {
        for(i = opacStart; i <= opacEnd; i++)
            {
            setTimeout("changeOpacIn(" + i + ",'" + id + "')",(timer * speed));
            timer++;
        }
    }
}
//change the opacity for different browsers
function changeOpacIn(opacity, id) {
    var object = document.getElementById(id).style;
    object.opacity = (opacity / 100);
    object.MozOpacity = (opacity / 100);
    object.KhtmlOpacity = (opacity / 100);
    object.filter = "alpha(opacity=" + opacity + ")";
} 

function opacityOut(id, opacStart, opacEnd, millisec, destinationPage) {
    //speed for each frame
    var speed = Math.round(millisec / 100);
    var timer = 0;
    if(opacStart > opacEnd) {
        for(i = opacStart; i >= opacEnd; i--) {
            setTimeout("changeOpacOut(" + i + ",'" + id + "','" + destinationPage + "')",(timer * speed));
            timer++;
        }
    } else if(opacStart < opacEnd) {
        for(i = opacStart; i <= opacEnd; i++)
            {
            setTimeout("changeOpacOut(" + i + ",'" + id + "','" + destinationPage + "')",(timer * speed));
            timer++;
        }
    }
}

function changeOpacOut(opacity, id, destinationPage) {
    var object = document.getElementById(id).style;
	var o2 = document.getElementById("veil").style;
    object.opacity = (opacity / 100);
    object.MozOpacity = (opacity / 100);
    object.KhtmlOpacity = (opacity / 100);
    object.filter = "alpha(opacity=" + opacity + ")";
	o2.opacity = (opacity / 100);
    o2.MozOpacity = (opacity / 100);
    o2.KhtmlOpacity = (opacity / 100);
    o2.filter = "alpha(opacity=" + opacity + ")";
	if (object.opacity == 0.0) {
		document.location = destinationPage;
	}
} 

function toggleCurrency() {
	var o = document.getElementById("currency");
	if (o.style.display == "none") {
		o.style.display = "block";
	} else {
		o.style.display = "none";
	}
}

function resPopup(sPage, sQS, iWidth, iHeight, bNoScrollBars) {
	//var tQS = "&";
	var tQS = "?";
	var sLink = sPage;
if (sQS != null && sQS != "") { sLink += tQS + sQS; }
	var iUseWidth = 476;
var iUseHeight = 390;
	if (iWidth) { iUseWidth = iWidth; }
	if (iHeight) { iUseHeight = iHeight; }
var sScrollBars = "yes";
if (bNoScrollBars) { sScrollBars = "no"; }
	var sParams = "height=" + iUseHeight + ",width=" + iUseWidth + ",left=50,top=50,scrollbars=" + sScrollBars + ",statusbar=yes,titlebar=yes";
	window.open(sLink, "smartpopup", sParams);
	return;
}

-->