/*
HTML ImageMapper AJAX NG version 11.0.15
29.10.2007 - Christoph Knote
--------------------------------------
*/
function startUp(){o15M();config_IM();setTimeout("IP2_K()",250)}function IP2_K(){document.getElementsByTagName("body")[0].innerHTML+="<p class='startUpMessage' 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; '>"+g_startUpMessage+"</p>";_m27x();e0N0();B00();QdK();DR7k1();m19();setTimeout("JTV7('F8144()')",250)}function JTV7(f_9){var Dg441=true;for(var item in G24V){if(!G24V[item].complete){Dg441=false;break}}(Dg441)?setTimeout(f_9,1):setTimeout("JTV7('"+f_9+"')",500)}function F8144(){$d8rN();aH9K();ini_ovMap();ini_legend();Ht99R();create_lists();yb6u();IWGKK();_t_();jFi();Ct$M0();T5990();s14Dq();L7E();bK$();Due24();update_ovMapCrosshair();c4B2();if(g_postToMapGallery)e8W1();try{g_searchFields=g_defaultSearchField.concat(g_searchFields)}catch(R96){}delete_obj('loadingTxt');DMN5()}function Kg3T(){delete_obj(g_areaCon);delete_obj(g_areaLay);hide_popup(wbJ9);clear(element(Ea6))}function $66(WQa,oc1){g_T3(WQa);$d8rN();e0N0();B00();clear(element(nJ94));aH9K();jFi();Ct$M0();IWGKK();update_ovMapCrosshair();AuVA();yb6u();bK$();_t_();c4B2();DMN5()}function EL$f5(){PXCB=true;delete_obj(g_areaCon);delete_obj(g_areaLay);hide_popup(wbJ9);clear(element(Ea6));r83y()}function Q891(w60C){}function _22C5(){PXCB=false;Ct$M0();c4B2();update_ovMapCrosshair();DMN5()}function Hxg(){}_6n=new Array();function r9G1(t46){_6n.push(t46)}function n6$(){if(_6n.length>0){var K393=_6n[0];_6n.shift();return K393}else{return false}}function DMN5(){var Y05=n6$();if(Y05)setTimeout(Y05,5)}function H2T1(){_6n=new Array()}VD0J=null;w3I=null;function o15M(){VD0J=document.getElementsByTagName("body")[0];w3I=document.getElementsByTagName("head")[0]}function B5v4(i4mL5,size,id,EW25,j82,parent){var n86_=j76("div");n86_.setAttribute("id",id);oDL(n86_,i4mL5,size,null);if(EW25!=null){for(var item in EW25)n86_.setAttribute(item,EW25[item])}if(j82!=null){for(var item in j82)n86_.style[item]=j82[item]}E_57$(parent,n86_)}function clear(st6){if(st6)st6.innerHTML=""}function element(id){return document.getElementById(id)}function delete_obj(id){if(element(id)){var st6=element(id);var parent=st6.parentNode;var Aua3=parent.removeChild(st6)}}function oDL(st6,i4mL5,size,_8pP3){if(typeof(st6)=="object"){var g5T=st6.style;if(i4mL5!=null){g5T.position="absolute";if(!isNaN(i4mL5[0]))g5T.left=i4mL5[0]+"px";if(!isNaN(i4mL5[1]))g5T.top=i4mL5[1]+"px"}if(size!=null){if(!isNaN(size[0]))g5T.width=size[0]+"px";if(!isNaN(size[1]))g5T.height=size[1]+"px"}if(_8pP3!=null)g5T.visibility=_8pP3}}function j76(element){return document.createElement(element)}function hide(id){if(element(id))element(id).style.visibility="hidden"}function _8pP3(id){if(element(id))element(id).style.visibility="visible"}function M2AO6(st6,fg6x){E_57$(st6,document.createTextNode(fg6x))}function E_57$(CBY,P44){if(CBY&&P44)CBY.appendChild(P44)}function V0IJ8(st6){if(document.all)st6.style.cursor="hand";else st6.style.cursor="pointer"}function Gc5_(x54TU){var _8I=x54TU;if(x54TU>100)_8I=_8I-Math.floor(_8I/100)*100;if((_8I%2)==0)return true;else return false}function mMK(_A6b){if(isNaN(_A6b[0]))_A6b.sort();else _A6b.sort(kx4);var R60G=new Array();R60G.push(_A6b[0]);for(var item=1;item<_A6b.length;item++){if(_A6b[item]!=R60G[R60G.length-1])R60G.push(_A6b[item])}return R60G}function ct69K(input,g00){for(var item in input)g00[item]=input[item]}function kx4(a,b){return a-b}function round(nvO){return Math.round(nvO)}function r59(i){var N58d=i.length;if(i.substring((N58d-2),N58d)=="px"){i=i.substring(0,(N58d-2));i=parseInt(i,10)}return i}function VCs(){var _W63=new Date();return _W63.getTime()}function O4qc(){return true}function _86(){return false}MX503();function MX503(){q945g=new Array()}function r$05i(S5Yv,value){if(typeof(value)=="object"){q945g[S5Yv]=new Array();for(var item in value){q945g[S5Yv][item]=value[item]}}else q945g[S5Yv]=value}function rUN(S5Yv){if(typeof(q945g[S5Yv])!="undefined")return q945g[S5Yv];else return false}function print_item(id,$15S9,coords){switch(id){case "map":var S3m=new Array("map",G5$4);r$05i("printItem",S3m);open_printWindow();break;case "dB":var G5$4="<table class=\"dashBoardPrintTable\"><tr>";var B6e=1;for(var smbhp in pL80I){G5$4+="<td>"+R033H(pL80I[smbhp][0],false)+"</td>";if(B6e==3){G5$4+="</tr><tr>";B6e=1}B6e++}G5$4+="</tr></table>";var S3m=new Array("dB",G5$4);r$05i("printItem",S3m);open_printWindow();break;case "dD":var S3m=new Array("dD",element(cS727+"_resultCon").innerHTML);r$05i("printItem",S3m);open_printWindow();break;default:var _00=TV8(id);var qvv=R033H(id,false);var _C1O9=_9f59(coords);var S3m=new Array(id,qvv,coords);r$05i("printItem",S3m);r9G1("open_printWindow()");move(_C1O9[0],_C1O9[1],'to');break}}function open_printWindow(){var width=700;var qDy0Q=window.open("print.html","HTMLImagemapperPrintDialog","top=50,left=50,height=650,width="+width+",resizable=yes,scrollbars=yes,menubar=yes");if(qDy0Q&&qDy0Q.focus)qDy0Q.focus()}e41=8;NO$9=9;y9KA9=10;B3td=12;e28f=8;$0g=11;k3n=13;K8Fil=3;m3i6w=2;kw024=6;D11cx=4;qVQ=3;__219=5;Q_7Cn=5;s38Q5=5;HiKk=6;Q$5Cx=5;_R54o=6;K9u=7;function bK$(){if(g_hasCopyrightInfo){if(!element("copyrightInfo")){var p=j76("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]-20+"px";p.style.textAlign="center";p.id="copyrightInfo";p.className="copyright";E_57$(VD0J,p)}if(element("copyrightInfo")){var p=element("copyrightInfo");p.innerHTML=g_copyrightInfo[s4oo1()];p.style.zIndex=qVQ}}}function WpG(id,fg6x,action){var G5$4="<div onmousedown='"+action+"'>";G5$4+='<table class="buttonTable" id="'+id+'_knob" cellpadding="0" cellspacing="0">';G5$4+='  <tr>';G5$4+='    <td><img src="'+g_designDir+'BUTTON_LO.GIF" width="1" height="1" alt=""></td>';G5$4+='    <td style="background:url('+g_designDir+'BUTTON_LO.GIF) repeat-x; " ></td>';G5$4+='    <td><img src="'+g_designDir+'BUTTON_RO.GIF" width="2" height="1" alt=""></td>';G5$4+='  </tr>';G5$4+='  <tr>';G5$4+='    <td style="background:url('+g_designDir+'BUTTON_LO.GIF) repeat-y; " width="1"></td>';G5$4+='    <td height="17" class="knob">'+fg6x+'</td>';G5$4+='    <td style="background:url('+g_designDir+'BUTTON_R.GIF) repeat-y; " width="2"></td>';G5$4+='  </tr>';G5$4+='  <tr>';G5$4+='    <td><img src="'+g_designDir+'BUTTON_LU.GIF" width="1" height="2" alt=""></td>';G5$4+='    <td style="background:url('+g_designDir+'BUTTON_U.GIF) repeat-x; " height="2" ></td>';G5$4+='    <td><img src="'+g_designDir+'BUTTON_RU.GIF" width="2" height="2" alt=""></td>';G5$4+='  </tr>';G5$4+='</table>';G5$4+='</div>';return G5$4}function Due24(){if((typeof(g_mapViewDirs)=="object")&&(g_mapViewDirs.length>=1)){if(element("infoBar"))pML=r59(element("infoBar").style.height);var position=new Array(g_viewOff[0],g_viewOff[1]+pML);B5v4(position,new Array(g_viewExt[0],40),"changeViewCon",null,null,VD0J);if(g_themeBrowserAsDropDown){var GVp=document.createElement("select");GVp.id="viewChangeDropDown";for(var i=0;i<g_mapViewDirs.length;i++){var u6674=document.createElement("option");u6674.text=g_mapViewDirs[i][0];u6674.value=i;var lp3=null;if(document.all)lp3=GVp.length;GVp.add(u6674,lp3)}GVp.onchange=triggerDropDownViewChange;GVp.selectedIndex=0;element("changeViewCon").style.textAlign="right";element("changeViewCon").appendChild(GVp)}else{var pML=0;var G5$4="<table style='float:right;' cellpadding='0' cellspacing='0' border='0'><tr>";for(var i=0;i<g_mapViewDirs.length;i++){var W3Q66=WpG("change_view"+i,g_mapViewDirs[i][0],'viewChange("'+i+'");');G5$4+="<td>"+W3Q66+"</td>"}G5$4+="</tr></table>";element("changeViewCon").innerHTML=G5$4;for(var i=0;i<g_mapViewDirs.length;i++){V0IJ8(element("change_view"+i+"_knob"))}}}}function triggerDropDownViewChange(){var selection=element("viewChangeDropDown").selectedIndex;viewChange(selection)}function viewChange(a9u){if(typeof(g_mapViewDirs[a9u])=="object"){var G0h9=g_mapViewDirs[a9u];R218(g_geoTilesDir);g_maptileimageDir=G0h9[1];g_attDir=G0h9[2];g_geoTilesDir=G0h9[3];g_searchDir=G0h9[4];g_listsDir=G0h9[7];g_searchFields=G0h9[5];g_searchChunks=G0h9[6];g_lists=G0h9[8];if(element("ovMapImg"))element("ovMapImg").src=g_maptileimageDir+g_ovMapImgSrc;if(element("legendImg"))element("legendImg").src=g_maptileimageDir+g_legendImgSrc;delete_obj(g_areaCon);iu251();$O6u4();oji();c36s()}}function R218(_0Ds){var scripts=document.getElementsByTagName("script");var j49op=scripts.length;for(var i=0;i<j49op;i++){if(typeof(scripts[i])=="object"){if(scripts[i].id.indexOf(_0Ds)!=-1){try{scripts[i].parentNode.removeChild(scripts[i]);i--}catch(R96){}}}}}function yb6u(){if(g_logoSize[1]>=80)var v17=g_logoSize[1];else var v17=80;v17+=10;if(g_hasInfoBar){if(!element("infoBar")){B5v4(g_viewOff,new Array(g_viewExt[0],v17),"infoBar",null,null,VD0J);onk4();c1y_();St28()}element("infoBar").className="infoBar";element("infoBar").style.zIndex=D11cx}}function onk4(){if(g_hasInfoBar&g_hasTitle){var u560=j76("div");u560.id="titleCon";E_57$(element("infoBar"),u560);element("titleCon").innerHTML=g_title;element("titleCon").className="title";var style=element("titleCon").style;style.position="absolute";style.top="5px";style.right="5px";var size=g_viewExt[0]-20;if(g_hasLogo)size-=g_logoSize[0];style.width=size+"px"}}function c1y_(){if(g_hasInfoBar&&g_hasComments){var ySC2R=j76("div");ySC2R.id="authorInfoCon";ySC2R.innerHTML=g_comments;E_57$(element("infoBar"),ySC2R);var style=element("authorInfoCon").style;element("authorInfoCon").className="comments";style.position="absolute";style.bottom="5px";style.right="5px"}}function St28(){if(g_hasInfoBar&g_hasLogo){var Ak7=j76("div");Ak7.id="logoCon";E_57$(VD0J,Ak7);var style=element("logoCon").style;style.position="absolute";style.top=(g_viewOff[1]+5)+"px";style.left=(g_viewOff[0]+5)+"px";style.zIndex=D11cx+1;var $15=PAA(g_logoPath,g_logoSize,"logo",null,"");E_57$(element("logoCon"),$15)}}V6p8=0;function T5990(){var JD5D=40;var WqR=new Array(40,40);var frame=j76("img");frame.src=g_designDir+"FRAME.GIF";frame.id="bottomFrame";frame.width=g_viewExt[0];frame.height=JD5D;frame.style.position="absolute";frame.style.top=g_viewExt[1]+g_viewOff[1]-JD5D+"px";frame.style.left=g_viewOff[0]+"px";frame.style.zIndex=__219;E_57$(VD0J,frame);var P4Oa=j76("img");P4Oa.src=g_designDir+"FRAMECORNER.GIF";P4Oa.id="bottomFrameCorner";P4Oa.width=WqR[0];P4Oa.height=WqR[1];P4Oa.style.position="absolute";P4Oa.style.top=g_viewExt[1]+g_viewOff[1]-WqR[1]+"px";P4Oa.style.left=g_viewOff[0]+"px";P4Oa.style.zIndex=Q_7Cn;if(g_hasZoomBar&(g_zoomFactors.length>1)){E_57$(VD0J,P4Oa);V6p8+=40}var i4mL5=35;var E0bl=j76("div");E0bl.id="frameKnobsCon";E0bl.style.zIndex=s38Q5;E0bl.style.verticalAlign="bottom";E0bl.style.position="absolute";E0bl.style.left=g_viewOff[0]+V6p8+5+"px";E0bl.style.top=g_viewOff[1]+g_viewExt[1]-i4mL5+"px";E0bl.style.width=g_viewExt[0]-V6p8-10+"px";E0bl.style.height=i4mL5-2+"px";E0bl.style.overflow="hidden";E_57$(VD0J,E0bl)}function s14Dq(){var g410="<table cellpadding='0' cellspacing='0' border='0'><tr>";if(g_hasSearch){g410+="<td><input type='text' id='frameSearchInput' size=15 /><a href=\"javascript:search('simple');\"><img id='simpleSearch' src='"+g_designDir+"SEARCH.GIF' /></a></td>";V6p8+=150;if(g_hasProfiSearch){g410+="<td>"+WpG("search",l_advancedSearch,"toggle_search();")+"</td>";V6p8+=100}}if(g_hasOvMap){g410+="<td>"+WpG("ovMap",l_ovMap,"toggle_ovMap();")+"</td>";V6p8+=120}if(g_hasLegend){g410+="<td>"+WpG("legend",l_legend,"toggle_legend();")+"</td>";V6p8+=70}if(g_hasLists){g410+="<td>"+WpG("lists",l_lists,"toggle_lists();")+"</td>";V6p8+=90}if(g_hasPrintKnob){g410+="<td>"+WpG("print",l_print,"print_item(\"map\",0,\"\");")+"</td>";V6p8+=90}if(typeof g_customButtons=="object"){for(i=0;i<g_customButtons.length;i++){g410+="<td>"+WpG("customKnob"+i,g_customButtons[i][0],"window.open(\""+g_customButtons[i][1]+"\");")+"</td>"}}element("frameKnobsCon").innerHTML+=g410+"<td id='rwInfoCon' class='rwConStyle' ></td></tr></table>";if(element("search_knob"))V0IJ8(element("search_knob"));if(element("ovMap_knob"))V0IJ8(element("ovMap_knob"));if(element("legend_knob"))V0IJ8(element("legend_knob"));if(element("lists_knob"))V0IJ8(element("lists_knob"));if(element("print_knob"))V0IJ8(element("print_knob"));if(typeof g_customButtons=="object"){for(i=0;i<g_customButtons.length;i++){if(element("customKnob"+i+"_knob"))V0IJ8(element("customKnob"+i+"_knob"))}}}function toggle_search(){if(q70co=="simple"){q70co="advanced";create_dD()}else{q70co="advanced";if(element(cS727+"_attlayer")&&element(cS727+"_attlayer").style.visibility=="visible"){setSimple();hider(cS727)}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(j8o68+"_attlayer")&&element(j8o68+"_attlayer").style.visibility=="visible")hider(j8o68);else create_lists()}function toggle_legend(){if(element("legend_attlayer")&&element("legend_attlayer").style.visibility=="visible")hider("legend");else ini_legend()}function urlHandler(){var PF5I6=window.location.search;if(PF5I6!=''){var q6i38=new RegExp("#","");PF5I6=PF5I6.replace(q6i38,"");PF5I6=PF5I6.substring(1,PF5I6.length);if(PF5I6.indexOf("&")!=-1){var U8215=PF5I6.split("&");var m3G8=new Array();for(var i=0;i<i6yMy.length;i++){m3G8[i]=i6yMy[i].split("=");X36B(m3G8[i])}}else{var m3G8=new Array();m3G8[0]=PF5I6.split("=");X36B(m3G8[0])}}}function X36B(yX684){if(yX684[0]=="center"){var X28x=yX684[1].split("_");JNw(X28x[0],X28x[1],X28x[2],false)}if(yX684[0]=="centerRW"){var X28x=yX684[1].split("_");JNw(X28x[0],X28x[1],X28x[2],true)}if(yX684[0]=="showinmap"){var X28x=yX684[1].split("_");var c663="showinmap("+X28x[0]+","+X28x[1]+",'"+X28x[2]+"')";r9G1(c663)}}function posCalc(){m87=new Array(g_viewExt[0]-250,80);n6E$0=new Array((g_viewOff[0]+g_viewExt[0]-225),round(g_viewOff[1]+g_viewExt[1]-475));M36=new Array(g_viewOff[0]+g_viewExt[0]-300,g_viewOff[0]+100);_2e6=new Array(round((g_viewExt[0]/2)-(g_dDWidth/2)),g_viewExt[1]-100);x0s4A=new Array(g_viewOff[0]+g_viewExt[0]-450,g_viewOff[1]+150);if(g_viewPosType=="%"){var Ij0U0=new Array();if(document.all&&navigator.userAgent.indexOf("Opera")==-1){if(document.documentElement&&document.documentElement.clientHeight)Ij0U0=new Array(document.documentElement.clientWidth,document.documentElement.clientHeight);else if(document.body)Ij0U0=new Array(document.body.clientWidth,document.body.clientHeight)}else Ij0U0=new Array(window.innerWidth,window.innerHeight);g_viewOff=new Array(round(g_viewOff[0]/100*Ij0U0[0]),round(g_viewOff[1]/100*Ij0U0[1]));g_viewExt=new Array(round(g_viewExt[0]/100*Ij0U0[0]),round(g_viewExt[1]/100*Ij0U0[1]))}JNw(0,round((g_baseMapExt[0]*g_zoomFactors[0])/2),round((g_baseMapExt[1]*g_zoomFactors[0])/2),false)}function JNw($15S9,x,y,N40M5){var kh274=$15S9;var foundIt=true;set_zoomLevel(parseInt(kh274));if(N40M5){var v78=R3$0(new Array(x,y));x=v78[0];y=v78[1]}if(x<0||x>(g_baseMapExt[0]*g_zoomFactors[kh274]))foundIt=false;if(y<0||y>(g_baseMapExt[1]*g_zoomFactors[kh274]))foundIt=false;if(!foundIt){kh274=0;x=round((g_baseMapExt[0]*g_zoomFactors[0])/2);y=round((g_baseMapExt[1]*g_zoomFactors[0])/2)}var F9_=new Array(parseInt(x)-g_viewExt[0]/2,parseInt(y)-g_viewExt[1]/2);g_picUL=new Array(Math.floor(F9_[0]/g_tSize[0]),Math.floor(F9_[1]/g_tSize[1]));g_iniPxDelta=new Array(g_tSize[0]-round(F9_[0]-(g_picUL[0]*g_tSize[0])),g_tSize[1]-round(F9_[1]-(g_picUL[1]*g_tSize[1])))}function calc_g_viewExt(){if(document.all&&navigator.userAgent.indexOf("Opera")==-1){if(document.documentElement&&document.documentElement.clientHeight)g_viewExt=new Array(document.documentElement.clientWidth,document.documentElement.clientHeight);else if(document.body)g_viewExt=new Array(document.body.clientWidth,document.body.clientHeight)}else g_viewExt=new Array(window.innerWidth,window.innerHeight)}function e8W1(){var TA6s="http://www.alta4.com/scripts/im_examplesCounter.php?site="+location.href;TA6s+="&author="+encodeURIComponent(g_mapGalleryAuthor);TA6s+="&title="+encodeURIComponent(g_mapGalleryTitle);TA6s+="&comment="+encodeURIComponent(g_mapGalleryComment);TA6s+="&copyright="+encodeURIComponent(g_mapGalleryCopyright);TA6s+="&email="+encodeURIComponent(g_mapGalleryEmail);TA6s+="&industryId="+encodeURIComponent(g_mapGalleryIndustryId);TA6s+="&industryText="+encodeURIComponent(g_mapGalleryIndustryText);TA6s+="&UL_X="+g_rwUL[0];TA6s+="&UL_Y="+g_rwUL[1];TA6s+="&LR_X="+g_rwLR[0];TA6s+="&LR_Y="+g_rwLR[1];TA6s+="&coordSys="+encodeURIComponent(g_coordSys);var X9m=g_zoomFactors[0];for(var i=1;i<g_zoomFactors.length;i++)X9m+=";"+g_zoomFactors[i];TA6s+="&zoomFactors="+X9m;var i67l=j76("script");i67l.setAttribute("type","text/javascript");i67l.setAttribute("src",TA6s);i67l.setAttribute("id",TA6s);E_57$(document.getElementsByTagName("head")[0],i67l)}