/*
HTML Imagemapper 10 AJAX
alta4 Geoinformatik 2006
14.07.2006 - 1.0
http://imagemapper.alta4.com
*/
I58=new Array();D8x20=false;Y_055=new Array();P5Y1D=0;A7J9D=new Array();P1oG=false;_ov$="symbolCon";function TyH8(){var Iy6$y=An$();c3W();cCB54();I55d8(Iy6$y)}function An$(){var B9jw=f9_("currMapOff");var bS16=g_viewExt;return new Array(new Array(-B9jw[0],-B9jw[1]),new Array(-B9jw[0]+bS16[0],-B9jw[1]+bS16[1]))}function I55d8(w$_){var v003v=A57();var mb7K=y916();var Ee0=g_geoTileSize;var min=new Array();var max=new Array();var uWI=new Array();uWI[0]=g_baseMapExt[0]*mb7K/Ee0[0];uWI[1]=g_baseMapExt[1]*mb7K/Ee0[1];if(round(uWI[0])==uWI[0])uWI[0]=uWI[0]-1;if(round(uWI[1])==uWI[1])uWI[1]=uWI[1]-1;uWI[0]=Math.floor(uWI[0]);uWI[1]=Math.floor(uWI[1]);min[0]=Math.floor(w$_[0][0]/Ee0[0]);min[1]=Math.floor(w$_[0][1]/Ee0[1]);max[0]=Math.floor(w$_[1][0]/Ee0[0]);max[1]=Math.floor(w$_[1][1]/Ee0[1]);clear(A84);var yPln6="";var u$8="";var S794I="";var k9_="";for(var G5v8=min[0];G5v8<=max[0];G5v8++){for(var $9Ls=min[1];$9Ls<=max[1];$9Ls++){if((G5v8>=0&&$9Ls>=0)&&(G5v8<=uWI[0]&&$9Ls<=uWI[1])){var HvU=false;if(typeof(I58[v003v])=="object"&&typeof(I58[v003v][G5v8])=="object"&&typeof(I58[v003v][G5v8][$9Ls])=="object"){HvU=true;var FXvo8=I58[v003v][G5v8][$9Ls];if(typeof(FXvo8["circle"])=="string")yPln6+=FXvo8["circle"];if(typeof(FXvo8["line"])=="string")u$8+=FXvo8["line"];if(typeof(FXvo8["poly"])=="string")S794I+=FXvo8["poly"];if(typeof(FXvo8["carto"])=="object"){for(var i=1;i<FXvo8["carto"].length;i++ ){k9_+=h0OI3(FXvo8["carto"][i][1],FXvo8["carto"][i][0]+",4","circle")}E4j3f(FXvo8["carto"])}}if(!HvU)P9an(g_geoTilesDir+v003v+"/"+G5v8+"_"+$9Ls+".js")}}}$9D80(yPln6);$9D80(u$8);$9D80(S794I);$9D80(k9_)}function addto_gI(v003v,G5v8,$9Ls,type,htmlText){if(htmlText!=""){if(typeof(I58[v003v])!="object")I58[v003v]=new Array();if(typeof(I58[v003v][G5v8])!="object")I58[v003v][G5v8]=new Array();if(typeof(I58[v003v][G5v8][$9Ls])!="object")I58[v003v][G5v8][$9Ls]=new Array();if(type=="circle"||type=="poly"||type=="line"){if(typeof(I58[v003v][G5v8][$9Ls][type])!="string")I58[v003v][G5v8][$9Ls][type]="";I58[v003v][G5v8][$9Ls][type]+=htmlText;$9D80(htmlText)}}}function h0OI3(id,coords,shape){return "<area shape='"+shape+"' coords='"+coords+"' id='"+id+"_area' />"}function E4j3f(bL73$){if(!element(_ov$))Ca62(g_viewOff,g_viewExt,_ov$,null,null,$KI6);if(element(_ov$)){var Js3=element(_ov$);Js3.style.zIndex=HtQ;for(var b16_=1;b16_<bL73$.length;b16_++){var g930=rp55($Sq92(bL73$[b16_][0]),"screen");if(t4265(g930)){var img=M9v(bL73$[0],null,"carto_"+bL73$[b16_][1],"javascript:show_popup("+bL73$[b16_][1]+");","");q8N1(Js3,img);var f8YQd=new Array(g930[0]-g_viewOff[0]-13,g930[1]-g_viewOff[1]-25);Q075(element("carto_"+bL73$[b16_][1]),f8YQd,null,null)}}}}function fL8u(){clear(element(_ov$))}function $9D80(ar24L){A7J9D.push(ar24L);if(!P1oG){P1oG=true;setTimeout("yUm()",750)}}function yUm(){A84.innerHTML+=A7J9D.join("");A7J9D=new Array();P1oG=false}function c3W(){if(!element(g_areaCon)){var I_02=fK0("map");I_02.setAttribute("id",g_areaCon);I_02.setAttribute("name",g_areaCon);q8N1($KI6,I_02);A84=element(g_areaCon)}}function cCB54(){var bS16=g_viewExt;var B9jw=f9_("currMapOff");var size=new Array(-B9jw[0]+bS16[0],-B9jw[1]+bS16[1]);if(!element(g_areaLay)){bMQ3(B9jw,size,g_transpLayImg,new Array("area","layer"),element(H55e))}var x8d16=element(g_areaLay);Q075(x8d16,B9jw,size,null);x8d16.style.zIndex=_e6;if(document.all)x8d16.setAttribute("useMap","#area_Con");else x8d16.setAttribute("usemap","#area_Con")}function $Sq92(coords){var F0o9=coords.split(",");return new Array(parseInt(F0o9[0]),parseInt(F0o9[1]))}
