/*
HTML Imagemapper 10 AJAX
alta4 Geoinformatik 2006
14.07.2006 - 1.0
http://imagemapper.alta4.com
*/
Srs2c=8;Mwx_=9;DC2=10;_q9=12;JmoV=8;qMWE$=11;h2H=13;HtQ=3;_e6=2;VH4Ci=6;TV95=4;Vg_v=3;B3935=5;qpC=5;cqr$=5;uBO01=6;__j=5;nOCf3=6;function startUp(){nch84();config_IM();setTimeout("Fmo()",250)}function Fmo(){document.getElementsByTagName("body")[0].innerHTML+="<h3 style='position:absolute; top:"+g_viewOff[1]+round(g_viewExt[1]/2)+"px; left:"+g_viewOff[0]+"px; width:"+g_viewExt[0]+"px; text-align:center; '>loading HTML ImageMapper 10 AJAX ...</h3>";_1$ph();r9Qn();u26();Upb1();VDo80();G9i();setTimeout("D6k('R0S()')",250)}function D6k(k79){var qRaR0=true;for(var item in _1UxE){if(!_1UxE[item].complete){qRaR0=false;break}}(qRaR0)?setTimeout(k79,1):setTimeout("D6k('"+k79+"')",500)}function R0S(){YN3O_();H$CBj();ini_ovMap();ini_legend();_946();create_lists();v7R7();v634M();o27R1();_76Ov();TyH8();j617T();$881();S4Ub();QG6();o9h();;update_ovMapCrosshair();X51j();if(g_postToMapGallery)s1n06();try{g_searchFields=g_defaultSearchField.concat(g_searchFields)}catch(XjC8o){}Y91()}function i13(){delete_obj(g_areaCon);delete_obj(g_areaLay);hide_popup(P8X);clear(element(EtSg6));fL8u()}function p$d7A(FU62p,U45H7){SV3f(FU62p);YN3O_();r9Qn();u26();clear(element(H55e));H$CBj();_76Ov();TyH8();v634M();update_ovMapCrosshair();x1hs();v7R7();o9h();o27R1();X51j();Y91()}function h43hT(){Nssg7=true;delete_obj(g_areaCon);delete_obj(g_areaLay);hide_popup(P8X);clear(element(EtSg6));fL8u()}function S8QB1(){Nssg7=false;TyH8();X51j();update_ovMapCrosshair();Y91()}function Oo3Y5(){}CHmq=new Array();function Ku13(s39){CHmq.push(s39)}function N5A9(){if(CHmq.length>0){var R_B2=CHmq[0];CHmq.shift();return R_B2}else{return false}}function Y91(){var B0Pg_=N5A9();if(B0Pg_)setTimeout(B0Pg_,5)}function nch84(){$KI6=document.getElementsByTagName("body")[0];o86_8=document.getElementsByTagName("head")[0]}function Ca62(B9jw,size,id,CD8,em2G,parent){var MIr1=fK0("div");MIr1.setAttribute("id",id);Q075(MIr1,B9jw,size,null);if(CD8!=null){for(var item in CD8)MIr1.setAttribute(item,CD8[item])}if(em2G!=null){for(var item in em2G)MIr1.style[item]=em2G[item]}q8N1(parent,MIr1)}function clear($v1){if($v1)$v1.innerHTML=""}function j8XR(R51Yc){var s118=R51Yc;if(R51Yc>100)s118=s118-Math.floor(s118/100)*100;if((s118%2)==0)return true;else return false}function oyC(Y$Ep){if(isNaN(Y$Ep[0]))Y$Ep.sort();else Y$Ep.sort($64);var JEg=new Array();JEg.push(Y$Ep[0]);for(var item=1;item<Y$Ep.length;item++){if(Y$Ep[item]!=JEg[JEg.length-1])JEg.push(Y$Ep[item])}return JEg}function $64(a,b){return a-b}function delete_obj(id){if(element(id)){var $v1=element(id);var parent=$v1.parentNode;var P70s8=parent.removeChild($v1)}}function Q075($v1,B9jw,size,SF814){if(typeof($v1)=="object"){var Yi35V=$v1.style;if(B9jw!=null){Yi35V.position="absolute";if(!isNaN(B9jw[0]))Yi35V.left=B9jw[0]+"px";if(!isNaN(B9jw[1]))Yi35V.top=B9jw[1]+"px"}if(size!=null){if(!isNaN(size[0]))Yi35V.width=size[0]+"px";if(!isNaN(size[1]))Yi35V.height=size[1]+"px"}if(SF814!=null)Yi35V.visibility=SF814}}function element(id){return document.getElementById(id)}function fK0(element){return document.createElement(element)}function round(MxF5){return Math.round(MxF5)}function hide(id){if(element(id))element(id).style.visibility="hidden"}function SF814(id){if(element(id))element(id).style.visibility="visible"}function S78($v1,ar24L){q8N1($v1,document.createTextNode(ar24L))}function q8N1($v1,q8N1){if($v1&&q8N1)$v1.appendChild(q8N1)}function mX5(i){var b43A=i.length;if(i.substring((b43A-2),b43A)=="px"){i=i.substring(0,(b43A-2));i=parseInt(i,10)}return i}function do1(){var F04_3=new Date();return F04_3.getTime()}function A12Gh(input,Yxb){for(var item in input)Yxb[item]=input[item]}u16();function u16(){lGN3_=new Array()}function g39(A12D9,value){if(typeof(value)=="object"){lGN3_[A12D9]=new Array();for(var item in value){lGN3_[A12D9][item]=value[item]}}else lGN3_[A12D9]=value}function f9_(A12D9){if(typeof(lGN3_[A12D9])!="undefined")return lGN3_[A12D9];else return false}function print_item(id,v003v,coords){switch(id){case "map":var G1d0_=new Array("map",Gjs71);g39("printItem",G1d0_);open_printWindow();break;case "dB":var Gjs71="<table class=\"printDBTable\"><tr>";var sy93X=1;for(var b16_ in j0dk){Gjs71+="<td>"+aQ$8x(j0dk[b16_][0],false)+"</td>";if(sy93X==3){Gjs71+="</tr><tr>";sy93X=1}sy93X++}Gjs71+="</tr></table>";var G1d0_=new Array("dB",Gjs71);g39("printItem",G1d0_);open_printWindow();break;case "dD":var G1d0_=new Array("dD",element(K28cC+"_resultCon").innerHTML);g39("printItem",G1d0_);open_printWindow();break;default:var hVt14=$M3O(id);var E6C=aQ$8x(id,false);var U3166=$Sq92(coords);var G1d0_=new Array(id,E6C,coords);g39("printItem",G1d0_);Ku13("open_printWindow()");move(U3166[0],U3166[1],'to');break}}function open_printWindow(){var width=700;var Wj5=window.open("print.html","HTMLImagemapperPrintDialog","top=50,left=50,height=650,width="+width+",resizable=yes,scrollbars=yes,menubar=yes");Wj5.focus()}function v7R7(){if(g_logoSize[1]>=80)var p14=g_logoSize[1];else var p14=80;p14+=10;if(g_hasInfoBar){if(!element("infoBar")){Ca62(g_viewOff,new Array(g_viewExt[0],p14),"infoBar",null,null,$KI6);qf2$();Ul86();v21()}HC07(element("infoBar"),0.6);var style=element("infoBar").style;style.backgroundColor="#fff";style.zIndex=TV95}}function qf2$(){if(g_hasInfoBar&g_hasTitle){var _74=fK0("div");_74.id="titleCon";q8N1(element("infoBar"),_74);S78(element("titleCon"),g_title);var style=element("titleCon").style;style.position="absolute";style.top="5px";style.right="5px";style.fontSize="20px";style.textAlign="right"}}function Ul86(){if(g_hasInfoBar&&g_hasComments){var N136=fK0("div");N136.id="authorInfoCon";N136.innerHTML=g_authorInfo;q8N1(element("infoBar"),N136);var style=element("authorInfoCon").style;style.position="absolute";style.bottom="5px";style.right="5px";style.textAlign="right"}}function v21(){if(g_hasInfoBar&g_hasLogo){var _A68=fK0("div");_A68.id="logoCon";q8N1(element("infoBar"),_A68);var style=element("logoCon").style;style.position="absolute";style.top="5px";style.left="5px";var k08i5=M9v(g_logoPath,g_logoSize,"logo",null,"");q8N1(element("logoCon"),k08i5)}}function j617T(){var x5F0S=40;var YOT=new Array(40,40);var frame=fK0("img");frame.src=g_designDir+"frame.gif";frame.id="bottomFrame";frame.width=g_viewExt[0];frame.height=x5F0S;frame.style.position="absolute";frame.style.top=g_viewExt[1]+g_viewOff[1]-x5F0S+"px";frame.style.left=g_viewOff[0]+"px";frame.style.zIndex=B3935;q8N1($KI6,frame);var $X8=fK0("img");$X8.src=g_designDir+"frameCorner.gif";$X8.id="bottomFrameCorner";$X8.width=YOT[0];$X8.height=YOT[1];$X8.style.position="absolute";$X8.style.top=g_viewExt[1]+g_viewOff[1]-YOT[1]+"px";$X8.style.left=g_viewOff[0]+"px";$X8.style.zIndex=qpC;q8N1($KI6,$X8)}function _A6(v003v,x,y){set_zoomLevel(parseInt(v003v));var w1l5=new Array(parseInt(x)-g_viewExt[0]/2,parseInt(y)-g_viewExt[1]/2);g_picUL=new Array(Math.floor(w1l5[0]/g_tSize[0]),Math.floor(w1l5[1]/g_tSize[1]));g_iniPxDelta=new Array(g_tSize[0]-round(w1l5[0]-(g_picUL[0]*g_tSize[0])),g_tSize[1]-round(w1l5[1]-(g_picUL[1]*g_tSize[1])))}function urlHandler(){var D86d=window.location.search;if(D86d!=''){var q76m=new RegExp("#","");D86d=D86d.replace(q76m,"");D86d=D86d.substring(1,D86d.length);if(D86d.indexOf("&")!=-1){var p79y5=D86d.split("&");var mS69=new Array();for(var i=0;i<p79y5.length;i++){mS69[i]=p79y5[i].split("=");s50(mS69[i])}}else{var mS69=new Array();mS69[0]=D86d.split("=");s50(mS69[0])}}}function s50(G753R){if(G753R[0]=="center"){var d_52=G753R[1].split("_");_A6(d_52[0],d_52[1],d_52[2])}}function posCalc(){hP5=new Array(g_viewExt[0]-250,80);_$6=new Array((g_viewOff[0]+g_viewExt[0]-225),round(g_viewOff[1]+g_viewExt[1]-475));A08=new Array(g_viewOff[0]+g_viewExt[0]-300,g_viewOff[0]+100);x5Nb=new Array(round((g_viewExt[0]/2)-(s02n/2)),g_viewExt[1]-100);Y5y4C=new Array(g_viewOff[0]+g_viewExt[0]-450,g_viewOff[1]+150);if(g_viewPosType=="%"){var pB9=new Array();if(document.all)pB9=new Array(document.body.clientWidth,document.body.clientHeight);else pB9=new Array(window.innerWidth,window.innerHeight);g_viewOff=new Array(round(g_viewOff[0]/100*pB9[0]),round(g_viewOff[1]/100*pB9[1]));g_viewExt=new Array(round(g_viewExt[0]/100*pB9[0]),round(g_viewExt[1]/100*pB9[1]))}_A6(0,round((g_baseMapExt[0]*g_zoomFactors[0])/2),round((g_baseMapExt[1]*g_zoomFactors[0])/2))}function s1n06(){var H1o23="http://www.alta4.com/scripts/im_examplesCounter.php?site="+location.href;H1o23+="&author="+encodeURIComponent(g_mapGalleryAuthor);H1o23+="&title="+encodeURIComponent(g_mapGalleryTitle);H1o23+="&comment="+encodeURIComponent(g_mapGalleryComment);H1o23+="&copyright="+encodeURIComponent(g_mapGalleryCopyright);H1o23+="&email="+encodeURIComponent(g_mapGalleryEmail);H1o23+="&industryId="+encodeURIComponent(g_mapGalleryIndustryId);H1o23+="&industryText="+encodeURIComponent(g_mapGalleryIndustryText);H1o23+="&UL_X="+g_rwUL[0];H1o23+="&UL_Y="+g_rwUL[1];H1o23+="&LR_X="+g_rwLR[0];H1o23+="&LR_Y="+g_rwLR[1];H1o23+="&coordSys="+encodeURIComponent(g_coordSys);var G00_=g_zoomFactors[0];for(var i=1;i<g_zoomFactors.length;i++)G00_+=";"+g_zoomFactors[i];H1o23+="&zoomFactors="+G00_;var jxA=fK0("script");jxA.setAttribute("type","text/javascript");jxA.setAttribute("src",H1o23);jxA.setAttribute("id",H1o23);q8N1(document.getElementsByTagName("head")[0],jxA)}function $881(){if(g_hasSearch){var u74_=fK0("div");u74_.id="frameSearchCon";u74_.style.zIndex=cqr$;u74_.style.verticalAlign="bottom";var B9jw=35;u74_.style.position="absolute";u74_.style.left=g_viewOff[0]+45+"px";u74_.style.top=g_viewOff[1]+g_viewExt[1]-B9jw+"px";var search=r50("frameSearchInput",15,"");q8N1(u74_,search);var n39=M9v(g_designDir+"search.gif",null,"simpleSearch","javascript:search('simple');","");q8N1(u74_,n39);q8N1($KI6,u74_)}}function S4Ub(){var u74_=fK0("div");u74_.id="windowsButtonsCon";u74_.style.zIndex=cqr$;var QxE="<table cellpadding='0' cellspacing='0' border='0'><tr>";if(g_hasSearch)QxE+="<td>"+XFH1("search",l_advancedSearch,"toggle_search();")+"</td>";if(g_hasOvMap)QxE+="<td>"+XFH1("ovMap",l_ovMap,"toggle_ovMap();")+"</td>";if(g_hasLegend)QxE+="<td>"+XFH1("legend",l_legend,"toggle_legend();")+"</td>";if(g_hasLists)QxE+="<td>"+XFH1("lists",l_lists,"toggle_lists();")+"</td>";QxE+="<td>"+XFH1("print",l_print,"print_item(\"map\",0,\"\");")+"</td>";u74_.style.position="absolute";u74_.style.left=g_viewOff[0]+205+"px";u74_.style.top=g_viewOff[1]+g_viewExt[1]-38+"px";u74_.style.height=35+"px";if(document.all&&navigator.appName=="Opera")u74_.style.width=500+"px";q8N1($KI6,u74_);element("windowsButtonsCon").innerHTML+=QxE+"<td id='rwInfoCon' class='rwConStyle' ></td></table>";if(element("search_knob"))xi7s(element("search_knob"));if(element("ovMap_knob"))xi7s(element("ovMap_knob"));if(element("legend_knob"))xi7s(element("legend_knob"));if(element("lists_knob"))xi7s(element("lists_knob"));if(element("print_knob"))xi7s(element("print_knob"))}function xi7s($v1){if(document.all)$v1.style.cursor="hand";else $v1.style.cursor="pointer"}function toggle_search(){if(j7_D=="simple"){j7_D="advanced";create_dD()}else{j7_D="advanced";if(element(K28cC+"_attlayer")&&element(K28cC+"_attlayer").style.visibility=="visible"){setSimple();hider(K28cC)}else create_dD()}}function toggle_ovMap(){if(element("ovMap_attlayer")&&element("ovMap_attlayer").style.visibility=="visible"){delete_crosshair();hider('ovMap')}else{ini_ovMap();update_ovMapCrosshair()}}function toggle_lists(){if(element(y14P+"_attlayer")&&element(y14P+"_attlayer").style.visibility=="visible")hider(y14P);else create_lists()}function toggle_legend(){if(element("legend_attlayer")&&element("legend_attlayer").style.visibility=="visible")hider("legend");else ini_legend()}function E182(){return true}function Ah59f(){return false}function o9h(){if(g_hasCopyrightInfo){if(!element("copyrightInfo")){var p=fK0("p");p.style.position="absolute";p.style.top=(g_viewOff[1]+g_viewExt[1]-100)+"px";p.style.left=g_viewOff[0]+"px";p.style.width=g_viewExt[0]+"px";p.style.textAlign="center";p.id="copyrightInfo";q8N1($KI6,p)}if(element("copyrightInfo")){var p=element("copyrightInfo");p.innerHTML=g_copyrightInfo[A57()];p.style.zIndex=Vg_v}}}function XFH1(id,ar24L,action){var Gjs71="<div onmousedown='"+action+"'>";Gjs71+='<table class="buttonTable" id="'+id+'_knob" cellpadding="0" cellspacing="0">';Gjs71+='  <tr>';Gjs71+='    <td><img src="design/button_lo.gif" width="1" height="1" alt=""></td>';Gjs71+='    <td style="background:url(design/button_lo.gif) repeat-x; " ></td>';Gjs71+='    <td><img src="design/button_ro.gif" width="2" height="1" alt=""></td>';Gjs71+='  </tr>';Gjs71+='  <tr>';Gjs71+='    <td style="background:url(design/button_lo.gif) repeat-y; " width="1"></td>';Gjs71+='    <td height="22" class="buttonContainer">'+ar24L+'</td>';Gjs71+='    <td style="background:url(design/button_r.gif) repeat-y; " width="2"></td>';Gjs71+='  </tr>';Gjs71+='  <tr>';Gjs71+='    <td><img src="design/button_lu.gif" width="1" height="2" alt=""></td>';Gjs71+='    <td style="background:url(design/button_u.gif) repeat-x; " height="2" ></td>';Gjs71+='    <td><img src="design/button_ru.gif" width="2" height="2" alt=""></td>';Gjs71+='  </tr>';Gjs71+='</table>';Gjs71+='</div>';return Gjs71}