<!--
//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 = false;
var isPc = navigator.userAgent.indexOf("Windows") != -1;
var isMac = !isPc;
var useFlash = false;
var obj = null;

if (isIE5==true || isNS6==true) isDHTML = true;

//FLASH SNIFF

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

//FUNCTIONS

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


function getFlash(flash,width,height,bgcolor) {
	var html = '';
	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>';
	return html;
} 

function popOffsite(location) {
	var x=10;
	var y=10;
	var dx=650;
	var dy=450;

	if (isIE4) {
	    var w = window.open(location, '_blank');
	    return;
	}
	var w = window.open();
	w.document.writeln("<html><head></head>");
	w.document.writeln("<frameset border=0 rows=50,* frameborder=no framespacing=0>");
	w.document.writeln("<frame frameborder=no framespacing=0 marginheight=0 marginwidth=0 name=nav noresize scrolling=no src=\"popOffsiteNav.html\">");
	w.document.writeln("<frame frameborder=no framespacing=0 name=body noresize src=\"" + location + "\">");
	w.document.writeln("</frameset>");
	w.document.writeln("</html>");

	w.focus();
}

function popGifts(which) {
	var dx=700;
	var dy=600;
	var w = window.open(which, 'popup', 'width=' + dx + ',height=' + dy + ',status=no,resizable=no,menubar=yes,location=no,scrollbars=no,toolbar=no');
	w.focus();
	w.document.writeln('<html><head><title>Gift Shop</title></head><body bgcolor=#E0CEA5><center>');
	w.document.writeln('<img src=\"images/giftshop/hires/'+which+'.jpg\"><br>');
	w.document.writeln('<a href=\"javascript:window.close()\"><img src=\"images/b_close.gif" vspace=5 border=0><br></a>');
	w.document.writeln('</body></html>');
}

function emailSignup() {
	var dx=570;
	var dy=360;
	var w = window.open('emailsignup.html', 'emailpop', 'width=' + dx + ',height=' + dy + ',status=no,resizable=no,menubar=yes,location=no,scrollbars=yes,toolbar=no');
	w.focus();
}

//-->
