﻿function MCA_Cell(){this.CV=[];};MCA_Cell.prototype.xC=function(){var kO=map.getBounds();for(var i=0;i<this.CV.length;i++){var eB=this.CV[i];var jH=kO.intersects(eB.iL);if(!jH){jH=kO.containsBounds(eB.iL);}if(!jH){jH=kO.contains(eB.xR);}if(!jH){jH=kO.contains(eB.xO);}if(jH){gMCAtask.fR.push(eB);}}};﻿;function aW(a){this.xJ=a;this.uD="&noCacheIE="+(new Date()).getTime();this.qK=document.getElementsByTagName("head").item(0);};aW.prototype.dB=function(){this.fM=document.createElement("script");this.fM.setAttribute("type","text/javascript");this.fM.setAttribute("charset","utf-8");this.fM.setAttribute("src",this.xJ+this.uD);};aW.prototype.zL=function(){this.qK.removeChild(this.fM);};aW.prototype.eJ=function(){this.qK.appendChild(this.fM);};﻿;var MC_AssistantUtil={};var gMCassistant=null;function MC_Assistant(OZ,HI){this.JD=OZ;this.DD=0;this.IV=0;this.IS=0;this.sN=HI;this.AW=1;this.bL=null;this.EE="http://hotels.mapchannels.com/";this.cL={cursor:"pointer",color:"black",padding:"0px",zIndex:"200"};gMCassistant=this;this.tY=true;this.jW=[];this.jW[1]=[];this.jW[2]=[];this.jW[4]=[];this.jW[8]=[];this.jW[16]=[];this.jW[32]=[];this.jW[64]=[];this.jW[128]=[];this.NY=new MCA_Task(this);this.cH=null;this.mZ=null;this.AZ=false;this.hF=[];this.EJ=7;this.FD();};MC_Assistant.prototype.FD=function(sO){var aC="<table cellspacing='0' cellpadding='3' style='width:100%;height:100%;background-color:transparent'><tr valign='top'><td style='width:100%' align='center'>"+"<div id='buttonDiv'></div>"+"</td></tr></table>";var BJ=e("mcbarDiv");if(BJ){BJ.innerHTML=aC;}this.bL=e("buttonDiv");};MC_Assistant.prototype.lM=function(sO){this.bL=document.createElement('div');this.bL.id='mca-control';MC_AssistantUtil.cL([this.bL],this.cL);this.bL.style.display="block";this.updateView();};MC_Assistant.prototype.initialize=function(map){var G=this.globals;var hI=this;var bY=map.getContainer();this.lM(bY);var bB=this.bL;GEvent.addDomListener(bB,'click',function(a){hI.qX(a);});return bB;};MC_Assistant.prototype.qX=function(){switch(this.AW){case 0:map.removeControl(this);this.tY=false;break;case 1:break;case 2:map.removeControl(this);this.tY=false;break;}};MC_Assistant.prototype.updateView=function(){switch(this.AW){case 0:this.xB();break;case 1:this.zJ();break;case 2:if(!this.tY){this.tY=true;map.addControl(this);}if(this.bL){this.bL.style.backgroundColor="transparent";this.bL.style.border="";this.bL.innerHTML="&nbsp; <img src='http://mcmarkers.googlepages.com/iimm1-blue.png' /> &nbsp;MC";}}};MC_Assistant.prototype.xB=function(){var bU=this.JD.getCenter();var x=bU.lng();var y=bU.lat();this.bL.innerHTML="<b>x (long):</b> "+aY(x,5)+"<br />"+"<b>y (lat):</b> "+aY(y,5);};MC_Assistant.prototype.zJ=function(){this.NY.EV();};MC_Assistant.prototype.getDefaultPosition=function(){var hM=G_ANCHOR_TOP_LEFT;switch(this.DD){case 1:hM=G_ANCHOR_TOP_RIGHT;break;case 2:hM=G_ANCHOR_BOTTOM_LEFT;break;case 3:hM=G_ANCHOR_BOTTOM_RIGHT;break;}return new GControlPosition(hM,new GSize(this.IV,this.IS));};MC_Assistant.prototype.NN=function(){if(gMCassistant.cH){gMCassistant.cH.hide();}gMCassistant.bL.style.display="none";};MC_Assistant.prototype.AM=function(ce){var GB=false;for(var i=0;i<this.hF.length;i++){var aD=this.hF[i];if(aD.kB==ce.kB){GB=true;}}if(!GB){if(this.hF.length>5){for(var i=0;i<this.hF.length;i++){this.hF[i]=this.hF[i+1];}this.hF.length--;}this.hF.push(ce);}};MC_AssistantUtil.e=function(iP){return document.getElementById(iP);};MC_AssistantUtil.AJ=function(mK){var jC=mK.split(',');var gB=[];for(var i=0;i<jC.length;i++){gB[gB.length]=MC_AssistantUtil.e(jC[i])};return gB;};MC_AssistantUtil.cL=function(cW,lH){if(typeof(cW)=="string"){cW=MC_AssistantUtil.AJ(cW);}for(var i=0;i<cW.length;i++){for(var s in lH){cW[i].style[s]=lH[s];}}};﻿;MCA_Place=function(HQ,iP,gV,MN,ML,uO,LN,NR,AK,qF){this.kT=HQ;this.kB=iP;this.aI=gV;this.IV=MN;this.IS=ML;this.dQ=uO;this.wF=LN;this.qB=NR;this.fS=AK;this.gR=qF;this.hO=new GLatLng(ML,MN);};MCA_Place.prototype.DL=function(){var cV="<b>"+this.aI+"</b>";if(this.qB.length>0){cV+=", "+this.qB;}if(this.fS.length>0){cV+=", "+this.fS;}if(this.gR.length>0){cV+=", "+this.gR;}cV="<div style='font-size:10px;font-weight:normal;text-decoration:none'>"+cV+"</div>";return cV;};MCA_Place.prototype.vL=function(){if(this.kT==2){var vP=this.dQ;}else if(this.dQ==1){var vP="http://hotels.mapchannels.com/img/"+(this.kB%1000)+"/"+this.kB+".jpg";}else{var vP="http://mcmarkers.googlepages.com/iimm2-blue.png";}var aC="<img src='"+vP+"' border='1' style='borderColor:black'  alt='' />";return aC;};MCA_Place.prototype.xF=function(){if(this.kT==2){var tT="http://hotels.mapchannels.com/attractions.aspx?id="+this.wF;}else{var tT="http://hotels.mapchannels.com/main.aspx?pl="+this.kB;}return tT;};MCA_Place.prototype.aM=function(rW){var hW="<b>"+this.aI+"</b>";if(this.qB.length>0){hW+="<br />"+this.qB;}if(this.fS.length>0){hW+=", "+this.fS;}if(this.gR.length>0){hW+="<br />"+this.gR;}hW="<table cellspacing='0' cellpadding='0' style='width:240px' font-size:11px'><tr valign='top'><td>"+hW+"</td><td style='padding-left:8px' align=right>"+this.vL()+"</td></tr><tr><td colspan='2'>"+"<div style='height:4px'></div>"+"</td></tr><tr style='background-color:cornflowerblue'><td colspan='2'>"+"<div style='height:2px'></div>"+"</td></tr><tr><td colspan='2'>"+"<div style='height:4px'></div>"+"</td></tr><tr><td>"+"<a target='_blank' href='"+this.xF()+"' style='color:forestgreen; text-decoration:none' title='Online Booking, Check Availability, View Nearby Hotels' >More Info</a><br />"+"</td><td align='right' style='width:85px'>"+"<div id='mcaZoomDiv'>"+"<img src='http://hotels.mapchannels.com/images/zoom.png' border='0' alt='' />&nbsp;"+"<a href='javascript:mcaZoom(1)' style='color:black; text-decoration:none' >Zoom&nbsp;In</a>"+"</div>"+"</td></tr></table>";var qS="<table style='width:240px; font-size:11px'><tr valign='top'><td>";for(var i=gMCassistant.hF.length-1;i>=0;i--){var zM=gMCassistant.hF[i];if(zM.kB!=this.kB){qS+="&#8226;  <a href='javascript:mcaHistory("+i+")' style='color:darkred' >"+zM.aI+"</a><br />";}}qS+="</td></tr></table>";var OH=[new GInfoWindowTab("This Hotel",hW),new GInfoWindowTab("Previous",qS)];rW.openInfoWindowTabs(OH);};function mcaZoom(a){if(a==1){gMCassistant.EJ=map.getZoom();map.setZoom(15);e("mcaZoomDiv").innerHTML="<img src='http://hotels.mapchannels.com/images/zoomout.png' border='0' alt='' />&nbsp;"+"<a href='javascript:mcaZoom(-1)' style='color:black; text-decoration:none' >Zoom&nbsp;Out</a>";}else{map.setZoom(gMCassistant.EJ);e("mcaZoomDiv").innerHTML="<img src='http://hotels.mapchannels.com/images/zoom.png' border='0' alt='' />&nbsp;"+"<a href='javascript:mcaZoom(1)' style='color:black; text-decoration:none' >Zoom&nbsp;In</a>";}};function mcaHistory(a){var aD=gMCassistant.hF[a];aD.uY();var aP=gMCassistant.cH;aD.aM(aP);};MCA_Place.prototype.xE=function(){var iR="";switch(this.kT){case 1:iR="Book a Hotel";break;case 2:iR="Things To Do";break;default:iR="Location "+this.kT;break;}return iR;};MCA_Place.prototype.uY=function(){var pQ=this.vL();var hW=this.DL();var tT=this.xF();var iR=this.xE();var aC="<div onmouseover='mcaCaption(1)' onmouseout='mcaCaption(0)'>"+"<a target='_blank' href='"+tT+"'>"+"<table cellspacing='0' cellpadding='2' style='font-size:10px;width:96px;color:white;background-color:black'><tr>"+"<td id='mcaCaptionDiv'  style='width:100%' align='center'>"+iR+"</td></tr></table>"+"<table cellspacing='0' cellpadding='2' style='background-color:transparent;width:96px'><tr valign='middle'>"+"<td id='mcaContentDiv' style='width:100%;height:74px;color:black' align='center'>"+"<div id='mcaImageDiv' >"+pQ+"</div>"+"<div id='mcaTitleDiv' style='display:none'>"+hW+"</div>"+"</td></tr></table>"+"</a>"+"</div>";var lD=gMCassistant.bL;lD.style.padding="0px";lD.innerHTML=aC;if(gMCassistant.sN){var bU=new GLatLng(this.IS,this.IV);if(gMCassistant.cH==null){var aE=new GIcon();var eH="http://mcmarkers.googlepages.com/iimm2-blue.png";aE.image=eH;aE.iconSize=new GSize(32,32);aE.shadow="http://mcmarkers.googlepages.com/iimm2-shadow.png";aE.shadowSize=new GSize(59,32);aE.printImage=eH;aE.mozPrintImage=eH;aE.iconAnchor=new GPoint(16,31);aE.infoWindowAnchor=new GPoint(16,0);aE.infoShadowAnchor=new GPoint(0,31);var cV="Click for More Info";var aP=new GMarker(bU,{icon:aE,title:cV});map.addOverlay(aP);GEvent.addListener(aP,'click',function(){var aD=gMCassistant.mZ;aD.aM(aP);});GEvent.addListener(aP,'mouseover',function(){mcaCaption(1);});GEvent.addListener(aP,'mouseout',function(){mcaCaption(0);});gMCassistant.cH=aP;}else{var aP=gMCassistant.cH;aP.setPoint(bU);aP.show();}if(this.kT==1){gMCassistant.AM(this);}}};var mH=false;function mcaCaption(a){var oB=e("mcaCaptionDiv");if(!oB){return;}if(a== -1){oB.innerHTML="Updating";e("mcaTitleDiv").innerHTML="<img src='http://hotels.mapchannels.com/images/loading.gif' border='0' />";e("mcaImageDiv").style.display="none";e("mcaTitleDiv").style.display="block";}else if(!mH){mH=true;var OE=e("mcaContentDiv");var aD=gMCassistant.mZ;if(aD!=null){if(a>0){oB.innerHTML="Click for More Info";e("mcaImageDiv").style.display="none";e("mcaTitleDiv").style.display="block";}else{oB.innerHTML=aD.xE();e("mcaImageDiv").style.display="block";e("mcaTitleDiv").style.display="none";}mH=false;}}};﻿;var gMCAtask=null;function MCA_Task(LH){gMCAtask=this;this.FW=LH;this.JD=LH.JD;this.IX=0;this.IY=0;this.zQ=0;this.BZ=null;this.HV=null;this.fR=[];this.gL=[];};MCA_Task.prototype.EV=function(){this.fR=[];this.gL=[];var oV=map.getInfoWindow();var wW=false;if(oV!=null){wW= !oV.isHidden();}if(wW){return;}if(gMCassistant.cH){gMCassistant.cH.hide();mcaCaption(-1);gMCassistant.AZ=true;}var PR=this.FW.jW.length;var aH=map.getBounds();var kV=aH.getSouthWest();var kX=aH.getNorthEast();var OT=0;var fF=1;var BW=parseInt(kV.lng())+180;var FP=parseInt(kV.lat())+90;var zB=parseInt(kX.lng())+180;var FQ=parseInt(kX.lat())+90;if(BW>zB){zB+=360;}var bV=(zB-BW+1);var gW=(FQ-FP+1);var gX=(bV>gW)?bV:gW;if(gX>128){fF=128;}else if(gX>64){fF=64;}else if(gX>32){fF=32;}else if(gX>16){fF=16;}else if(gX>8){fF=8;}else if(gX>4){fF=4;}else if(gX>2){fF=2;}yT=parseInt((BW+zB)/(2*fF));yU=parseInt((FP+FQ)/(2*fF));this.IX=yT;this.IY=yU;this.zQ=fF;var BU=gMCassistant.jW[fF];var DN=false;var ix=yU*360+yT;var rX=BU[ix];if(rX!=null){rX.xC();this.xV();}else{var bC=this.FW.EE+"grid/"+fF+"/"+yU+"/"+yT+".js?a=1";var aJ=new aW(bC);aJ.dB();aJ.eJ();DN=true;}};function cbGT(a){var JB=a[0];var x=a[1];var y=a[2];var BU=gMCassistant.jW[JB];var rX=BU[y*360+x];if(rX==null){rX=new MCA_Cell();BU[y*360+x]=rX;}var zU=parseInt((a.length-3)/9);for(var i=0;i<zU;i++){var ix=3+i*9;var eB=new MCA_Town(a[ix],a[ix+1],a[ix+2],a[ix+3],a[ix+4],a[ix+5],a[ix+6],a[ix+7],a[ix+8]);rX.CV.push(eB);gMCAtask.fR.push(eB);}if(x==gMCAtask.IX&&y==gMCAtask.IY&&JB==gMCAtask.zQ){gMCAtask.xV();}else{this.oC();}};function cbGP(a){var eB=gMCAtask.BZ;var GH=a[0];if(eB.wF==GH){var sF=parseInt((a.length-1)/6);for(var i=0;i<sF;i++){var ix=1+i*6;aD=new MCA_Place(a[ix],a[ix+1],a[ix+2],a[ix+3],a[ix+4],a[ix+5],GH,eB.aI,eB.fS,eB.gR);eB.wB.push(aD);gMCAtask.gL.push(aD);}gMCAtask.wT();}};MCA_Task.prototype.xV=function(){var EK=false;if(gMCAtask.fR.length>0){var zU=this.fR.length;var eB=this.xU();if(eB){EK=true;gMCAtask.BZ=eB;if(eB.wB.length>0){for(var i=0;i<eB.wB.length;i++){var aD=eB.wB[i];gMCAtask.gL.push(aD);}this.wT();}else{var bC=this.FW.EE+"grid/t/"+eB.wF+".js?a=1";var aJ=new aW(bC);aJ.dB();aJ.eJ();}}}if(!EK){this.oC();}};MCA_Task.prototype.oC=function(){var OL=uS(1);var aC="";switch(OL){case 0:aC="<a href='http://www.anrdoezrs.net/8c108kjspjr69ECCBC9687BBABFF' target='_blank'>"+"<img src='http://www.tqlkg.com/7k98y7B-53PSXVVUVSPRQUUTUYY' alt='' border='0'/></a>";break;}aC="<table style=width:100%><tr style='height:100px' valign=center><td style='width:100%' align=center>"+aC+"</td></tr></table>";var lD=gMCassistant.bL;if(lD){lD.style.padding="0px";lD.innerHTML=aC;}};MCA_Task.prototype.wT=function(){var xM=false;var kO=map.getBounds();if(this.gL.length>0){var fJ=[];for(var i=0;i<this.gL.length;i++){var aD=this.gL[i];var KB=false;if(kO.contains(aD.hO)||(aD.kT==2)){fJ.push(aD);KB=true;}}if(fJ.length>0){var ix=uS(fJ.length);var aD=fJ[ix];gMCAtask.HV=aD;if(Math.abs(aD.IV)<1.1&&Math.abs(aD.IS)<1.1){xM=false;}else{aD.uY();gMCassistant.mZ=aD;xM=true;gMCassistant.bL.style.display="block";gMCassistant.AZ=false;}}}if(!xM){this.oC();}};MCA_Task.prototype.xU=function(){var pF=null;var pB=0;var ID=map.getCenter();for(var i=0;i<gMCAtask.fR.length;i++){var eB=gMCAtask.fR[i];GO=ID.distanceFrom(eB.MB);if(i==0){pB=GO;pF=eB;}else if(GO<pB){pB=GO;pF=eB;}}return pF;};﻿;MCA_Town=function(iP,HH,gV,AK,qF,MH,MJ,MT,MV){this.wF=iP;this.aI=gV;this.fS=AK;this.gR=qF;this.GZ=HH;this.PW=MT;this.PV=MV;this.PU=MH;this.PS=MJ;this.xR=new GLatLng(MV,MT);this.xO=new GLatLng(MJ,MH);this.iL=new GLatLngBounds(this.xR,this.xO);this.MB=this.iL.getCenter();this.wB=[];};﻿;function e(id){return document.getElementById(id);};function HJ(a){GLog.write(a);};function aY(pFloat,pDp){var m=Math.pow(10,pDp);return parseInt(pFloat*m,10)/m;};function fK(){jP=true;if(typeof(window.innerHeight)=='number'){jP=false;}if(jP){cN=parseInt(document.documentElement.clientWidth);bE=parseInt(document.documentElement.clientHeight);bE-=18;}else{cN=parseInt(window.innerWidth);bE=parseInt(window.innerHeight);}};function vD(){for(var i=0;i<10;i++){var c=i.toString();cQ[c]=i;}cQ["A"]=10;cQ["B"]=11;cQ["C"]=12;cQ["D"]=13;cQ["E"]=14;cQ["F"]=15;};var oP=new Array("","Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");var SECONDS_CF=1000;var MINUTES_CF=60000;var HOURS_CF=3600000;var DAYS_CF=86400000;var WEEKS_CF=604800000;var FORTNIGHTS_CF=1209600000;var MONTHS_CF=2592000000;var QUARTERS_CF=7776000000;var YEARS_CF=31557600000;var DECADES_CF=315576000000;var CENTURIES_CF=3155760000000;Date.prototype.mC=function(ms){return new Date(new Date().setTime(this.getTime()+(ms)));};Date.prototype.tE=function(d){return this.mC(d*DAYS_CF);};var uR;var lV="";function qP(marker){if(lV.length==0){for(var i in marker){if(eval("typeof marker."+i)=="object"){try{if(eval("typeof marker."+i+"[0].src")!="undefined"){uR="this."+i;lV=uR+"[0]";}}catch(ex){}}}}};GMarker.prototype.pU=function(a){qP(this);if(a>0){this.mP=eval(lV+".style.zIndex");}else{if(typeof this.mP!="undefined"){a=this.mP;}}eval(lV+".style.zIndex = a");this.redraw(true);};function uS(CW){var AU=Math.floor(Math.random()*CW);return AU;};function MC(CW){var AU=Math.random()*CW;return AU;};
