function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function imgSwap(oImg)
{
   var strOver  = "topNav_0"    // image to be used with mouse over
   var strOff = "topNav_ro_0"     // normal image
   var strImg = oImg.src
   if (strImg.indexOf(strOver) != -1) 
      oImg.src = strImg.replace(strOver,strOff)
   else
      oImg.src = strImg.replace(strOff,strOver)
}
function imgSwapLeft(oImg)
{
   var strOver  = "leftNav_0"    // image to be used with mouse over
   var strOff = "leftNav_ro_0"     // normal image
   var strImg = oImg.src
   if (strImg.indexOf(strOver) != -1) 
      oImg.src = strImg.replace(strOver,strOff)
   else
      oImg.src = strImg.replace(strOff,strOver)
}
function setNavigationTop() {
	
	var tmpURL = window.location.href;
	
	if (tmpURL.indexOf("reserve") > -1){
		MM_swapImage('reserve','','/images/topNav_ro_02.png',1);
	}
	else if (tmpURL.indexOf("availability") > -1){
		MM_swapImage('availability','','/images/topNav_ro_03.png',1);
	}
	else if (tmpURL.indexOf("rates") > -1){
		MM_swapImage('rates','','/images/topNav_on_04.png',1);
	}
	else if (tmpURL.indexOf("map") > -1){
		MM_swapImage('map','','/images/topNav_on_05.png',1);
	}
	else if (tmpURL.indexOf("weather") > -1){
		MM_swapImage('weather','','/images/topNav_on_06.png',1);
	}
	else if (tmpURL.indexOf("contact") > -1){
		MM_swapImage('contact','','/images/topNav_on_07.png',1);
	}
}
function setNavigationLeft(){
var tmpURL = window.location.href;
	if (tmpURL.indexOf("exceeding") > -1){
		MM_swapImage('exceeding','','/images/leftNav_ro_03.png',1);
	}
	else if (tmpURL.indexOf("beyond") > -1){
		MM_swapImage('beyond','','/images/leftNav_ro_05.png',1);
	}
	else if (tmpURL.indexOf("landmark") > -1){
		MM_swapImage('landmark','','/images/leftNav_ro_07.png',1);
	}
	else if (tmpURL.indexOf("accomodations") > -1){
		MM_swapImage('accomodations','','/images/leftNav_ro_09.png',1);
	}
	else if (tmpURL.indexOf("culinary") > -1){
		MM_swapImage('culinary','','/images/leftNav_ro_11.png',1);
	}
	else if (tmpURL.indexOf("downtown") > -1){
		MM_swapImage('downtown','','/images/leftNav_ro_13.png',1);
	}
	else if (tmpURL.indexOf("welcome") > -1){
		MM_swapImage('welcome','','/images/leftNav_ro_15.png',1);
	}
}
function setNavigationSub(){
	var tmpURL = window.location.href;
	
}
/**
 * Copyright (c) 2007, Carl S. Yestrau
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *     * Redistributions of source code must retain the above copyright
 *       notice, this list of conditions and the following disclaimer.
 *     * Redistributions in binary form must reproduce the above copyright
 *       notice, this list of conditions and the following disclaimer in the
 *       documentation and/or other materials provided with the distribution.
 *     * Neither the name of Feature Blend nor the
 *       names of its contributors may be used to endorse or promote products
 *       derived from this software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY Carl S. Yestrau ''AS IS'' AND ANY
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * DISCLAIMED. IN NO EVENT SHALL Carl S. Yestrau BE LIABLE FOR ANY
 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 *
 */
function FlashDetectBase(options){
	var self = this;
	var _release = "1.0";
	var options = options || {};
	self.installed = false;
	self.major = -1;
	self.minor = -1;
	self.revision = -1;
	self.revisionStr = "";
	self.activeXVersion = "";
	var activeXDetectRules = options.activeXDetectRules || [
		{
			"name":"ShockwaveFlash.ShockwaveFlash.7",
			"version":function(obj){return getActiveXVersion(obj);}
		},
		{
			"name":"ShockwaveFlash.ShockwaveFlash.6",
			"version":function(obj){
//				var version = "6,-1,-1,-1";
				var version = "6,0,21";
				try{
					obj.AllowScriptAccess = "always";
					version = getActiveXVersion(obj);
				}catch(err){}
				return version;
			}
		},
		{
			"name":"ShockwaveFlash.ShockwaveFlash",
			"version":function(obj){return getActiveXVersion(obj);}
		}
	];
	var getActiveXVersion = function(activeXObj){
		var version = -1;
		try{
			version = activeXObj.GetVariable("$version");
		}catch(err){}
		return version;
	}
	var getActiveXObject = function(name){
		var obj = -1;
		try{
			obj = new ActiveXObject(name);
		}catch(err){}
		return obj;
	}
	var parseActiveXVersion = function(str){
		var versionArray = str.split(",");
		return {
			"major":parseInt(versionArray[0].split(" ")[1]),
			"minor":parseInt(versionArray[1]),
			"revision":parseInt(versionArray[2]),
			"revisionStr":versionArray[2]
		};
	}
	var parseRevisionStrToInt = function(str){
		return parseInt(str.replace(/[a-zA-Z]/g,"")) || self.revision;
	}
	self.majorAtLeast = function(version){
		return self.major >= version;
	}
	self.DetectBase = function(){
		if(navigator.plugins && navigator.plugins.length>0){
			var type = 'application/x-shockwave-flash';
			var mimeTypes = navigator.mimeTypes;
			if(mimeTypes && mimeTypes[type] && mimeTypes[type].enabledPlugin && mimeTypes[type].enabledPlugin.description){
				var desc = mimeTypes[type].enabledPlugin.description;
				var descParts = desc.split(' ');
				var majorMinor = descParts[2].split('.');
				self.major = parseInt(majorMinor[0]);
				self.minor = parseInt(majorMinor[1]); 
				self.revisionStr = descParts[3];
				self.revision = parseRevisionStrToInt(self.revisionStr);
				self.installed = true;
			}
		}else if(navigator.appVersion.indexOf("Mac")==-1 && window.execScript){
			var version = -1;
			for(var i=0; i<activeXDetectRules.length && version==-1; i++){
				var obj = getActiveXObject(activeXDetectRules[i].name);
				if(typeof obj == "object"){
					self.installed = true;
					version = activeXDetectRules[i].version(obj);
					if(version!=-1){
						var versionObj = parseActiveXVersion(version);
						self.major = versionObj.major;
						self.minor = versionObj.minor; 
						self.revision = versionObj.revision;
						self.revisionStr = versionObj.revisionStr;
						self.activeXVersion = version;
					}
				}
			}
		}
	}();
}
var FlashDetect = new FlashDetectBase();


function showHome(){
	
	if(!FlashDetect.installed){
		document.write('<div class="leftNav"><div style="padding-top:23px;"><!----><a href="/exceeding/"  onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(""exceeding"","""",""/images/leftNav_ro_03.png"",1)"><img src="/images/leftNav_03.png" name="exceeding" width="205" height="35" border="0" id="exceeding"/></a></div>')
		document.write('<div><a href="/beyond/" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(""beyond"","""",""/images/leftNav_ro_05.png"",1)"><img src="/images/leftNav_05.png" name="beyond" width="205" height="35" border="0" id="beyond" /></a></div>')
		document.write('<div><a href="/landmark/" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(""landmark"","""",""/images/leftNav_ro_07.png"",1)"><img src="/images/leftNav_07.png" name="landmark" width="205" height="35" border="0" id="landmark" /></a></div>')
		document.write('<div class="Llogo"><a href="/"><img src="/images/royal_logo.png" border="0" /></a></div>')
		document.write('<div><a href="/accomodations/" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(""accomodations"","""",""/images/leftNav_ro_09.png"",1)"><img src="/images/leftNav_09.png" name="accomodations" width="205" height="35" border="0" id="accomodations" /></a></div>')
		document.write('<div><a href="/culinary/" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(""culinary"","""",""/images/leftNav_ro_11.png"",1)"><img src="/images/leftNav_11.png" name="culinary" width="205" height="21" border="0" id="culinary" /></a></div>')
		document.write('<div><a href="/downtown/" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(""downtown"","""",""/images/leftNav_ro_13.png"",1)"><img src="/images/leftNav_13.png" name="downtown" width="205" height="36"  border="0" id="downtown" /></a></div>')
		document.write('<div><a href="/welcome/" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(""welcome"","""",""/images/leftNav_ro_15.png"",1)"><img src="/images/leftNav_15.png" name="welcome" width="205" height="26"  border="0" id="welcome" /></a></div>')
        document.write('</div>')
		document.write('<div class="contentText" style="margin-left:230px"><img src="/images/alt_flash.jpg" border="0"></div>')
		
		
		
		
	}else{
		document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="888" height="458" align="top" valign="top" title="Royal Elizabeth Website" id="RoyalFlash">')
	document.write('<param name="movie" value="/home.swf" />')
	document.write('<param name="quality" value="high" />')
	/*document.write('<param name="wmode" value="transparent" />')*/
	document.write('<embed src="/home.swf" width="888" height="458" align="top" valign="top" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="RoyalFlash"></embed>')
	document.write('</object>')
		
		
		
	}
	
	

			}
function showWeather(){

   /* Locations can be edited manually by updating 'wx_locID' below.  Please also update */
   /* the location name and link in the above div (wx_module) to reflect any changes made. */
   var wx_locID = '85701';

   /* If you are editing locations manually and are adding multiple modules to one page, each */
   /* module must have a unique div id.  Please append a unique # to the div above, as well */
   /* as the one referenced just below.  If you use the builder to create individual modules  */
   /* you will not need to edit these parameters. */
   var wx_targetDiv = 'wx_module_397';

   /* Please do not change the configuration value [wx_config] manually - your module */
   /* will no longer function if you do.  If at any time you wish to modify this */
   /* configuration please use the graphical configuration tool found at */
   /* https://registration.weather.com/ursa/wow/step2 */
   var wx_config='SZ=300x250*WX=FHW*LNK=RCTN*UNT=F*BGI=sunset*MAP=null|null*DN=www.royalelizabeth.com*TIER=0*PID=1032899815*MD5=a542619692dcc058bb822ac7cd46e662';

   document.write('<scr'+'ipt src="'+document.location.protocol+'//wow.weather.com/weather/wow/module/'+wx_locID+'?config='+wx_config+'&proto='+document.location.protocol+'&target='+wx_targetDiv+'"></scr'+'ipt>');
   
	
}
