/*
HTML Imagemapper 10 AJAX
alta4 Geoinformatik 2006
02.08.2006 - 10.0.22
http://www.alta4.com
*/
YC0=8;bO4nT=9;tEq6=10;ak16=12;AHr2=8;v14U=11;_bn3f=13;Po3=3;MNta=2;Lud7=6;GFV=4;C$54b=3;VV89=5;C126I=5;nnM=5;j1T=6;tj54=5;avL2j=6;function startUp(){__07();config_IM();setTimeout("f9M39()",250)}function f9M39(){document.getElementsByTagName("body")[0].innerHTML+="<h3 id='loadingTxt' 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 Love County, OK ...</h3>";h726();GY7();d7j4();U66y();t22l2();AI82u();setTimeout("D0pI('nS1()')",250)}function D0pI(j9P4){var YY2x=true;for(var item in C65B1){if(!C65B1[item].complete){YY2x=false;break}}(YY2x)?setTimeout(j9P4,1):setTimeout("D0pI('"+j9P4+"')",500)}function nS1(){JU717();$V18();ini_ovMap();ini_legend();lBJ79();create_lists();N1517();C7c();Xy47n();xk1_I();U4D();O85();vOQ();Qk4t();P9hE();sNX();;update_ovMapCrosshair();_iG9();if(g_postToMapGallery)hN529();try{g_searchFields=g_defaultSearchField.concat(g_searchFields)}catch($n08){}delete_obj('loadingTxt');Ut583()}function W52L(){delete_obj(g_areaCon);delete_obj(g_areaLay);hide_popup(GBobU);clear(element(vruw));X_$4()}function vs0(r1BFd,ijiM){VBb11(r1BFd);JU717();GY7();d7j4();clear(element($0j));$V18();xk1_I();U4D();C7c();update_ovMapCrosshair();j98();N1517();sNX();Xy47n();_iG9();Ut583()}function EaB(){sa6=true;delete_obj(g_areaCon);delete_obj(g_areaLay);hide_popup(GBobU);clear(element(vruw));X_$4()}function A212N(){sa6=false;U4D();_iG9();update_ovMapCrosshair();Ut583()}function R5F6(){}nH4=new Array();function rB6(Is4){nH4.push(Is4)}function _I9(){if(nH4.length>0){var op1=nH4[0];nH4.shift();return op1}else{return false}}function Ut583(){var Mb5CO=_I9();if(Mb5CO)setTimeout(Mb5CO,5)}p9m=null;x58D6=null;function __07(){p9m=document.getElementsByTagName("body")[0];x58D6=document.getElementsByTagName("head")[0]}function Y_D(G1p7,size,id,m2R$,i8L6B,parent){var Li03=V$8O7("div");Li03.setAttribute("id",id);a3r(Li03,G1p7,size,null);if(m2R$!=null){for(var item in m2R$)Li03.setAttribute(item,m2R$[item])}if(i8L6B!=null){for(var item in i8L6B)Li03.style[item]=i8L6B[item]}a$sTG(parent,Li03)}function clear(E1i56){if(E1i56)E1i56.innerHTML=""}function Bde9(FM_){var _913U=FM_;if(FM_>100)_913U=_913U-Math.floor(_913U/100)*100;if((_913U%2)==0)return true;else return false}function Pi2(f0F){if(isNaN(f0F[0]))f0F.sort();else f0F.sort(cXK);var y38qP=new Array();y38qP.push(f0F[0]);for(var item=1;item<f0F.length;item++){if(f0F[item]!=y38qP[y38qP.length-1])y38qP.push(f0F[item])}return y38qP}function cXK(a,b){return a-b}function delete_obj(id){if(element(id)){var E1i56=element(id);var parent=E1i56.parentNode;var _w87u=parent.removeChild(E1i56)}}function a3r(E1i56,G1p7,size,$PS){if(typeof(E1i56)=="object"){var j27=E1i56.style;if(G1p7!=null){j27.position="absolute";if(!isNaN(G1p7[0]))j27.left=G1p7[0]+"px";if(!isNaN(G1p7[1]))j27.top=G1p7[1]+"px"}if(size!=null){if(!isNaN(size[0]))j27.width=size[0]+"px";if(!isNaN(size[1]))j27.height=size[1]+"px"}if($PS!=null)j27.visibility=$PS}}function element(id){return document.getElementById(id)}function V$8O7(element){return document.createElement(element)}function round(_40){return Math.round(_40)}function hide(id){if(element(id))element(id).style.visibility="hidden"}function $PS(id){if(element(id))element(id).style.visibility="visible"}function TIdu(E1i56,I6M){a$sTG(E1i56,document.createTextNode(I6M))}function a$sTG(C9to2,W87E6){if(C9to2&&W87E6)C9to2.appendChild(W87E6)}function y864_(i){var CHYcx=i.length;if(i.substring((CHYcx-2),CHYcx)=="px"){i=i.substring(0,(CHYcx-2));i=parseInt(i,10)}return i}function NG4p(){var I11=new Date();return I11.getTime()}function __070(input,W1A3){for(var item in input)W1A3[item]=input[item]}j48W();function j48W(){j3x0S=new Array()}function BJR98(JSmK,value){if(typeof(value)=="object"){j3x0S[JSmK]=new Array();for(var item in value){j3x0S[JSmK][item]=value[item]}}else j3x0S[JSmK]=value}function GEP57(JSmK){if(typeof(j3x0S[JSmK])!="undefined")return j3x0S[JSmK];else return false}function print_item(id,j2hr,coords){switch(id){case "map":var Bwxw=new Array("map",qAO);BJR98("printItem",Bwxw);open_printWindow();break;case "dB":var qAO="<table class=\"printDBTable\"><tr>";var cD05q=1;for(var F4c8 in mbl3){qAO+="<td>"+V4R3c(mbl3[F4c8][0],false)+"</td>";if(cD05q==3){qAO+="</tr><tr>";cD05q=1}cD05q++}qAO+="</tr></table>";var Bwxw=new Array("dB",qAO);BJR98("printItem",Bwxw);open_printWindow();break;case "dD":var Bwxw=new Array("dD",element(MXe+"_resultCon").innerHTML);BJR98("printItem",Bwxw);open_printWindow();break;default:var j2j32=y91(id);var tc84a=V4R3c(id,false);var Ab397=$270(coords);var Bwxw=new Array(id,tc84a,coords);BJR98("printItem",Bwxw);rB6("open_printWindow()");move(Ab397[0],Ab397[1],'to');break}}function open_printWindow(){var width=700;var Itr=window.open("print.html","HTMLImagemapperPrintDialog","top=50,left=50,height=650,width="+width+",resizable=yes,scrollbars=yes,menubar=yes");Itr.focus()}function N1517(){if(g_logoSize[1]>=80)var XxD8L=g_logoSize[1];else var XxD8L=80;XxD8L+=10;if(g_hasInfoBar){if(!element("infoBar")){Y_D(g_viewOff,new Array(g_viewExt[0],XxD8L),"infoBar",null,null,p9m);y7$I();xU9();lB462()}i3$(element("infoBar"),0.6);var style=element("infoBar").style;style.backgroundColor="#fff";style.zIndex=GFV}}function y7$I(){if(g_hasInfoBar&g_hasTitle){var HcI=V$8O7("div");HcI.id="titleCon";a$sTG(element("infoBar"),HcI);element("titleCon").innerHTML=g_title;var style=element("titleCon").style;style.position="absolute";style.top="5px";style.right="5px";style.fontSize="20px";style.textAlign="right"}}function xU9(){if(g_hasInfoBar&&g_hasComments){var X137=V$8O7("div");X137.id="authorInfoCon";X137.innerHTML=g_authorInfo;a$sTG(element("infoBar"),X137);var style=element("authorInfoCon").style;style.position="absolute";style.bottom="5px";style.right="5px";style.textAlign="right"}}function lB462(){if(g_hasInfoBar&g_hasLogo){var Q701h=V$8O7("div");Q701h.id="logoCon";a$sTG(p9m,Q701h);var style=element("logoCon").style;style.position="absolute";style.top=(g_viewOff[1]+5)+"px";style.left=(g_viewOff[0]+5)+"px";style.zIndex=GFV+1;var Loj=B21(g_logoPath,g_logoSize,"logo",null,"");a$sTG(element("logoCon"),Loj)}}function O85(){var Bv647=40;var $3H=new Array(40,40);var frame=V$8O7("img");frame.src=g_designDir+"frame.gif";frame.id="bottomFrame";frame.width=g_viewExt[0];frame.height=Bv647;frame.style.position="absolute";frame.style.top=g_viewExt[1]+g_viewOff[1]-Bv647+"px";frame.style.left=g_viewOff[0]+"px";frame.style.zIndex=VV89;a$sTG(p9m,frame);var Yh2=V$8O7("img");Yh2.src=g_designDir+"frameCorner.gif";Yh2.id="bottomFrameCorner";Yh2.width=$3H[0];Yh2.height=$3H[1];Yh2.style.position="absolute";Yh2.style.top=g_viewExt[1]+g_viewOff[1]-$3H[1]+"px";Yh2.style.left=g_viewOff[0]+"px";Yh2.style.zIndex=C126I;a$sTG(p9m,Yh2)}function Is39(j2hr,x,y){set_zoomLevel(parseInt(j2hr));var Ts39=new Array(parseInt(x)-g_viewExt[0]/2,parseInt(y)-g_viewExt[1]/2);g_picUL=new Array(Math.floor(Ts39[0]/g_tSize[0]),Math.floor(Ts39[1]/g_tSize[1]));g_iniPxDelta=new Array(g_tSize[0]-round(Ts39[0]-(g_picUL[0]*g_tSize[0])),g_tSize[1]-round(Ts39[1]-(g_picUL[1]*g_tSize[1])))}function urlHandler(){var h5Ie=window.location.search;if(h5Ie!=''){var w49=new RegExp("#","");h5Ie=h5Ie.replace(w49,"");h5Ie=h5Ie.substring(1,h5Ie.length);if(h5Ie.indexOf("&")!=-1){var C4784=h5Ie.split("&");var m32=new Array();for(var i=0;i<N$T.length;i++){m32[i]=N$T[i].split("=");LR9N(m32[i])}}else{var m32=new Array();m32[0]=h5Ie.split("=");LR9N(m32[0])}}}function LR9N(TIf3){if(TIf3[0]=="center"){var _5Ovj=TIf3[1].split("_");Is39(_5Ovj[0],_5Ovj[1],_5Ovj[2])}if(TIf3[0]=="showinmap"){var _5Ovj=TIf3[1].split("_");var U34E="showinmap("+_5Ovj[0]+","+_5Ovj[1]+",'"+_5Ovj[2]+"')";rB6(U34E)}}function posCalc(){qE1=new Array(g_viewExt[0]-250,80);$qOb=new Array((g_viewOff[0]+g_viewExt[0]-225),round(g_viewOff[1]+g_viewExt[1]-475));c5L=new Array(g_viewOff[0]+g_viewExt[0]-300,g_viewOff[0]+100);xp_q=new Array(round((g_viewExt[0]/2)-(uH3t9/2)),g_viewExt[1]-100);U4_=new Array(g_viewOff[0]+g_viewExt[0]-450,g_viewOff[1]+150);if(g_viewPosType=="%"){var J64mr=new Array();if(document.all)J64mr=new Array(document.body.clientWidth,document.body.clientHeight);else J64mr=new Array(window.innerWidth,window.innerHeight);g_viewOff=new Array(round(g_viewOff[0]/100*J64mr[0]),round(g_viewOff[1]/100*J64mr[1]));g_viewExt=new Array(round(g_viewExt[0]/100*J64mr[0]),round(g_viewExt[1]/100*J64mr[1]))}Is39(0,round((g_baseMapExt[0]*g_zoomFactors[0])/2),round((g_baseMapExt[1]*g_zoomFactors[0])/2))}function hN529(){var X0$_4="http://www.alta4.com/scripts/im_examplesCounter.php?site="+location.href;X0$_4+="&author="+encodeURIComponent(g_mapGalleryAuthor);X0$_4+="&title="+encodeURIComponent(g_mapGalleryTitle);X0$_4+="&comment="+encodeURIComponent(g_mapGalleryComment);X0$_4+="&copyright="+encodeURIComponent(g_mapGalleryCopyright);X0$_4+="&email="+encodeURIComponent(g_mapGalleryEmail);X0$_4+="&industryId="+encodeURIComponent(g_mapGalleryIndustryId);X0$_4+="&industryText="+encodeURIComponent(g_mapGalleryIndustryText);X0$_4+="&UL_X="+g_rwUL[0];X0$_4+="&UL_Y="+g_rwUL[1];X0$_4+="&LR_X="+g_rwLR[0];X0$_4+="&LR_Y="+g_rwLR[1];X0$_4+="&coordSys="+encodeURIComponent(g_coordSys);var jsXG=g_zoomFactors[0];for(var i=1;i<g_zoomFactors.length;i++)jsXG+=";"+g_zoomFactors[i];X0$_4+="&zoomFactors="+jsXG;var H96$5=V$8O7("script");H96$5.setAttribute("type","text/javascript");H96$5.setAttribute("src",X0$_4);H96$5.setAttribute("id",X0$_4);a$sTG(document.getElementsByTagName("head")[0],H96$5)}function vOQ(){if(g_hasSearch){var Jg990=V$8O7("div");Jg990.id="frameSearchCon";Jg990.style.zIndex=nnM;Jg990.style.verticalAlign="bottom";var G1p7=35;Jg990.style.position="absolute";Jg990.style.left=g_viewOff[0]+45+"px";Jg990.style.top=g_viewOff[1]+g_viewExt[1]-G1p7+"px";var search=Y2O("frameSearchInput",15,"");a$sTG(Jg990,search);var U09$=B21(g_designDir+"search.gif",null,"simpleSearch","javascript:search('simple');","");a$sTG(Jg990,U09$);a$sTG(p9m,Jg990)}}function Qk4t(){var Jg990=V$8O7("div");Jg990.id="windowsButtonsCon";Jg990.style.zIndex=nnM;var Cqi="<table cellpadding='0' cellspacing='0' border='0'><tr>";if(g_hasSearch)Cqi+="<td>"+xBP8("search",l_advancedSearch,"toggle_search();")+"</td>";if(g_hasOvMap)Cqi+="<td>"+xBP8("ovMap",l_ovMap,"toggle_ovMap();")+"</td>";if(g_hasLegend)Cqi+="<td>"+xBP8("legend",l_legend,"toggle_legend();")+"</td>";if(g_hasLists)Cqi+="<td>"+xBP8("lists",l_lists,"toggle_lists();")+"</td>";if(g_hasPrintKnob)Cqi+="<td>"+xBP8("print",l_print,"print_item(\"map\",0,\"\");")+"</td>";Jg990.style.position="absolute";Jg990.style.left=g_viewOff[0]+205+"px";Jg990.style.top=g_viewOff[1]+g_viewExt[1]-38+"px";Jg990.style.height=35+"px";a$sTG(p9m,Jg990);element("windowsButtonsCon").innerHTML+=Cqi+"<td id='rwInfoCon' class='rwConStyle' ></td></table>";if(element("search_knob"))Ik4(element("search_knob"));if(element("ovMap_knob"))Ik4(element("ovMap_knob"));if(element("legend_knob"))Ik4(element("legend_knob"));if(element("lists_knob"))Ik4(element("lists_knob"));if(element("print_knob"))Ik4(element("print_knob"))}function Ik4(E1i56){if(document.all)E1i56.style.cursor="hand";else E1i56.style.cursor="pointer"}function toggle_search(){if(ee6u9=="simple"){ee6u9="advanced";create_dD()}else{ee6u9="advanced";if(element(MXe+"_attlayer")&&element(MXe+"_attlayer").style.visibility=="visible"){setSimple();hider(MXe)}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(x6m72+"_attlayer")&&element(x6m72+"_attlayer").style.visibility=="visible")hider(x6m72);else create_lists()}function toggle_legend(){if(element("legend_attlayer")&&element("legend_attlayer").style.visibility=="visible")hider("legend");else ini_legend()}function Qv0(){return true}function u49g(){return false}function sNX(){if(g_hasCopyrightInfo){if(!element("copyrightInfo")){var p=V$8O7("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";a$sTG(p9m,p)}if(element("copyrightInfo")){var p=element("copyrightInfo");p.innerHTML=g_copyrightInfo[tM97()];p.style.zIndex=C$54b}}}function xBP8(id,I6M,action){var qAO="<div onmousedown='"+action+"'>";qAO+='<table class="buttonTable" id="'+id+'_knob" cellpadding="0" cellspacing="0">';qAO+='  <tr>';qAO+='    <td><img src="design/button_lo.gif" width="1" height="1" alt=""></td>';qAO+='    <td style="background:url(design/button_lo.gif) repeat-x; " ></td>';qAO+='    <td><img src="design/button_ro.gif" width="2" height="1" alt=""></td>';qAO+='  </tr>';qAO+='  <tr>';qAO+='    <td style="background:url(design/button_lo.gif) repeat-y; " width="1"></td>';qAO+='    <td height="22" class="buttonContainer">'+I6M+'</td>';qAO+='    <td style="background:url(design/button_r.gif) repeat-y; " width="2"></td>';qAO+='  </tr>';qAO+='  <tr>';qAO+='    <td><img src="design/button_lu.gif" width="1" height="2" alt=""></td>';qAO+='    <td style="background:url(design/button_u.gif) repeat-x; " height="2" ></td>';qAO+='    <td><img src="design/button_ru.gif" width="2" height="2" alt=""></td>';qAO+='  </tr>';qAO+='</table>';qAO+='</div>';return qAO}
