PageSourceSearch

https://hotelguides.com/js/hotels.js

js hotelguides.com collected 2026-10-02 06:18:37 UTC 10,463 bytes, 104 lines download raw bytes

1//tooltip
2var qTipTag="area,span";var qTipX=0;var qTipY=15;tooltip={name:"qTip",offsetX:qTipX,offsetY:qTipY,tip:null}
3tooltip.init=function(){var tipNameSpaceURI="http://www.w3.org/1999/xhtml";if(!tipContainerID){var tipContainerID="qTip";}
4var 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);}
5if(!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++)
6{elements=document.getElementsByTagName(elementList[j]);if(elements)
7{for(var i=0;i<elements.length;i++)
8{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 [email protected] 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 [email protected].';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 [email protected], 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)
9{a.setAttribute("tiptitle",sTitle);a.removeAttribute("title");a.removeAttribute("alt");a.onmouseover=function(){tooltip.show(this.getAttribute('tiptitle'))};a.onmouseout=function(){tooltip.hide()};}}}}}
10tooltip.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;}
11this.tip.style.left=(x+this.offsetX)+"px";this.tip.style.top=(y+this.offsetY)+"px";}
12tooltip.show=function(text){if(!this.tip)return;this.tip.innerHTML=text;this.tip.style.display="block";}
13tooltip.hide=function(){if(!this.tip)return;this.tip.innerHTML="";this.tip.style.display="none";}
14window.onload=function(){tooltip.init();}
15//Social Bookmarking Links
16function 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.");}
17function 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');
17javascript: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;}
18function showCash(){
19
20function getRandomizer(bottom, top) {
21    return function() {
22        return Math.floor( Math.random() * ( 1 + top - bottom ) ) + bottom;
23    }
24}
25
26var contestad =  "<a href=https://www.facebook.com/hotelguides/app_117049981714413><img src=/i/400button_contest.gif border=0 /></a><br>\n";
27var randomAd = getRandomizer( 0, 5 );
28
29var rotate = new Array();
30//rotate[0] = "<a href=/cash-rewards0.html><img src=/i/cash-snow.jpg border=0 /></a><br>\n";
31rotate[0] = "<a href=/cash-rewards0.html><img src=/i/cashrewards4.jpg border=0 /></a><br>\n";
32rotate[1] = "<a href=/cash-rewards1.html><img src=/i/cash-star.jpg border=0 /></a><br>\n";
33//rotate[3] = "<a href=/cash-rewards3.html><img src=/i/cash-ski-red.jpg border=0 /></a><br>\n";
34rotate[2] = "<a href=/cash-rewards2.html><img src=/i/cash-skyline-green.jpg border=0 /></a><br>\n";
35rotate[3] = "<a href=/cash-rewards3.html><img src=/i/cash1.jpg border=0 /></a><br>\n";
36rotate[4] = "<a href=/cash-rewards4.html><img src=/i/cash2.jpg border=0 /></a><br>\n";
37rotate[5] = "<a href=/cash-rewards5.html><img src=/i/cashrewardsstar.jpg border=0 /></a><br>\n";
38//rotate[8] = "<a href=/cash-rewards8.html><img src=/i/cash5.jpg border=0 /></a><br>\n";
39
40//document.write(contestad);
41//document.write("<br>");
42
43//document.write(rotate[randomAd()]);
44}
45
46
47
48function getNewRandomizer(bottom, top) {
49    return function() {
50        return Math.floor( Math.random() * ( 1 + top - bottom ) ) + bottom;
51    }
52}
53
54function showNewCash(){
55
56
57var randomAd = getNewRandomizer( 0, 1 );
58
59var rotate = new Array();
60//rotate[0] = "<a href=/cash-rewards0.html><img src=/i/cash-snow.jpg border=0 /></a><br>\n";
61rotate[0] = "<a href=/cash-rewards.html><img src=/i/book-hotels-make-money.jpg width=285 border=0 class=cashimg></a>\n";
62rotate[1] = "<a href=/cash-rewards.html><img src=/i/0-hero/original-cash-rewards.jpg width=285 border=0 class=cashimg></a>\n";
63//rotate[3] = "<a href=/cash-rewards3.html><img src=/i/cash-ski-red.jpg border=0 /></a><br>\n";
64//rotate[8] = "<a href=/cash-rewards8.html><img src=/i/cash5.jpg border=0 /></a><br>\n";
65
66//document.write(contestad);
67//document.write("<br>");
68
69document.write(rotate[randomAd()]);
70}
71
72
73
74function showEasy(){
75
76var randomEasy = getNewRandomizer( 0, 1 );
77
78var roteasy = new Array();
79//roteasy[0] = "<a href=/cash-rewards0.html><img src=/i/cash-snow.jpg border=0 /></a><br>\n";
80roteasy[0] = "<a href=\"/reasons.html\"><img src=/i/7-reasons-transc.png width=260 border=0 alt=\"Advantages of using HotelGuides.com\" style=\"border:solid 1px #cccccc;padding:9px;margin-top:15px;margin-bottom:10px;\"></a>\n";
81roteasy[1] = "<a href=\"/hotel-satisfaction-guarantee.html\"><img src=/i/money-back.png width=260 border=0 alt=\"If you don't like your hotel, we'll refund your money.\" style=\"border:solid 1px #cccccc;padding:9px;margin-top:15px;margin-bottom:10px;\"></a>\n";
82//roteasy[3] = "<a href=/cash-rewards3.html><img src=/i/cash-ski-red.jpg border=0 /></a><br>\n";
83//roteasy[8] = "<a href=/cash-rewards8.html><img src=/i/cash5.jpg border=0 /></a><br>\n";
84
85//document.write(contestad);
86//document.write("<br>");
87
88document.write(roteasy[randomEasy()]);
89}
90
91
92
93
94
95 function trackOutboundLink(link, category, action) {
96 
97try {
98_gaq.push(['_trackEvent', category , action]);
99} catch(err){}
100 
101setTimeout(function() {
102document.location.href = link.href;
103}, 100);
104}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.