var MapIconMaker={};MapIconMaker.createMarkerIcon=function(a){var b=a.width||32,c=a.height||32,d=a.primaryColor||"#ff0000",e=a.strokeColor||"#000000",f=a.cornerColor||"#ffffff",g="http://chart.apis.google.com/chart?cht=mm",h=g+"&chs="+b+"x"+c+"&chco="+f.replace("#","")+","+d.replace("#","")+","+e.replace("#","")+"&ext=.png",i=new GIcon(G_DEFAULT_ICON);i.image=h,i.iconSize=new GSize(b,c),i.shadowSize=new GSize(Math.floor(1.6*b),c),i.iconAnchor=new GPoint(b/2,c),i.infoWindowAnchor=new GPoint(b/2,Math.floor(c/12)),i.printImage=h+"&chof=gif",i.mozPrintImage=h+"&chf=bg,s,ECECD8&chof=gif",h=g+"&chs="+b+"x"+c+"&chco="+f.replace("#","")+","+d.replace("#","")+","+e.replace("#",""),i.transparent=h+"&chf=a,s,ffffff11&ext=.png",i.imageMap=[b/2,c,7/16*b,5/8*c,5/16*b,7/16*c,7/32*b,5/16*c,5/16*b,1/8*c,.5*b,0,.6875*b,1/8*c,25/32*b,5/16*c,.6875*b,7/16*c,9/16*b,5/8*c];for(var j=0;j<i.imageMap.length;j++)i.imageMap[j]=parseInt(i.imageMap[j]);return i},MapIconMaker.createFlatIcon=function(a){var b=a.width||32,c=a.height||32,d=a.primaryColor||"#ff0000",e=a.shadowColor||"#000000",f=MapIconMaker.escapeUserText_(a.label)||"",g=a.labelColor||"#000000",h=a.labelSize||0,i=a.shape||"circle",j="circle"===i?"it":"itr",k="http://chart.apis.google.com/chart?cht="+j,l=k+"&chs="+b+"x"+c+"&chco="+d.replace("#","")+","+e.replace("#","")+"ff,ffffff01&chl="+f+"&chx="+g.replace("#","")+","+h,m=new GIcon(G_DEFAULT_ICON);if(m.image=l+"&chf=bg,s,00000000&ext=.png",m.iconSize=new GSize(b,c),m.shadowSize=new GSize(0,0),m.iconAnchor=new GPoint(b/2,c/2),m.infoWindowAnchor=new GPoint(b/2,c/2),m.printImage=l+"&chof=gif",m.mozPrintImage=l+"&chf=bg,s,ECECD8&chof=gif",m.transparent=l+"&chf=a,s,ffffff01&ext=.png",m.imageMap=[],"itr"===j)m.imageMap=[0,0,b,0,b,c,0,c];else for(var n=8,o=360/n,p=Math.min(b,c)/2,q=0;q<n+1;q++){var r=o*q*(Math.PI/180),s=p+p*Math.cos(r),t=p+p*Math.sin(r);m.imageMap.push(parseInt(s),parseInt(t))}return m},MapIconMaker.createLabeledMarkerIcon=function(a){var b=a.primaryColor||"#DA7187",c=a.strokeColor||"#000000",d=a.starPrimaryColor||"#FFFF00",e=a.starStrokeColor||"#0000FF",f=MapIconMaker.escapeUserText_(a.label)||"",g=a.labelColor||"#000000",h=a.addStar||!1,i=h?"pin_star":"pin",j="http://chart.apis.google.com/chart?cht=d&chdp=mapsapi&chl=",k=j+i+"'i\\'["+f+"'-2'f\\hv'a\\]h\\]o\\"+b.replace("#","")+"'fC\\"+g.replace("#","")+"'tC\\"+c.replace("#","")+"'eC\\";h&&(k+=d.replace("#","")+"'1C\\"+e.replace("#","")+"'0C\\"),k+="Lauto'f\\";var l=new GIcon(G_DEFAULT_ICON);return l.image=k+"&ext=.png",l.iconSize=h?new GSize(23,39):new GSize(21,34),l},MapIconMaker.escapeUserText_=function(a){return void 0===a?null:(a=a.replace(/@/,"@@"),a=a.replace(/\\/,"@\\"),a=a.replace(/'/,"@'"),a=a.replace(/\[/,"@["),a=a.replace(/\]/,"@]"),encodeURIComponent(a))};