
function MGProgress(container,tick,text,format,init,update,destroy,granularity)
{this.Container=container;this.Tick=tick;this.Text=text;this.Format=format;this.Init=init;this.Update=update;this.Destroy=destroy;this.Granularity=granularity;}
function MG(cacheid,init,load,render,unload,mapid,listid,statusid,progress)
{this.CacheID=cacheid;this.ClientInit=init;this.ClientLoad=load;this.ClientRender=render;this.ClientUnload=unload;this.MapID=mapid;this.Map=null;this.GMap2=null;this.ListID=listid;this.List=null;this.StatusID=statusid;this.Status=null;this.Progress=progress;this.Ads='pub-1809073382664316';this.DistanceUnitName=new Array('Kilometers','Miles');this.DistanceUnitFactor=new Array(1,0.621371192237334);this.BounceTimer=null;this.BounceCounter=0;this.BouncePlace=null;this.Ready=false;this.Destroyed=false;this.Places=null;this.Ranges=null;this.Sites=null;this.SiteMarker=null;this.Millisecs=5;this.Speed=250;this.SpeedAjax=75;this.InfoWindowPlace=null;this.InfoWindowTimer=null;this.InfoWindowStatus=0;this.PlacesMaximum=20000;this.ZoomMax=3;this.ActiveInit=false;this.ActiveStatus=0;this.Processes=null;this.SessionID=Common.SessionID();this.JobPrioritySetArea=1048572;this.JobPriorityGet=0;this.JobPriorityList=0;this.JobPriorityProcess=1048573;this.JobPriorityClear=1048575;this.JobPriorityNow=1048576;this.JobPriorityBorder=0;this.Control=3050;this.DistanceUnitIndex=0;this.Order=0;this.Criteria=null;this.ViewMapType=-1;this.ListHighlightClass='g3p';this.KeyIgnore=null;this.MousePlace=null;this.Base64='0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_~';this.AjaxRetries=10;this.IconsData=[{"IconIndex":0,"Sketch":100,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":1,"Sketch":17,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Property.Historic.Castle-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":2,"Sketch":20,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Property.Garden.Botanical.Arboretum-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":3,"Sketch":142,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Property.Museum-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":4,"Sketch":157,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Property.Park.Animal-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":5,"Sketch":18,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Activity.Land.Shooting-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":6,"Sketch":128,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Activity.Land.Shooting.Paintball-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":7,"Sketch":65,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Activity.Water.Swim-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":8,"Sketch":90,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Activity.Water.Swim-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":9,"Sketch":145,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Activity.Water.Sail-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":10,"Sketch":70,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Property.Historic.Lighthouse-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":11,"Sketch":149,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Activity.Water.Canoe-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":12,"Sketch":128,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Activity.Land.Shooting.Paintball-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":13,"Sketch":65,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Activity.Water.Swim-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":14,"Sketch":145,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Activity.Water.Sail-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":15,"Sketch":70,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Property.Historic.Lighthouse-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":16,"Sketch":32,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Activity.Land.Ride.Bicycle-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":17,"Sketch":40,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Property.Garden-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":18,"Sketch":22,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Property.Museum.History.Industrial.Brewery-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":19,"Sketch":37,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Recreation.Train-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":20,"Sketch":82,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Recreation.Fish-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":21,"Sketch":159,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Property.Museum.Science-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":22,"Sketch":104,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Activity.Land.Ride.OffRoading-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":23,"Sketch":74,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Activity.Air.Flight.Balloon-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":24,"Sketch":21,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Activity.Air.Flight.Helicopter-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":25,"Sketch":118,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Recreation.Barbeque-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":26,"Sketch":95,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Property.Historic.Industrial-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":27,"Sketch":60,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Activity.Air-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":28,"Sketch":5,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Property.Park.Animal.Farm-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":29,"Sketch":42,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Activity.Air.Falconry-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":30,"Sketch":155,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Activity.Air.Flight.HandGlider-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":31,"Sketch":46,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Property.Park.Animal.Aquatic-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":32,"Sketch":94,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Activity.Air.Flight.Glider-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":33,"Sketch":102,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Recreation.Kite-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":34,"Sketch":26,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Activity.Air.Parachuting-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":35,"Sketch":9,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Activity.Land.Caving-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":36,"Sketch":75,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Activity.Land.ObstacleCourse-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":37,"Sketch":88,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Activity.Land.ObstacleCourse.RopesCourse-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":38,"Sketch":10,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Recreation.Bus-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":39,"Sketch":78,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Activity.Land.Ride.Horse-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":40,"Sketch":114,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Activity.Land.Ride.Kart-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":41,"Sketch":158,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Activity.Land.Ride.QuadBike-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":42,"Sketch":56,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Activity.Land.Shooting.ClayPigeon-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":43,"Sketch":25,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Activity.Land.Shooting.LaserTag-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":44,"Sketch":27,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Activity.Land.Skate-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":45,"Sketch":144,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Activity.Land.Skate-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":46,"Sketch":96,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Activity.Land.Skate.Ice-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":47,"Sketch":86,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Activity.Land.Ski-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":48,"Sketch":141,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Activity.Water.Coasteering-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":49,"Sketch":79,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Recreation.Cruise-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":50,"Sketch":50,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Activity.Water.Surf-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":51,"Sketch":134,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Property.Park.Theme-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":52,"Sketch":111,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Property.Historic.Castle.Earthwork-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":53,"Sketch":2,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Property.Historic.Dovecote-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":54,"Sketch":116,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Property.Historic.Industrial.Barn-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":55,"Sketch":125,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Property.Historic.Industrial.Mill.Watermill-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":56,"Sketch":52,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Property.Historic.Industrial.Mill.Windmill-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":57,"Sketch":28,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Property.Historic.Home-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":58,"Sketch":153,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Property.Historic.Monument-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":59,"Sketch":62,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Property.Historic.Religious-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":60,"Sketch":101,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Property.Historic.Well-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":61,"Sketch":112,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.recreation.Walk-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":62,"Sketch":67,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Nature.Beach-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":63,"Sketch":106,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Property.Historic.Home.Stately-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":64,"Sketch":58,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Property.Park.Country-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":65,"Sketch":61,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Activity-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":66,"Sketch":14,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Property.Hide.Bird-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":67,"Sketch":154,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Property.SoftPlayArea-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":68,"Sketch":34,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Nature.River.Waterfall-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":69,"Sketch":105,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Property.Hide-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":70,"Sketch":71,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Property.Park.Theme.Amusement-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":71,"Sketch":130,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Property.Museum.History.Military-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":72,"Sketch":123,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Property.Historic.Folly-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":73,"Sketch":24,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Nature.ShowCave-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":74,"Sketch":163,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Property.Museum.Art-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":75,"Sketch":164,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Property.Museum.History.Maritime-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":76,"Sketch":136,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Property.Museum.History.Maritime.Ship-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":77,"Sketch":127,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Property.Museum.Wax-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":78,"Sketch":97,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Property.Museum.History.Industrial.Winery-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":79,"Sketch":0,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Property.Museum.History.Industrial.CiderMill-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":80,"Sketch":51,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Property.Museum.History.Industrial.Distillery-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":81,"Sketch":147,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Property.Museum.History.Industrial-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":82,"Sketch":110,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Property.Museum.History.Natural-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":83,"Sketch":150,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Property.Maze-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":84,"Sketch":107,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Property.Museum.Transport-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":85,"Sketch":133,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Property.Museum.Transport.Car-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":86,"Sketch":139,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Property.Museum.Model-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":87,"Sketch":55,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Property.Museum.History.Sport-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":88,"Sketch":15,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Property.Museum.History.Sport.Soccer-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":89,"Sketch":30,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Property.Museum.History.Sport.Cricket-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":90,"Sketch":68,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Property.Museum.History.Sport.Rugby-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":91,"Sketch":68,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Property.Museum.History.Sport.Rugby-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":92,"Sketch":129,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Property.Park.Water-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":93,"Sketch":19,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Property.Park-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":94,"Sketch":89,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Property.Historic.Bathhouse-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":95,"Sketch":80,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Activity.Water.Ski-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":96,"Sketch":64,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Property.Historic.Educational-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":97,"Sketch":38,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Recreation.Train.Funicular-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24},{"IconIndex":98,"Sketch":140,"UrlImage":"http://gothisplace.com/Image/Map/Pleasure.Activity.Water.Surf.Lesson-Image.png","SizeX":24,"SizeY":24,"AnchorX":12,"AnchorY":24,"InfoWindowX":24,"InfoWindowY":0,"UrlShadow":"http://gothisplace.com/Image/Map/Pleasure-Shadow.png","ShadowX":37,"ShadowY":24}];this.Icons=null;this.Sketches=[{"Sketch":100,"IconIndex":0},{"Sketch":122,"IconIndex":0},{"Sketch":45,"IconIndex":0},{"Sketch":162,"IconIndex":0},{"Sketch":31,"IconIndex":0},{"Sketch":85,"IconIndex":0},{"Sketch":93,"IconIndex":0},{"Sketch":98,"IconIndex":0},{"Sketch":17,"IconIndex":1},{"Sketch":115,"IconIndex":1},{"Sketch":29,"IconIndex":1},{"Sketch":20,"IconIndex":2},{"Sketch":142,"IconIndex":3},{"Sketch":91,"IconIndex":3},{"Sketch":157,"IconIndex":4},{"Sketch":35,"IconIndex":4},{"Sketch":18,"IconIndex":5},{"Sketch":128,"IconIndex":6},{"Sketch":65,"IconIndex":7},{"Sketch":90,"IconIndex":8},{"Sketch":145,"IconIndex":9},{"Sketch":70,"IconIndex":10},{"Sketch":149,"IconIndex":11},{"Sketch":32,"IconIndex":16},{"Sketch":113,"IconIndex":16},{"Sketch":40,"IconIndex":17},{"Sketch":131,"IconIndex":17},{"Sketch":137,"IconIndex":17},{"Sketch":12,"IconIndex":17},{"Sketch":77,"IconIndex":17},{"Sketch":81,"IconIndex":17},{"Sketch":59,"IconIndex":17},{"Sketch":69,"IconIndex":17},{"Sketch":22,"IconIndex":18},{"Sketch":37,"IconIndex":19},{"Sketch":3,"IconIndex":19},{"Sketch":66,"IconIndex":19},{"Sketch":82,"IconIndex":20},{"Sketch":159,"IconIndex":21},{"Sketch":104,"IconIndex":22},{"Sketch":74,"IconIndex":23},{"Sketch":21,"IconIndex":24},{"Sketch":118,"IconIndex":25},{"Sketch":95,"IconIndex":26},{"Sketch":161,"IconIndex":26},{"Sketch":60,"IconIndex":27},{"Sketch":13,"IconIndex":27},{"Sketch":53,"IconIndex":27},{"Sketch":5,"IconIndex":28},{"Sketch":42,"IconIndex":29},{"Sketch":155,"IconIndex":30},{"Sketch":46,"IconIndex":31},{"Sketch":94,"IconIndex":32},{"Sketch":102,"IconIndex":33},{"Sketch":26,"IconIndex":34},{"Sketch":9,"IconIndex":35},{"Sketch":75,"IconIndex":36},{"Sketch":88,"IconIndex":37},{"Sketch":10,"IconIndex":38},{"Sketch":78,"IconIndex":39},{"Sketch":114,"IconIndex":40},{"Sketch":158,"IconIndex":41},{"Sketch":56,"IconIndex":42},{"Sketch":25,"IconIndex":43},{"Sketch":27,"IconIndex":44},{"Sketch":144,"IconIndex":45},{"Sketch":83,"IconIndex":45},{"Sketch":96,"IconIndex":46},{"Sketch":86,"IconIndex":47},{"Sketch":141,"IconIndex":48},{"Sketch":79,"IconIndex":49},{"Sketch":50,"IconIndex":50},{"Sketch":134,"IconIndex":51},{"Sketch":143,"IconIndex":51},{"Sketch":111,"IconIndex":52},{"Sketch":2,"IconIndex":53},{"Sketch":116,"IconIndex":54},{"Sketch":125,"IconIndex":55},{"Sketch":52,"IconIndex":56},{"Sketch":28,"IconIndex":57},{"Sketch":23,"IconIndex":57},{"Sketch":76,"IconIndex":57},{"Sketch":153,"IconIndex":58},{"Sketch":135,"IconIndex":58},{"Sketch":62,"IconIndex":59},{"Sketch":6,"IconIndex":59},{"Sketch":43,"IconIndex":59},{"Sketch":152,"IconIndex":59},{"Sketch":63,"IconIndex":59},{"Sketch":101,"IconIndex":60},{"Sketch":112,"IconIndex":61},{"Sketch":160,"IconIndex":61},{"Sketch":67,"IconIndex":62},{"Sketch":117,"IconIndex":62},{"Sketch":49,"IconIndex":62},{"Sketch":106,"IconIndex":63},{"Sketch":58,"IconIndex":64},{"Sketch":61,"IconIndex":65},{"Sketch":57,"IconIndex":65},{"Sketch":109,"IconIndex":65},{"Sketch":72,"IconIndex":65},{"Sketch":36,"IconIndex":65},{"Sketch":14,"IconIndex":66},{"Sketch":154,"IconIndex":67},{"Sketch":34,"IconIndex":68},{"Sketch":105,"IconIndex":69},{"Sketch":71,"IconIndex":70},{"Sketch":130,"IconIndex":71},{"Sketch":123,"IconIndex":72},{"Sketch":24,"IconIndex":73},{"Sketch":163,"IconIndex":74},{"Sketch":164,"IconIndex":75},{"Sketch":136,"IconIndex":76},{"Sketch":127,"IconIndex":77},{"Sketch":97,"IconIndex":78},{"Sketch":0,"IconIndex":79},{"Sketch":51,"IconIndex":80},{"Sketch":147,"IconIndex":81},{"Sketch":110,"IconIndex":82},{"Sketch":150,"IconIndex":83},{"Sketch":107,"IconIndex":84},{"Sketch":39,"IconIndex":84},{"Sketch":41,"IconIndex":84},{"Sketch":133,"IconIndex":85},{"Sketch":139,"IconIndex":86},{"Sketch":148,"IconIndex":86},{"Sketch":92,"IconIndex":86},{"Sketch":87,"IconIndex":86},{"Sketch":108,"IconIndex":86},{"Sketch":55,"IconIndex":87},{"Sketch":132,"IconIndex":87},{"Sketch":15,"IconIndex":88},{"Sketch":30,"IconIndex":89},{"Sketch":68,"IconIndex":90},{"Sketch":129,"IconIndex":92},{"Sketch":19,"IconIndex":93},{"Sketch":89,"IconIndex":94},{"Sketch":80,"IconIndex":95},{"Sketch":64,"IconIndex":96},{"Sketch":38,"IconIndex":97},{"Sketch":140,"IconIndex":98}];this.IconPlace=null;this.IconSite=null;this.ViewX1=0;this.ViewY1=0;this.ViewX2=0;this.ViewY2=0;var me=this;var Init=function()
{if(me.MapID!=null&&me.MapID!='')
{try
{me.Map=$(me.MapID);}
catch(oh)
{}}
if(me.ListID!=null&&me.ListID!='')
{try
{me.List=$(me.ListID);}
catch(oh)
{}}
if(me.StatusID!=null&&me.StatusID!='')
{try
{me.Status=$(me.StatusID);}
catch(oh)
{}}
if(me.ClientInit!=null)
{me.ClientInit.call(me);}
if(typeof GMap2==='undefined')
{var script=document.createElement("script");document.body.appendChild(script);script.src="http://maps.google.com/maps?file=api&v=2.173&sensor=false&key=ABQIAAAA6iAlD0Aa7yz7pavEsktVXxT5p5NMxRk6qZutN5I2ng2O8a-0TRQfOPhWlEa-UTo9cUTufZCpdHUMjA&async=2&callback="+me.ClientLoad+"&hl=en";}
else
{var f=new Function(me.ClientLoad+"()");f();}}
var Destroy=function()
{try
{me.Ready=false;me.Jobs.Abort(null);me.Jobs=null;if(me.BlinkTimer!=null)
{self.clearInterval(me.BlinkTimer);me.BlinkTimer=null;}
if(me.ClientUnload!=null)
{me.ClientUnload();}
me.Destroyed=true;if(typeof GUnload!=='undefined')
{GUnload();}
me.Places=null;me.Ranges=null;me.Sites=null;me.Process=null;}
catch(oh)
{}}
var ProgressUpdateInternal=function(a,b)
{var aa=a*100;me.Progress.Tick.style.width=''+aa+'%';if(me.Progress.Text!=null)
{var t='';if(me.Progress.Format!=null)
{t=me.Progress.Format.call(me,a,b);}
else
{t=''+aa+'%';}
if(typeof me.Progress.Text.text!=='undefined')
{me.Progress.Text.text=t;}
else
{me.Progress.Text.innerText=t;}}}
var ProgressInit=function(a,b)
{ProgressUpdateInternal.call(me,a,b);me.Progress.Container.style.display='block';if(me.Progress.Init!=null)
{me.Progress.Init.call(me,a,b);}}
var ProgressUpdate=function(a,b)
{ProgressUpdateInternal.call(me,a,b);if(me.Progress.Update!=null)
{me.Progress.Update.call(me,a,b);}}
var ProgressDestroy=function()
{me.Progress.Container.style.display='none';if(me.Progress.Destroy!=null)
{me.Progress.Destroy.call(me,a,b);}}
if(this.Progress==null)
{this.Jobs=new Job(null,null,null,null,this.Millisecs);}
else
{var pc=(this.Progress.Container!=null&&this.Progress.Tick!=null)?true:false;this.Jobs=new Job((pc)?ProgressInit:this.Progress.Init,(pc)?ProgressUpdate:this.Progress.Update,(pc)?ProgressDestroy:this.Progress.Destroy,this.Progress.Granularity,this.Millisecs);}
Common.Destroy(Destroy,this);self.setTimeout(Init,100);}
MG.prototype.Decode=function(a)
{var r='';for(var i=0;i<a.length;i++)
{var c=a.substr(i,1);switch(c)
{case'\\':var cc=a.substr(i+1,1)
switch(cc)
{case'u':c=String.fromCharCode(parseInt(a.substr(i+2,4),16));i+=4;break;case'n':i++;c='<br />';}
break;case'%':c=String.fromCharCode(parseInt(a.substr(i+1,2),16));i+=2;break;}
r+=c;}
return r;}
MG.prototype.PlaceAdd=function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q)
{if(this.Places==null)
{this.Places=new Array();}
if(l=='')
{l=null;}
return this.Places.push(({Marker:a,Element:b,Lat:parseFloat(c),Lng:parseFloat(d),Record:e,Key:f,Href:g,Name:h,Description:this.Decode(i),Distance:j,Direction:k,Image:l,Popularity:m,Vote:n,Site:o,Title:p,Sketch:q}))-1;}
MG.prototype.RangeAdd=function(a,b,c,d,e,f,g,h,i)
{if(this.Ranges==null)
{this.Ranges=new Array();}
return this.Ranges.push(({Marker:a,Border:b,Lat1:parseFloat(c),Lng1:parseFloat(d),Lat2:parseFloat(e),Lng2:parseFloat(f),Name:g,Key:h,Href:i}))-1;}
MG.prototype.SiteAdd=function(a,b,c,d,e)
{if(this.Sites==null)
{this.Sites=new Array();}
return this.Sites.push(({Marker:a,Lat:parseFloat(b),Lng:parseFloat(c),Name:d,Href:e}))-1;}
MG.prototype.View=function(x1,y1,x2,y2,p,g)
{var yf=((y2-y1)/20);var xf=((x2-x1)/20);x1+=xf;y1+=yf;x2-=xf;y2-=yf;if(this.GMap2!=null)
{var z=this.GMap2.getBoundsZoomLevel(new GLatLngBounds(new GLatLng(y1,x1),new GLatLng(y2,x2)));if(this.Places!=null)
{if(this.Places.length>1000)
{p=false;}}
p=false;if(p)
{this.GMap2.setZoom(z);this.GMap2.panTo(new GLatLng(y1+((y2-y1)/2),x1+((x2-x1)/2)));}
else
{this.GMap2.setCenter(new GLatLng(y1+((y2-y1)/2),x1+((x2-x1)/2)),z);}
if(g)
{this.Active();}}
else
{this.ViewX1=x1;this.ViewY1=y1;this.ViewX2=x2;this.ViewY2=y2;}}
MG.prototype.To64=function(a,b)
{var r='';while(b--!=0)
{r=this.Base64.charAt(a&63)+r;a>>=6;}
return r;}
MG.prototype.From64=function(a)
{var r=0;for(var i=0;i!=a.length;i++)
{r=(r<<6)+this.Base64.indexOf(a.charAt(i));}
return r;}
MG.prototype.ViewEncode=function()
{var b=this.GMap2.getBounds();return this.To64(Math.round((b.getSouthWest().lat()+90)*728),3)+this.To64(Math.round((b.getSouthWest().lng()+180)*728),3)+this.To64(Math.round((b.getNorthEast().lat()+90)*728),3)+this.To64(Math.round((b.getNorthEast().lng()+180)*728),3);}
MG.prototype.ViewDecode=function(a)
{if(a.length==12)
{this.View((this.From64(a.substring(3,6))/728)-180,(this.From64(a.substring(0,3))/728)-90,(this.From64(a.substring(9,12))/728)-180,(this.From64(a.substring(6,9))/728)-90,false,true);}}
MG.prototype.Render=function()
{var me=this;var AdsManagerEnable=function()
{me.AdsManager.enable();}
var DragEnd=function()
{if(me.Ready)
{me.Active.call(me);}}
var MouseMove=function(p)
{if(me.Ready)
{me.Mouse=p;}}
var MouseOut=function()
{if(me.Ready)
{me.Mouse=null;}}
if(!this.Destroyed&&GBrowserIsCompatible())
{if(this.Map!=null)
{this.GMap2=new GMap2(this.Map);this.GMap2.enableContinuousZoom();if(this.Control&1)
{this.GMap2.addControl(new GLargeMapControl());}
if(this.Control&2)
{this.GMap2.addControl(new GSmallMapControl());}
if(this.Control&4)
{this.GMap2.addControl(new GSmallZoomControl());}
if(this.Control&8)
{this.GMap2.addControl(new GMapTypeControl());}
if(this.Control&16)
{this.GMap2.addControl(new GHierarchicalMapTypeControl());}
if(this.Control&32)
{this.GMap2.addControl(new GScaleControl());}
if((this.Control&64)==0)
{this.GMap2.removeMapType(G_NORMAL_MAP);}
if((this.Control&128)==0)
{this.GMap2.removeMapType(G_SATELLITE_MAP);}
if((this.Control&256)==0)
{this.GMap2.removeMapType(G_HYBRID_MAP);}
this.GMap2.setCenter(new GLatLng(this.ViewY1+((this.ViewY2-this.ViewY1)/2),this.ViewX1+((this.ViewX2-this.ViewX1)/2)),this.GMap2.getBoundsZoomLevel(new GLatLngBounds(new GLatLng(this.ViewY1,this.ViewX1),new GLatLng(this.ViewY2,this.ViewX2))));this.IconsInit();if(this.Control&1024)
{GEvent.addListener(this.GMap2,'dragend',DragEnd);this.Error=this.Area(-180,-85,180,85,'red',0,0,'red',0.25);}
this.SiteInit();this.PlaceInit();this.PlaceZoom();this.RangeInit();this.Tooltip=document.createElement('div');this.Tooltip.className='map_csstooltip';this.GMap2.getPane(G_MAP_FLOAT_PANE).appendChild(this.Tooltip);this.Tooltip.style.display='none';GEvent.addListener(this.GMap2,'mousemove',MouseMove);GEvent.addListener(this.GMap2,'mouseout',MouseOut);if(this.Ads!=null&&this.Ads!='')
{this.AdsManager=new GAdsManager(this.GMap2,this.Ads);self.setTimeout(AdsManagerEnable,1000);}
this.Ready=true;if(this.ClientRender!=null)
{this.ClientRender.call(this);}}}}
MG.prototype.IconsInit=function()
{if(this.IconsData!=null)
{if(this.IconsData.length!=0)
{this.Jobs.New(null,0,this.IconsData.length,this.Speed,null,this.IconsInitIndex,null,null,this,this.JobPriorityNow);}}}
MG.prototype.IconsInitIndex=function(id,index)
{var c=this.IconsData[index];var i=new GIcon();i.image=c.UrlImage;i.iconSize=new GSize(c.SizeX,c.SizeY);i.iconAnchor=new GPoint(c.AnchorX,c.AnchorY);i.infoWindowAnchor=new GPoint(c.InfoWindowX,c.InfoWindowY);if(typeof c.UrlShadow!=='undefined')
{i.shadow=c.UrlShadow;i.shadowSize=new GSize(c.ShadowX,c.ShadowY);}
if(this.Icons==null)
{this.Icons=new Array();}
this.Icons.push(({Index:c.IconIndex,Icon:i}));return 1;}
MG.prototype.SiteDestroy=function()
{if(this.Sites!=null)
{if(this.Sites.length!=0)
{var End=null;if(this.Control&2048&&this.Sites.length==2)
{End=this.SiteBoxDestroy;}
this.Jobs.New(null,0,this.Sites.length,this.Speed,null,this.SiteDestroyIndex,End,null,this,this.PriortyEventNow);}}}
MG.prototype.SiteDestroyIndex=function(id,index)
{var r=-1;if(this.Sites.length>index)
{var s=this.Sites[index];if(s.Marker!=null)
{GEvent.clearListeners(s.Marker,'mousemove');GEvent.clearListeners(s.Marker,'mouseout');if(this.Control&2048)
{GEvent.clearListeners(s.Marker,'dragend');}
this.GMap2.removeOverlay(s.Marker);}
r=1;}
return r;}
MG.prototype.SiteInit=function()
{if(this.Sites!=null)
{if(this.Sites.length!=0)
{var End=null;if(this.Control&2048&&this.Sites.length==2)
{End=this.SiteBoxInit;}
this.Jobs.New(null,0,this.Sites.length,this.Speed,null,this.SiteInitIndex,End,null,this,this.JobPriorityNow);}}}
MG.prototype.SiteInitIndex=function(id,index)
{var me=this;var s=this.Sites[index];var MouseMove=function()
{if(me.Ready)
{me.TooltipShow.call(me,s.Name);}}
var MouseOut=function()
{if(me.Ready)
{me.TooltipHide.call(me);}}
var DragEnd=function()
{if(me.Ready)
{me.SiteBoxInit.call(me,0);}}
var n=true;if(s.Marker!=null)
{this.GMap2.removeOverlay(s.Marker);s.Marker=null;n=false;}
if(s.Marker==null)
{var a=new Object();if(this.IconSize==null)
{this.IconSite=new GIcon();this.IconSite.image='http://gothisplace.com/Image/Map/Flag-Image.png';this.IconSite.shadow='http://gothisplace.com/Image/Map/Flag-Shadow.png';this.IconSite.iconSize=new GSize(24,32);this.IconSite.shadowSize=new GSize(41,32);this.IconSite.iconAnchor=new GPoint(0,31);this.IconSite.infoWindowAnchor=new GPoint(24,32);}
a.icon=this.IconSite;a.clickable=false;if(this.Control&2048)
{a.draggable=true;}
else
{a.draggable=false;}
this.GMap2.addOverlay(s.Marker=new GMarker(new GLatLng(s.Lat,s.Lng),a));if(n)
{GEvent.addListener(s.Marker,'mousemove',MouseMove);GEvent.addListener(s.Marker,'mouseout',MouseOut);if(this.Control&2048)
{s.Marker.enableDragging();if(this.Sites.length>=2)
{GEvent.addListener(s.Marker,'dragend',DragEnd);}}}}
return 1;}
MG.prototype.SiteBoxDestroy=function(id)
{if(this.SiteMarker!=null)
{this.GMap2.removeOverlay(this.SiteMarker);this.SiteMarker=null;}
return 1;}
MG.prototype.SiteBoxInit=function(id)
{this.SiteBoxDestroy(id);if(this.SiteMarker==null)
{var l0=this.Sites[0].Marker.getLatLng();var l1=this.Sites[1].Marker.getLatLng();this.GMap2.addOverlay(this.SiteMarker=new GPolyline([new GLatLng(l0.lat(),l0.lng()),new GLatLng(l0.lat(),l1.lng()),new GLatLng(l1.lat(),l1.lng()),new GLatLng(l1.lat(),l0.lng()),new GLatLng(l0.lat(),l0.lng())],'black',1,1));}
return 1;}
MG.prototype.RangeInit=function()
{if(this.Ranges!=null)
{if(this.Ranges.length!=0)
{this.Jobs.New(null,0,this.Ranges.length,this.Speed,null,this.RangeInitIndex,null,null,this,this.JobPriorityNow);}}}
MG.prototype.RangeInitIndex=function(id,index)
{var me=this;var s=this.Ranges[index];var MouseMove=function()
{if(me.Ready)
{me.TooltipShow.call(me,s.Name);s.Marker.setFillStyle({color:'yellow',opacity:0.3});}}
var MouseOut=function()
{if(me.Ready)
{me.TooltipHide.call(me);s.Marker.setFillStyle({color:'yellow',opacity:0.1});}}
var Click=function()
{if(me.Ready)
{MouseOut();window.location.hash=s.Href;}}
var n=true;if(s.Marker!=null)
{this.GMap2.removeOverlay(s.Marker);s.Marker=null;n=false;}
if(s.Marker==null)
{s.Marker=new GPolygon([new GLatLng(s.Lat1,s.Lng1),new GLatLng(s.Lat2,s.Lng1),new GLatLng(s.Lat2,s.Lng2),new GLatLng(s.Lat1,s.Lng2),new GLatLng(s.Lat1,s.Lng1)],'black',1,1,'yellow',0.1,{clickable:true});this.GMap2.addOverlay(s.Marker);s.Marker.setFillStyle({color:'yellow',opacity:0.1});s.Border=null;this.RangeBorderInitIndex(id,index);if(n)
{GEvent.addListener(s.Marker,'mousemove',MouseMove);GEvent.addListener(s.Marker,'mouseout',MouseOut);if(s.Href!=null&&s.Href!='')
{GEvent.addListener(s.Marker,'click',Click);}}}
return 1;}
MG.prototype.RangeBorderInit=function()
{if(this.Ranges!=null)
{if(this.Ranges.length!=0)
{this.Jobs.New(null,0,this.Ranges.length,this.Speed,null,this.RangeBorderInitIndex,null,null,this,this.JobPriorityBorder);}}}
MG.prototype.RangeBorderInitIndex=function(id,index)
{var r=this.Ranges[index];if(r!=null)
{if(r.Marker!=null)
{var z=this.GMap2.getZoom();var l=this.GMap2.getCurrentMapType().getProjection();var b=r.Marker.getBounds();var sw=l.fromLatLngToPixel(b.getSouthWest(),z);var ne=l.fromLatLngToPixel(b.getNorthEast(),z);var t=l.fromPixelToLatLng(new GPoint(sw.x-1,ne.y-1),z);var b=l.fromPixelToLatLng(new GPoint(ne.x+1,sw.y+1),z);if(r.Border!=null)
{this.GMap2.removeOverlay(r.Border);}
r.Border=new GPolyline([t,new GLatLng(t.lat(),b.lng()),b,new GLatLng(b.lat(),t.lng()),t],'white',1,1);this.GMap2.addOverlay(r.Border);}}
return 1;}
MG.prototype.TooltipShow=function(n)
{Common.TextRemoveAll(this.Tooltip);Common.TextAdd(this.Tooltip,n);this.Tooltip.style.display='block';var z=this.GMap2.getZoom();var l=this.GMap2.getCurrentMapType().getProjection();var o=l.fromLatLngToPixel(this.GMap2.fromDivPixelToLatLng(new GPoint(0,0),true),z);var d=l.fromLatLngToPixel(this.Mouse,z);var t=l.fromLatLngToPixel(this.GMap2.getBounds().getSouthWest(),z);var u=l.fromLatLngToPixel(this.GMap2.getBounds().getNorthEast(),z);var s=this.GMap2.getSize();if(this.Tooltip.clientWidth<s.width&&(d.x-t.x)+5+this.Tooltip.clientWidth>s.width)
{x=(d.x-o.x)-5-this.Tooltip.clientWidth;}
else
{x=(d.x-o.x)+5;}
if(this.Tooltip.clientHeight<s.height&&(d.y-u.y)+15+this.Tooltip.clientHeight>s.height)
{y=(d.y-o.y)-5-this.Tooltip.clientHeight;}
else
{y=(d.y-o.y)+15;}
var e=new GControlPosition(G_ANCHOR_TOP_LEFT,new GSize(x,y));e.apply(this.Tooltip);}
MG.prototype.TooltipHide=function()
{this.Tooltip.style.display='none';}
MG.prototype.PlaceInit=function()
{if(this.Places!=null)
{if(this.Places.length!=0)
{this.Jobs.New(null,0,this.Places.length,this.Speed,null,this.PlaceInitIndex,null,null,this,this.JobPriorityNow);}}}
MG.prototype.PlaceInitIndex=function(id,index)
{var me=this;var p=this.Places[index];var PlaceMouseOver=function()
{me.PlaceMouseOver.call(me,p);}
var PlaceMouseOut=function()
{me.PlaceMouseOut.call(me,p);}
var PlaceClick=function()
{if(me.Ready)
{me.InfoWindowShow.call(me,p,true);}}
var ListMouseOver=function()
{if(me.Ready)
{me.BounceStart.call(me,p);}}
var InfoWindowClose=function()
{if(me.Ready)
{me.InfoWindowClose.call(me);}}
var n=true;if(p.Marker!=null)
{this.GMap2.removeOverlay(p.Marker);p.Marker=null;n=false;}
if(p.Marker==null)
{var n=null;if(p.Sketch!=null&&this.Sketches!=null&&this.Icons!=null)
{for(var qi=0;qi!=this.Sketches.length;qi++)
{if(this.Sketches[qi].Sketch==p.Sketch)
{for(var qj=0;qj!=this.Icons.length;qj++)
{if(this.Icons[qj].Index==this.Sketches[qi].IconIndex)
{n=this.Icons[qj].Icon;break;}}
break;}}}
if(n==null)
{if(this.IconPlace==null)
{this.IconPlace=new GIcon();this.IconPlace.image='http://gothisplace.com/Image/Map/Default-Image.png';this.IconPlace.shadow='http://gothisplace.com/Image/Map/Pleasure-Shadow.png';this.IconPlace.iconSize=new GSize(24,24);this.IconPlace.shadowSize=new GSize(37,24);this.IconPlace.iconAnchor=new GPoint(12,24);this.IconPlace.infoWindowAnchor=new GPoint(24,0);}
n=this.IconPlace;}
p.Marker=new GMarker(new GLatLng(p.Lat,p.Lng),{icon:n});GEvent.addListener(p.Marker,'mouseover',PlaceMouseOver);GEvent.addListener(p.Marker,'mouseout',PlaceMouseOut);if(this.Control&65536)
{GEvent.addListener(p.Marker,'infowindowclose',InfoWindowClose);}
else
{GEvent.addListener(p.Marker,'click',PlaceClick);}
this.GMap2.addOverlay(p.Marker);}
if(p.Element!=null)
{Common.EventAdd(p.Element,Common.EventType.MouseMove,ListMouseOver);}
return 1;}
MG.prototype.PlaceMouseOver=function(p)
{if(this.Ready)
{this.MousePlace=p;if(this.Control&65536)
{this.InfoWindowShow.call(this,p,false);}
if(p.Element!=null)
{var d=p.Element.id;var e=$(d);if(Common.IELegacy)
{Common.ClassNameAdd(e.childNodes[0],this.ListHighlightClass);}
else
{Common.ClassNameAdd(e,this.ListHighlightClass);}
if(this.Control&4096)
{Common.ScrollIntoView.call(Common,this.List,e);}}
if(p.Title!=null&&p.Title!='')
{this.TooltipShow.call(this,p.Name);}}}
MG.prototype.PlaceMouseOut=function(p)
{if(this.Ready)
{this.InfoWindowHide.call(this,p,false);if(p.Element!=null)
{var e=$(p.Element.id);if(Common.IELegacy)
{Common.ClassNameRemove(e.childNodes[0],this.ListHighlightClass);}
else
{Common.ClassNameRemove(e,this.ListHighlightClass);}}
if(p.Title!=null&&p.Title!='')
{this.TooltipHide.call(this);}
this.MousePlace=null;}}
MG.prototype.Record2Place=function(r)
{var q=null;for(var i=0;i!=this.Places.length;i++)
{var p=this.Places[i];if(p.Record==r)
{q=p;break;}}
return q;}
MG.prototype.InfoWindowClearTimer=function()
{if(this.InfoWindowTimer!=null)
{self.clearTimeout(this.InfoWindowTimer);}
this.InfoWindowTimer=null;}
MG.prototype.InfoWindowShowNow=function(p)
{this.InfoWindowClearTimer();this.InfoWindowStatus=2;this.InfoWindowPlace=p;p.Marker.openInfoWindow(this.HtmlInfo(p));}
MG.prototype.InfoWindowClose=function()
{this.InfoWindowStatus=0;this.InfoWindowPlace=null;}
MG.prototype.InfoWindowHideNow=function(p)
{this.InfoWindowClearTimer();this.InfoWindowClose();p.Marker.closeInfoWindow();}
MG.prototype.InfoWindowShow=function(p,z)
{var me=this;var Show=function()
{me.InfoWindowTimer=null;me.InfoWindowShowNow.call(me,me.InfoWindowPlace);}
if(this.InfoWindowTimer!=null)
{if(this.InfoWindowPlace!=p)
{switch(this.InfoWindowStatus)
{case 1:this.InfoWindowClearTimer();break;case 3:this.InfoWindowHideNow(this.InfoWindowPlace);break;}}
else if(this.InfoWindowStatus==3)
{this.InfoWindowClearTimer();this.InfoWindowStatus=2;this.InfoWindowPlace=p;}}
if(this.InfoWindowTimer==null)
{if(this.InfoWindowPlace!=p||this.InfoWindowStatus!=2)
{if(z)
{this.InfoWindowShowNow(p);}
else
{this.InfoWindowPlace=p;this.InfoWindowStatus=1;this.InfoWindowTimer=self.setTimeout(Show,100);}}}}
MG.prototype.InfoWindowHide=function(p,z)
{var r=true;var me=this;var Hide=function()
{me.InfoWindowTimer=null;me.InfoWindowHideNow.call(me,me.InfoWindowPlace);}
if(this.InfoWindowTimer!=null)
{if(this.InfoWindowPlace!=p)
{switch(this.InfoWindowStatus)
{case 1:case 3:p.Marker.closeInfoWindow();break;}}
else if(this.InfoWindowStatus==1)
{this.InfoWindowClearTimer();this.InfoWindowClose();r=false;}}
if(r&&this.InfoWindowTimer==null)
{if(z)
{this.InfoWindowHideNow(p);}
else
{this.InfoWindowPlace=p;this.InfoWindowStatus=3;this.InfoWindowTimer=self.setTimeout(Hide,1000);}}}
MG.prototype.PlaceZoom=function()
{if(this.Places!=null)
{if(this.Places.length!=0)
{this.Jobs.New(null,0,this.Places.length,this.Speed,null,this.PlaceZoomTimer,null,null,this,this.JobPriorityNow);}}}
MG.prototype.PlaceZoomTimer=function(id,index)
{var r=1;var p=this.Places[index];if(!this.GMap2.getBounds().containsLatLng(p.Marker.getLatLng()))
{this.GMap2.zoomOut();this.PlacesZoom();r=-1;}
return r;}
MG.prototype.HtmlValue=function(a)
{var e=document.createElement('span');var vb=true;if(a.Vote==0.0)
{vb=false;}
var v=a.Vote.toString();var d=Math.round(a.Distance*this.DistanceUnitFactor[this.DistanceUnitIndex]).toString()+' '+this.DistanceUnitName[this.DistanceUnitIndex];var p=a.Popularity.toString();var s=new Array();var t=new Array();switch(this.Order)
{case 1:if(vb)
{t[0]=p;s[0]='How often do people view this place, 1 = most viewed';t[1]=' (';t[2]=v;s[2]='Vote out of 10';t[3]=')';}
else
{t[0]=p;s[0]='How often do people view this place, 1 = most viewed';}
break;case 2:t[0]=v;s[0]='Vote out of 10';t[1]=' (';t[2]=d;s[2]='Distance from starting position';t[3]=')';break;default:if(vb)
{t[0]=d;s[0]='Distance from starting position';t[1]=' (';t[2]=v;s[2]='Vote out of 10';t[3]=')';}
else
{t[0]=d;s[0]='Distance from starting position';}
break;}
for(var i=0;i<t.length;i++)
{if(s[i]!=null)
{ss=document.createElement('span');ss.title=s[i];}
if(t[i]!=null)
{tt=document.createTextNode(t[i]);}
if(s[i]!=null)
{ss.appendChild(tt);e.appendChild(ss);}
else
{e.appendChild(tt);}}
return e;}
MG.prototype.HtmlInfo=function(p)
{var me=this;var eLI=document.createElement('div');eLI.className='map_cssinfo';var c='';if(p.Image!=null)
{var e2=document.createElement('div');e2.className='map_cssinfoimage';eA=document.createElement('a')
eA.href=p.Href;var eI=document.createElement('img');eI.src=p.Image;eA.appendChild(eI);e2.appendChild(eA);eLI.appendChild(e2);}
else
{c=' map_cssinfoimagenot';}
var e3=document.createElement('div');e3.className='map_cssinfotext'+c;var eH=document.createElement('div');eH.className='map_cssinfoheader';eA=document.createElement('a')
eA.href=p.Href;eA.appendChild(document.createTextNode(p.Name));eH.appendChild(eA);if(this.Order!=-1)
{eH.appendChild(document.createTextNode(' - '));eH.appendChild(this.HtmlValue.call(this,p));}
e3.appendChild(eH);var eS=document.createElement('div')
eS.innerHTML=p.Description;e3.appendChild(eS);eLI.appendChild(e3);Common.EventAdd(eLI,Common.EventType.MouseEnter,function()
{me.InfoWindowShow.call(me,p,false);});Common.EventAdd(eLI,Common.EventType.MouseLeave,function()
{me.InfoWindowHide.call(me,p,false);});return eLI;}
MG.prototype.HtmlList=function(p)
{var me=this;var ListMouseOver=function()
{if(me.Ready)
{me.BounceStart.call(me,p);}}
var a=document.createElement('li');a.className='map_csslist';a.id='MGlistitem'+p.Record;if(this.Control&512)
{a.style.display='none';}
var t=document.createElement('table');t.border='0';var r=null;if(!Common.IELegacy)
{r=document.createElement('tr');}
else
{r=t.insertRow(-1);}
var z=document.createElement('td');var b=document.createElement('div');b.className='map_csslistitem';var c=document.createElement('a')
c.className='eck_link';Common.EventAdd(c,Common.EventType.Click,function()
{me.InfoWindowShow.call(me,p,true);});c.appendChild(document.createTextNode('#'+p.Record));b.appendChild(c);z.appendChild(b);r.appendChild(z);var s='';if(p.Image!=null)
{var z=document.createElement('td');var d=document.createElement('div');d.className='map_csslistimage';c=document.createElement('a')
c.href=p.Href;var h=document.createElement('img');h.setAttribute('src',p.Image);c.appendChild(h);d.appendChild(c);z.appendChild(d);r.appendChild(z);}
else
{s=' map_csslistimagenot';}
var z=document.createElement('td');var e=document.createElement('div');e.className='map_csslisttext'+s;var f=document.createElement('div');f.className='map_csslistheader';c=document.createElement('a')
c.href=p.Href;c.appendChild(document.createTextNode(p.Name));f.appendChild(c);if(this.Order!=-1)
{f.appendChild(document.createTextNode(' - '));f.appendChild(this.HtmlValue.call(this,p));}
e.appendChild(f);var g=document.createElement('div')
g.classname='map_csslistdescription';g.innerHTML=p.Description;e.appendChild(g);z.appendChild(e);r.appendChild(z);if(!Common.IELegacy)
{t.appendChild(r);}
a.appendChild(t);Common.EventAdd(a,Common.EventType.MouseMove,ListMouseOver);return a;}
MG.prototype.BounceStart=function(p)
{var me=this;var Tick=function()
{if(me.Ready)
{me.BounceTick.call(me);}}
if(this.Ready)
{if(this.BounceTimer!=null)
{if(this.BouncePlace!=p)
{self.clearInterval(this.BounceTimer);this.BounceTimer=null;if(this.BouncePlace.Marker.isHidden())
{this.BouncePlace.Marker.show();if(this.Sites!=null&&this.Sites.length>=2)
{this.Sites[this.BouncePlace.Site].Marker.show();}}}}
if(this.BounceTimer==null)
{this.BounceTimer=self.setInterval(Tick,100);this.BounceCounter=0;this.BouncePlace=p;}}}
MG.prototype.BounceAbort=function()
{if(this.BounceTimer!=null)
{self.clearInterval(this.BounceTimer);this.BounceTimer=null;if(this.BouncePlace!=null)
{if(this.BouncePlace.Marker!=null)
{if(this.BouncePlace.Marker.isHidden())
{this.BouncePlace.Marker.show();if(this.Sites!=null&&this.Sites.length>=2)
{this.Sites[this.BouncePlace.Site].Marker.show();}}}
this.BouncePlace=null;}}}
MG.prototype.BounceTick=function()
{var k=true;if(this.BounceCounter<11&&this.BouncePlace!=null)
{if(this.BouncePlace.Marker!=null)
{k=false;if(this.BounceCounter%2)
{this.BouncePlace.Marker.hide();if(this.Sites!=null)
{if(this.Sites.length>=2)
{this.Sites[this.BouncePlace.Site].Marker.hide();}}}
else
{this.BouncePlace.Marker.show();if(this.Sites!=null)
{if(this.Sites.length>=2)
{this.Sites[this.BouncePlace.Site].Marker.show();}}}
this.BounceCounter++;}}
if(k)
{self.clearInterval(this.BounceTimer);this.BounceTimer=null;this.BouncePlace=null;}}
MG.prototype.Active=function()
{var me=this;var MoveEnd=function()
{if(me.Ready&&me.Places!=null)
{me.Jobs.New(null,0,me.Places.length,me.Speed,null,me.ListIndex,null,null,me,me.JobPriorityList);}}
var ZoomEnd=function()
{if(me.Ready)
{me.BounceAbort.call(me);if(me.MousePlace!=null)
{me.MousePlaceOut.call(me,me.MousePlace);}
me.Active.call(me);me.RangeBorderInit.call(me);}}
if((this.Places==null||this.Places.length<this.PlacesMaximum)&&this.GMap2.getZoom()>this.ZoomMax)
{if(this.ActiveStatus!=1)
{if(!this.ActiveInit)
{if(this.List!=null)
{GEvent.addListener(this.GMap2,'moveend',MoveEnd);}
GEvent.addListener(this.GMap2,'zoomend',ZoomEnd);this.ActiveInit=true;}
if(this.Status!=null)
{Common.TextRemoveAll(this.Status);if(this.Control&8192)
{Common.TextAdd(this.Status,"Active");}}
if(this.ActiveStatus==2)
{for(var i=0;i!=this.Error.length;i++)
{this.GMap2.removeOverlay(this.Error[i]);}}
this.ActiveStatus=1;}
var b=this.GMap2.getBounds();var x1=Math.floor(b.getSouthWest().lng()*10);var x2=Math.ceil(b.getNorthEast().lng()*10);var y1=Math.floor(b.getSouthWest().lat()*10);var y2=Math.ceil(b.getNorthEast().lat()*10);if(y2<y1)
{this.ProcessAdd.call(this,x1,y1,x2,1800);this.ProcessAdd.call(this,x1,-1800,x2,y2);}
else
{this.ProcessAdd.call(this,x1,y1,x2,y2);}
this.Process.call(this);}
else
{if(this.ActiveStatus!=2)
{if(this.Status!=null)
{Common.TextRemoveAll(this.Status);var z=true;if(this.Places!=null)
{if(this.Places.length>=this.PlacesMaximum)
{z=false;Common.TextAdd(this.Status,"Maximum places reached");}}
if(z)
{Common.TextAdd(this.Status,"Non-active");}}
for(var i=0;i!=this.Error.length;i++)
{this.GMap2.addOverlay(this.Error[i]);}
this.ActiveStatus=2;}}}
MG.prototype.ListIndex=function(id,index)
{var p=this.Places[index];if(p.Element!=null&&p.Marker!=null)
{var e=$(p.Element.id);if(this.GMap2.getBounds().containsLatLng(p.Marker.getLatLng()))
{e.style.display='block';}
else
{e.style.display='none';}}
return 1;}
MG.prototype.Process=function()
{this.Jobs.New(null,0,this.Processes.length,this.Speed,null,this.ProcessItem,null,null,this,this.JobPriorityProcess);}
MG.prototype.ProcessAdd=function(a,b,c,d)
{if(this.Processes==null)
{this.Processes=new Array();}
this.Processes.push(({x1:a,y1:b,x2:c,y2:d,Status:0}));}
MG.prototype.ProcessOverlap=function(p,x1,y1,x2,y2)
{var r=false;if(!(p.x1>=x2||x1>=p.x2||p.y1>=y2||y1>=p.y2))
{r=true;}
return r;}
MG.prototype.ProcessTop=function(x1,x2,y)
{var r=y;var a=new Array();for(var c=0;c!=this.Processes.length;c++)
{var p=this.Processes[c];if(p.Status>0)
{if(p.x1<x2&&p.x2>x1&&p.y1<y&&p.y2>=y)
{a.push(c);}}}
if(a.length!=0)
{var x=x1;s=this.Processes[a[0]].y1;var v=false;do
{v=false;for(var i=0;i!=a.length;i++)
{var p=this.Processes[a[i]];if(p.x1<=x&&p.x2>x)
{x=p.x2;if(p.y1>s)
{s=p.y1;}
v=true;}}}
while(v&&x<x2);if(x>=x2)
{r=s;}}
return r;}
MG.prototype.ProcessBottom=function(x1,x2,y)
{var r=y;var a=new Array();for(var c=0;c!=this.Processes.length;c++)
{var p=this.Processes[c];if(p.Status>0)
{if(p.x1<x2&&p.x2>x1&&p.y1<=y&&p.y2>y)
{a.push(c);}}}
if(a.length!=0)
{var x=x1;s=this.Processes[a[0]].y2;var v=false;do
{v=false;for(var i=0;i!=a.length;i++)
{var p=this.Processes[a[i]];if(p.x1<=x&&p.x2>x)
{x=p.x2;if(p.y2<s)
{s=p.y2;}
v=true;}}}
while(v&&x<x2);if(x>=x2)
{r=s;}}
return r;}
MG.prototype.ProcessLeft=function(y1,y2,x)
{var r=x;var a=new Array();for(var c=0;c!=this.Processes.length;c++)
{var p=this.Processes[c];if(p.Status>0)
{if(p.y1<y2&&p.y2>y1&&p.x1<=x&&p.x2>x)
{a.push(c);}}}
if(a.length!=0)
{var y=y1;s=this.Processes[a[0]].x2;var v=false;do
{v=false;for(var i=0;i!=a.length;i++)
{var p=this.Processes[a[i]];if(p.y1<=y&&p.y2>y)
{y=p.y2;if(p.x2<s)
{s=p.x2;}
v=true;}}}
while(v&&y<y2);if(y>=y2)
{r=s;}}
return r;}
MG.prototype.ProcessRight=function(y1,y2,x)
{var r=x;var a=new Array();for(var c=0;c!=this.Processes.length;c++)
{var p=this.Processes[c];if(p.Status>0)
{if(p.y1<y2&&p.y2>y1&&p.x1<x&&p.x2>=x)
{a.push(c);}}}
if(a.length!=0)
{var y=y1;s=this.Processes[a[0]].x1;var v=false;do
{v=false;for(var i=0;i!=a.length;i++)
{var p=this.Processes[a[i]];if(p.y1<=y&&p.y2>y)
{y=p.y2;if(p.x1>s)
{s=p.x1;}
v=true;}}}
while(v&&y<y2);if(y>=y2)
{r=s;}}
return r;}
MG.prototype.ProcessMerge=function(i)
{var v=false;do
{v=false;for(var c=0;c!=this.Processes.length;c++)
{var p=this.Processes[c];if(p!=i&&p.Status==3)
{if(p.x1==i.x1&&p.x2==i.x2)
{if(p.y1==i.y2)
{p.y1=i.y1;v=true;}
else if(p.y2==i.y1)
{p.y2=i.y2;v=true;}}
else if(p.y1==i.y1&&p.y2==i.y2)
{if(p.x1==i.x2)
{p.x1=i.x1;v=true;}
else if(p.x2==i.x1)
{p.x2=i.x2;v=true;}}
if(v)
{i.Status=-1;i=p;break;}}}}
while(v);}
MG.prototype.ProcessOverlapAll=function(i)
{var v=false;for(var c=0;c!=this.Processes.length;c++)
{var p=this.Processes[c];if(p.Status>0)
{if(this.ProcessOverlap(p,i.x1,i.y1,i.x2,i.y2))
{v=true;break;}}}
return v;}
MG.prototype.ProcessIgnore=function(i)
{var v=false;if(i.x1>=i.x2||i.y1>=i.y2)
{i.Status=-1;v=true;}
return v;}
MG.prototype.ProcessStrip=function(i)
{var z=false;var y1=this.ProcessBottom(i.x1,i.x2,i.y1);if(y1!=i.y1)
{i.y1=y1;z=true;}
else
{var y2=this.ProcessTop(i.x1,i.x2,i.y2);if(y2!=i.y2)
{i.y2=y2;z=true;}
else
{var x1=this.ProcessLeft(i.y1,i.y2,i.x1);if(x1!=i.x1)
{i.x1=x1;z=true;}
else
{var x2=this.ProcessRight(i.y1,i.y2,i.x2);if(x2!=i.x2)
{i.x2=x2;z=true;}}}}
return z;}
MG.prototype.ProcessInner=function(i)
{var r=false;var x1=i.x1;var x2=i.x2;do
{v=false;for(var c=0;c!=this.Processes.length;c++)
{var p=this.Processes[c];if(p.Status>0)
{if(p.y1<=i.y1&&p.y2>i.y1)
{if(p.x2>x1&&p.x1<=x1)
{x1=p.x2;v=true;break;}
else if(p.x1>x1&&p.x1<=x2)
{x2=p.x1;}}}}}
while(v);if(x1!=i.x1)
{if(x1!=i.x2)
{this.ProcessAdd(i.x1,i.y1,x1,i.y2);i.x1=x1;}
else
{i.x2=x1;}}
if(x2!=i.x2)
{if(i.x1!=x2)
{this.ProcessAdd(x2,i.y1,i.x2,i.y2);i.x2=x2;}
else
{i.x1=x2;}}
if(i.x1<i.x2)
{y=i.y2;for(var c=0;c!=this.Processes.length;c++)
{var p=this.Processes[c];if(p.Status>0)
{if(this.ProcessOverlap(p,x1,i.y1,x2,y))
{y=p.y1;}}}
if(y!=i.y2)
{if(y!=i.y1)
{this.ProcessAdd(i.x1,y,i.x2,i.y2);i.y2=y;}
else
{i.y1=y;}}
if(i.x1<i.x2)
{r=true;}
else
{i.Status=-1;}}
else
{i.Status=-1;}
return r;}
MG.prototype.ProcessItem=function(id,index)
{var a=null;var p=this.Processes[index];if(p.Status==0)
{var v;do
{v=false;if(!this.ProcessIgnore(p))
{if(this.ProcessOverlapAll(p))
{if(this.ProcessStrip(p))
{v=true;}
else if(p.Status==0)
{if(this.ProcessInner(p))
{a=p;}}}
else
{a=p;}}}
while(v);this.Jobs.Change(id,null,null,this.Processes.length,null);}
else if(p.Status==1)
{a=p;}
if(a!=null)
{a.Status=2;var data=new Object();data.mg=this;data.Process=a;data.Status=0;data.Abort=false;data.Repeat=0;data.ID=this.Jobs.New(null,0,1,1,this.CommSetAreaStart,this.CommSetAreaWait,null,this.CommSetAreaAbort,data,data.mg.JobPrioritySetArea);}
return 1;}
MG.prototype.CommSetAreaStart=function(id)
{var me=this;var thread=function(a,b,c)
{me.mg.CommSetAreaThread.call(me,a,b,c);}
var error=function(a,b,c)
{me.mg.CommSetAreaError.call(me,a,b,c);}
try
{JavaService.MapSetArea(this.mg.SessionID,this.mg.CacheID,id,this.Process.x1,this.Process.y1,this.Process.x2,this.Process.y2,thread,error,this);}
catch(oh)
{me.mg.CommSetAreaError.call(me,oh.message,me,me.mg.CommSetCriteriaStart);}
return 1;}
MG.prototype.CommSetAreaWait=function(id,index)
{return this.Status;}
MG.prototype.CommSetAreaThread=function(r,data,f)
{if(data.mg.Ready&&!data.Abort)
{data.Status=-1;if(r.substring(0,6)=='Error:')
{if(data.mg.Status!=null)
{Common.TextRemoveAll(data.mg.Status);Common.TextAdd(data.mg.Status,r);}}
else
{var rr=null;try
{rr=JSON.parse(r);}
catch(oh)
{if(data.mg.Ready)
{Common.TextRemoveAll(data.mg.Status);Common.TextAdd(data.mg.Status,'Failed to evaluate MapSetArea');}}
if(rr!=null)
{if(rr.C==data.mg.CacheID&&rr.M==data.ID)
{data.Status=1;if(rr.R!=0)
{var data2=new Object();data2.mg=data.mg;data2.Process=data.Process;data2.Status=1;data2.ID=data.ID;data2.Abort=false;data2.Repeat=0;var a=Math.ceil(rr.R/data.mg.SpeedAjax);data.mg.Jobs.New(null,0,a,1,null,data.mg.CommGetWait,data.mg.CommGetList,data.mg.CommGetAbort,data2,data.mg.JobPriorityGet++);}}}}}
return 0;}
MG.prototype.CommSetAreaAbort=function(id)
{this.Abort=true;}
MG.prototype.CommSetAreaError=function(r,data,f)
{data.Repeat++;if(data.Repeat<data.mg.AjaxRetries)
{data.mg.CommSetAreaStart.call(data,data.ID);}
else
{data.mg.CommError.call(data,r,data,f);}}
MG.prototype.CommGetWait=function(id,index)
{var me=this;var thread=function(a,b,c)
{me.mg.CommGetThread.call(me,a,b,c);}
var error=function(a,b,c)
{me.mg.CommGetError.call(me,a,b,c);}
if(this.mg.Ready)
{if(this.Status==1)
{try
{JavaService.MapGet(this.mg.SessionID,this.mg.CacheID,this.ID,index*this.mg.SpeedAjax,this.mg.SpeedAjax,thread,error,this);}
catch(oh)
{me.mg.CommGetError.call(me,oh.message,me,me.mg.CommGetWait);}
this.Status=0;}
else if(this.Status==2)
{this.Status=1;}}
return this.Status;}
MG.prototype.CommGetThread=function(r,data2,f)
{if(data2.mg.Ready&&!data2.Abort)
{data2.Status=-1;if(r.substring(0,6)=='Error:')
{if(data2.mg.Status!=null)
{Common.TextRemoveAll(data2.mg.Status);Common.TextAdd(data2.mg.Status,r);}}
else
{var rr=null;try
{rr=JSON.parse(r);}
catch(oh)
{if(data2.mg.Ready&&data2.mg.Status!=null)
{Common.TextRemoveAll(data2.mg.Status);Common.TextAdd(data2.mg.Status,'Failed to evaluate MapGet');}}
if(rr!=null)
{if(rr.C==data2.mg.CacheID&&rr.M==data2.ID)
{data2.Status=2;var p=data2.mg.Places;if(rr.I!=null)
{for(var i=0;i!=rr.I.length;i++)
{var d=rr.I[i];if(d.K!=data2.mg.KeyIgnore)
{var u=true;if(p!=null)
{for(var ii=0;ii!=p.length;ii++)
{if(p[ii].Key==d.K)
{u=false;break;}}}
if(u)
{try
{var n=data2.mg.PlaceAdd(null,null,d.Y,d.X,d.R,d.K,d.H,d.N,d.D,d.Z,0,d.J,d.P,d.V,null,d.T,d.S);if(data2.mg.List!=null)
{var e=data2.mg.HtmlList(data2.mg.Places[n]);var l=null;p=data2.mg.Places;if(p!=null)
{for(var ii=0;ii!=p.length;ii++)
{if(p[ii].Element!=null&&p[ii].Distance>d.Z)
{if(l==null)
{l=p[ii];}
else
{if(p[ii].Distance<l.Distance)
{l=p[ii];}}}}}
if(l==null)
{data2.mg.List.appendChild(e);}
else
{data2.mg.List.insertBefore(e,l.Element);}
data2.mg.Places[n].Element=e;}
data2.mg.PlaceInitIndex.call(data2.mg,null,n,data2.mg);if(data2.mg.List!=null)
{data2.mg.ListIndex(0,n);}}
catch(oh)
{if(data2.mg.Ready&&data2.mg.Status!=null)
{Common.TextRemoveAll(data2.mg.Status);Common.TextAdd(data2.mg.Status,'Failed to create place['+i+']');}}}}}}}}}}
return 0;}
MG.prototype.CommGetAbort=function(id)
{this.Abort=true;}
MG.prototype.CommGetError=function(e,data,f)
{data.Repeat++;if(data.Repeat<data.mg.AjaxRetries)
{data.Status=1;}
else
{data.Status=-1;}}
MG.prototype.CommError=function(e,data,f)
{if(data.mg.Ready)
{if(data.mg.Status!=null)
{Common.TextRemoveAll(data.mg.Status);Common.TextAdd(data.mg.Status,e.get_message());}
data.Status=-1;}}
MG.prototype.ChangeCriteria=function(s,vmt,x1,y1,x2,y2)
{this.BounceAbort();this.Jobs.Abort(this.JobPriorityClear-1);this.Processes=null;if(this.Places!=null)
{this.Jobs.New(null,0,this.Places.length,this.Speed,null,this.PlaceDestroyIndex,this.PlaceDestroyEnd,null,this,this.JobPriorityClear);}
if(this.List!=null)
{this.Jobs.New(null,0,this.List.childNodes.length,this.Speed,null,this.DeleteTextIndex,this.DeleteTextEnd,null,this,this.JobPriorityClear);}
var data=new Object();data.mg=this;data.Status=0;data.Criteria=s;data.ViewMapType=vmt;data.Abort=false;data.Repeat=0;if(typeof x1!=='undefined')
{data.X1=x1;data.Y1=y1;data.X2=x2;data.Y2=y2;}
data.ID=this.Jobs.New(null,0,1,1,this.CommSetCriteriaStart,this.CommSetCriteriaWait,null,this.CommSetCriteriaAbort,data,this.JobPrioritySetArea);return 1;}
MG.prototype.PlaceDestroyIndex=function(id,index)
{if(this.Places!=null)
{var p=this.Places[index];if(p.Marker!=null)
{GEvent.clearListeners(p.Marker,'mouseover');GEvent.clearListeners(p.Marker,'mouseout');if(!(this.Control&65536))
{GEvent.clearListeners(p.Marker,'click');}
this.GMap2.removeOverlay(p.Marker);p.Marker=null;}}
return 1;}
MG.prototype.PlaceDestroyEnd=function(id)
{this.Places=null;return 1;}
MG.prototype.DeleteTextIndex=function(id,index)
{if(this.List.childNodes.length!=0)
{this.List.removeChild(this.List.childNodes[0]);}
return 1;}
MG.prototype.DeleteTextEnd=function(id)
{Common.TextRemoveAll(this.List);return 1;}
MG.prototype.CommSetCriteriaStart=function(id)
{var me=this;var thread=function(a,b,c)
{me.mg.CommSetCriteriaThread.call(me,a,b,c);}
var error=function(a,b,c)
{me.mg.CommSetCriteriaError.call(me,a,b,c);}
try
{JavaService.MapSetCriteria(this.mg.SessionID,this.mg.CacheID,this.ID,this.ViewMapType,this.Criteria,thread,error,this);}
catch(oh)
{me.mg.CommSetCriteriaError.call(me,oh.message,me,me.mg.CommSetCriteriaStart);}
return 1;}
MG.prototype.CommSetCriteriaWait=function(id,index)
{return this.Status;}
MG.prototype.CommSetCriteriaThread=function(r,data,f)
{if(data.mg.Ready&&!data.Abort)
{data.Status=-1;if(r.substring(0,6)=='Error:')
{if(data.mg.Status!=null)
{Common.TextRemoveAll(data.mg.Status);Common.TextAdd(data.mg.Status,r);}}
else
{var rr=null;try
{rr=JSON.parse(r);}
catch(oh)
{if(data.mg.Ready)
{Common.TextRemoveAll(data.mg.Status);Common.TextAdd(data.mg.Status,'Failed to evaluate MapSetCriteria');}}
if(rr!=null)
{if(rr.C==data.mg.CacheID&&rr.M==data.ID)
{data.Status=1;if(typeof data.X1==='undefined')
{data.mg.Active.call(data.mg);}
else
{data.mg.View.call(data.mg,data.X1,data.Y1,data.X2,data.Y2,true,true);}}}}}}
MG.prototype.CommSetCriteriaAbort=function(id)
{this.Abort=true;}
MG.prototype.CommSetCriteriaError=function(r,data,f)
{data.Repeat++;if(data.Repeat<data.mg.AjaxRetries)
{data.mg.CommSetCriteriaStart.call(data,data.ID);}
else
{data.mg.CommError.call(data,r,data,f);}}
MG.prototype.Rectangle=function(a,b,c,d,e,f,g,h,i)
{return new GPolygon([new GLatLng(parseFloat(b),parseFloat(a)),new GLatLng(parseFloat(d),parseFloat(a)),new GLatLng(parseFloat(d),parseFloat(c)),new GLatLng(parseFloat(b),parseFloat(c)),new GLatLng(parseFloat(b),parseFloat(a))],e,f,g,h,i,[false])}
MG.prototype.Area=function(a,b,c,d,e,f,g,h,i)
{var r=new Array();if(a<-90)
{r.push(this.Rectangle(a,b,Math.min(c,-90),d,e,f,g,h,i));}
if(a<0&&c>-90)
{r.push(this.Rectangle(Math.max(a,-90),b,Math.min(c,0),d,e,f,g,h,i));}
if(a<90&&c>0)
{r.push(this.Rectangle(Math.max(a,0),b,Math.min(c,90),d,e,f,g,h,i));}
if(c>90)
{r.push(this.Rectangle(Math.max(a,90),b,Math.min(c,180),d,e,f,g,h,i));}
return r;}
MG.prototype.AreaInverse=function(a,b,c,d,e,f,g,h,i)
{var r=new Array();if(a<-90)
{if(d<85)
{r.push(this.Rectangle(-180,d,-90,85,e,f,g,h,i));}
if(b>-85)
{r.push(this.Rectangle(-180,-85,-90,b,e,f,g,h,i));}
if(a>-180)
{r.push(this.Rectangle(-180,b,a,d,e,f,g,h,i));}
if(c<-90)
{r.push(this.Rectangle(c,b,-90,d,e,f,g,h,i));}}
else
{r.push(this.Rectangle(-180,-85,-90,85,e,f,g,h,i));}
if(a<0&&c>-90)
{if(d<85)
{r.push(this.Rectangle(-90,d,0,85,e,f,g,h,i));}
if(b>-85)
{r.push(this.Rectangle(-90,-85,0,b,e,f,g,h,i));}
if(a>-90)
{r.push(this.Rectangle(-90,b,a,d,e,f,g,h,i));}
if(c<0)
{r.push(this.Rectangle(c,b,0,d,e,f,g,h,i));}}
else
{r.push(this.Rectangle(-90,-85,0,85,e,f,g,h,i));}
if(a<90&&c>0)
{if(d<85)
{r.push(this.Rectangle(0,d,90,85,e,f,g,h,i));}
if(b>-85)
{r.push(this.Rectangle(0,-85,90,b,e,f,g,h,i));}
if(a>0)
{r.push(this.Rectangle(0,b,a,d,e,f,g,h,i));}
if(c<90)
{r.push(this.Rectangle(c,b,90,d,e,f,g,h,i));}}
else
{r.push(this.Rectangle(0,-85,90,85,e,f,g,h,i));}
if(c>90)
{if(d<85)
{r.push(this.Rectangle(90,d,180,85,e,f,g,h,i));}
if(b>-85)
{r.push(this.Rectangle(90,-85,180,b,e,f,g,h,i));}
if(a>0)
{r.push(this.Rectangle(90,b,a,d,e,f,g,h,i));}
if(c<90)
{r.push(this.Rectangle(c,b,180,d,e,f,g,h,i));}}
else
{r.push(this.Rectangle(90,-85,180,85,e,f,g,h,i));}
return r;}
MG.prototype.Human2LatLng=function(a)
{var r=[];var b=a.split(/[^0-9.,-]+/)
for(var i=0;i+1<a.length;i+=2)
{r.push(new GLatLng(b[i],b[i+1]))}
return r;}
MG.prototype.LatLng2Human=function()
{var r='';for(var i=0;i!=arguments.length;i++)
{var a=arguments[i];if(typeof a.getSouthWest!=='undefined')
{if(r!='')
{r+=';';}
var y1=Math.round(a.getSouthWest().lat()*1000000)/1000000;var x1=Math.round(a.getSouthWest().lng()*1000000)/1000000;var y2=Math.round(a.getNorthEast().lat()*1000000)/1000000;var x2=Math.round(a.getNorthEast().lng()*1000000)/1000000;r+=y1+':'+x1+';'+y2+':'+x2}
else if(typeof a.lat()!=='undefined')
{if(r!='')
{r+=';';}
var y=Math.round(a.lat()*1000000)/1000000;var x=Math.round(a.lng()*1000000)/1000000;r+=y+':'+x;}}
return r;}