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;
	
}
var xmlHttp
function showResult(str)
{
if (str.length==0)
 { 
 document.getElementById("livesearch").
 innerHTML="";
 document.getElementById("livesearch").
 style.border="0px";
 return
 }
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 } 
var url="livesearch.php"
url=url+"?q="+str
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateChanged 
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
} 

function stateChanged() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 document.getElementById("livesearch").
 innerHTML=xmlHttp.responseText;
 document.getElementById("livesearch").
 style.border="1px solid #A5ACB2";
 } 
}
function GetXmlHttpObject()
{
var xmlHttp=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttp=new XMLHttpRequest();
 }
catch (e)
 {
 // Internet Explorer
 try
  {
  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttp;
}