"mololo.map".namespace();
mololo.map.Icons=function(){var E=new Map();
var N=this;
var H=function(Z){var Y=Math.floor((17-Z)/2);
return 1+Y*0.5
};
var L=function(b,c){var Z=N[b.prototypeName];
var a=Math.floor(Z.iconSize.width/c);
var Y=Math.floor(Z.iconSize.height/c);
b.iconSize.width=a;
b.iconSize.height=Y;
b.iconAnchor.x=a/2;
b.iconAnchor.y=Y;
b.infoWindowAnchor.x=(c==1)?Z.infoWindowAnchor.x:0
};
this.cacheIcon=function(Z,Y){if(!E.containsKey(Y)){var a=new google.maps.Icon(Z);
a.image=Y;
a.iconSize=new GSize(Z.iconSize.width,Z.iconSize.height);
a.iconAnchor=new GPoint(Z.iconAnchor.x,Z.iconAnchor.y);
a.infoWindowAnchor=new GPoint(Z.infoWindowAnchor.x,Z.infoWindowAnchor.y);
this.scaleIcon(a);
E.put(Y,a)
}return E.get(Y)
};
this.scaleIcon=function(Y){var Z=H(mololo.globals.MAP.getZoom());
L(Y,Z)
};
this.scaleIcons=function(){var Y=H(mololo.globals.MAP.getZoom());
E.values().each(function(Z){L(Z,Y)
});
mololo.globals.CONTROLLERS.getMarkerController().refreshMarkers()
};
var F=mololo.globals.CONTEXT.getImagesPath()+"/map";
var M=F+"/zoom-levels";
var B=mololo.globals.CONTEXT.getImagesPath(true)+"/map/zoom-levels";
var I=B+"/state";
var J=I+"/group_marker_1000.png";
var O=I+"/group_marker_100.png";
var U=I+"/group_marker_10.png";
var P=I+"/group_marker_1.png";
var D=B+"/city";
var A=D+"/group_marker_1000.png";
var V=D+"/group_marker_100.png";
var S=D+"/group_marker_10.png";
var G=D+"/group_marker_1.png";
var X=M+"/event";
var W=X+"/large";
var T=X+"/normal/temporal";
var C=X+"/normal/permanent";
var Q=F+"/promo/silver.png";
var K=F+"/promo/gold.png";
var R=F+"/alternative-icons";
this.iconEventLevelEventPrototype=new GIcon();
this.iconEventLevelEventPrototype.image=T;
this.iconEventLevelEventPrototype.iconSize=new GSize(31,41);
this.iconEventLevelEventPrototype.shadow=null;
this.iconEventLevelEventPrototype.shadowSize=null;
this.iconEventLevelEventPrototype.iconAnchor=new GPoint(16,41);
this.iconEventLevelEventPrototype.infoWindowAnchor=new GPoint(16,16);
this.iconEventLevelEventPrototype.prototypeName="iconEventLevelEventPrototype";
this.iconEventLevelPlacePrototype=new GIcon();
this.iconEventLevelPlacePrototype.image=C;
this.iconEventLevelPlacePrototype.iconSize=new GSize(31,34);
this.iconEventLevelPlacePrototype.shadow=null;
this.iconEventLevelPlacePrototype.shadowSize=null;
this.iconEventLevelPlacePrototype.iconAnchor=new GPoint(16,17);
this.iconEventLevelPlacePrototype.infoWindowAnchor=new GPoint(16,17);
this.iconEventLevelPlacePrototype.prototypeName="iconEventLevelPlacePrototype";
this.iconEventLevelSuperPremiumEventPrototype=new GIcon();
this.iconEventLevelSuperPremiumEventPrototype.image=W;
this.iconEventLevelSuperPremiumEventPrototype.iconSize=new GSize(61,81);
this.iconEventLevelSuperPremiumEventPrototype.shadow=null;
this.iconEventLevelSuperPremiumEventPrototype.shadowSize=null;
this.iconEventLevelSuperPremiumEventPrototype.iconAnchor=new GPoint(30,40);
this.iconEventLevelSuperPremiumEventPrototype.infoWindowAnchor=new GPoint(30,40);
this.iconEventLevelSuperPremiumEventPrototype.prototypeName="iconEventLevelSuperPremiumEventPrototype";
this.iconEventLevelSuperPremiumGroupedPrototype=new GIcon();
this.iconEventLevelSuperPremiumGroupedPrototype.image=W;
this.iconEventLevelSuperPremiumGroupedPrototype.iconSize=new GSize(64,64);
this.iconEventLevelSuperPremiumGroupedPrototype.shadow=null;
this.iconEventLevelSuperPremiumGroupedPrototype.shadowSize=null;
this.iconEventLevelSuperPremiumGroupedPrototype.iconAnchor=new GPoint(32,64);
this.iconEventLevelSuperPremiumGroupedPrototype.infoWindowAnchor=new GPoint(32,32);
this.iconEventLevelSuperPremiumGroupedPrototype.prototypeName="iconEventLevelSuperPremiumGroupedPrototype";
this.iconEventLevelGroupedPrototype=new GIcon();
this.iconEventLevelGroupedPrototype.image=T;
this.iconEventLevelGroupedPrototype.iconSize=new GSize(32,41);
this.iconEventLevelGroupedPrototype.shadow=null;
this.iconEventLevelGroupedPrototype.shadowSize=null;
this.iconEventLevelGroupedPrototype.iconAnchor=new GPoint(16,20);
this.iconEventLevelGroupedPrototype.infoWindowAnchor=new GPoint(16,20);
this.iconEventLevelGroupedPrototype.prototypeName="iconEventLevelGroupedPrototype";
this.iconCityLevelGroupedPrototype1000=new GIcon();
this.iconCityLevelGroupedPrototype1000.image=A;
this.iconCityLevelGroupedPrototype1000.iconSize=new GSize(35,20);
this.iconCityLevelGroupedPrototype1000.iconAnchor=new GPoint(17,0);
this.iconCityLevelGroupedPrototype1000.infoWindowAnchor=new GPoint(17,0);
this.iconCityLevelGroupedPrototype1000.labelOffset=new GSize(-10,0);
this.iconCityLevelGroupedPrototype1000.prototypeName="iconCityLevelGroupedPrototype1000";
this.iconCityLevelGroupedPrototype100=new GIcon();
this.iconCityLevelGroupedPrototype100.image=V;
this.iconCityLevelGroupedPrototype100.iconSize=new GSize(29,20);
this.iconCityLevelGroupedPrototype100.iconAnchor=new GPoint(15,0);
this.iconCityLevelGroupedPrototype100.infoWindowAnchor=new GPoint(15,0);
this.iconCityLevelGroupedPrototype100.labelOffset=new GSize(-11,5);
this.iconCityLevelGroupedPrototype100.prototypeName="iconCityLevelGroupedPrototype100";
this.iconCityLevelGroupedPrototype10=new GIcon();
this.iconCityLevelGroupedPrototype10.image=S;
this.iconCityLevelGroupedPrototype10.iconSize=new GSize(22,20);
this.iconCityLevelGroupedPrototype10.iconAnchor=new GPoint(11,0);
this.iconCityLevelGroupedPrototype10.infoWindowAnchor=new GPoint(11,0);
this.iconCityLevelGroupedPrototype10.labelOffset=new GSize(-6,5);
this.iconCityLevelGroupedPrototype10.prototypeName="iconCityLevelGroupedPrototype10";
this.iconCityLevelGroupedPrototype1=new GIcon();
this.iconCityLevelGroupedPrototype1.image=G;
this.iconCityLevelGroupedPrototype1.iconSize=new GSize(16,20);
this.iconCityLevelGroupedPrototype1.iconAnchor=new GPoint(8,0);
this.iconCityLevelGroupedPrototype1.infoWindowAnchor=new GPoint(8,0);
this.iconCityLevelGroupedPrototype1.labelOffset=new GSize(-3,5);
this.iconCityLevelGroupedPrototype1.prototypeName="iconCityLevelGroupedPrototype1";
this.iconStateLevelGroupedPrototype1000=new GIcon();
this.iconStateLevelGroupedPrototype1000.image=J;
this.iconStateLevelGroupedPrototype1000.iconSize=new GSize(35,20);
this.iconStateLevelGroupedPrototype1000.iconAnchor=new GPoint(17,0);
this.iconStateLevelGroupedPrototype1000.infoWindowAnchor=new GPoint(17,0);
this.iconStateLevelGroupedPrototype1000.labelOffset=new GSize(-13,5);
this.iconStateLevelGroupedPrototype1000.prototypeName="iconStateLevelGroupedPrototype1000";
this.iconStateLevelGroupedPrototype100=new GIcon();
this.iconStateLevelGroupedPrototype100.image=O;
this.iconStateLevelGroupedPrototype100.iconSize=new GSize(29,20);
this.iconStateLevelGroupedPrototype100.iconAnchor=new GPoint(15,0);
this.iconStateLevelGroupedPrototype100.infoWindowAnchor=new GPoint(15,0);
this.iconStateLevelGroupedPrototype100.labelOffset=new GSize(-11,5);
this.iconStateLevelGroupedPrototype100.prototypeName="iconStateLevelGroupedPrototype100";
this.iconStateLevelGroupedPrototype10=new GIcon();
this.iconStateLevelGroupedPrototype10.image=U;
this.iconStateLevelGroupedPrototype10.iconSize=new GSize(22,20);
this.iconStateLevelGroupedPrototype10.iconAnchor=new GPoint(11,0);
this.iconStateLevelGroupedPrototype10.infoWindowAnchor=new GPoint(11,0);
this.iconStateLevelGroupedPrototype10.labelOffset=new GSize(-6,5);
this.iconStateLevelGroupedPrototype10.prototypeName="iconStateLevelGroupedPrototype10";
this.iconStateLevelGroupedPrototype1=new GIcon();
this.iconStateLevelGroupedPrototype1.image=P;
this.iconStateLevelGroupedPrototype1.iconSize=new GSize(16,20);
this.iconStateLevelGroupedPrototype1.iconAnchor=new GPoint(8,0);
this.iconStateLevelGroupedPrototype1.infoWindowAnchor=new GPoint(8,0);
this.iconStateLevelGroupedPrototype1.labelOffset=new GSize(-3,5);
this.iconStateLevelGroupedPrototype1.prototypeName="iconStateLevelGroupedPrototype1";
this.iconAllLevelEventFavPrototype=new GIcon();
this.iconAllLevelEventFavPrototype.image=T+"/fav.png";
this.iconAllLevelEventFavPrototype.iconSize=new GSize(10,14);
this.iconAllLevelEventFavPrototype.shadow=null;
this.iconAllLevelEventFavPrototype.shadowSize=null;
this.iconAllLevelEventFavPrototype.iconAnchor=new GPoint(0,0);
this.iconAllLevelEventFavPrototype.infoWindowAnchor=new GPoint(0,0);
this.iconAllLevelEventFavPrototype.prototypeName="iconAllLevelEventFavPrototype";
this.iconAllLevelPlaceFavPrototype=new GIcon();
this.iconAllLevelPlaceFavPrototype.image=C+"/fav.png";
this.iconAllLevelPlaceFavPrototype.iconSize=new GSize(10,11);
this.iconAllLevelPlaceFavPrototype.shadow=null;
this.iconAllLevelPlaceFavPrototype.shadowSize=null;
this.iconAllLevelPlaceFavPrototype.iconAnchor=new GPoint(0,0);
this.iconAllLevelPlaceFavPrototype.infoWindowAnchor=new GPoint(0,0);
this.iconAllLevelPlaceFavPrototype.prototypeName="iconAllLevelPlaceFavPrototype";
this.iconAllLevelPremium10=new GIcon();
this.iconAllLevelPremium10.image=K;
this.iconAllLevelPremium10.iconSize=new GSize(31,60);
this.iconAllLevelPremium10.shadow=null;
this.iconAllLevelPremium10.shadowSize=null;
this.iconAllLevelPremium10.iconAnchor=new GPoint(16,60);
this.iconAllLevelPremium10.infoWindowAnchor=new GPoint(16,16);
this.iconAllLevelPremium10.prototypeName="iconAllLevelPremium10";
this.iconAllLevelPremium5=new GIcon();
this.iconAllLevelPremium5.image=Q;
this.iconAllLevelPremium5.iconSize=new GSize(26,50);
this.iconAllLevelPremium5.shadow=null;
this.iconAllLevelPremium5.shadowSize=null;
this.iconAllLevelPremium5.iconAnchor=new GPoint(13,50);
this.iconAllLevelPremium5.infoWindowAnchor=new GPoint(16,16);
this.iconAllLevelPremium5.prototypeName="iconAllLevelPremium5";
this.iconAllLevelAlternativeIconPrototype=new GIcon();
this.iconAllLevelAlternativeIconPrototype.image=R;
this.iconAllLevelAlternativeIconPrototype.iconSize=new GSize(61,70);
this.iconAllLevelAlternativeIconPrototype.shadow=null;
this.iconAllLevelAlternativeIconPrototype.shadowSize=null;
this.iconAllLevelAlternativeIconPrototype.iconAnchor=new GPoint(36,75);
this.iconAllLevelAlternativeIconPrototype.infoWindowAnchor=new GPoint(36,30);
this.iconAllLevelAlternativeIconPrototype.prototypeName="iconAllLevelAlternativeIconPrototype"
};