/*
HTML Imagemapper 10 AJAX
alta4 Geoinformatik 2006
15.12.2006 - 10.0.24
http://www.alta4.com
*/
H304=false;w6o=15;jb2=10;L8n=80;o6hX=20;i8Xb=null;WL_cN=null;CPR_9=null;$l4=null;sBU();function sBU(){d8a=new Array()}function Q723(_r0S6,VD7Qp){return d8a[VD7Qp][_r0S6]}function O1YVI(_r0S6,VD7Qp,E0T){d8a[VD7Qp][_r0S6]=E0T}function o0Qf(){return new Array(d8a[0].length,d8a.length)}function _5hp(){var T4D_8=d8a.pop();d8a.unshift(T4D_8)}function f2n2$(){var T4D_8=d8a.shift();d8a.push(T4D_8)}function AVQ3l(){var ei1=o0Qf();for(var n06=0;n06<ei1[1];n06 ++){var T4D_8=d8a[n06].shift();d8a[n06].push(T4D_8)}}function R6sl(){var ei1=o0Qf();for(var n06=0;n06<ei1[1];n06 ++){var T4D_8=d8a[n06].pop();d8a[n06].unshift(T4D_8)}}function txE7A(dA68){var ei1=o0Qf();for(var cr14=0;cr14<ei1[1];cr14 ++ ){for(var Ym1=0;Ym1<ei1[0];Ym1 ++ ){var id=Q723(Ym1,cr14);if(element(id[0]+"_"+id[1])){element(id[0]+"_"+id[1]).id=dA68+id[0]+"_"+id[1];element(dA68+id[0]+"_"+id[1]).style.zIndex=20000}}}}function B_QW$(dA68){var ei1=o0Qf();for(var cr14=0;cr14<ei1[1];cr14 ++ ){for(var Ym1=0;Ym1<ei1[0];Ym1 ++ ){var id=Q723(Ym1,cr14);delete_obj(dA68+id[0]+"_"+id[1])}}}function _m7(){var Icf68=g_iniPxDelta;var ei1=new Array(round(g_viewExt[0]/g_tSize[0])+2,round(g_viewExt[1]/g_tSize[1])+2);if(!element(NBFRy))Bn99(g_viewOff,g_viewExt);var n06=new Array();var a780=element(NBFRy);for(n06[0]=0;n06[0]<ei1[0];n06[0]++){for(n06[1]=0;n06[1]<ei1[1];n06[1]++){var rc5=new Array((n06[0]*g_tSize[0])-g_tSize[0]+Icf68[0],(n06[1]*g_tSize[1])-g_tSize[1]+Icf68[1]);var h6K35=Q723(n06[0],n06[1]);b$_4(rc5,g_tSize,g_spaceImg,h6K35,a780)}}i8Xb=-round(0.5*g_tSize[1]);WL_cN=-round(1.5*g_tSize[1]);CPR_9=-round(1.5*g_tSize[0]);$l4=-round(0.5*g_tSize[0])}function Vl37t(){sBU();var ei1=new Array(round(g_viewExt[0]/g_tSize[0])+2,round(g_viewExt[1]/g_tSize[1])+2);for(var cr14=0;cr14<ei1[1];cr14++){d8a.push(new Array());for(var Ym1=0;Ym1<ei1[0];Ym1++){var E0T=new Array(Ym1,cr14);O1YVI(Ym1,cr14,E0T)}}}function I6o(){if(g_baseMapExt[0]*E$4()<=g_viewExt[0]&&g_baseMapExt[1]*E$4()<=g_viewExt[1]){if(element("gameStyle_NavButton"))delete_obj("gameStyle_NavButton")}else{var KSKm=new Array(80,80);var R8I=new Array();if(round(g_viewExt[0]/7)<KSKm[0])R8I[0]=KSKm[0];else R8I[0]=round(g_viewExt[0]/7);if(round(g_viewExt[1]/5)<KSKm[1])R8I[1]=KSKm[1];else R8I[1]=round(g_viewExt[1]/5);if(R8I[1]<45+KSKm[1])R8I[1]=45+KSKm[1];if(!element("gameStyle_NavButton")){var position=new Array(g_viewOff[0]+g_viewExt[0]-R8I[0],g_viewOff[1]+g_viewExt[1]-R8I[1]);b$_4(position,KSKm,g_designDir+"gamestyle.gif",new Array("gameStyle","NavButton"),h14G2)}var map=M0R("map");map.id="navMap";map.name="navMap";qiM(h14G2,map);var a7431=element("gameStyle_NavButton");a7431.useMap="#navMap";var map=element("navMap");var P6512=round(KSKm[0]/4);var $$tA=round(KSKm[0]/2);var $4G=KSKm[0];var $U8=round(KSKm[0]/8);map.innerHTML+='<area shape="poly" coords="0,'+P6512+',0,0,'+P6512+',0,'+(P6512+$U8)+','+P6512+','+P6512+','+(P6512+$U8)+'" nohref="nohref" onmousedown="start_dirMover(\'ne\');return false;" />';map.innerHTML+='<area shape="poly" coords="'+P6512+',0,'+($$tA+P6512)+',0,'+($$tA+$U8)+','+P6512+','+(P6512+$U8)+','+P6512+'" nohref="nohref" onmousedown="start_dirMover(\'n\');return false;" />';map.innerHTML+='<area shape="poly" coords="'+($$tA+P6512)+',0,'+$4G+',0,'+$4G+','+P6512+','+($$tA+P6512)+','+(P6512+$U8)+','+($$tA+$U8)+','+P6512+'" nohref="nohref" onmousedown="start_dirMover(\'nw\');return false;" />';map.innerHTML+='<area shape="poly" coords="'+$4G+','+P6512+','+$4G+','+($$tA+P6512)+','+($$tA+P6512)+','+($$tA+$U8)+','+($$tA+P6512)+','+(P6512+$U8)+'" nohref="nohref" onmousedown="start_dirMover(\'w\');return false;" />';map.innerHTML+='<area shape="poly" coords="'+$4G+','+($$tA+P6512)+','+$4G+','+$4G+','+($$tA+P6512)+','+$4G+','+($$tA+$U8)+','+($$tA+P6512)+','+($$tA+P6512)+','+($$tA+$U8)+'" nohref="nohref" onmousedown="start_dirMover(\'sw\');return false;" />';map.innerHTML+='<area shape="poly" coords="'+($$tA+P6512)+','+$4G+','+P6512+','+$4G+','+(P6512+$U8)+','+($$tA+P6512)+','+($$tA+$U8)+','+($$tA+P6512)+'" nohref="nohref" onmousedown="start_dirMover(\'s\');return false;" />';map.innerHTML+='<area shape="poly" coords="'+P6512+','+$4G+',0,'+$4G+',0,'+($$tA+P6512)+','+P6512+','+($$tA+$U8)+','+(P6512+$U8)+','+($$tA+P6512)+'" nohref="nohref" onmousedown="start_dirMover(\'se\');return false;" />';map.innerHTML+='<area shape="poly" coords="0,'+($$tA+P6512)+',0,'+P6512+','+P6512+','+(P6512+$U8)+','+P6512+','+($$tA+$U8)+'" nohref="nohref" onmousedown="start_dirMover(\'e\');return false;" />';map.innerHTML+='<area shape="poly" coords="'+P6512+','+(P6512+$U8)+','+(P6512+$U8)+','+P6512+','+($$tA+$U8)+','+P6512+','+($$tA+P6512)+','+(P6512+$U8)+','+($$tA+P6512)+','+($$tA+$U8)+','+($$tA+$U8)+','+($$tA+P6512)+','+(P6512+$U8)+','+($$tA+P6512)+','+P6512+','+($$tA+$U8)+'" nohref="nohref" onmousedown="start_gamestyleMover();return false;" ondblclick="recenter_map();" />';a7431.style.zIndex=IV1;a7431.style.cursor="move";if(navigator.appName=="Opera")a7431.onmousedown=e9rT0}}function start_dirMover(dir){var move=new Array(0,0);var wF7=1.3;switch(dir){case "n":move=new Array(0,round(o6hX*wF7));break;case "ne":move=new Array(o6hX,o6hX);break;case "nw":move=new Array(-o6hX,o6hX);break;case "w":move=new Array(-round(o6hX*wF7),0);break;case "sw":move=new Array(-o6hX,-o6hX);break;case "s":move=new Array(0,-round(o6hX*wF7));break;case "se":move=new Array(o6hX,-o6hX);break;case "e":move=new Array(round(o6hX*wF7),0);break;default:move=new Array(o6hX,o6hX);break}if(!H304){TJ0D6();$9r1r(0,0,true,move[0],move[1])}}function start_gamestyleMover(st5A0){if(st5A0&&st5A0.preventDefault())st5A0.preventDefault();if(!H304){TJ0D6();var m7w=f06();$9r1r(m7w[0],m7w[1],true,null,null)}}function recenter_map(){var TSs_F=E$4();var center=new Array(round((g_baseMapExt[0]/2)*TSs_F),round((g_baseMapExt[1]/2)*TSs_F));move(center[0],center[1],"to")}function P4Q13(){if(!H304){if(typeof(arguments[0])=="number")var m7w=new Array(arguments[0],arguments[1]);else var m7w=f06();TJ0D6();$9r1r(m7w[0],m7w[1],false,null,null)}}function N$6b(){H304=false}function $9r1r(tH7,IuW,vsb14,T2g,c2p7){if(H304){var g277=f06();var T4D_8=new Array();T4D_8[0]=g277[0]-tH7;T4D_8[1]=g277[1]-IuW;if(vsb14){T4D_8[0]=round(T4D_8[0]/2);T4D_8[1]=round(T4D_8[1]/2)}if(T2g!=null&&c2p7!=null){T4D_8=new Array(T2g,c2p7)}if(!_$5BS(0,T4D_8[0]))T4D_8[0]=0;if(!_$5BS(1,T4D_8[1]))T4D_8[1]=0;_042H(T4D_8);H304=true;uIt4(T4D_8);tGicV(T4D_8);if(vsb14)setTimeout("$9r1r("+tH7+","+IuW+",true,"+T2g+","+c2p7+")",50);else setTimeout("$9r1r("+g277[0]+","+g277[1]+",false,"+T2g+","+c2p7+")",50)}else TA1p$()}function _$5BS(dir,T4D_8){var t8sJ5=p4LY9("currMapOff");var Kab1q=g_viewExt[dir]/2;var w5H=g_viewExt[dir]/2;if((t8sJ5[dir]+T4D_8<=w5H||T4D_8<0)&&((-(t8sJ5[dir]+T4D_8)+Kab1q)<(g_baseMapExt[dir]*E$4())||T4D_8>0))return true;else return false}function SKQ5(){if(HX65V(f06())&&!H304&&!X74){move(0,0,'mouse')}}function move(YM746,ls8,type){if(!H304&&!X74){switch(type){case "mouse":var Cb34y=nnc0();break;case "to":var Cb34y=jTf8(new Array(YM746,ls8));break;default:var Cb34y=new Array(YM746,ls8);break}var _86H1=G5179(Cb34y);if(_86H1[0]==0)Cb34y[0]=0;if(_86H1[1]==0)Cb34y[1]=0;TJ0D6();Pd4X(0,0,Math.abs(Cb34y[0]),Math.abs(Cb34y[1]),_86H1[0],_86H1[1])}}function G5179(R8I){var _86H1=new Array();_86H1[0]=round(Math.abs(R8I[0]/w6o));_86H1[1]=round(Math.abs(R8I[1]/w6o));if(_86H1[0]>L8n){_86H1[1]=round(_86H1[1]*(L8n/_86H1[0]));_86H1[0]=L8n}if(_86H1[1]>L8n){_86H1[0]=round(_86H1[0]*(L8n/_86H1[1]));_86H1[1]=L8n}if(R8I[0]<0)_86H1[0]=-_86H1[0];if(R8I[1]<0)_86H1[1]=-_86H1[1];return _86H1}function Pd4X(l78w,F47,S79,RD4,_w81,hqCl){if((l78w<S79)||(F47<RD4)){l78w+=Math.abs(_w81);F47+=Math.abs(hqCl);T4D_8=new Array(_w81,hqCl);if(!_$5BS(0,T4D_8[0]))T4D_8[0]=0;if(!_$5BS(1,T4D_8[1]))T4D_8[1]=0;_042H(T4D_8);uIt4(T4D_8);tGicV(T4D_8);setTimeout("Pd4X("+l78w+","+F47+","+S79+","+RD4+","+_w81+","+hqCl+")",jb2)}else{TA1p$()}}function uIt4(R8I){var ei1=o0Qf();var u3_$=o8S85();if((u3_$[0]+R8I[0])<=CPR_9){KK146();var pJ8=new Array($l4+(-CPR_9+u3_$[0]),u3_$[1]);E670Y(pJ8)}if((u3_$[0]+R8I[0])>=$l4){aIM8();var pJ8=new Array(CPR_9+(u3_$[0]-$l4),u3_$[1]);O6mw0(pJ8)}u3_$=o8S85();if((u3_$[1]+R8I[1])<=WL_cN){a6k();var pJ8=new Array(u3_$[0],i8Xb+(-WL_cN+u3_$[1]));r137(pJ8)}if((u3_$[1]+R8I[1])>=i8Xb){Lr14();var pJ8=new Array(u3_$[0],WL_cN+(u3_$[1]-i8Xb));t09yS(pJ8)}for(var cr14=0;cr14<ei1[1];cr14 ++ ){for(var Ym1=0;Ym1<ei1[0];Ym1 ++ ){km47(Q723(Ym1,cr14),R8I)}}}function t09yS(u3_$){for(var Xh8L=0;Xh8L<d8a[0].length;Xh8L ++){var t8sJ5=new Array(Xh8L*g_tSize[0]+u3_$[0],u3_$[1]);var src=KO8l(g_picUL[0]+Xh8L,g_picUL[1]-1);b$_4(t8sJ5,g_tSize,src,Q723(Xh8L,0),element(NBFRy))}g_picUL[1]--}function r137(u3_$){for(var Xh8L=0;Xh8L<d8a[0].length;Xh8L ++){var t8sJ5=new Array(Xh8L*g_tSize[0]+u3_$[0],((d8a.length-1)*g_tSize[1])+u3_$[1]);var src=KO8l(g_picUL[0]+Xh8L,g_picUL[1]+d8a.length);b$_4(t8sJ5,g_tSize,src,Q723(Xh8L,d8a.length-1),element(NBFRy))}g_picUL[1]++}function O6mw0(u3_$){for(var Xh8L=0;Xh8L<d8a.length;Xh8L ++){var t8sJ5=new Array(u3_$[0],Xh8L*g_tSize[1]+u3_$[1]);var src=KO8l(g_picUL[0]-1,g_picUL[1]+Xh8L);b$_4(t8sJ5,g_tSize,src,Q723(0,0+Xh8L),element(NBFRy))}g_picUL[0]--}function E670Y(u3_$){for(var Xh8L=0;Xh8L<d8a.length;Xh8L ++){var t8sJ5=new Array(((d8a[0].length-1)*g_tSize[0])+u3_$[0],Xh8L*g_tSize[1]+u3_$[1]);var src=KO8l(g_picUL[0]+d8a[0].length,g_picUL[1]+Xh8L);b$_4(t8sJ5,g_tSize,src,Q723(d8a[0].length-1,Xh8L),element(NBFRy))}g_picUL[0]++}function a6k(){var ei1=o0Qf();for(var xV12Y=0;xV12Y<ei1[0];xV12Y ++){var id=Q723(0+xV12Y,0);delete_obj(id[0]+"_"+id[1])}f2n2$()}function Lr14(){var ei1=o0Qf();for(var xV12Y=0;xV12Y<ei1[0];xV12Y ++){var id=Q723(0+xV12Y,ei1[1]-1);delete_obj(id[0]+"_"+id[1])}_5hp()}function KK146(){var ei1=o0Qf();for(var xV12Y=0;xV12Y<ei1[1];xV12Y ++){var id=Q723(0,xV12Y);delete_obj(id[0]+"_"+id[1])}AVQ3l()}function aIM8(){var ei1=o0Qf();for(var xV12Y=0;xV12Y<ei1[1];xV12Y ++){var id=Q723(ei1[0]-1,xV12Y);delete_obj(id[0]+"_"+id[1])}R6sl()}function nnc0(){var R32=dG1();var K2TB=f06();var R8I=new Array();R8I[0]=-(K2TB[0]-R32[0]);R8I[1]=-(K2TB[1]-R32[1]);return R8I}function jTf8(x0i2){var R32=dG1();var t9Sx=lkF(R32,"map");var Icf68=new Array();Icf68[0]=-(x0i2[0]-t9Sx[0]);Icf68[1]=-(x0i2[1]-t9Sx[1]);return Icf68}function dG1(){var ei1=o0Qf();var R32=new Array();R32[0]=g_viewOff[0]+round(g_viewExt[0]/2);R32[1]=g_viewOff[1]+round(g_viewExt[1]/2);return R32}function lkF(wA83,type){var kw9=g_viewOff;var Q5753=p4LY9("currMapOff");var cU46=new Array();var $U8=1;if(type=="map")$U8=-1;cU46[0]=wA83[0]+Q5753[0]*$U8+kw9[0]*$U8;cU46[1]=wA83[1]+Q5753[1]*$U8+kw9[1]*$U8;return cU46}function o8S85(){var id=Q723(0,0);var img=element(id[0]+"_"+id[1]);return new Array(ps83x(img.style.left),ps83x(img.style.top))}function Fb8(WX66P){g_maptileimageDir=WX66P;_9P3h();t4h()}
