document.writeln("<div id=\"book_online_promo\">");
/*
document.writeln("<img id='mainImg' src='/local/summer/gfx/temp/subpage_bookonline.jpg' border='0'>");
*/
document.writeln("<a href='https://res.snowshoemtn.com/smsworld/wc.dll?smsworld~availbox' ><img id='mainImg' src='/local/winter2006/gfx/subpage_bookonline.jpg' border='0'></a>");
/*
document.writeln("<a href='https://res.snowshoemtn.com/smsworld/wc.dll?smsworld~availbox' ><img id='mainImg' src='/local/summer/gfx/subpage_bookonline.jpg' border='0'></a>");
document.writeln("<img id=\"headerImg\" src=\"\/local\/winter2006\/gfx\/subpage_bookonline_header.jpg\" border=\"0\">");
document.writeln("<form name=\"vpsform\" onsubmit=\"Javascript:vpsFormSubmit()\" method=\"post\" target=\"_blank\" ID=\"Form1\">");
document.writeln("<input type=\"hidden\" name=\"source_id\" ID=\"Hidden1\">");
document.writeln("<div id=\"formItems\">");
document.writeln("<div id=\"startDate\">Start Date<\/div>");
document.writeln("<select id=\"bookMonth\" name=\"month\" onchange=\"JavaScript:ResetDays(this,document.vpsform.day);\">");
document.writeln("<option value=\"1\" selected>Jan<\/option>");
document.writeln("<option value=\"2\">Feb<\/option>");
document.writeln("<option value=\"3\">Mar<\/option>");
document.writeln("<option value=\"4\">Apr<\/option>");
document.writeln("<option value=\"5\">May<\/option>");
document.writeln("<option value=\"6\">Jun<\/option>");
document.writeln("<option value=\"7\">Jul<\/option>");
document.writeln("<option value=\"8\">Aug<\/option>");
document.writeln("<option value=\"9\">Sep<\/option>");
document.writeln("<option value=\"10\">Oct<\/option>");
document.writeln("<option value=\"11\">Nov<\/option>");
document.writeln("<option value=\"12\">Dec<\/option>");
document.writeln("<\/select>");
document.writeln("<select id=\"bookDay\" name=\"day\">");
document.writeln("<option value=\"1\" selected>1<\/option>");
document.writeln("<option value=\"2\">2<\/option>");
document.writeln("<option value=\"3\">3<\/option>");
document.writeln("<option value=\"4\">4<\/option>");
document.writeln("<option value=\"5\">5<\/option>");
document.writeln("<option value=\"6\">6<\/option>");
document.writeln("<option value=\"7\">7<\/option>");
document.writeln("<option value=\"8\">8<\/option>");
document.writeln("<option value=\"9\">9<\/option>");
document.writeln("<option value=\"10\">10<\/option>");
document.writeln("<option value=\"11\">11<\/option>");
document.writeln("<option value=\"12\">12<\/option>");
document.writeln("<option value=\"13\">13<\/option>");
document.writeln("<option value=\"14\">14<\/option>");
document.writeln("<option value=\"15\">15<\/option>");
document.writeln("<option value=\"16\">16<\/option>");
document.writeln("<option value=\"17\">17<\/option>");
document.writeln("<option value=\"18\">18<\/option>");
document.writeln("<option value=\"19\">19<\/option>");
document.writeln("<option value=\"20\">20<\/option>");
document.writeln("<option value=\"21\">21<\/option>");
document.writeln("<option value=\"22\">22<\/option>");
document.writeln("<option value=\"23\">23<\/option>");
document.writeln("<option value=\"24\">24<\/option>");
document.writeln("<option value=\"25\">25<\/option>");
document.writeln("<option value=\"26\">26<\/option>");
document.writeln("<option value=\"27\">27<\/option>");
document.writeln("<option value=\"28\">28<\/option>");
document.writeln("<option value=\"29\">29<\/option>");
document.writeln("<option value=\"30\">30<\/option>");
document.writeln("<option value=\"31\">31<\/option>");
document.writeln("<\/select>");
document.writeln("<div id=\"nights\"># of Nights<\/div>");
document.writeln("<select id=\"bookNights\" name=\"nights\">");
document.writeln("<option value=\"1\">1<\/option>");
document.writeln("<option value=\"2\">2<\/option>");
document.writeln("<option value=\"3\">3<\/option>");
document.writeln("<option value=\"4\">4<\/option>");
document.writeln("<option value=\"5\">5<\/option>");
document.writeln("<option value=\"6\">6<\/option>");
document.writeln("<option value=\"7\" selected>7<\/option>");
document.writeln("<option value=\"8\">8<\/option>");
document.writeln("<option value=\"9\">9<\/option>");
document.writeln("<option value=\"10\">10<\/option>");
document.writeln("<option value=\"11\">11<\/option>");
document.writeln("<option value=\"12\">12<\/option>");
document.writeln("<option value=\"13\">13<\/option>");
document.writeln("<option value=\"14\">14<\/option>");
document.writeln("<option value=\"15\">15<\/option>");
document.writeln("<option value=\"16\">16<\/option>");
document.writeln("<option value=\"17\">17<\/option>");
document.writeln("<option value=\"18\">18<\/option>");
document.writeln("<option value=\"19\">19<\/option>");
document.writeln("<option value=\"20\">20<\/option>");
document.writeln("<option value=\"21\">21<\/option>");
document.writeln("<option value=\"22\">22<\/option>");
document.writeln("<option value=\"23\">23<\/option>");
document.writeln("<option value=\"24\">24<\/option>");
document.writeln("<option value=\"25\">25<\/option>");
document.writeln("<option value=\"26\">26<\/option>");
document.writeln("<option value=\"27\">27<\/option>");
document.writeln("<option value=\"28\">28<\/option>");
document.writeln("<option value=\"29\">29<\/option>");
document.writeln("<option value=\"30\">30<\/option>");
document.writeln("<option value=\"31\">31<\/option>");
document.writeln("<\/select>");
document.writeln("<input id=\"bookGoButton\" type=\"image\" src=\"\/local\/summer\/gfx\/home\/book_online_go.jpg\"");
document.writeln("NAME=\"bookGoButton\">");
document.writeln("<\/div>");
document.writeln("<\/form>");
document.writeln("<script language=\"Javascript\">");
document.writeln("var strUrl = \"http:\/\/intrawest.rezrez.net\/snowshoemtn\/vps\/Default.asp\";");
document.writeln("var strSourceId = \"\";");
document.writeln("function setVPSDate() {");
document.writeln("var monthnumber, daynumber, thedate;");
document.writeln("thedate = new Date();");
document.writeln("monthnumber = thedate.getMonth();");
document.writeln("daynumber = thedate.getDate();");
document.writeln("daynumber+=2;");
document.writeln("if ( monthnumber == 1 ) {");
document.writeln("if ( daynumber > 27 ) {");
document.writeln("monthnumber++;");
document.writeln("monthnumber = ( monthnumber % 12 );");
document.writeln("daynumber = ( daynumber % 28 );");
document.writeln("}");
document.writeln("else {}");
document.writeln("}");
document.writeln("else {}");
document.writeln("if ( (monthnumber == 3) || (monthnumber == 5) || (monthnumber == 8) || (monthnumber == 10) ) {");
document.writeln("if ( daynumber > 29 ) {");
document.writeln("monthnumber++;");
document.writeln("monthnumber = ( monthnumber % 12 );");
document.writeln("daynumber = ( daynumber % 30 );");
document.writeln("}");
document.writeln("else {}");
document.writeln("}");
document.writeln("else {");
document.writeln("if ( daynumber > 30 ) {");
document.writeln("monthnumber++;");
document.writeln("monthnumber = ( monthnumber % 12 );");
document.writeln("daynumber = ( daynumber % 31 );");
document.writeln("}");
document.writeln("else {}");
document.writeln("}");
document.writeln("document.vpsform.month.selectedIndex = monthnumber;");
document.writeln("document.vpsform.day.selectedIndex = daynumber;");
document.writeln("}");
document.writeln("function vpsFormSubmit () {");
document.writeln("document.vpsform.action = strUrl + \"?source_id=\" + strSourceId;");
document.writeln("document.vpsform.source_id.value = strSourceId;");
document.writeln("} ");
document.writeln("function isDate(y, m, d) {");
document.writeln("with(new Date(y, m, d)) {");
document.writeln("return(getDate() == d && getMonth() == m);");
document.writeln("}");
document.writeln("}");
document.writeln("function ResetDays(objMonthSelected, objDaySelected)");
document.writeln("{");
document.writeln("var objYearSelected = 2001;");
document.writeln("var intOriginalDay, intMaxDay;");
document.writeln("if (isDate(objYearSelected, objMonthSelected.selectedIndex, 31)) {");
document.writeln("intMaxDay = 31;");
document.writeln("} else if (isDate(objYearSelected, objMonthSelected.selectedIndex, 30)) {");
document.writeln("intMaxDay = 30;");
document.writeln("} else if (isDate(objYearSelected, objMonthSelected.selectedIndex, 29)) {");
document.writeln("intMaxDay = 29;");
document.writeln("} else if (isDate(objYearSelected, objMonthSelected.selectedIndex, 28)) {");
document.writeln("intMaxDay = 28;");
document.writeln("}");
document.writeln("intOriginalDay = objDaySelected.selectedIndex;");
document.writeln("for (var i = objDaySelected.length; i > 0; i--)");
document.writeln("objDaySelected.options[0] = null;");
document.writeln("for (var i = 1; i <= intMaxDay; i++)");
document.writeln("objDaySelected.options[objDaySelected.length] = new Option(i, i, false, false);");
document.writeln("if ((intOriginalDay + 1) > intMaxDay) {");
document.writeln("intOriginalDay = 0;");
document.writeln("}");
document.writeln("objDaySelected.selectedIndex = intOriginalDay;");
document.writeln("}");
document.writeln("function banner_onload(){");
document.writeln("var d = new Date();");
document.writeln("var millisecs = d.getTime();");
document.writeln("millisecs = millisecs + 3 * 24 * 60 * 60 * 1000;");
document.writeln("d = new Date(millisecs);");
document.writeln("document.vpsform.month.selectedIndex = d.getMonth();");
document.writeln("document.vpsform.day.selectedIndex = d.getDate() - 1;");
document.writeln("ResetDays(document.vpsform.month, document.vpsform.day);");
document.writeln("}");
document.writeln("banner_onload()");
document.writeln("<\/script>");
*/
document.writeln("<\/div>");
