var lcl=0;var safari=navigator.userAgent.indexOf('AppleWebKit')==-1?0:1;function vH(){var h;if(self.innerHeight)h=self.innerHeight;else if(document.documentElement&&document.documentElement.clientHeight)h=document.documentElement.clientHeight;else if(document.body)h=document.body.clientHeight;return h;}function vW(){var w;if(self.innerWidth)w=self.innerWidth;else if(document.documentElement&&document.documentElement.clientWidth)w=document.documentElement.clientWidth;else if(document.body)w=document.body.clientWidth;return w;}function vS(){var y;if(self.pageYOffset){y=self.pageYOffset;}else if(document.documentElement&&document.documentElement.scrollTop){y=document.documentElement.scrollTop;}else if(document.body){y=document.body.scrollTop;}return y;}function hS(){var x;if(self.pageXOffset){x=self.pageXOffset;}else if(document.documentElement&&document.documentElement.scrollLeft){x=document.documentElement.scrollLeft;}else if(document.body){x=document.body.scrollLeft;}return x;}function findPosX(obj){var curleft=0;if(obj.offsetParent){while(obj.offsetParent){curleft+=obj.offsetLeft;obj=obj.offsetParent;}}else if(obj.x)curleft+=obj.x;curleft+=totalElementXOffset(obj);return curleft;}function findPosY(obj){var curtop=0;if(obj.offsetParent){while(obj.offsetParent){curtop+=obj.offsetTop;obj=obj.offsetParent;}}else if(obj.y)curtop+=obj.y;curtop+=totalElementYOffset(obj);return curtop;}function totalElementYOffset(obj){var yOffset=((obj.offsetTop)?obj.offsetTop:0);var elParent=obj.offsetParent;while(elParent){yOffset+=((elParent.offsetTop)?elParent.offsetTop:0);elParent=elParent.offsetParent;}return(yOffset-0);}function totalElementXOffset(obj){var xOffset=((obj.offsetLeft)?obj.offsetLeft:0);var elParent=obj.offsetParent;while(elParent){xOffset+=((elParent.offsetLeft)?elParent.offsetLeft:0);elParent=elParent.offsetParent;}return(xOffset-0);}function PositionCal(frm,idValue){var obj=document.getElementById(frm);var txtbx=document.getElementById(idValue);var vh=vH();var vs=vS();var vw=vW();var hs=hS();var th=findPosY(txtbx);var tw=findPosX(txtbx);if((tw+130)>vw&&hs==0)tw=vw-130;if(th+200>vh&&vs==0)th=vh-200;obj.style.left=tw+'px';obj.style.top=th+20+'px';}function SrcCal(frm,idValue,chkinId){var frame=document.getElementById(frm);var value=document.getElementById(idValue);var fnm=value.name;var calSrc='/ARES/calendar.html?id='+idValue+'&selectedDate=';if(idValue.indexOf('checkOut')!=-1&&(document.getElementById(idValue).value==""||document.getElementById(idValue).value=="mm/dd/yyyy")){calSrc+=document.getElementById(chkinId).value;}else{calSrc+=value.value;}if(fnm.indexOf('flights')!=-1)calSrc+='&air=1';window.frames['CalFrame'].location.replace(calSrc);return false;}function ShowCal(frm,idValue,chkinId){hideCal();PositionCal(frm,idValue);if(safari){document.getElementById(frm).style.visibility='visible';}else{document.getElementById(frm).style.display='block';}SrcCal(frm,idValue,chkinId);document.getElementById(idValue).select();}function SetDateForID(id,date){if(id.indexOf('nosync')==-1){var idr;var inpts=document.getElementsByTagName('input');if(id.indexOf('checkIn')!=-1)idr='checkIn';else if(id.indexOf('checkOut')!=-1)idr='checkOut';else return;for(var i=0;i<inpts.length;i++){if(inpts[i].type=='text'&&inpts[i].id.indexOf(idr)!=-1&&inpts[i].id.indexOf('nosync')==-1){inpts[i].value=date;}}}else{var value=document.getElementById(id);if(value)value.value=date;}hideCal();}function hideCal(){var frameRef=window.frames['CalFrame'];frameRef.document.body.style.visibility = 'hidden';if(frameRef.location.href.indexOf('blank')==-1)frameRef.location.replace('/ARES/blank.html');if(safari){document.getElementById('CalFrame').style.visibility='hidden';}else{document.getElementById('CalFrame').style.display='none';}return false;}var ns6=document.getElementById&&!document.all;function toggleCal(e){var cur=ns6?e.target:event.srcElement;if(cur.id.indexOf('checkIn')==-1&&cur.id.indexOf('checkOut')==-1)hideCal();}function makeFrame(){var ifrm=document.createElement("IFRAME");ifrm.id="CalFrame";ifrm.name="CalFrame";ifrm.src="/ARES/blank.html";ifrm.scrolling="no";ifrm.frameBorder=0;ifrm.style.position="absolute";ifrm.style.borderWidth=0+"px";ifrm.style.width=130+"px";ifrm.style.height=180+"px";if(!safari)ifrm.style.display="none";else ifrm.style.visibility="hidden";ifrm.style.zIndex=1000001;ifrm.style.backgroundColor="#fff";document.body.insertBefore(ifrm,document.body.lastChild);document.onclick=toggleCal;}if(typeof ifrm=='undefined')makeFrame();var htmlStr="<style type=\"text/css\"> table#ARES-bot { width:159px !important; background-color: #fac24d; } #Search-bot { margin: 5px 0 0 0; height:149px; } table#ARES-bot td {font-family:arial, helvetica, sans-serif; font-size:11px;} #checkIn, #checkOut, #checkIn2, #checkOut2 { padding: 0 0 0 2px; font-size:11px; width:63px; color: #df6700; font-family:arial, helvetica, sans-serif; } select.drop { font-size:10px; color:#df6700; } #locationSearch { font-size:11px; width:198px; color:#000000; font-family:arial, helvetica, sans-serif; } #ARES-bot form label {display:inline;} #ARES-bot label, #ARES-bot td { font-size:11px; color:#000; font-family:arial, helvetica, sans-serif; } #ARES-bot input.find { width:68px; background:url(http://arestravel.com/images/sonomacounty-2007/bot_test/bk_now.jpg); border:none; height:21px; } #ARES-bot td.title { font-weight:bold; color:#FFFFFF; font-size:11px; background-color: #333333; font-family:arial, helvetica, sans-serif; } select#Neighborhoods1, select#attractionType { font-size:10px; background-color:#fff; width:140px; color:#df6700; } input#attractionName { font-size:10px; background-color:#fff; width:138px; } table#ARES-nav img {margin-top:-2px;} #img_hotel{margin-top:-3px;} #img_deal{margin-left:-1px;} #img_packages{margin-top:-2px;} #img_car{margin-left:-2px;} </style> <table width=\"159\" cellpadding=\"0\" cellspacing=\"0\" id=\"ARES-bot\"> <tr><td><img src=\"http://arestravel.com/images/sonomacounty-2007/bot_test/header.jpg\" /></td></tr> <tr><td> <table cellpadding=\"0\" cellspacing=\"0\" id=\"ARES-nav\" style=\"height:25px;\"> <tr><td><a href=\"http://travel.sonomacounty.com/2138_ticket-list.html\"><img src=\"http://arestravel.com/images/sonomacounty-2007/bot_test/activities.jpg\" border=\"0\" /></a><a href=\"http://travel.sonomacounty.com/2138_ticket-list.html\" ><img src=\"http://arestravel.com/images/sonomacounty-2007/bot_test/wine_e.jpg\" border=\"0\" id=\"img_wine\" /></a><a href=\"http://www.horizonair.com\" target=\"_blank\"><img src=\"http://arestravel.com/images/sonomacounty-2007/bot_test/flights.jpg\" border=\"0\" id=\"img_flight\"/></a></td></tr></table> <table cellpadding=\"0\" cellspacing=\"0\" style=\"height:25px; margin-top:-2px;\"> <tr><td align=\"left\" valign=\"top\" ><img src=\"http://arestravel.com/images/sonomacounty-2007/bot_test/hotels_new.jpg\" border=\"0\" id=\"img_hotel\" /><a href=\"http://travel.sonomacounty.com/2138_deal-list.html\"><img src=\"http://arestravel.com/images/sonomacounty-2007/bot_test/deals.png\" border=\"0\" id=\"img_deal\"/></a><a href=\"http://travel.sonomacounty.com/2138_package-list.html\"><img src=\"http://arestravel.com/images/sonomacounty-2007/bot_test/packages.png\" border=\"0\" id=\"img_packages\"/></a><a href=\"http://travel.sonomacounty.com/2138_car-search.html\"><img src=\"http://arestravel.com/images/sonomacounty-2007/bot_test/cars.png\" border=\"0\" id=\"img_car\" /></a></td></tr> </table> </td></tr> <tr> <td align=\"left\" valign=\"top\" cellpadding=\"0\" cellspacing=\"0\" > <div id=\"Search-bot\"> <form name=\"hotelSearchForm\" method=\"get\" action=\"http://travel.sonomacounty.com/2138_hotel-list.html\" target=\"_blank\"> <input type=\"hidden\" name=\"locationID\" id=\"locationID1\" value=\"\" /> <table cellpadding=\"1\" cellspacing=\"0\"> <tr><td style=\"padding:0 0 0 10px;\"><label for=\"location_selector\">Select Area</label></td></tr> <tr> <td style=\"padding:0 0 0 8px;\" align=\"left\" > <select id=\"Neighborhoods1\" class=\"location_selector\" onchange=\"setOpt(this)\"> <option value=\"m1368\" selected=\"selected\">Sonoma County Region</option> <option value=\"m1377\">&nbsp;&nbsp;East - Sonoma Valley & Vineyards</option> <option value=\"m1391\">&nbsp;&nbsp;&nbsp;&nbsp;Glen Ellen</option> <option value=\"m1392\">&nbsp;&nbsp;&nbsp;&nbsp;Kenwood</option> <option value=\"m1385\">&nbsp;&nbsp;&nbsp;&nbsp;Sonoma</option> <option value=\"m1372\">&nbsp;&nbsp;North - Valleys & Vineyards</option> <option value=\"m1552\">&nbsp;&nbsp;&nbsp;&nbsp;Geyserville</option> <option value=\"m1384\">&nbsp;&nbsp;&nbsp;&nbsp;Healdsburg</option> <option value=\"m1373\">&nbsp;&nbsp;&nbsp;&nbsp;Santa Rosa</option> <option value=\"m1387\">&nbsp;&nbsp;&nbsp;&nbsp;Sebastopol</option> <option value=\"m1390\">&nbsp;&nbsp;&nbsp;&nbsp;Windsor</option> <option value=\"m1374\">&nbsp;&nbsp;South - Rivers, Vineyards & Farms</option> <option value=\"m1375\">&nbsp;&nbsp;&nbsp;&nbsp;Petaluma</option> <option value=\"m1376\">&nbsp;&nbsp;&nbsp;&nbsp;Rohnert Park</option> <option value=\"m1369\">&nbsp;&nbsp;West - Pacific Coast, Rivers & Redwoods</option> <option value=\"m1370\">&nbsp;&nbsp;&nbsp;&nbsp;Bodega Bay</option> <option value=\"m1371\">&nbsp;&nbsp;&nbsp;&nbsp;Cloverdale</option> <option value=\"m1386\">&nbsp;&nbsp;&nbsp;&nbsp;Guerneville</option> <option value=\"m1388\">&nbsp;&nbsp;&nbsp;&nbsp;Monte Rio</option> <option value=\"m1389\">&nbsp;&nbsp;&nbsp;&nbsp;The Sea Ranch</option> </select> </td> </tr> <tr> <td> <table> <tr> <td style=\"padding:0 0 0 6px;\"><label for=\"checkIn\">Check In:</label><br /> <input type=\"text\" name=\"checkInDate\" id=\"checkIn\" value=\"mm/dd/yyyy\" size=\"11\" maxlength=\"10\" onclick=\"ShowCal('CalFrame', this.id, 'checkIn')\" /></td> <td><label for=\"checkOut\">Check Out:</label><br /> <input type=\"text\" name=\"checkOutDate\" id=\"checkOut\" value=\"mm/dd/yyyy\" size=\"11\" maxlength=\"10\" onClick=\"ShowCal('CalFrame', this.id, 'checkIn')\" /></td> </tr> </table> <table> <tr> <td style=\"padding:0 0 0 4px; height:33px\"><label for=\"numberOfRooms\">Rooms:</label><br /> <select name=\"numberOfRooms\" class=\"drop\"> <option value=\"1\">1</option> <option value=\"2\">2</option> <option value=\"3\">3</option> <option value=\"4\">4</option> <option value=\"5\">5</option> <option value=\"6\">6</option> <option value=\"7\">7</option> <option value=\"8\">8</option> <option value=\"9\">9</option> </select> </td> <td style=\"padding:0 0 0 13px; height:33px\"><label for=\"numberOfAdults\">Adults:</label><br /> <select name=\"numberOfAdults\" class=\"drop\"> <option value=\"1\">1</option> <option value=\"2\">2</option> <option value=\"3\">3</option> <option value=\"4\">4</option> </select> </td> <td style=\"padding:0 0 0 13px; height:33px\"><label for=\"numberOfChildren\">Children:</label><br /> <select name=\"numberOfChildren\" class=\"drop\"> <option value=\"0\">0</option> <option value=\"1\">1</option> <option value=\"2\">2</option> <option value=\"3\">3</option> <option value=\"4\">4</option> <option value=\"5\">5</option> </select> </td> </tr> </table> </td> </tr> <tr align=\"left\" valign=\"middle\"> <td> <table> <tr> <td style=\"padding: 5px 10px 0 3px; font-family: Arial; font-size:10px; vertical-align:middle !important;\" valign=\"top\"><a href=\"http://travel.sonomacounty.com/2138_advanced-hotel-search.html\" style=\"text-decoration: none !important;color:#6c4d2e;\">More Search<br />Options ></a></td> <td align=\"right\" style=\"padding: 5px 0 0 0; \"><input type=\"submit\" name=\"imagesubmit\" value=\"\" class=\"find\"></td> </tr> </table> </td> </tr> </table> </form> <tr><td valign=\"bottom\" ><img src=\"http://arestravel.com/images/sonomacounty-2007/bot_test/footer.jpg\" width=\"159px\" style=\"vertical-align: baseline !important;margin-bottom:-2px;\"/></td></tr> </div> </td> </tr> </table> ";document.write(htmlStr);var ro='';if(ro==1)initRollovers();