/*
MARK SCOTT 2007
*/
vn73=new Array();RX2O=false;i5t5=new Array();Y_A8p=0;ey8=new Array();TW$1b=false;Tj30="symbolCon";function U4D(){var S58R=vP_lK();WnNo();m94();_72(S58R)}function vP_lK(){var G1p7=GEP57("currMapOff");var NxO=g_viewExt;return new Array(new Array(-G1p7[0],-G1p7[1]),new Array(-G1p7[0]+NxO[0],-G1p7[1]+NxO[1]))}function _72(aPTV){var j2hr=tM97();var $17M=E35();var T55=g_geoTileSize;var min=new Array();var max=new Array();var o69D=new Array();o69D[0]=g_baseMapExt[0]*$17M/T55[0];o69D[1]=g_baseMapExt[1]*$17M/T55[1];if(round(o69D[0])==o69D[0])o69D[0]=o69D[0]-1;if(round(o69D[1])==o69D[1])o69D[1]=o69D[1]-1;o69D[0]=Math.floor(o69D[0]);o69D[1]=Math.floor(o69D[1]);min[0]=Math.floor(aPTV[0][0]/T55[0]);min[1]=Math.floor(aPTV[0][1]/T55[1]);max[0]=Math.floor(aPTV[1][0]/T55[0]);max[1]=Math.floor(aPTV[1][1]/T55[1]);clear(M61);var _gu="";var vYOr8="";var eV3U="";var O90="";for(var FLw=min[0];FLw<=max[0];FLw++){for(var Vwyjh=min[1];Vwyjh<=max[1];Vwyjh++){if((FLw>=0&&Vwyjh>=0)&&(FLw<=o69D[0]&&Vwyjh<=o69D[1])){var nyF4=false;if(typeof(vn73[j2hr])=="object"&&typeof(vn73[j2hr][FLw])=="object"&&typeof(vn73[j2hr][FLw][Vwyjh])=="object"){nyF4=true;var M585=vn73[j2hr][FLw][Vwyjh];if(typeof(M585["circle"])=="string")_gu+=M585["circle"];if(typeof(M585["line"])=="string")vYOr8+=M585["line"];if(typeof(M585["poly"])=="string")eV3U+=M585["poly"];if(typeof(M585["carto"])=="object"){for(var i=1;i<M585["carto"].length;i++ ){O90+=e8c(M585["carto"][i][1],M585["carto"][i][0]+",4","circle")}l_T1(M585["carto"])}}if(!nyF4)vi90(g_geoTilesDir+j2hr+"/"+FLw+"_"+Vwyjh+".js")}}}K92(_gu);K92(vYOr8);K92(eV3U);K92(O90)}function addto_gI(j2hr,FLw,Vwyjh,type,htmlText){if(htmlText!=""){if(typeof(vn73[j2hr])!="object")vn73[j2hr]=new Array();if(typeof(vn73[j2hr][FLw])!="object")vn73[j2hr][FLw]=new Array();if(typeof(vn73[j2hr][FLw][Vwyjh])!="object")vn73[j2hr][FLw][Vwyjh]=new Array();if(type=="circle"||type=="poly"||type=="line"){if(typeof(vn73[j2hr][FLw][Vwyjh][type])!="string")vn73[j2hr][FLw][Vwyjh][type]="";vn73[j2hr][FLw][Vwyjh][type]+=htmlText;K92(htmlText)}}}function e8c(id,coords,shape){return "<area shape='"+shape+"' coords='"+coords+"' id='"+id+"_area' />"}function l_T1(kv1){if(!element(Tj30))Y_D(g_viewOff,g_viewExt,Tj30,null,null,p9m);if(element(Tj30)){var _IY4=element(Tj30);_IY4.style.zIndex=Po3;for(var F4c8=1;F4c8<kv1.length;F4c8++){var Cg2H4=Ou98F($270(kv1[F4c8][0]),"screen");if(xr861(Cg2H4)){var img=B21(kv1[0],null,"carto_"+kv1[F4c8][1],"javascript:show_popup("+kv1[F4c8][1]+");","");a$sTG(_IY4,img);var $K39q=new Array(Cg2H4[0]-g_viewOff[0]-13,Cg2H4[1]-g_viewOff[1]-25);a3r(element("carto_"+kv1[F4c8][1]),$K39q,null,null)}}}}function X_$4(){clear(element(Tj30))}function K92(I6M){ey8.push(I6M);if(!TW$1b){TW$1b=true;setTimeout("ky9()",750)}}function ky9(){M61.innerHTML+=ey8.join("");ey8=new Array();TW$1b=false}function WnNo(){if(!element(g_areaCon)){var s8jM=V$8O7("map");s8jM.setAttribute("id",g_areaCon);s8jM.setAttribute("name",g_areaCon);a$sTG(p9m,s8jM);M61=element(g_areaCon)}}function m94(){var NxO=g_viewExt;var G1p7=GEP57("currMapOff");var size=new Array(-G1p7[0]+NxO[0],-G1p7[1]+NxO[1]);if(!element(g_areaLay)){F2011(G1p7,size,g_transpLayImg,new Array("area","layer"),element($0j))}var l8K=element(g_areaLay);a3r(l8K,G1p7,size,null);l8K.style.zIndex=MNta;if(document.all)l8K.setAttribute("useMap","#area_Con");else l8K.setAttribute("usemap","#area_Con")}function $270(coords){var Xg9=coords.split(",");return new Array(parseInt(Xg9[0]),parseInt(Xg9[1]))}
