<!--
function formHandler(form){ var resm = document.form.rmon.options[document.form.rmon.selectedIndex].value.substr(4,2); var resy = document.form.rmon.options[document.form.rmon.selectedIndex].value.substr(2,2); var resd = resm+document.form.rday.options[document.form.rday.selectedIndex].value+resy+";"; var resn = document.form.rnit.options[document.form.rnit.selectedIndex].value+";"; var resa = document.form.radt.options[document.form.radt.selectedIndex].value+";"; var resc = document.form.rchd.options[document.form.rchd.selectedIndex].value+";"; var resr = "010"; var resurl = "https://www.eldoradoreno.com/cgi-bin/LANSAWEB?procfun+rn+resnet+ren+funcparms+UP(A2560):;WEB02;"+resd+resn+resa+resc+resr+";?"; window.location.href = resurl;}
function SelectDate() { var sd = document.form.datebox.value.split("\/"); document.form.calMonth.value = sd[0]; document.form.calDay.value = sd[1]; document.form.calYear.value = sd[2]; var checkday = document.form.calDay.value; var checkmonth = document.form.calYear.value+document.form.calMonth.value; var checkyear = document.form.calYear.value; for(i=0; i < document.form.rday.length; i++) { if (document.form.rday[i].value == checkday)
document.form.rday[i].selected = true;}
for(i=0; i < document.form.rmon.length; i++) { if (document.form.rmon[i].value == checkmonth)
document.form.rmon[i].selected = true;}
}
function BuildDates() { mlist = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]; mdate = ["01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12"]; var tday = new Date(); var eday = tday.getDate(); var emon = tday.getMonth(); var eyer = tday.getFullYear(); var mnum = 12; document.form.rday[eday-1].selected = true; var count = emon; for (i=0;i<mnum;i++) { if (count > 11) { eyer ++; count = 0;}
document.form.rmon.options[i].value = eyer + mdate[count]; document.form.rmon.options[i].text = eyer + " " + mlist[count]; count ++;}
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
    window.open(theURL,winName,features);
}
function PopUpVirtualTour(urlstr, height, width) { 
	var options = 'height=' + height + ',width=' + width + ',toolbar=no,menubar=no,scrollbars=no,resizable=no,status=no,location=no,z-lock=yes,left=5,top=5';
	VrxStudiosPopUp = window.open(urlstr, 'VrxStudiosPopUp', options); 
	VrxStudiosPopUp.focus();
}
function showpano(vtid){
	var settings = 'width=340,height=550,top=5,left=5,scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
	var win = window.open('http://display.maxvr.com/expedia/hotels/hotelviewer_328.asp?vtid=' + vtid,'vrxviewer',settings);
	win.focus();
}
function golf(){
  window.open('http://www.bookrenotahoe.com/index.php?client[id]=10&hotel_id=3','remote','width=745,height=500,scrollbars=Yes,resizable=no,status=yes,menubar=no,hotkeys=no');
}
function ski(){
  window.open('http://www.bookrenotahoe.com/index.php?client[id]=20&hotel_id=3','remote','width=745,height=500,scrollbars=Yes,resizable=no,status=yes,menubar=no,hotkeys=no');
}

function P7_TMenu(b,og) { //v2.5 by Project Seven Development(PVII)
 var i,s,c,k,j,tN,hh;if(document.getElementById){
 if(b.parentNode && b.parentNode.childNodes){tN=b.parentNode.childNodes;}else{return;}
 for(i=0;i<tN.length;i++){if(tN[i].tagName=="DIV"){s=tN[i].style.display;
 hh=(s=="block")?"none":"block";if(og==1){hh="block";}tN[i].style.display=hh;}}
 c=b.firstChild;if(c.data){k=c.data;j=k.charAt(0);if(j=='+'){k='-'+k.substring(1,k.length);
 }else if(j=='-'){k='+'+k.substring(1,k.length);}c.data=k;}if(b.className=='plusmark'){
 b.className='minusmark';}else if(b.className=='minusmark'){b.className='plusmark';}}
}

function P7_setTMenu(){ //v2.5 by Project Seven Development(PVII)
 var i,d='',h='<style type=\"text/css\">';if(document.getElementById){
 var tA=navigator.userAgent.toLowerCase();if(window.opera){
 if(tA.indexOf("opera 5")>-1 || tA.indexOf("opera 6")>-1){return;}}
 for(i=1;i<20;i++){d+='div ';h+="\n#navmain div "+d+"{display:none;}";}
 document.write(h+"\n</style>");}
}
P7_setTMenu();

function P7_TMopen(){ //v2.5 by Project Seven Development(PVII)
 var i,x,d,hr,ha,ef,a,ag;if(document.getElementById){d=document.getElementById('navmain');
 if(d){hr=window.location.href;ha=d.getElementsByTagName("A");if(ha&&ha.length){
 for(i=0;i<ha.length;i++){if(ha[i].href){if(hr.indexOf(ha[i].href)>-1){
 ha[i].className="currentmark";a=ha[i].parentNode.parentNode;while(a){
 if(a.firstChild && a.firstChild.tagName=="A"){if(a.firstChild.onclick){
 ag=a.firstChild.onclick.toString();if(ag&&ag.indexOf("P7_TMenu")>-1){
 P7_TMenu(a.firstChild,1);}}}a=a.parentNode;}}}}}}}
}

function P7_TMall(a){ //v2.5 by Project Seven Development(PVII)
 var i,x,ha,s,tN;if(document.getElementById){ha=document.getElementsByTagName("A");
 for(i=0;i<ha.length;i++){if(ha[i].onclick){ag=ha[i].onclick.toString();
 if(ag&&ag.indexOf("P7_TMenu")>-1){if(ha[i].parentNode && ha[i].parentNode.childNodes){
 tN=ha[i].parentNode.childNodes;}else{break;}for(x=0;x<tN.length;x++){
 if(tN[x].tagName=="DIV"){s=tN[x].style.display;if(a==0&&s!='block'){P7_TMenu(ha[i]);
 }else if(a==1&&s=='block'){P7_TMenu(ha[i]);}break;}}}}}}
}

function P7_TMclass(){ //v2.5 by Project Seven Development(PVII)
 var i,x,d,tN,ag;if(document.getElementById){d=document.getElementById('navmain');
 if(d){tN=d.getElementsByTagName("A");if(tN&&tN.length){for(i=0;i<tN.length;i++){
 ag=(tN[i].onclick)?tN[i].onclick.toString():false;if(ag&&ag.indexOf("P7_TMenu")>-1){
 tN[i].className='plusmark';}else{tN[i].className='defmark';}}}}}
}

function MM_reloadPage(init) {  //Netscape 4 Resize Fix
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

// Affiliate Tracking Code - Begin
	var scriptLoc = 'http://www.eldoradodistribution.com/rep.asp';
	var kbId = 0;
	var queryString = window.location.search.substring(1);
	var imgdata = '';
	var subdata = '';
	var overwrite = 0;

	if (queryString.length > 0)
	{
		var pairs = queryString.split('&');
		for(var i = 0; i < pairs.length; i++)
		{
			var pairs2 = pairs[i].split('=');
			switch(pairs2[0].toLowerCase())
			{
				case 'kbid':
					kbId = pairs2[1];
					break;
				case 'clearcookie':
					if (pairs2[1] == 1)
					{
						DeleteCookie("kbid");
					}
					break;
				case 'img':
					imgdata = pairs2[1];
					break;
				case 'sub':
					subdata = pairs2[1];
					break;
			}
		} //end for
	}//end if

	if (GetCookie("kbid") == null || overwrite == 1)
	{
		if (kbId != 0)
		{
			var img = new Image();
			var url = scriptLoc + '?id=' + kbId;
			if (imgdata != '')
			{
				url += '&img=' + imgdata
			}
			if (subdata != '')
			{
				url += '&sub=' + subdata
			}
			img.src = url;
			SetCookie("kbid", kbId, 1);
		}
	}//end if
	
	function getCookieVal (offset) 
	{
		var endstr = document.cookie.indexOf (";", offset);
		if (endstr == -1)
			endstr = document.cookie.length;
		return unescape(document.cookie.substring(offset, endstr));
	}

	function GetCookie (name) 
	{
		var arg = name + "=";
		var alen = arg.length;
		var clen = document.cookie.length;
		var i = 0;
		
		while (i < clen) 
		{
			var j = i + alen;
			if (document.cookie.substring(i, j) == arg)
				return getCookieVal (j);
			i = document.cookie.indexOf(" ", i) + 1;
			if (i == 0) break; 
		}
		return null;
	}

	function WriteCookie (name, value, expires) 
	{
		var argv = SetCookie.arguments;
		var argc = SetCookie.arguments.length;
		var path = (argc > 3) ? argv[3] : null;
		var domain = (argc > 4) ? argv[4] : null;
		var secure = (argc > 5) ? argv[5] : false;
		var cookie = name + "=" + escape(value) +
			((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
			((path == null) ? "" : ("; path=" + path)) +
			((domain == null) ? "" : ("; domain=" + domain)) +
			((secure == true) ? "; secure" : "");
		document.cookie = cookie;
	}

	function DeleteCookie (name) 
	{
		var exp = new Date();
		exp.setTime (exp.getTime() - 1000000000);  // This cookie is history (changed -1 to make it previous time)
		var cval = GetCookie (name);
		document.cookie =name + "=" + cval + "; expires=" + exp.toGMTString();
	}

	function SetCookie(name, value, expiredays)
	{
		var expdate = new Date(); 
		expdate.setTime(expdate.getTime() + (24 * 60 * 60 * 1000 * expiredays)); 
		WriteCookie(name, value, expdate);  
	}
// Affiliate Tracking Code - End

//-->

