var	today =	new Date();
var cookieEnabled=(navigator.cookieEnabled)? true : false

//if not IE4+ nor NS6+
if (typeof navigator.cookieEnabled=="undefined" && !cookieEnabled)
{
	document.cookie="testcookie"
	cookieEnabled=(document.cookie.indexOf("testcookie")!=-1)? true : false
}

MM_preloadImages("../media/images/footer_bg.gif","../Media/images/header/logo_b.gif","../media/images/trans.gif","../Media/images/header/trans.gif","../media/images/ulbg.jpg","../Media/Images/buttons/previous.gif","../Media/Images/buttons/next.gif","../media/images/branding1.jpg","../media/images/branding2.jpg","../media/images/tslogo.gif","../media/images/header/sigpartners_2005.gif","../media/images/page_loading.gif","../media/images/WaitHotel.jpg","../media/images/AustinHeader.gif")
function MM_preloadImages()
{
	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 ShowCookies()
{
	window.open('CookiesText.cfm','myWin1','toolbar=no,menubar=no,location=no,directories=no,scrollbars=yes,width=400,height=300,left=0,top=0');
}

function OpenWins(url, w, h)
{
	new_window = window.open(url,'myWindow', 'toolbar=no,width='+w+',height='+h+ 'top=10,left=5,directories=yes,status=yes,name=yes,scrollbars=no'+ ',resizable=1,resize=yes,menubar=no');
	new_window.focus();
}

function load_flash(movie, width, height, quality, bgcolor)
{
	if (quality=='') quality = 'high';
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab##version=6,0,29,0" width="'+width+'" height="'+height+'">');
	document.write('  <param name="movie" value="'+movie+'">');
	document.write('  <param name="quality" value="'+quality+'">');
	if (bgcolor != '' && bgcolor != 'undefined')
	{
		document.write('  <param name="bgcolor" value="'+bgcolor+'">');
	}
	document.write('  <embed src="'+movie+'" quality="'+quality+'" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'"></embed>');
	document.write('</object>');
}

function OpenWin(strPropId,strVal,intWidth,intHeight)
{
	var imgWidth = 0;
	var imgHeight = 0;
	imgWidth = imgWidth + parseInt(intWidth) + 5;
	imgHeight = imgHeight + parseInt(intHeight) + 45;
	window.open('popimages.cfm?strPropertyId='+strPropId+'&strValue='+strVal,'Image','width='+imgWidth+',height='+imgHeight+',toolbars=no,scrollbars=no,top=50,left=50');
 }	

function Detail(strPropertyId)
{
	document.FrmDetailedListing.HdnOPropertyId.value=strPropertyId;
	document.FrmDetailedListing.action='H_HotelDetail.cfm?HdnOPropertyId='+strPropertyId;
	document.FrmDetailedListing.submit();
}

function ViewDetail()
{
	var strPropertyId = document.FrmDetailedListing.SelOHotel.options[document.FrmDetailedListing.SelOHotel.selectedIndex].value;
	if (strPropertyId != ""){
		document.FrmDetailedListing.HdnOPropertyId.value=strPropertyId;
		document.FrmDetailedListing.action='H_HotelDetail.cfm';
		document.FrmDetailedListing.submit();
	}
}

function Search(strPropId)
{
	document.FrmDetailedListing.HdnOPropertyId.value=strPropId;
	document.FrmDetailedListing.action='H_HotelDetail.cfm';
	document.FrmDetailedListing.submit();
}

function CheckAvail(strPropId)
{
	today=new Date()
	document.FrmDetailedListing.HdnOPropertyId.value=strPropId;
	document.FrmDetailedListing.action='H_RoomSearch.cfm?'+ today.getSeconds();
	document.FrmDetailedListing.submit();
}

function Navigate(strVendorId,strLocId,strStartRow)
{
	document.FrmDetailedListing.HdnOLocationId.value=strLocId;
	document.FrmDetailedListing.HdnOVendorId.value=strVendorId;
	document.FrmDetailedListing.HdnOStartRow.value=strStartRow;
	//document.FrmDetailedListing.HdnOAction.value="";
	document.FrmDetailedListing.submit();
}

function SortBy(StrSort,strVendorId)
{
	document.FrmDetailedListing.HdnOAction.value="";
	document.FrmDetailedListing.HdnOSortBy.value=StrSort;
	document.FrmDetailedListing.HdnOVendorId.value=strVendorId;
	if(document.FrmDetailedListing.HdnOOrder.value == 'Asc'){
		document.FrmDetailedListing.HdnOOrder.value = "Desc";
	}
	else{
		document.FrmDetailedListing.HdnOOrder.value = "Asc";		

	}
	document.FrmDetailedListing.submit();


}

function SortBy1(StrSort,strVendorId)
{
	document.FrmDetailedListing.HdnOAction.value="SortByPrice";
	document.FrmDetailedListing.HdnOSortBy.value=StrSort;
	document.FrmDetailedListing.HdnOVendorId.value=strVendorId;
	if(document.FrmDetailedListing.HdnOOrder.value == 'Asc'){
		document.FrmDetailedListing.HdnOOrder.value = "Desc";
	}
	else{
		document.FrmDetailedListing.HdnOOrder.value = "Asc";		

	}

	document.FrmDetailedListing.submit();
}

function ShowAll(strVendorId)
{
	document.FrmDetailedListing.HdnOAction.value="";
	document.FrmDetailedListing.HdnOPropertyName.value="";
	document.FrmDetailedListing.DatRCheckOutDate.value="";
	document.FrmDetailedListing.DatRCheckInDate.value="";
	document.FrmDetailedListing.HdnOLocationId.value="";
	document.FrmDetailedListing.HdnOSortBy.value="";
	document.FrmDetailedListing.HdnOOrder.value="";
	document.FrmDetailedListing.submit();
}

function Location(strVendorId)
{
	strLocId =document.FrmDetailedListing.SelOLocation.value;
	document.FrmDetailedListing.HdnOLocationId.value=strLocId;
	document.FrmDetailedListing.HdnOVendorId.value=strVendorId;
	document.FrmDetailedListing.submit();
}

//window.onload = HideLoadingImag
        
document.writeln ("<script src=\"\"><\/script>");
