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\"> #ARES-bot { width:747px;} #ARES-bot a { color:#b60000; text-decoration:none;} #ARES-bot a:hover {text-decoration:underline;} #ARES-bot form {margin:0;} #ARES-bot td, #ARES-bot select, #checkIn, #checkOut {font-family:Arial, Helvetica, sans-serif; font-size:11px; color:#000099; font-weight:normal;} #ARES-bot tr#tabs td { vertical-align: bottom; background:#2043a5 url(http://arestravel.com/images/nashville-2009/bot_bg.gif) top repeat-x;} #ARES-bot td.ttl { font-size:12px; color:white; font-weight:bold; height:26px; padding-left:10px; padding-bottom:7px;} td#ARES-form {border:1px solid #2043a5; border-top:none; background-color:white; padding:10px;} #ARES-form table {border:1px dotted #4784ff;} #ARES-form table td { padding-bottom:8px; padding-top:8px; border-bottom:1px solid white;border-top:1px solid white;} #ARES-form table td.last {padding:8px 10px 11px 6px; border-right:1px solid white;} #ARES-form table td.first {padding-left:10px; border-left:1px solid white;} #checkIn, #checkOut { width:90px; padding-left:2px; border:1px solid #4784ff;} #ARES-bot select {width:60px; border:1px solid #4784ff;} </style> <table cellpadding=\"0\" cellspacing=\"0\" id=\"ARES-bot\"> <tr id=\"tabs\"> <td nowrap width=\"125\" class=\"ttl\">Online Reservations:</td> <td nowrap width=\"258\"><img src=\"http://arestravel.com/images/nashville-2009/tab1.gif\" width=\"89\" height=\"33\" alt=\"Book a Hotel\" /><a href=\"http://hotels.nashville.com/3832_car-search.html\"><img src=\"http://arestravel.com/images/nashville-2009/tab2.gif\" alt=\"Rent a Car\" width=\"78\" height=\"33\" border=\"0\" class=\"imgover\" /></a><a href=\"http://hotels.nashville.com/3832_flight-search.html\"><img src=\"http://arestravel.com/images/nashville-2009/tab3.gif\" alt=\"Book a Flight\" width=\"91\" height=\"33\" border=\"0\" class=\"imgover\" /></a></td> <td nowrap width=\"344\" class=\"ttl\">&nbsp;or call (888) 878 9644 for Assistance</td></tr> <tr> <td colspan=\"3\" align=\"center\" valign=\"middle\" id=\"ARES-form\"> <form action=\"http://hotels.nashville.com/3832_hotel-list.html\" name=\"ARES-hotelform\" id=\"ARES-hotelform\"> <input type=\"hidden\" name=\"locationID\" value=\"m717\" /> <table cellpadding=\"1\" cellspacing=\"0\" bgcolor=\"#eeeeee\"> <tr> <td align=\"left\" valign=\"bottom\" class=\"first\">Check In:<br /> <input type=\"text\" name=\"checkInDate\" id=\"checkIn\" value=\"mm/dd/yyyy\" size=\"11\" maxlength=\"10\" onclick=\"ShowCal('CalFrame', this.id, 'checkIn')\" /></td> <td align=\"left\" valign=\"bottom\">Check Out:<br /> <input type=\"text\" name=\"checkOutDate\" id=\"checkOut\" value=\"mm/dd/yyyy\" size=\"11\" maxlength=\"10\" onClick=\"ShowCal('CalFrame', this.id, 'checkIn')\" /></td> <td align=\"left\" valign=\"bottom\" style=\"padding-left:6px;\">Rooms:<br /> <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> <td align=\"left\" valign=\"bottom\">Adults:<br /> <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> <td align=\"left\" valign=\"bottom\">Children:<br /> <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> <td align=\"left\" valign=\"bottom\" style=\"padding-left:6px;\"><input name=\"imagesubmit1\" type=\"image\" class=\"imgover\" src=\"http://arestravel.com/images/nashville-2009/btn_find.gif\" /></td> <td align=\"left\" valign=\"bottom\" nowrap class=\"last\"><a href=\"http://hotels.nashville.com/3832_advanced-hotel-search.html\">Advanced Hotel Search&nbsp;&raquo;</a></td> </tr> </table> </form> </td> </tr> </table> ";document.write(htmlStr);var ro='1';if(ro==1)initRollovers();