<!--



var obj = null;

var thePics = new Array();



//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;

//alert(plugin);

//alert(parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)));

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;

}



//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 = (isIE5 || isNS6);

var isPc = navigator.userAgent.indexOf("Windows") != -1;

var isMac = !isPc;





//redirect on NS4

if(!isDHTML) {

	document.location.replace('oldbrowser.htm');

}





//FUNCTIONS



function swap(name,state) {

    if(thePics[name+state] && thePics[name+state].complete) {

        document.images[name].src = thePics[name+state].src;

    }

}



function preloadPics(thePics) {

	for (i=0;i<thePics.length;i++){

		thePics[thePics[i]] = new Image();

		thePics[thePics[i]].src = 'images/'+thePics[i]+'.gif';

		thePics[thePics[i]+'_over'] = new Image();

		thePics[thePics[i]+'_over'].src = 'images/'+thePics[i]+'_over.gif';

	}

}



function getFlash(flash,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 = '';
		
		if(flash=="nav.swf") {
			html = html + '<img src="images/nav.gif" width="145" height="440" border="0" usemap="#Map">';
			html = html + '<map name="Map">'
			html = html + '<area shape="rect" coords="7,146,137,166" href="about.htm" alt="About the Inn">'
			html = html + '<area shape="rect" coords="7,165,137,185" href="suites.htm" alt="Suites & Rates">'
			html = html + '<area shape="rect" coords="7,184,137,204" href="specpack.htm" alt="Special Packages">'
			html = html + '<area shape="rect" coords="7,203,137,223" href="breakfast.htm" alt="Breakfast">'
			html = html + '<area shape="rect" coords="7,222,137,242" href="gifts.htm" alt="Gifts/Gift Certificates">'
			html = html + '<area shape="rect" coords="7,241,137,261" href="outdoor.htm" alt="Outdoor Adventures">'
			html = html + '<area shape="rect" coords="7,260,137,280" href="activities.htm" alt="Activities & Itineraries">'
			html = html + '<area shape="rect" coords="7,279,137,299" href="seasons.htm" alt="Seasons at the Inn">'
			html = html + '<area shape="rect" coords="7,298,137,318" href="romance.htm" alt="Romantic Touches">'
			html = html + '<area shape="rect" coords="7,317,137,337" href="weddings.htm" alt="Intimate Weddings">'
			html = html + '<area shape="rect" coords="7,336,137,356" href="contact.htm" alt="Contact/Directions">'
			html = html + '</map>'
		}

	}

	return html;

}





function popup(location) {
	var dx=780;
	var dy=320;
	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 backroads() {
	var dx=620;
	var dy=440;
	var w = window.open('backroadsVid.htm', 'popupBackroads', 'width=' + dx + ',height=' + dy + ',status=no,resizable=no,menubar=no,location=no,scrollbars=no,toolbar=no');
	w.focus();
}


function popPic(picPath,w,h) {
	var dx=400;
	var dy=260;
	if(w!=null) dx = w;
	if(h!=null) dy = h;
	var w = window.open('', 'popPic', 'width=' + dx + ',height=' + dy + ',status=no,resizable=no,menubar=yes,location=no,scrollbars=no,toolbar=no');
	w.document.write('<html><head><link rel="stylesheet" type="text/css" href="styles.css"></head><body bgcolor=#e7dbc6>');
	w.document.write('<table cellspacing=0 cellpadding=0 border=0 width=100% height=100%><tr><td width=100% height=100% valign=middle align=center>');
	w.document.write('<img src="images/'+picPath+'"><br>');
	w.document.write('<p style="margin-top:0.5em;"><a href="javascript:print()">Print</a> | <a href="javascript:window.close()">Close Window</a></p>');
	w.document.write('</td></tr></table>');
	w.document.write('</body></html>');
	w.focus();
}

function popMap(picPath,head,w,h) {
	var dx=600;
	var dy=450;
	if(w!=null) dx = w;
	if(h!=null) dy = h;
	if(head==null) head = '';
	var w = window.open('', 'popPic', 'width=' + dx + ',height=' + dy + ',status=no,resizable=no,menubar=yes,location=no,scrollbars=yes,toolbar=no');
	w.document.write('<html><head><link rel="stylesheet" type="text/css" href="styles.css"></head><body bgcolor=#e7dbc6>');
	w.document.write('<table cellspacing=0 cellpadding=0 border=0 width=100% height=100%><tr><td width=100% height=100% valign=middle align=center>');
	
	w.document.write('<h1 align=center style="margin-bottom:0.7em;font-size:100%;">'+head+'</h1>');
	w.document.write('<img src="images/'+picPath+'"><br>');
	w.document.write('<p style="margin-top:0.5em;"><a href="javascript:print()">Print</a> | <a href="javascript:window.close()">Close Window</a></p>');
	w.document.write('</td></tr></table>');
	w.document.write('</body></html>');
	w.focus();
}


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


//-->


