var flashMapName="mapObj";function VectorMap(D,F,E,K,J,G,A){if(!F){F="#99cc33"}if(!E){E=false}if(!K){K=2}if(!J){J=75}if(!G){G=false}var C=document.getElementById(D);var L=C.style.backgroundColor;this.bgcolor="#ffffff";this.w=C.offsetWidth;this.h=C.offsetHeight;this.expandToFillViewport=E;this.fgcolor=F;this.lineAlpha=J;this.lineSize=K;this.scaleLine=G;this.renderLabels=false;var I=new SWFObject("/ui/map/map.swf",flashMapName,this.w,this.h,"9",this.bgcolor);I.useExpressInstall("/ui/map/expressinstall.swf");var H=I.installedVer.major;if(!H||H<7){C.innerHTML="<div>Please install the Adobe Flash Player to view this map. <a href='http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&promoid=BIOW' target='_blank'>Get Flash Now</a></div>";return }if(A){I.setAttribute("redirectUrl",A)}if(this.expandToFillViewport){I.addParam("scale","noscale")}I.addParam("menu","false");var B=navigator.userAgent;I.addParam("wmode","opaque");I.write(D)}VectorMap.prototype.enableLabels=function(A){if(!A){A=12}this.labelFontSize=A;this.renderLabels=true};VectorMap.prototype.init=function(C,B,A,D){this.fixColors(B);movieName=new GetMovieName();movieName.Init(this.lineSize,this.lineAlpha,this.scaleLine,this.fgcolor,this.renderLabels,this.labelFontSize,C,B,A,D,this.expandToFillViewport)};VectorMap.prototype.setSourceUrl=function(A){movieName=new GetMovieName();movieName.SetSourceUrl(A)};VectorMap.prototype.render=function(){movieName=new GetMovieName();movieName.Render()};VectorMap.prototype.updateView=function(B,A){movieName=new GetMovieName();movieName.UpdateView(B,A)};VectorMap.prototype.updateColors=function(A){this.fixColors(A);movieName=new GetMovieName();if(movieName&&movieName.UpdateColors){movieName.UpdateColors(A)}};VectorMap.prototype.enableSelection=function(A){movieName=new GetMovieName();movieName.EnableSelection(A)};VectorMap.prototype.enableMouseover=function(B,A){movieName=new GetMovieName();movieName.EnableMouseover(B,A)};VectorMap.prototype.enableExploring=function(A,B,C){this.zoomDelta=C;movieName=new GetMovieName();movieName.EnableExploring(A,B,C)};VectorMap.prototype.setView=function(B,A,C){movieName=new GetMovieName();movieName.SetView(B,A,C)};VectorMap.prototype.getView=function(A){movieName=new GetMovieName();movieName.GetView(A)};VectorMap.prototype.mouseCallback=function(A){movieName=new GetMovieName();if(movieName.JsMouseCallback){movieName.JsMouseCallback(A)}};GetMovieName=function(){if(navigator.appName.indexOf("Microsoft")!=-1){return window[flashMapName]}else{return document[flashMapName]}};VectorMap.prototype.zoomIn=function(){lastMap=this;this.getView("zoomInHandler")};function zoomInHandler(A){A.zoom+=lastMap.zoomDelta;lastMap.setView(A.zoom,A.x,A.y)}VectorMap.prototype.zoomOut=function(){lastMap=this;this.getView("zoomOutHandler")};function zoomOutHandler(A){A.zoom-=lastMap.zoomDelta;lastMap.setView(A.zoom,A.x,A.y)}VectorMap.prototype.fixColors=function(A){for(var C=0;C<A.length;C++){var B=A[C][1];if(typeof (B)=="string"){B=parseInt("0x"+B);A[C][1]=B}}};
