<!--
//=======================================================================================
google_ad_client="pub-9586596697702306";
google_ad_slot="5696221487";
google_ad_width=728;
google_ad_height=90;
//=======================================================================================
function SetMainImage(newSRC) {
	xhotelmainimage=document.getElementById("hotelmainimage");
	if (xhotelmainimage) {
		xhotelmainimage.src=newSRC;
	}//end if (hotelmainimage)
}//end function
//=======================================================================================
function SetTrMouseOvers() {
	xTables=document.getElementsByTagName("table");
	for (t=0;t<xTables.length;t++) {
		xTableClass=xTables[t].className;
		if (xTableClass=="hotlist") {
			xTRs=xTables[t].getElementsByTagName("tr");
			for (tr=0;tr<xTRs.length;tr++) {
				xTRid="tr"+tr;
				xTRs[tr].id=xTRid;
				thisTR=document.getElementById(xTRid);
				thisTR.onmouseover=function() {
					this.className="overrow";
				}//end fucntion
				if (tr % 2) {
					thisTR.className="evenrow"
					thisTR.onmouseout=function() {
						this.className="evenrow";
					}//end fucntion
				} else {
					thisTR.className="oddrow"
					thisTR.onmouseout=function() {
						this.className="oddrow";
					}//end fucntion
				}//end if (tr % 2)
			}//next tr<=xTRs.length
		}//end if (xTableClass=="hotlist")
	}//next t<xTables.length
}//end function
//=======================================================================================
function SortDropdowns() {
	theDiv=document.getElementById("breadcrumbs");
	if (theDiv) {
		theSelect=document.getElementById("dropsubsections"); 
		if (theSelect) {
			theVars=new Array(); 
			for(i=1;i<theSelect.length; i++) { 
				theVars[i-1]=theSelect.options[i].text+"|"+theSelect.options[i].value;
			}//next i<theSelect.length
			if (theVars.length>1) {
				theVars.sort();
				for(i=0;i<theVars.length; i++) {
					theSelect.options[i+1].text=theVars[i].split("|")[0];
					theSelect.options[i+1].value=theVars[i].split("|")[1];
				}//next i<theVars.length
				theLI=document.createElement("li");
				theLI.innerHTML="&gt;";
				theDiv.getElementsByTagName("ul")(0).appendChild(theLI);
				theLI=document.createElement("li");
				theLI.innerHTML="Hotels In: ";
				theLI.appendChild(theSelect);
				theDiv.getElementsByTagName("ul")(0).appendChild(theLI);
			} else {
				theSelect.style.display="none";
			}//end if (theVars.length>1)
		}//end if(theSelect)
		theSelect=document.getElementById("droppagelist"); 
		if (theSelect) {
			theLI=document.createElement("li");
			theLI.innerHTML="&gt;";
			theDiv.getElementsByTagName("ul")(0).appendChild(theLI);
			theLI=document.createElement("li");
			theLI.innerHTML="Page: ";
			theLI.appendChild(theSelect);
			theDiv.getElementsByTagName("ul")(0).appendChild(theLI);
			theURL=document.URL;
			theFolders=theURL.split("/");
			theDepth=theFolders.length-1;
			theFile=theFolders[theDepth];
			if (theFile.indexOf("page")>-1) {
				theIndex=theFile.replace("page", "").replace(".asp", "")-1;
				theSelect.selectedIndex=theIndex;
			}//end if (theFile.indexOf("page")>-1)
		}//end if(theSelect)
	}//end if (theDiv)
}//end function
//=======================================================================================
function SetHighlights() {
	xInputs=document.getElementsByTagName("input");
	for (i=0;i<xInputs.length;i++) {
		if (xInputs[i].type=="text") {
			xInputs[i].onfocus=function() {
					if (this.defaultValue==this.value) {
						this.select();
					}//end if ()
				}//end function
			xInputs[i].onmouseup=function(){return false};//because safari is special
		}//end if (xInputs[i].type=="text")
	}//next i<xInputs.length
	xTextAreas=document.getElementsByTagName("textarea");
	for (i=0;i<xTextAreas.length;i++) {
		xTextAreas[i].onfocus=function() {
				if (this.defaultValue==this.value) {
					this.select();
				}//end if ()
			}//end function
		xTextAreas[i].onmouseup=function(){return false};//because safari is special
	}//next i<xTextAreas.length
}//end function
//=======================================================================================
function createMap(xHOTELlat, xHOTELlong, xHOTELname) {
	if (GBrowserIsCompatible()) {
		function createMarker(point,html) {
			var marker=new GMarker(point, icon);
			GEvent.addListener(marker, "click", function() {
			marker.openInfoWindowHtml(html);
			});
		return marker;
		}
		var map=new 
		GMap2(document.getElementById("hotmap"));
		map.addControl(new GLargeMapControl());
		map.addControl(new GMapTypeControl());
		map.setCenter(new GLatLng(xHOTELlat, xHOTELlong), 13); 
		map.setMapType(G_NORMAL_MAP);
		var ViewPoint=new GLatLng(xHOTELlat,xHOTELlong); 
		panoramaOptions={ latlng:ViewPoint }; 
		var myPano=new GStreetviewPanorama(document.getElementById("hotstreetview"), panoramaOptions); 
		svOverlay=new GStreetviewOverlay(); 
		map.addOverlay(svOverlay);
		GEvent.addListener(map,"click", function(overlay,latlng) { 
		myPano.setLocationAndPOV(latlng); 
		});	
		var icon=new GIcon();
		icon.iconSize=new GSize(40, 40);
		icon.iconAnchor=new GPoint(10, 34);
		icon.infoWindowAnchor=new GPoint(20, 20);
		icon.image="/images/css/mappoint.png";
		var point=new GLatLng(xHOTELlat, xHOTELlong); 
		var marker=createMarker(point,xHOTELname); 
		map.addOverlay(marker);
	}//end if (GBrowserIsCompatible())
}//end function
//=======================================================================================
function jump(theSelect) {
	window.location=theSelect.options[theSelect.options.selectedIndex].value
} //end function 
//=======================================================================================
var _gaq=_gaq || [];
  _gaq.push(['_setAccount', 'UA-2200328-5']);
  _gaq.push(['_trackPageview']);
  (function() {
    var ga=document.createElement('script'); ga.type='text/javascript'; ga.async=true;
    ga.src=('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s=document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
//=======================================================================================
window.onload=function() {
	SetTrMouseOvers();
	SortDropdowns();
	SetHighlights();
}//end function
//=======================================================================================
//-->

