citycode=((typeof(citycode)=='undefined')?'':citycode);
kountrycode=((typeof(kountrycode)=='undefined')?'':kountrycode);
langsuffix=((typeof(langsuffix)=='undefined')?'':langsuffix);
zipcode=((typeof(zipcode)=='undefined')?'':zipcode);USA=((kountrycode>='US_') && (kountrycode<='US_Z'))||zipcode!=''; 
function chain(){dw('<table align=left><tr><td><img src="http://hotels-shopper.com/images/hotel_chain/ht_'+hotel_chain+'.gif" alt="Chain: '+hname+'" vspace="2" height="60" width="60"></td></tr></table>');}
function reservelbl() {dw();
pophb(reserve,'<img src="http://hotels-shopper.com/images/booknow'+langsuffix+'.gif" border="0" alt="" width="48" height="16" >','Click to check availability and/or reserve this hotel'); 
var suppl=(typeof(supplier)=='undefined')?'':supplier.replace(/^[a-z]/,'');

}


function hotelheader(){
dw('<a name="'+shortname.replace(/ /g,'_')+'"></a>');
dw('<b>'+shortname);
dw('</b>');
if (stars>1) dw('<img src="http://hotels-shopper.com/images/'+stars+'.stars.gif" alt="Rating: '+stars+' stars" width="50" height="10">');
dw();
alatitude=latitude;alongitude=longitude;
if (distance>0) {if (shortname!="") {hdistc(distance,compass_direction);
dw('&nbsp; ');
mapref(latitude,longitude);}
else distc(distance,compass_direction,hname);}
dw(' '+currency+' <b>'+daily_rate_min+'-'+daily_rate_max+'</b>');

}
function halternative() {dw('Alternative supplier: ')}
function htabledivider(){
dw('</td><td>&nbsp;&nbsp</td><td align=right valign=top>')}
function subhotel(){
tbwidth=(daily_rate==''||daily_rate=='check'?90:50);
dw('<hr><table width=100%><tr><td valign=top width="'+tbwidth+'%">');}
function subhotelend(){dw('</td></tr></table>')}
var distcnbr=0;
if (typeof(cityname)=='undefined') cityname='';
var fromlocation=(cityname==''?'from where you clicked':'from the Center of '+cityname);
var disthelp='Click on the arrow to go to the PointData with maps and demographic, business, and cultural data about the vicinity of this hotel';
n1c='http://n1.cs.fiu.edu/cgi-bin';
function hdistc(kmeters,direction) {
var meters=1000*kmeters;
distcnbr++;
dw();
if (direction.length<4) direction=direction.replace('N','north').replace('S','south').replace('W','west').replace('E','east').replace('thw','th-w').replace('the','th-e');
var ft=Math.round(meters/0.3);
var miles=Math.round(meters/160.9)/10;
var km=Math.round(meters/100)/10;
if (USA) var val='<img border=0 src=http://n1.cs.fiu.edu/images/'+direction+'.gif>'+(ft>5000?miles+'mi':ft+q);
else var val='<img border=0 src=http://n1.cs.fiu.edu/images/'+direction+'.gif>'+(meters>2000?km+'km':meters+'m');
var url=n1c+'/gnis.cgi?TopPlaces=5&Lat='+alatitude+'&Long='+alongitude;
if (typeof(alatitude)!='undefined') if (alatitude!=0) {
if (USA) poph(url,'<b><i>'+val+'</i></b>','<i>'+hname+'</i> is '+ft+' feet ='+meters+' meters, ='+miles+' miles, =<b>'+km+' kilometers</b> '+direction+' '+fromlocation+'. '+disthelp);
else poph(url,val,'This hotel is '+ft+' feet ='+meters+' meters, ='+miles+' miles, =<b>'+km+' kilometers</b> '+direction+' '+fromlocation);
if (distcnbr==1 && USA) popq('',disthelp);
}
else {
if (distcnbr==1) popq(val,'This hotel is '+ft+' feet ='+meters+' meters, ='+miles+' miles, =<b>'+km+' kilometers</b> '+direction+' from where you clicked.');
else popbi(val,'This hotel is '+ft+' feet ='+meters+' meters, ='+miles+' miles, =<b>'+km+' kilometers</b> '+direction+' from where you clicked');
}
}
function mapref(lat,lon){
mapi='<img border=0 src="/images/map'+langsuffix+'.gif" ALT="HOLD MOUSE to see maps here OR CLICK for Map Album" width=48 height=16>'
mapr='http://www.mapblast.com/pblast/pmap.mb?W=640&H=480&loc=ll&DU=MI&CMD=LFILL&CT='+lat+'&CT='+lon+'&CT=20000&STYLE=';
if (USA) {
m1='<img src=http://tiger.census.gov/cgi-bin/mapper/map.gif?lat='+lat+'&lon='+lon+'&ht=0.120&wid=0.120&&on=CITIES&on=majroads&on=miscell&on=places&on=interstate&on=statehwy&on=states&on=ushwy&on=water&tlevel=censusb&tvar=income&tmeth=i&mlat='+lat+'&mlon='+lon+'&msym=cynpin&mlabel=&murl=&conf=mapnew.con&iht=359&iwd=422>';
m2='<img src=/images/tigerlegend.gif>';
m3m='http://tiger.census.gov/cgi-bin/mapper/map.gif?lat='+lat+'&lon='+lon+'&wid=0.015&ht=0.015&iht=359&iwd=422&on=CITIES&on=majroads&on=miscell&on=places&on=streets&on=interstate&on=statehwy&on=states&on=ushwy&on=water&tlevel=-&tvar=-&tmeth=i&mlat='+lat+'&mlon='+lon+'&msym=cynpin&mlabel=&murl=&conf=mapnew.con';
m3='<img src='+m3m+' width=422 height=359 alt=Computing:Maps...WAIT>';
mapr='http://131.94.131.22/cgi-bin/d.cgi?tigermaps=&gnis0=&searchstring=&lat='+lat+'&long='+lon+'&bigmap=1';
pophb(mapr,mapi,m1+'Zoom:'+m3+' '+m2,900);
dw();
var ham='http://tl.cs.fiu.edu/qHaMz'+lon+'qALz'+lat;
var wh=' width=600 height=450 ';
if (citycode=='MIA') {ham='http://tl.cs.fiu.edu/qHaM1fz'+lon+'qALz'+lat; wh=''}
hami='<img src='+ham+' '+wh+' alt=loading:photomap...WAIT border=0>';
pophb(citycode+'.photomap.html#set\?lat='+lat+'&lon='+lon,'<img border=0 src="/images/photo-map'+langsuffix+'.gif" width=48 height=16 alt="HOLD MOUSE to see photo-map here OR CLICK on icon to go Aerial Navigation Page">',hami,600)}
else {if ((typeof(map)=='undefined'?'':map)!='') pophb(map,mapi,'<img src='+map+'>');
else {
mapq='http://www.mapquest.com/maps/map.adp?latlongtype=decimal&zoom=7&latitude='+lat+'&longitude='+lon;
if (lat>0) pophb(mapq,mapi,'Mapquest '+popframe(mapq));
}}

}
function htlref(){
dw('<p align="justify">  ');
dw('<font color=blue>  ');
dw('<b>');popi('Reference sources for hotel rates and reservations','We aggregate hotel rates from most online systems');dw('</b>: ');
dw('</font>  ');
dw('<b>');popi('Comprehensive booking engines:','Systems offering a very wide variety of world`s hotels and most room types within each hotel.  They automatically book, directly with the hotel, standard rates as well as corporate rates and the hotel`s specials. (``Corporate rates`` are typically available to everybody -- you get the same room with the same conditions as a regular rate but often pay less, although in some cases hotel`s rules, if enforced, require you to be an employee of some corporations.)  They interact with most hotel chains and many individual hotels.');dw('</b> ');
venere='http://www.venere.com/cgi/ihr/vcom/country.php?ref=6753&country='+kountryname;
if (kountrycode=='FR'||kountrycode=='DE'||kountrycode=='IT'||kountrycode=='ES'||kountrycode=='UK') {pophb(venere,'Venere Hotels','Venere Hotel Reservation System'+popframe(venere,800),800);dw()}
pophb('http://allmeasures.com/travel.html','*AMS','AMS books hotels through major worldwide reservation systems and some consolidator fares');dw(' ');
pophb('http://www.travelnow.com/affiliate/?cid=43277','*Pegasus+SABRE/TN','TravelNow supplies hotels from the Pegasus and SABRE hotel reservation systems plus specials');dw(' ');
pophb('http://service.bfast.com/bfast/click?bfmid=26917872&siteid=32459644&bfpage=homepage','*WorldSpan/Expedia','Expedia supplies from the WORLDSPAN worldwide reservation system as well as special deals');dw(' ');
pophb('http://pts.worldres.com/script/node.asp?n=0&front_end_id=8372','WorldRes','WorldRes is a worldwide reservation system');dw(' ');
pophb('http://service.bfast.com/bfast/click?bfmid=18566&sourceid=32469034&categoryid=travelocity','Travelocity','An alternative access to SABRE Reservation System plus some specials');dw(' ');
pophb('http://partner.onetravel.com/go/go.cfm?GoID=16416','1Travel','1Travel is a comprehensive reservation system');dw(' ');
pophb('http://www.1800USAHotels.com/?id=769639','Gallileo','800USAHotels reservations via Gallileo GDS and consolidation'); dw(' ');
dw('<b>');popi('Discounters/Consolidators:','Consolidators typically pre-purchase rooms in hotels and sell them to public at discount.  They are often cheaper than direct booking or comprehensive services and sometimes have rooms when the hotel is ``sold out``.  However, unlike comprehensive services, consolidators typically work only with a limited number of hotels and only in major cities. Even for hotels they work with, their inventory is limited. Also, reservations made with consolidators are often non-cancelable or bear a high penalty.  Our service brings to the user together rates from comprehensive services (direct hotel prices) and consolidators.');dw('</b> ');
pophb('http://www.HotelQuest.com/index.html?af_id=130401','*HotelQuest','HotelQuest is a deep discounter/consolidator of hotel rooms for major markets');dw(' ');
pophb('http://www.stayxs.com/new/booking/default.asp?wsid=967','StayXS','StayXS is a consolidator for certain countries');dw(' ');
pophb('http://www.180096hotel.com/cgi-bin/pickinput?SID=AMS&LKF=AMS&Dest=','*HotelsDiscount','HotelsDiscount is a deep discounter/consolidator of hotel rooms. Also known as HRN, Hotel Reservations Network, and hotels.com');dw(' ');
dw('(');pophb('http://www.180096hotel.com/cgi-bin/coupon?SID=AMS&LKF=AMS','rebates','After you have reserved with HotelsDiscount or HRN, you can print this coupon and send it in for upto $100 rebate after completion of stay');dw(') ');
pophb('http://www.hotelclub.net/content/aff_enter.asp?id=4976','HotelClub','HotelClub is a discounter/consolidator');dw(' ');
pophb('http://allmeasures.com/travel.html','AMS Hot Deals','consolidator rates');dw(' ');
pophb('http://www.commission-junction.com/track/track.dll?AID=1106592&PID=572495&URL=http%3A%2F%2Fwww%2Eeurovacations%2Ecom','EuroVacations','Mostly air/hotel packages but also a large selection of European hotels');dw(' ');
pophb('http://www.cnghotels.com/bookingengine/index.asp?cid=53077','CNG','CNG is a Discounter/Consolidator');dw();
pophb('http://click.linksynergy.com/fs-bin/stat?id=BEyY3Qv/FJM&offerid=36796&type=3&subid=0','HotelsAtAnyWhere','a Discounter/Consolidator');dw();
pophb('http://www.travelbase.com/hot-deals.cgi?remote=tajana','TB Hot Deals','a Discounter/Consolidator');dw();
dw('<b>');popi('See also:','Resources other than conventional hotels are not aggregated in our hotel comparison reports and you may want to check on them with their providers via the following links');dw('</b> ');
pophb('http://Hotels-shopper.com/groups.html','Group Booking','Special arrangements and wholesale prices for groups');dw(' ');
pophb('http://www.condosavers.com/cgi-bin/pickcondo?SID=AS2&LKF=AS2','Condos','Condos, vacation homes at CondoSaver.com');dw(' ');
pophb('http://www.travelbase.com/auto/extended_stay.cgi?remote=tajana','TB Extended Stay Hotels','Comfort and discount of long stays');dw();
pophb('http://www.travelbase.com/skiing/index.cgi?remote=tajana','TB Ski','Mountain accomodations via TravelBase Engine');dw();
pophb('http://pts.worldres.com/script/node.asp?n=1804&front_end_id=8372','WR Ski','Ski&Mountain lodging');dw(' ');
pophb('http://pts.worldres.com/script/node.asp?n=1860&front_end_id=8372','B&B','WorldRes Bed&Breakfast online reservation system');dw(' ');
pophb('http://allmeasures.com/travel.html','Villas','vacation villas for rent');dw(' ');
pophb('http://www.recommend.org/selected-travel.html#LODGING','OTHER','Suites, Condos, Bed and Breakfast, Vacation homes, OTHER travel services: air, cars, rail, supplies, city guides, books, cruises, cellphone rent');dw('. ');
popbi('<img src=/images/phone.gif  width=19 height=21> Live Agent','Call 9 AM to 12 Midnight Mon-Fri, 10 AM - 8 PM Sat-Sun, EST TOLL FREE <b>1-888-254-0637</b>, USA and Canada; +1-561-845-8899 International.<br>Give <b>Promo Code 3983 </b>when calling.'); 
dw('</p>  ');
dw('  ');
}
function bmsearches(){
var label='Guide';var title=cityname+' activities, art, religion, events, entertainment, dining, sport, nightlife, shopping ';
if (typeof(wctguide)!='undefined') {pophb(wctguide.replace('usahotelguide','res99'),label,title+popframe(wctguide));
dw();
label='Life'; title=cityname+ ' attractions, activities, art, religion, events, entertainment, dining, sport, nightlife, shopping';}
if (typeof(tnguide)!='undefined') {pophb(tnguide,label,title+popframe(tnguide));
dw();}
if (citysize>0) poph('http://hotels-shopper.com'+citykountrypage,'Hotels','Multi-system comparison shopper for '+citysize+' '+cityorkountryname+' hotels '+popframe('http://hotels-shopper.com'+citykountrypage));
else poph('http://hotels-shopper.com/'+kountrycode,'Hotels','Multi-system comparison shopper for '+kountryname+' hotels '+popframe('http://hotels-shopper.com/'+kountrycode));
dw();
if (USA) {yellowcat('Dine');yellowcat('Clubs');
if (typeof(longitude)!='undefined') if (longitude!='') {dw();
demog='http://vn4.cs.fiu.edu/cgi-bin/gnis.cgi?Lat='+latitude+'&Long='+longitude+'&tfaction=dispense&areatype=incorp&aid=&place_name='+citynameplus+'#Demographics';
pophb(demog,'Demographics','<table><tr><td>Click to see demographics data.');dw();
pointdata=n1c+'/gnis.cgi?TopPlaces=5&Lat='+latitude+'&Long='+longitude;
pophb(pointdata,'Maps&Data','Click for maps and data');dw();
}
}
if (typeof(longitude)!='undefined') if (longitude!='') {
weathericon='http://oper.dblive.com/zml/products?ext=jpg&h=116&w=144&lang=us&act_p=image&user=terrafly&pass=trfg$us&client=terrafly&retrieve=yes&object=clickweather&package=239&act=forecast&tf=1&lat='+latitude+'&lon='+longitude;
weatherlink='http://www.clickweather.com/zml/clickweather?user=terrafly&long_point='+longitude+'&lat_point='+latitude+'&act=forecast';
weatherpop='http://www.clickweather.com/zml/pforecast?lat='+latitude+'&lon='+longitude;
dw();
pophb(weatherlink, 'Weather', 'Weather'+popframe(weatherpop,800));
}
}
function bmmaps(aerialurl){
mapi='<img border=0 src=http://hotels-shopper.com/images/map'+langsuffix+'.gif ALT=map>';
img='<img src='+aerialurl+' width=400 height=400>';
dw('<table border=0 align=center><tr><td>');
if (typeof(statecode) != 'undefined') if (statecode != '') pophb('http://hotels-shopper.com/'+kountrycode+'/'+citycode+'.photomap.html',img,'Aerial');
dw('</td></tr></table><br>');
dw('Get '+cityorkountryname+' <b>maps</b> at <a href=http://recommend.org/Expedia_Maps.htm target=_blank>Expedia</a> ');
dw(' or buy at <a href=http://recommend.org/Rand_McNally.htm target=_blank>Rand McNally</a> <p>');
}
function bmads(){
adframes();
}
function hminis(){
var hmini='<table cellspacing=0 cellpadding=0 border=1 align=right width=150>'+'<tr><td bgcolor="#D4E3F1" align="center" >Check prices for: <form action="http://hotels-shopper.com/d.asp" name=nnn method=GET target=_blank> <input name=citycode value="'+citycode+'" type=hidden>';
hmini+='<input name=latitude value="'+latitude+'" type=hidden>';
hmini+='<input name=longitude value="'+longitude+'" type=hidden>';
hmini+='<input name=category value="'+category+'" type=hidden> <input name=country value="'+kountrycode+'" type=hidden> <input name=cityname value="'+citynameplus+'" type=hidden> <input name=clang value="EN" type=hidden> <select name=Month size=1>'
hmini+=selectmonths()+'</select><select name=Day size=1>';
hmini+=selectstrngs('1,1st;2,2nd;3,3rd')+selectnbrs(20,'th',4)+selectstrngs('21,21st;22,22nd;23,23rd')+selectnbrs(30,'th',24)+selectstrngs('31,31st')+'</select><select name=Nights>';
hmini+=selectstrngs('1,1 night')+selectnbrs(40,' nights',2);
hmini+='</select>'
hmini+='<select name=adults size=1>';
hmini+=selectstrngs('1,1 adult;2,2 adults;3,3 adults;4,4 adults')+'</select>';
hmini+='<select name=children size=1>'+selectnbrs(4,' children',0)+'</select>';
hmini+='<input type=image src="/images/urlbb.gif" width=65 height=35 alt=Submit border=0 name=submit target=_blank></form> </td></tr></table>';
poptxt='<small>To get real-time quotes you can EITHER enter here the stay begin date & duration OR obtain real time quotes just for desired hotels by pressing <img src=/images/booknow'+langsuffix+'.gif alt=reserve width=48 height=16> in the precomputed report below.  Recomputation takes a few minutes and does not produce results as detailed as in the precomputed report below.</small>';
popbi(hmini,poptxt);}
