<!--
//BROWSER SNIFF

/*
if(true) {
	try {
		if(flashStyle==null || flashStyle==undefined) flashStyle = '';
	} catch (e) {
		var flashStyle = '';
	}
	try {
		if(flashClass==null || flashClass==undefined) flashClass = '';
	} catch (e) {
		var flashClass = '';
	}
	
	document.write('<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" WIDTH='+flashWidth+' HEIGHT='+flashHeight+' style=\"'+flashStyle+'\" class=\"'+flashClass+'\">');
	document.write('<PARAM NAME=movie VALUE=\"'+flashMovie+'\"><PARAM NAME=quality VALUE=high><PARAM NAME=bgcolor VALUE='+flashBgcolor+'>');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="salign" value="lt" />');
	document.write('<param name="scaleMode" value="noScale" />');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<EMBED src=\"'+flashMovie+'\" quality=high salign="lt" scaleMode="noScale" bgcolor='+flashBgcolor+' WIDTH='+flashWidth+' HEIGHT='+flashHeight+' TYPE="application/x-shockwave-flash" PLUGINSPAGE=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\">');
	document.write('</EMBED></OBJECT>');
}
*/

if(!rarebrick) var rarebrick = new Object();

rarebrick.addFlash = function() {	
	// Overwrite regular CSS used for alternative content to enable Full Browser Flash
	//swfobject.createCSS("html", "height:100%;");
	//swfobject.createCSS("body", "margin:0; padding:0; overflow:visible; height:100%;");
	//swfobject.createCSS("#flashMain", "height:100%;");
	
	var flashvars = {};
	flashvars.temp = false;
	var params = {};
	params.allowScriptAccess = "always";
	params.wmode = "transparent";
	var attributes = {};
	attributes.id = "flashMain";
	
	swfobject.embedSWF('main.swf', 'flashMainDiv', '100%', '100%', '8.0.0', 'swf/expressInstall.swf', flashvars, params, attributes);
}


if(!swfobject.hasFlashPlayerVersion("8.0.0")) {
	//no flash or autoinstall present
	//display error message
	var noFlashElem = document.getElementById('noFlash');
	var elem = document.createElement('div');
	elem.className = 'noFlash';
	elem.innerHTML = '<p>Sorry, you do not have the proper flash plugin to view this site.</p><p>Please download the new Flash plugin <a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" target="_blank">here</a>.</p><p>Or, continue to our <a href="hotel.jsp">HTML site</a>.</p>';
	noFlashElem.appendChild(elem);
}

swfobject.addDomLoadEvent(rarebrick.addFlash);


//-->
