<!--
//BROWSER SNIFF
var isIE4 = (document.all && !document.getElementById) ? true : false;
var isIE5 = (document.all && document.getElementById) ? true : false;
var isNS6 = (!document.all && document.getElementById) ? true : false;
var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;
var isDHTML = (isIE4 || isIE5 || isNS6);
var isPc = navigator.userAgent.indexOf("Windows") != -1;
var isMac = !isPc;


//FLASH SNIFF
var useFlash = false;

if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] ) {
// Check for Flash version 5 or greater in Netscape
var plugin = navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin;
if (plugin && parseInt(plugin.description.substring(plugin.description.indexOf(".")-1))>=5)
	useFlash = true;
} else if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 &&
  navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
	// Assume any Windows IE except for Windows 3.1 supports the OBJECT tag
	useFlash = true;
}

function getFlash(flash,alt,altmap,width,height,bgcolor) {
	var html = '';
	if(useFlash) {
		html = html + '<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" WIDTH=' + width + ' HEIGHT=' + height + '>';
		html = html + '<PARAM NAME=movie VALUE=\"' + flash + '\"><PARAM NAME=quality VALUE=high><PARAM NAME=bgcolor VALUE=#' + bgcolor + '>';
		html = html + '<EMBED src=\"' + flash + '\" quality=high bgcolor=#' + bgcolor + ' WIDTH=' + width + ' HEIGHT=' + height + ' TYPE="application/x-shockwave-flash" PLUGINSPAGE=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\">';
		html = html + '</EMBED></OBJECT>';
	} else {
		html = html + '<img src=\"images/' + alt + '\" border=0 usemap=\"#' + altmap + '\"><br>';
	}
	return html;
}


//FUNCTIONS
function swap(name,state) {
    if(document.images) {
        document[name].src = eval(name + state + ".src");
    }
}

function getStyles() {
    if (isPc) {
    	return "<link rel=\"stylesheet\" type=\"text/css\" href=\"styles.css\">";
    } else {
    	return "<link rel=\"stylesheet\" type=\"text/css\" href=\"styles_mac.css\">";
    }
}

function popup(location) {
	var dx=500;
	var dy=460;

	var w = window.open(location, 'popup', 'width=' + dx + ',height=' + dy + ',status=no,resizable=no,menubar=yes,location=no,scrollbars=no,toolbar=no');
	w.focus();
}

function popup2(location) {
	var dx=500;
	var dy=360;

	var w = window.open(location, 'popup', 'width=' + dx + ',height=' + dy + ',status=no,resizable=no,menubar=yes,location=no,scrollbars=no,toolbar=no');
	w.focus();
}

function popDirections() {
	var dx=600;
	var dy=400;

	var w = window.open('directions_print.htm', 'popup', 'width=' + dx + ',height=' + dy + ',status=no,resizable=yes,menubar=yes,location=no,scrollbars=yes,toolbar=yes');
	w.focus();
}

function homeUncover() {
    if (isNS6 || isIE4 || isIE5){
        var hidden = 'hidden';
        var visible = 'visible';
    } else if (document.layers){
        var hidden = 'hide';
        var visible = 'show';
    }

    var newVis = hidden;

    if (isIE4 || isIE5){
        obj = eval('document.all.homeCover2.style');
        obj.visibility = newVis;
    } else if (isNS6){
        obj = document.getElementById('homeCover2');
        obj.style.visibility = newVis;
    }

}

function checkAvail(room) {
	opener.location = 'checkavail.htm';
	opener.focus();
}

function slideShow(numPics,thisPic,room) {
	while (thisPic <= 0) { thisPic = thisPic + numPics; }
	while (thisPic > numPics) { thisPic = thisPic - numPics; }

	var newVis;
	var obj = null;

    if (isNS6 || isIE4 || isIE5){
        var hidden = 'hidden';
        var visible = 'visible';
    } else if (document.layers){
        var hidden = 'hide';
        var visible = 'show';
    }

    newVis = visible;
    if (isIE4 || isIE5){
        obj = eval('document.all.pic' + thisPic + '.style');
        obj.visibility = newVis;
    } else if (isNS6){
        obj = document.getElementById('pic' + thisPic);
        obj.style.visibility = newVis;
    }

    newVis = hidden;
	for (i = 1; i <= numPics; i++) {
		if (i != thisPic) {
			var obj = null;
			if (isIE4 || isIE5){
				obj = eval('document.all.pic' + i + '.style');
				obj.visibility = newVis;
			} else if (isNS6){
				obj = document.getElementById('pic' + i);
				obj.style.visibility = newVis;
			}
		}
	}

	document['pic'+thisPic+'img'].src = 'images/poppic_'+room+'_'+thisPic+'.jpg';
}
//-->


