function initRollovers(){if(!document.getElementById)return;var aImgs=document.getElementsByTagName('img');var aInputs=document.getElementsByTagName('input');bj(aImgs,aImgs.length);bj(aInputs,aInputs.length);}function bj(aImages,n){var aPreLoad=new Array();var sTempSrc;for(var j=0;j<n;j++){if(aImages[j].className.match('imgover')){var src=aImages[j].getAttribute('src');var ftype=src.substring(src.lastIndexOf('.'),src.length);var hsrc=src.replace(ftype,'_o'+ftype);aImages[j].setAttribute('hsrc',hsrc);aPreLoad[j]=new Image();aPreLoad[j].src=hsrc;aImages[j].onmouseover=function(){sTempSrc=this.getAttribute('src');this.setAttribute('src',this.getAttribute('hsrc'));};aImages[j].onmouseout=function(){if(!sTempSrc)sTempSrc=this.getAttribute('src').replace('_o'+ftype,ftype);this.setAttribute('src',sTempSrc);};}}}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:302px; background-color:#afc1d5; } table#Ares-bot td, #Ares-bot label { font-family:arial, helvetica, sans-serif; font-size:11px; color:#003366; } #checkOut, #checkIn { font-size:11px; font-family:arial, helvetica, sans-serif; width:74px; color:#003366; background-color:#ffff99; border:1px solid #829dba; padding-left:2px; } #Ares-bot select { font-size:11px; font-family:arial, helvetica, sans-serif; width:48px; color:#003366; background-color:#ffff99; border:1px solid #829dba; } #Ares-bot select#Neighborhoods1 { font-family:arial, helvetica, sans-serif; font-size:11px; width:150px; color:#003366; background-color:#ffcc66; border:1px solid #829dba; } #locationSearch{ font-family:arial, helvetica, sans-serif; font-size:11px; width:106px; color:#003366; background-color:#ffcc66; border:1px solid #829dba; padding-left:2px; } #Ares-bot a { color:#003366; text-decoration:none; } #Ares-bot a:hover { text-decoration:underline; } </style> <form action=\"http://hotels.maine.info/3205_hotel-list.html\" name=\"ARES-hotelform\" id=\"ARES-hotelform\"> <input type=\"hidden\" name=\"locationID\" value=\"m380\" /> <table cellpadding=\"0\" cellspacing=\"0\" id=\"Ares-bot\"> <tr> <td colspan=\"4\" height=\"19\" nowrap><a href=\"http://www.maine.info/visitorresources.php\"><img src=\"http://arestravel.com/images/maine-info/tab11.gif\" height=\"19\" border=\"0\" class=\"imgover\" alt=\"Plan Your Trip\" /></a><a href=\"http://www.maine.info/festivals.php\"><img src=\"http://arestravel.com/images/maine-info/tab12.gif\" height=\"19\" border=\"0\" class=\"imgover\" alt=\"Events\" /></a><a href=\"http://www.maine.info/lodging.php\"><img src=\"http://arestravel.com/images/maine-info/tab13.gif\" height=\"19\" border=\"0\" class=\"imgover\" alt=\"Other Lodging\" /></a><a href=\"http://www.maine.info/media.php\"><img src=\"http://arestravel.com/images/maine-info/tab14.gif\" height=\"19\" border=\"0\" class=\"imgover\" alt=\"Media\" /></a></td> </tr> <tr> <td colspan=\"4\" height=\"19\" nowrap><a href=\"http://www.maine.info/shopping.php\"><img src=\"http://arestravel.com/images/maine-info/tab21.gif\" height=\"19\" border=\"0\" class=\"imgover\" alt=\"Shopping\" /></a><a href=\"http://www.maine.info/dining.php\"><img src=\"http://arestravel.com/images/maine-info/tab22.gif\" height=\"19\" border=\"0\" class=\"imgover\" alt=\"Dining\" /></a><a href=\"http://www.maine.info/parks-lakes-beaches.php\"><img src=\"http://arestravel.com/images/maine-info/tab23.gif\" height=\"19\" border=\"0\" class=\"imgover\" alt=\"Outdoors\" /></a><a href=\"http://www.maine.info/photo/index.php\"><img src=\"http://arestravel.com/images/maine-info/tab24.gif\" height=\"19\" border=\"0\" class=\"imgover\" alt=\"Photo Gallery\" /></a></td> </tr> <tr> <td colspan=\"4\" height=\"19\" nowrap><img src=\"http://arestravel.com/images/maine-info/tab31.gif\" height=\"19\" alt=\"Hotels\" /><a href=\"http://hotels.maine.info/3205_ticket-list.html\"><img src=\"http://arestravel.com/images/maine-info/tab32.gif\" height=\"19\" border=\"0\" class=\"imgover\" alt=\"Attractions\" /></a><a href=\"http://hotels.maine.info/3205_car-search.html\"><img src=\"http://arestravel.com/images/maine-info/tab33.gif\" height=\"19\" border=\"0\" class=\"imgover\" alt=\"Cars\" /></a><a href=\"http://hotels.maine.info/3205_flight-search.html\"><img src=\"http://arestravel.com/images/maine-info/tab34.gif\" height=\"19\" border=\"0\" class=\"imgover\" alt=\"Flights\" /></a><a href=\"http://hotels.maine.info/3205_package-list.html\"><img src=\"http://arestravel.com/images/maine-info/tab35.gif\" height=\"19\" border=\"0\" class=\"imgover\" alt=\"Packages\" /></a></td> </tr> <tr align=\"left\"> <td colspan=\"2\" style=\"padding:7px 0px 8px 15px; border-left:1px solid #90a5c4;border-top:1px solid #90a5c4;border-bottom:1px solid #90a5c4;\">Maine Region:<br /> <select id=\"Neighborhoods1\" onchange=\"setOpt(this)\"> <option value=\"m380\" selected=\"selected\">Maine</option> <option value=\"m381\">&nbsp;&nbsp;Aroostook County</option> <option value=\"m1742\">&nbsp;&nbsp;&nbsp;&nbsp;Caribou</option> <option value=\"m1743\">&nbsp;&nbsp;&nbsp;&nbsp;Houlton</option> <option value=\"m382\">&nbsp;&nbsp;Down East and Acadia</option> <option value=\"m1745\">&nbsp;&nbsp;&nbsp;&nbsp;Bar Harbor</option> <option value=\"m1746\">&nbsp;&nbsp;&nbsp;&nbsp;Bucksport</option> <option value=\"m1748\">&nbsp;&nbsp;&nbsp;&nbsp;Ellsworth</option> <option value=\"m1791\">&nbsp;&nbsp;&nbsp;&nbsp;Southwest Harbor</option> <option value=\"m383\">&nbsp;&nbsp;Greater Portland and Casco Bay</option> <option value=\"m1729\">&nbsp;&nbsp;&nbsp;&nbsp;Freeport</option> <option value=\"m1730\">&nbsp;&nbsp;&nbsp;&nbsp;Portland</option> <option value=\"m1731\">&nbsp;&nbsp;&nbsp;&nbsp;Scarborough</option> <option value=\"m1732\">&nbsp;&nbsp;&nbsp;&nbsp;South Portland</option> <option value=\"m384\">&nbsp;&nbsp;Katahdin-Moosehead-Penquis</option> <option value=\"m385\">&nbsp;&nbsp;Kennebec and Moose River Valley</option> <option value=\"m1727\">&nbsp;&nbsp;&nbsp;&nbsp;Augusta</option> <option value=\"m1728\">&nbsp;&nbsp;&nbsp;&nbsp;Waterville</option> <option value=\"m386\">&nbsp;&nbsp;Maine Lakes and Mountains</option> <option value=\"m1751\">&nbsp;&nbsp;&nbsp;&nbsp;Bethel/Sunday River</option> <option value=\"m1750\">&nbsp;&nbsp;&nbsp;&nbsp;Fryeburg</option> <option value=\"m1749\">&nbsp;&nbsp;&nbsp;&nbsp;Lewiston/Auburn</option> <option value=\"m1752\">&nbsp;&nbsp;&nbsp;&nbsp;Rumford</option> <option value=\"m387\">&nbsp;&nbsp;Midcoast</option> <option value=\"m1721\">&nbsp;&nbsp;&nbsp;&nbsp;Bath/Belfast</option> <option value=\"m1722\">&nbsp;&nbsp;&nbsp;&nbsp;Boothbay Harbor</option> <option value=\"m1723\">&nbsp;&nbsp;&nbsp;&nbsp;Brunswick</option> <option value=\"m1724\">&nbsp;&nbsp;&nbsp;&nbsp;Camden</option> <option value=\"m1725\">&nbsp;&nbsp;&nbsp;&nbsp;Rockport</option> <option value=\"m1726\">&nbsp;&nbsp;&nbsp;&nbsp;Topsham</option> <option value=\"m388\">&nbsp;&nbsp;Southern Maine Coast</option> <option value=\"m1733\">&nbsp;&nbsp;&nbsp;&nbsp;Biddeford</option> <option value=\"m1790\">&nbsp;&nbsp;&nbsp;&nbsp;Kennebunk/Kennebunkport</option> <option value=\"m1734\">&nbsp;&nbsp;&nbsp;&nbsp;Kittery</option> <option value=\"m1735\">&nbsp;&nbsp;&nbsp;&nbsp;Ogunquit</option> <option value=\"m1736\">&nbsp;&nbsp;&nbsp;&nbsp;Saco/Old Orchard Beach</option> <option value=\"m1022\">&nbsp;&nbsp;The Maine Highlands</option> <option value=\"m1738\">&nbsp;&nbsp;&nbsp;&nbsp;Bangor</option> <option value=\"m1739\">&nbsp;&nbsp;&nbsp;&nbsp;Greenville</option> <option value=\"m1740\">&nbsp;&nbsp;&nbsp;&nbsp;Millinocket</option> <option value=\"m1741\">&nbsp;&nbsp;&nbsp;&nbsp;Orono</option> </select> </td> <td colspan=\"2\" style=\"padding:7px 0px 8px 15px; border-left:1px solid #90a5c4;border-top:1px solid #90a5c4;border-bottom:1px solid #90a5c4; font-size: 12px;\"><img src=\"http://arestravel.com/images/maine-info/arr.gif\" width=\"9\" height=\"7\" />&nbsp;<a href=\"http://hotels.maine.info/3347_hotel-search.html\" class=\"red\"><strong>All</strong> U.S. Hotels</a></td> </tr> <tr align=\"left\"> <td nowrap style=\"padding:8px 1px 1px 15px;border-left:1px solid #90a5c4;\">Check In:</td> <td style=\"padding:8px 1px 1px 0px;\"><input type=\"text\" name=\"checkInDate\" id=\"checkIn\" value=\"mm/dd/yyyy\" maxlength=\"10\" onClick=\"ShowCal('CalFrame', this.id, 'checkIn')\" /></td> <td nowrap style=\"padding:8px 2px 1px 2px;\">Rooms:</td> <td align=\"left\" style=\"padding:8px 10px 1px 0px;border-right:1px solid #90a5c4;\"><select name=\"numberOfRooms\"> <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> </tr> <tr align=\"left\"> <td nowrap style=\"padding:1px 1px 1px 15px;border-left:1px solid #90a5c4;\">Check Out:</td> <td style=\"padding:1px 1px 1px 0px;\"><input type=\"text\" name=\"checkOutDate\" id=\"checkOut\" value=\"mm/dd/yyyy\" maxlength=\"10\" onClick=\"ShowCal('CalFrame', this.id, 'checkIn')\" /></td> <td nowrap style=\"padding:1px 2px 1px 2px;\">Adults:</td> <td align=\"left\" style=\"padding:1px 10px 1px 0px;border-right:1px solid #90a5c4;\"><select name=\"numberOfAdults\"> <option value=\"1\">1</option> <option value=\"2\">2</option> <option value=\"3\">3</option> <option value=\"4\">4</option> </select></td> </tr> <tr align=\"left\"> <td colspan=\"2\" style=\"border-left:1px solid #90a5c4;\"></td> <td style=\"padding:1px 2px 8px 2px;\">Children:</td> <td align=\"left\" style=\"padding:1px 10px 8px 0px;border-right:1px solid #90a5c4;\"><select name=\"numberOfChildren\"> <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> <tr align=\"center\" valign=\"middle\"> <td colspan=\"2\" align=\"left\" nowrap style=\"padding:6px 0px 6px 15px; background:#d2d9eb url(http://arestravel.com/images/maine-info/dot.gif) top repeat-x; border-left:1px solid #90a5c4; \">&nbsp; </td> <td colspan=\"2\" align=\"right\" nowrap style=\"padding:6px 15px 6px 0px; background:#d2d9eb url(http://arestravel.com/images/maine-info/dot.gif) top repeat-x; border-right:1px solid #90a5c4;\"><input name=\"imagesubmit1\" type=\"image\" class=\"imgover\" src=\"http://arestravel.com/images/maine-info/btn_search.gif\" align=\"middle\" width=\"97\" height=\"22\"></td> </tr> <tr align=\"center\" valign=\"middle\"> <td colspan=\"4\" align=\"left\" style=\"padding:6px 0px 6px 15px; background-color:#8da4c6; color:#FFFFFF;\"><strong>Book Online</strong> or Call Toll Free:&nbsp;<img src=\"http://arestravel.com/images/maine-info/bot_phone.gif\" alt=\"1 (888) 214 9557\" width=\"122\" height=\"19\" align=\"absmiddle\" /></td> </tr> </table> </form> <script type=\"text/javascript\"> function setOpt(s) { s.form.locationID.value = s.options[s.selectedIndex].value; if(tmp && s.options[s.selectedIndex].value == '') s.form.locationID.value = tmp; } var tmp = ''; function rlid(frm) { if(!/^\s*$/.test(this.value)) { frm.locationID.value = '-1'; document.getElementById('Regions1').options[0].selected = true;document.getElementById('Neighborhoods1').options[0].selected = true; } } </script> ";document.write(htmlStr);var ro='1';if(ro==1)initRollovers();