function Client(){ var n=navigator ; var s=(screen)?screen:false ; this.bn=n.appName; this.bv=n.appVersion; if (n.product == 'Gecko'){ var rv = n.userAgent.match(/rv:([\w.]+)/)[0]; rv = rv.substr(3); var vendor = n.vendor; var version = n.vendorSub; if (!vendor){vendor = 'Mozilla';version = rv; } this.bv = version; }else{ var msiePos = navigator.userAgent.indexOf('MSIE '); if (msiePos != -1){this.bv = parseFloat(n.userAgent.substr(msiePos + 5)); } } this.bv=parseFloat(this.bv); this.bp=n.platform this.ce=(n.cookieEnabled)?"Y":"N"; this.je=(n.javaEnabled())?"Y":"N"; this.sr='800 x 600' if (this.b == "ns" && parseInt(this.bv) >= 3 && parseInt(this.bv) < 4){ var toolkit = java.awt.Toolkit.getDefaultToolkit(); var scr = toolkit.getScreenSize(); this.sr=scr.width+' x '+scr.height ; }else if(s){ this.sr=s.width+' x '+s.height ; } if(s) this.cd=(this.b == "ns")?s.pixelDepth : s.colorDepth else this.cd="" ; var srch=document.location.search; var srchInd=srch.indexOf('affcode='); this.affiliateCode="RA" ; if(this.affiliateCode=="RA"){ if(srchInd!=-1){ this.affiliateCode=escape(srch.substring(srchInd+8)) ; }else{ if(document.frm1 && document.frm1.afftCode){ this.affiliateCode=document.frm1.afftCode.value ; } if(document.RGfrm1 && document.RGfrm1.afftCode){ this.affiliateCode=RG_AFF_CODE ; } } } this.plugins=" " ; if(document.referrer){ this.r=escape(document.referrer) ; }else{ this.r=escape(document.location.host) ; } this.lastVisitId="0" ; } Client.prototype.getArr=function(){ var carr ; with(c123){ carr=['bn='+bn,'bv='+bv,'bp='+bp,'ce='+ce,'je='+je,'sr='+sr,'cd='+cd,'plugins='+plugins,'r='+r,'af='+affiliateCode] ; } return carr ; } var c123 = new Client(); document.writeln(''); function Page(){ this.request='SAVE_INIT'; this.entryPage='N'; this.visitHour="0" ; this.surl='http://server2.secure-reservation.com/servlets/RezAnalytics.Visitor' ; this.site=escape('A41') ; if(document.referrer){ this.au=escape(document.referrer) ; }else{ this.au=document.location.search ; } this.purl=escape(document.location) ; this.page=escape(document.location.pathname) ; this.phost=escape(document.location.host) ; this.visitorInfo='A927B974D811DB4B524C522B0E65FE00.RezNode1'; if(document.frm1 && document.frm1.visitorInfo){ document.frm1.visitorInfo.value=this.visitorInfo ; } if(document.RG_frm1 && document.RG_frm1.visitorInfo){ document.RG_frm1.visitorInfo.value=this.visitorInfo ; } if(document.RGfrm1 && document.RGfrm1.visitorInfo){ document.RGfrm1.visitorInfo.value=this.visitorInfo ; } this.bookingNo='-'; var obj ; this.checkIn='-'; this.nights='-'; this.rooms='-'; this.adults='-'; this.children='-'; this.visitorSearch='-'; this.err=''; } Page.prototype.send=function(vals){ var url=this.surl+"?"+vals ; var im="<"+"img border=2 width=100 height=100 hspace=0 vspace=0 SUPPRESS=true src='"+this.surl+"?"+vals+"'>" ; var ao="<"+"a target = '_blank' href=''>" var ac="" var agt=navigator.userAgent.toLowerCase(); var is_major = parseInt(navigator.appVersion); var is_nav4 = (is_major == 4)&&((agt.indexOf("mozilla")!=-1) &&(agt.indexOf("spoofer")==-1) && (agt.indexOf("compatible") == -1) && (agt.indexOf("opera")==-1) && (agt.indexOf("webtv")==-1) && (agt.indexOf("hotjava")==-1) ) ; if(canSubmit()){ if(document.images){ document.images["trk"].src=url; } else if(!is_nav4){ document.writeln(ao+im+ac);} } } function canSubmit(){ var save=true ; return save ; } Page.prototype.hit=function(){ var carr=(c123)?c123.getArr():['1=1'] ; with(this){ entryPage='Y'; //if(a123) err=escape(a123.join()); err='-'; once=true; var parr=['request='+request,'visitHour='+visitHour,'entryPage='+entryPage,'site='+site,'au='+au,'page='+page,'purl='+purl,'visitorInfo='+visitorInfo,'bookingNo='+bookingNo,'err='+err,'checkIn='+checkIn ,'nights='+nights ,'rooms='+rooms,'adults='+adults,'children='+children,'visitorSearch='+visitorSearch] ; if(once) send(parr.join("&")+"&"+carr.join("&")) ; once=false; } } var p = new Page().hit();