//tooltip
var qTipTag="area,span";var qTipX=0;var qTipY=15;tooltip={name:"qTip",offsetX:qTipX,offsetY:qTipY,tip:null}
tooltip.init=function(){var tipNameSpaceURI="http://www.w3.org/1999/xhtml";if(!tipContainerID){var tipContainerID="qTip";}
var tipContainer=document.getElementById(tipContainerID);if(!tipContainer){tipContainer=document.createElementNS?document.createElementNS(tipNameSpaceURI,"div"):document.createElement("div");tipContainer.setAttribute("id",tipContainerID);document.getElementsByTagName("body").item(0).appendChild(tipContainer);}
if(!document.getElementById)return;this.tip=document.getElementById(this.name);if(this.tip)document.onmousemove=function(evt){tooltip.move(evt)};var a,sTitle,elements;var elementList=qTipTag.split(",");for(var j=0;j<elementList.length;j++)
{elements=document.getElementsByTagName(elementList[j]);if(elements)
{for(var i=0;i<elements.length;i++)
{a=elements[i];var arr=Array();arr['tt1']='If you are not satisfied with your hotel, we will compensate you in a way you consider fair.<br><br>Simply send an email to service@hotelguides.com and tell us what happened.';arr['tt2']='If within 24 hours after you make your reservation, you find a lower, comparable rate for the same hotel at another website, we will pay you the difference + $10.';arr['tt3']='We do not charge a booking fee when you make a reservation.<br><br>We also do not charge a fee when you cancel a reservation.<br><br>But carefully read hotels\' cancellation rules. These rules can cost you a lot of money.';arr['tt4']='We automatically display all available hotel discounts.<br><br>This includes AAA, CAA, AARP, senior, corporate, government, military, and various special discounts.';arr['tt5']='We usually do not charge your credit card at the time you make a reservation.<br><br>In fact 85% of our reservations do not require an advance payment of any sort.';arr['tt6']='We enjoy helping people and take pride in providing our customers good service.<br><br>We answer email questions quickly. Please send your questions to service@hotelguides.com.';arr['tt7']='When you make a reservation through HotelGuides.com, save your confirmation number.<br><br>When you have 5 confirmation numbers, email them to rewards@hotelguides.com, and we will send you a check for $25 USD.';arr['ff1']='HotelGuides.com is a travel research and reservations service based in Charleston, South Carolina.<br><br>We have been in business on the web since 2002.<br><br>More than 3 million people have made reservations thru HotelGuides.com.<br><br>Our Better Business Bureau rating is A+.';arr['ff2']='We value our own privacy, and we genuinely respect yours.<br><br>We do not sell, rent, loan, or give your email address to anyone.<br><br>We do not share other information you give us with anyone other than the hotel you book and your credit card company.';arr['ff3']='The only time we will ask you to enter personal or credit card information is when you make a reservation.<br><br>The transfer of your information to our computers through the Internet is protected by VeriSign encryption.';arr['rr1']='We accept reviews only from people who prove that they actually stayed at the hotel they\'ve reviewed.<br><br>Most other travel websites accept reviews from anyone who can type.<br><br>You can find our reviews on our city and hotel pages.';arr['rr2']='We clearly mark those hotels that have been rated highest and lowest by our customers.<br><br>We also post warnings about those hotels that have failed to honor confirmed reservations, rates, or room types.<br><br>You can find our hotel ratings and warnings on our city pages.';sNum=a.getAttribute("id");sTitle=arr[sNum];if(sTitle)
{a.setAttribute("tiptitle",sTitle);a.removeAttribute("title");a.removeAttribute("alt");a.onmouseover=function(){tooltip.show(this.getAttribute('tiptitle'))};a.onmouseout=function(){tooltip.hide()};}}}}}
tooltip.move=function(evt){var x=0,y=0;if(document.all){x=(document.documentElement&&document.documentElement.scrollLeft)?document.documentElement.scrollLeft:document.body.scrollLeft;y=(document.documentElement&&document.documentElement.scrollTop)?document.documentElement.scrollTop:document.body.scrollTop;x+=window.event.clientX;y+=window.event.clientY;}else{x=evt.pageX;y=evt.pageY;}
this.tip.style.left=(x+this.offsetX)+"px";this.tip.style.top=(y+this.offsetY)+"px";}
tooltip.show=function(text){if(!this.tip)return;this.tip.innerHTML=text;this.tip.style.display="block";}
tooltip.hide=function(){if(!this.tip)return;this.tip.innerHTML="";this.tip.style.display="none";}
window.onload=function(){tooltip.init();}
//Social Bookmarking Links
function addBookmark(name,url){if(window.sidebar && window.sidebar.addPanel) {alert("To add this page to your bookmarks, press Ctrl+D (Windows or Linux) or Command+D (Mac).");} else if(window.opera && window.print) {var e=document.createElement('a');e.setAttribute('href',url);e.setAttribute('title',name);e.setAttribute('rel','sidebar');e.click();} else if(window.external) {try {window.external.AddFavorite(url,name);}catch(e){}}else alert("To add our website to your bookmarks use CTRL+D on Windows and Linux and Command+D on the Mac.");}
function printSocalB(){title=encodeURIComponent(document.getElementsByTagName("title")[0].text);enctitle=encodeURIComponent(title);url= encodeURIComponent(location.href);var output = "<table width=276 border=0 cellpadding=0 cellspacing=0 class=sbimgs><tr><td colspan=11 class=sbtop><center><span class=\"sbtitle\">Bookmark and Share<\/span><\/td><\/tr><tr>";output += "<td class=sb1 width=32><a href=\"http://del.icio.us/post?url="+url+"&title="+title+"\" target=\"_blank\" rel=nofollow onClick=\"pageTracker._trackEvent('Social_Buttons', 'Click', 'Delicious');\"><div><\/div><\/a><\/td><td width=16><\/td>\n";output += "<td class=sb2 width=32><a href=\"http://www.stumbleupon.com/submit?url="+url+"&title="+title+"\" target=\"_blank\" rel=nofollow onClick=\"pageTracker._trackEvent('Social_Buttons', 'Click', 'Stumble');\"><div><\/div><\/a><\/td><td width=16><\/td>\n";output += "<td class=sb3 width=32><a href=\"#\" onclick=\"pageTracker._trackEvent('Social_Buttons', 'Click', 'Bkmrk_Fav');javascript:addBookmark('"+document.getElementsByTagName("title")[0].text+"', '"+location.href+"');return false;\" rel=nofollow><div><\/div><\/a><\/td><td width=16><\/td>\n";output += "<td class=sb4 width=32><a href=\"http://www.facebook.com/share.php?u="+url+"\" target=\"_blank\" rel=nofollow onClick=\"pageTracker._trackEvent('Social_Buttons', 'Click', 'Facebook');\"><div><\/div><\/a><\/td><td width=16><\/td>\n";output += "<td class=sb5 width=32><a href=\"http://twitter.com/home?status=Browsing%20"+url+"\" target=\"_blank\" rel=nofollow onClick=\"pageTracker._trackEvent('Social_Buttons', 'Click', 'Twitter');\"><div><\/div><\/a><\/td><td width=16><\/td>\n";output += "<td class=sb6 width=32><a href=\"http://www.myspace.com/index.cfm?fuseaction=postto&t="+title+"=&u="+url+"&l=\" target=\"_blank\" rel=nofollow onClick=\"pageTracker._trackEvent('Social_Buttons', 'Click', 'Myspace');\"><div><\/div><\/a><\/td><\/tr><\/table>\n";return output;}
