PageSourceSearch

https://www.tangermuende.de/res/js/gc.js?v=v5.52.00

js tangermuende.de collected 2026-09-24 22:45:23 UTC 180,029 bytes, 201 lines download raw bytes

1if(!gc){var gc={CLASS_NAME:"gc",initClass:function(_1,_2,_3){try{if(eval("typeof("+_1+")=='object' && "+_1+"")){return;}}catch(exc){}gc.tmpObj=function(){if(this.constructor){this.constructor.apply(this,arguments);}};var _4=_1.split(".");var _5="";for(var i=0;i<_4.length;++i){_5+=(i>0?".":"")+_4[i];if(eval("typeof("+_5+")")=="undefined"){eval(_5+" = {};");}if((i+1)>=_4.length){if(_2){eval("gc.tmpObj = "+_5+";");for(i in _3){gc.tmpObj[i]=_3[i];}gc.tmpObj.CLASS_NAME=_1;}else{gc.tmpObj.prototype=_3;gc.tmpObj.prototype.CLASS_NAME=_1;eval(_5+" = gc.tmpObj;");}}}}};}
2var __extends=(this&&this.__extends)||(function(){var _1=function(d,b){_1=Object.setPrototypeOf||({__proto__:[]} instanceof Array&&function(d,b){d.__proto__=b;})||function(d,b){for(var p in b){if(Object.prototype.hasOwnProperty.call(b,p)){d[p]=b[p];}}};return _1(d,b);};return function(d,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");}_1(d,b);function __(){this.constructor=d;}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __());};})();var GeoCMSWrap;(function(_b){var _c=(function(){function _c(){}_c.debug=function(_d){this.console("debug",_d);};_c.error=function(_e){this.console("error",_e);};_c.info=function(_f){this.console("info",_f);};_c.log=function(msg){this.console("log",msg);};_c.warn=function(msg){this.console("warn",msg);};_c.console=function(_12,msg){if(window.console&&window.console[_12]){window.console[_12](msg);if(msg&&msg.message){window.console[_12](msg.message);}}};
3return _c;}());_b.Console=_c;})(GeoCMSWrap||(GeoCMSWrap={}));var GeoCMSWrap;(function(_14){var _15=(function(){function _15(){}_15.getCookie=function(_16){var _17=GeoCMS.Utility.trim(_16);var _18=document.cookie.split(";");for(var i=0;i<_18.length;i++){var _1a=GeoCMS.Utility.trim(_18[i]).split("=");if(_1a.length>=2&&GeoCMS.Utility.trim(_1a[0])==_17){return GeoCMS.Utility.trim(decodeURIComponent(_1a[1]));}}return "";};_15.removeCookie=function(_1b){document.cookie=_1b+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT;";};_15.setCookie=function(_1c,_1d,_1e,_1f,_20,_21){if(_20===void 0){_20=null;}if(_21===void 0){_21=false;}if(!_1c||/^(?:expires|max\-age|path|domain|secure)$/i.test(_1c)){return false;}var _22="";if(_1e){if(typeof _1e==="number"){_22=_1e===Infinity?"; expires=Fri, 31 Dec 9999 23:59:59 GMT":"; max-age="+_1e;}else{if(typeof _1e==="string"){_22="; expires="+_1e;}else{if(typeof _1e==="object"&&_1e instanceof Date){_22="; expires="+_1e.toUTCString();}}}}
4document.cookie=_1c+"="+encodeURIComponent(_1d)+_22+(_20?"; domain="+_20:"")+(_1f?"; path="+_1f:"")+(_21?"; secure":"");return true;};return _15;}());_14.Cookie=_15;})(GeoCMSWrap||(GeoCMSWrap={}));var GeoCMSWrap;(function(_23){var _24=(function(){function _24(){}_24.addAfterLoadEvent=function(_25,_26){if(_26===void 0){_26=window;}this.registerOnLoad();var _27={};_27.func=_25;_27.obj=_26;this.afterLoadEventHandler.push(_27);};_24.addOnLoadEvent=function(_28,_29){if(_29===void 0){_29=window;}this.registerOnLoad();var _2a={};_2a.func=_28;_2a.obj=_29;this.onLoadEventHandler.push(_2a);};_24.compareIEVersion=function(_2b,_2c){var _2d=navigator.appVersion.toLowerCase().match(/msie\s\d/);if(_2d&&_2d.length>0){var v1=parseFloat(_2b);var _2f=String(_2d[0]).match(/\d/);if(_2f&&_2f.length>0){var v2=parseFloat(_2f[0]);return this.compareVersion(v1,v2,_2c);}}return false;};_24.compareVersion=function(v1,v2,_33){switch(_33){case "=":case "==":return v1==v2;case "!=":return v1!=v2;case ">":
5return v1>v2;case ">=":return v1>=v2;case "<":return v1<v2;case "<=":return v1<=v2;default:return false;}};_24.getDocumentBody=function(){return (document.body||document.getElementsByTagName("body")[0]);};_24.getDocumentHead=function(){return (document.head||document.getElementsByTagName("head")[0]);};_24.getScriptLocation=function(){if(!this.scriptLocation){var _34=document.getElementsByTagName("script");for(var i=0;i<_34.length;i++){var src=_34[i].getAttribute("src");if(src){var idx=src.lastIndexOf(this.scriptName);if(idx>=0){this.scriptLocation=src.substring(0,idx);}}}}return this.scriptLocation;};_24.getSessionMaxLifeTime=function(_38){return (_38?(this.sessionMaxLifetime*1000):this.sessionMaxLifetime);};_24.initSession=function(_39,sid){};_24.isFF=function(){return (/gecko/.test(navigator.userAgent.toLowerCase()));};_24.isIE=function(){return (/msie/.test(navigator.userAgent.toLowerCase()));};_24.isIE6=function(){
6return (this.isIE()&&!this.isIE7()&&!this.isIE8()&&!this.isIE9()&&!this.isIE10());};_24.isIE7=function(){return ((document.all)&&(navigator.appVersion.toLowerCase().indexOf("msie 7.")!=-1));};_24.isIE8=function(){return ((document.all)&&(navigator.appVersion.toLowerCase().indexOf("msie 8.")!=-1));};_24.isIE9=function(){return ((document.all)&&(navigator.appVersion.toLowerCase().indexOf("msie 9.")!=-1));};_24.isIE10=function(){return ((document.all)&&(navigator.appVersion.toLowerCase().indexOf("msie 10.")!=-1));};_24.isSafari=function(){return (/safari/.test(navigator.userAgent.toLowerCase()));};_24.loadScript=function(_3b,_3c){var _3d=_3b;if(!_3c){_3d=this.getScriptLocation()+_3d;}if(!this.loadedScripts[_3d]){var _3e=document.createElement("script");_3e.setAttribute("charset","utf-8");_3e.setAttribute("type","text/javascript");_3e.async=false;_3e.setAttribute("src",_3d);this.getDocumentHead().appendChild(_3e);this.loadedScripts[_3d]=true;}};_24.refreshSessionTimeout=function(){
7if(this.sessionShutdownID){window.clearTimeout(this.sessionShutdownID);}if(typeof this.sessionShutdownFunc=="function"){var _3f=(this.sessionMaxLifetime*1000);var _40=this;this.sessionShutdownID=window.setTimeout(_40.sessionShutdownFunc,_3f);}};_24.registerSessionShutdown=function(_41){this.sessionShutdownFunc=_41;this.refreshSessionTimeout();};_24.setSessionMaxLifeTime=function(_42){this.sessionMaxLifetime=_42;};_24.onLoadEventExec=function(_43){if(_24.onLoadEventHandler){for(var i=0;i<_24.onLoadEventHandler.length;i++){try{this.onLoadEventHandler[i].func.call(_24.onLoadEventHandler[i].obj,_43);}catch(exc){GeoCMS.Console.error(exc);}}}if(this.afterLoadEventHandler){for(var i=0;i<_24.afterLoadEventHandler.length;i++){try{_24.afterLoadEventHandler[i].func.call(_24.afterLoadEventHandler[i].obj,_43);}catch(exc){GeoCMS.Console.error(exc);}}}};_24.registerOnLoad=function(){if(this.hasRegisteredOnLoad===false){this.hasRegisteredOnLoad=true;if(window.addEventListener){
8window.addEventListener("load",this.onLoadEventExec.bind(this),false);}else{if(window.attachEvent){window.attachEvent("onload",this.onLoadEventExec.bind(this));}}}};_24.baseUrl="";_24.afterLoadEventHandler=[];_24.hasRegisteredOnLoad=false;_24.loadedScripts={};_24.onLoadEventHandler=[];_24.scriptLocation=null;_24.scriptName="gc.js";_24.sessionID="";_24.sessionMaxLifetime=1440;_24.sessionName="";_24.sessionShutdownFunc=null;_24.sessionShutdownID=null;return _24;}());_23.Core=_24;})(GeoCMSWrap||(GeoCMSWrap={}));var GeoCMSWrap;(function(_45){var _46=(function(){function _46(){}_46.add=function(_47,_48){if(typeof _48!=="function"){return;}if(!this.scriptList[_47]){this.scriptList[_47]=[_48];}else{this.scriptList[_47].push(_48);}};_46.remove=function(_49){if(typeof this.scriptList[_49]!=="undefined"){delete this.scriptList[_49];delete this.triggeredList[_49];}};
8_46.trigger=function(_4a,_4b){if(_4b===void 0){_4b=false;}if(this.scriptList[_4a]){if(_4b===true){
9if(typeof this.triggeredList[_4a]!=="undefined"){if(this.triggeredList[_4a]===true){return;}}}for(var i=0;i<this.scriptList[_4a].length;i++){var _4d=this.scriptList[_4a][i];_4d();this.triggeredList[_4a]=true;}}};_46.scriptList={};_46.triggeredList={};return _46;}());_45.Delay=_46;})(GeoCMSWrap||(GeoCMSWrap={}));var GeoCMSWrap;(function(_4e){var _4f=(function(){function _4f(_50,_51,_52,_53){if(_53===void 0){_53=false;}this.buttons=[];this.container=null;this.dialogClass="gc_jqdialog";this.draggable=true;this.height=500;this.id=null;this.isDialog=false;this.list_index=-1;this.modal=true;this.resizable=true;this.title=null;this.width=500;this.list_index=_4f.jqdialogs.length;_4f.jqdialogs[this.list_index]=this;if(_51&&_52){this.width=_51;this.height=_52;}if(_53){this.modal=true;}else{this.modal=false;}this.title=_50;if(typeof this.id=="undefined"||!this.id){this.id="dynamicDialog";}this.container=jQuery("#"+this.id);if(this.container.length==0){var _54=document.createElement("div");
10jQuery(_54).attr("id",this.id).addClass("jqdialog");jQuery("body").append(_54);this.container=jQuery(_54);}if(this.container.length==0){this.container=null;}this.buttons=[];}_4f.prototype.addButton=function(_55,_56,_57){var _58=_56;if(typeof _55=="undefined"||!_55){return false;}if(typeof _58=="undefined"||!_58){_58=_55;}if(typeof _57!="function"){return false;}this.buttons[this.buttons.length]={title:_58,text:_55,click:_57};return true;};_4f.prototype.addCloseButton=function(_59,_5a,_5b){var _5c=_59;var _5d=_5a;var _5e=_5b;if(typeof _5c=="undefined"||!_5c){_5c="Schlie\xdfen";}if(typeof _5d=="undefined"||!_5d){_5d=_5c;}if(typeof _5e!="function"){_5e=function(){jQuery(this).dialog("close");};}this.buttons[this.buttons.length]={title:_5d,text:_5c,click:_5e};};_4f.prototype.close=function(){if(this.isDialog&&this.container.dialog("isOpen")){this.container.dialog("close");}};_4f.prototype.isDraggable=function(_5f){if(_5f){this.draggable=true;}else{this.draggable=false;}if(this.isDialog){
11this.setOption("draggable",this.draggable);}};_4f.prototype.isModal=function(_60){if(_60){this.modal=true;}else{this.modal=false;}if(this.isDialog){this.setOption("modal",this.modal);}};_4f.prototype.isResizable=function(_61){if(_61){this.resizable=true;}else{this.resizable=false;}if(this.isDialog){this.setOption("resizable",this.resizable);}};_4f.prototype.load=function(url){if(this.container){if(typeof url!="undefined"&&url){this.container.load(url).dialog({autoOpen:false,dialogClass:this.dialogClass,title:this.title,closeText:"Schlie\xdfen",height:this.height,width:this.width,show:"fade",hide:"fade",modal:this.modal,resizable:this.resizable,draggable:this.draggable,open:function(_63,ui){},buttons:this.buttons});this.isDialog=true;}}};_4f.prototype.open=function(){if(this.isDialog){this.container.dialog("open");}};_4f.prototype.setHtml=function(_65){if(this.container){
12this.container.html(_65).dialog({autoOpen:false,dialogClass:this.dialogClass,title:this.title,closeText:"Schlie\xc3\u0178en",height:this.height,width:this.width,show:"fade",hide:"fade",modal:this.modal,resizable:this.resizable,draggable:this.draggable,open:function(_66,ui){},buttons:this.buttons});this.isDialog=true;}};_4f.prototype.setOption=function(_68,_69){if(this.isDialog){this.container.dialog("option",_68,_69);}};_4f.prototype.setOn=function(_6a,_6b){if(this.isDialog){this.container.on(_6a,_6b);}};_4f.jqdialogs=[];return _4f;}());_4e.JQDialog=_4f;})(GeoCMSWrap||(GeoCMSWrap={}));var GeoCMSWrap;(function(_6c){var _6d=(function(){function _6d(){}_6d.getItem=function(_6e,_6f){if(_6f===void 0){_6f=0;}var _70="";if(_6f===0){if("GeoCMSLocalStorage" in window){_70=window.GeoCMSLocalStorage.getItem(_6e);}else{if(this.bLocalStorage){_70=window.localStorage.getItem(_6e);}}}else{if(_6f===1){if("GeoCMSSessionStorage" in window){_70=window.GeoCMSSessionStorage.getItem(_6e);}else{
13if(this.bSessionStorage){_70=window.sessionStorage.getItem(_6e);}}}else{if(this.bCookieStorage&&_6f===2){_70=GeoCMS.Cookie.getCookie(_6e);}}}if(_70!="undefined"&&_70!=null){return _70;}return "";};_6d.removeItem=function(_71,_72){if(_72===void 0){_72=0;}if(_72===0){if("GeoCMSLocalStorage" in window){window.GeoCMSLocalStorage.removeItem(_71);}else{if(this.bLocalStorage){window.localStorage.removeItem(_71);}}}else{if(_72===1){if("GeoCMSSessionStorage" in window){window.GeoCMSSessionStorage.removeItem(_71);}else{if(this.bSessionStorage){window.sessionStorage.removeItem(_71);}}}else{if(this.bCookieStorage&&_72===2){GeoCMS.Cookie.removeCookie(_71);}}}};_6d.setItem=function(_73,_74,_75){if(_75===void 0){_75=0;}if(_75===0){if("GeoCMSLocalStorage" in window){window.GeoCMSLocalStorage.setItem(_73,_74);}else{if(this.bLocalStorage){window.localStorage.setItem(_73,_74);}}}else{if(_75===1){if("GeoCMSSessionStorage" in window){window.GeoCMSSessionStorage.setItem(_73,_74);}else{
14if(this.bSessionStorage){window.sessionStorage.setItem(_73,_74);}}}else{if(this.bCookieStorage&&_75===2){GeoCMS.Cookie.setCookie(_73,_74);}}}};_6d.getKeys=function(_76){if(_76===void 0){_76=0;}var _77=[];if(_76===0){if("GeoCMSLocalStorage" in window){_77=Object.keys(window.GeoCMSLocalStorage.storageData);}else{if(this.bLocalStorage){_77=Object.keys(window.localStorage);}}}else{if(_76===1){if("GeoCMSSessionStorage" in window){_77=Object.keys(window.GeoCMSSessionStorage.storageData);}else{if(this.bSessionStorage){_77=Object.keys(window.sessionStorage);}}}}return _77;};_6d.bLocalStorage=("localStorage" in window);_6d.bSessionStorage=("sessionStorage" in window);_6d.bCookieStorage=("cookie" in document);return _6d;}());_6c.Storage=_6d;(function(_78){var _79;(function(_7a){_7a[_7a["LOCAL"]=0]="LOCAL";_7a[_7a["SESSION"]=1]="SESSION";_7a[_7a["COOKIE"]=2]="COOKIE";})(_79=_78.StorageType||(_78.StorageType={}));})(_6d=_6c.Storage||(_6c.Storage={}));})(GeoCMSWrap||(GeoCMSWrap={}));
15var GeoCMSWrap;(function(_7b){var _7c=(function(){function _7c(){}_7c.cloneRecursive=function(ref){if(ref==null){return null;}var _7e=(ref instanceof Array)?[]:{};for(var _7f in ref){if(typeof ref[_7f]!=="object"){_7e[_7f]=ref[_7f];}else{console.error("nicht unterst\xc3\xbctzter Modus beim Kopieren benutzt");}}return _7e;};_7c.confirm=function(msg,_81,obj){if(window.confirm(msg)){if(_81){return obj?_81.call(obj):_81();}else{return true;}}else{return false;}};_7c.endsWith=function(str,_84){return (typeof str=="string"&&typeof _84=="string"&&str.indexOf(_84,str.length-_84.length)!==-1);};_7c.execJS=function(tag){if(tag.childNodes){for(var i=0;i<tag.childNodes.length;i++){if(tag.childNodes[i].nodeName.toLowerCase()=="script"){var src=tag.childNodes[i].getAttribute("src");if(src&&src!=""){GeoCMS.Core.loadScript(src,true);}else{eval(tag.childNodes[i].text);}}else{this.execJS(tag.childNodes[i]);}}
15}};_7c.getAbsoluteX=function(_88){if(_88.offsetParent){
16return _88.offsetLeft+this.getAbsoluteX(_88.offsetParent);}else{return _88.offsetLeft;}};_7c.getAbsoluteY=function(_89){if(_89.offsetParent){return _89.offsetTop+this.getAbsoluteY(_89.offsetParent);}else{return _89.offsetTop;}};_7c.getDocumentHeight=function(){if(document.height){return document.height;}else{if(GeoCMS.Core.isIE()&&!GeoCMS.Core.isIE7()){return document.body.scrollHeight;}else{return document.body.clientHeight;}}};_7c.getDocumentWidth=function(){if(document.width){return document.width;}else{return document.body.clientWidth;}};_7c.getFormValues=function(_8a,_8b){if(_8b===void 0){_8b=null;}var _8c=_8b;if(typeof _8c!=="object"||!_8b){_8c={};}if(typeof _8c.hidden!=="boolean"){_8c.hidden=true;}if(typeof _8c.skipempty!=="boolean"){_8c.skipempty=false;}if(!(_8c.skipfields instanceof Array)){_8c.skipfields=[];}var _8d=null;if(typeof _8a==="object"){_8d=_8a;}else{_8d=document.getElementById(_8a);}if(!_8d||_8d.nodeName!=="FORM"){return {};}var _8e,_8f,_90={};
17for(var i=0;i<_8d.elements.length;i++){if(_8d.elements[i].name===""){continue;}_8e=null;switch(_8d.elements[i].nodeName){case "INPUT":switch(_8d.elements[i].type){case "checkbox":case "radio":if(_8d.elements[i].checked){_8e=_8d.elements[i].name;_8f=_8d.elements[i].value;}break;case "file":break;case "hidden":if(_8c.hidden){_8e=_8d.elements[i].name;_8f=_8d.elements[i].value;}break;default:_8e=_8d.elements[i].name;_8f=_8d.elements[i].value;}break;case "TEXTAREA":_8e=_8d.elements[i].name;_8f=_8d.elements[i].value;break;case "SELECT":switch(_8d.elements[i].type){case "select-one":_8e=_8d.elements[i].name;_8f=_8d.elements[i].value;break;case "select-multiple":_8e=_8d.elements[i].name;_8f=[];for(var j=0;j<_8d.elements[i].options.length;j++){if(_8d.elements[i].options[j].selected){_8f.push(_8d.elements[i].options[j].value);}}break;default:break;}break;case "BUTTON":switch(_8d.elements[i].type){case "submit":case "button":case "reset":_8e=_8d.elements[i].name;_8f=_8d.elements[i].value;break;
18default:break;}break;default:break;}if(_8c.skipempty&&(_8f===""||(typeof _8f==="object"&&_8f.length<1))){continue;}if(_8e&&!this.inArray(_8c.skipfields,_8e)){if(_8e.length>2&&_8e.substr(_8e.length-2,2)=="[]"){_8e=_8e.substr(0,_8e.length-2);if(typeof _8f!=="object"){_8f=[_8f];}}if(typeof _8f==="object"){if(!_90[_8e]){_90[_8e]=_8f;}else{if(typeof _90[_8e]!=="object"){_90[_8e]=new Array(_90[_8e]);}for(var k=0;k<_8f.length;k++){_90[_8e].push(_8f[k]);}}}else{_90[_8e]=_8f;}}}return _90;};_7c.getScreenCenterX=function(_94){return Math.max(0,Math.round((this.getWindowWidth()-_94)/2));};_7c.getScreenCenterY=function(_95){var top=window.pageYOffset||document.documentElement.scrollTop||0;return Math.max(top,Math.round((this.getWindowHeight()-_95)/2));};_7c.getWindowHeight=function(){if(window.innerHeight){return window.innerHeight;}else{if(document.documentElement&&document.documentElement.clientHeight){return document.documentElement.clientHeight;}else{return document.body.clientHeight;}}};
19_7c.getWindowWidth=function(){if(window.innerWidth){return window.innerWidth;}else{return document.body.clientWidth;}};_7c.inArray=function(_97,_98){for(var i=0;i<_97.length;i++){if(_97[i]==_98){return true;}}return false;};_7c.openPopup=function(url,_9b,_9c){var _9d=window.open(url,_9b,_9c);if(_9d){_9d.focus();}};_7c.serializeForm=function(_9e,_9f){if(_9f===void 0){_9f=null;}var ret=[];var obj=this.getFormValues(_9e,_9f);for(var _a2 in obj){if(typeof obj[_a2]==="object"){for(var i=0;i<obj[_a2].length;i++){ret.push(encodeURIComponent(_a2)+"[]="+encodeURIComponent(obj[_a2][i]));}}
19else{ret.push(encodeURIComponent(_a2)+"="+encodeURIComponent(obj[_a2]));}}return ret.join("&");};_7c.setCSS=function(_a4,_a5){var css=_a5;var key=css.substring(0,5).toLowerCase();if(key=="style"){css=css.replace("style=","");css=css.replace("\"","").replace("\"","");if(_a4.style.setAttribute){try{_a4.removeAttributeNode(_a4.getAttributeNode("style"));}catch(e){}try{_a4.removeAttribute("style");}catch(e){}
20var _a8=css.split(";");for(var j=0;j<_a8.length;j++){var _aa=_a8[j].split(":");_aa[0]=this.trim(_aa[0]);_aa[1]=this.trim(_aa[1]);if(_aa[0]!=""&&_aa[0]!=null){_a4.style.setAttribute(_aa[0],_aa[1],false);_aa[0]=_aa[0].replace("-","").replace("-","").replace("-","");_a4.style.setAttribute(_aa[0],_aa[1],false);}}}else{_a4.setAttribute("style",css);}}if(key=="class"){css=css.replace("class=","").replace("\"","").replace("\"","");_a4.className=css;}};_7c.setCSSByTagname=function(id,_ac,css,_ae){if(id!=""){var _af=document.getElementsByTagName(_ac);for(var i=0;i<_af.length;i++){if((_af[i].id==id||(_ae&&_af[i].id.substr(0,id.length)==id))){this.setCSS(_af[i],css);}}}};_7c.setFormValue=function(_b1,_b2,_b3){var _b4=document.getElementsByName(_b1);for(var i=0;i<_b4.length;i++){var _b6=_b4[i];if(_b6[_b2]){_b6[_b2].value=_b3;}}};_7c.trim=function(str){if(str!=null&&str.length>0){return str.replace(/^\s+/,"").replace(/\s+$/,"");}return str;};_7c.urlParams=function(_b8){var ret="";
21for(var _ba in _b8){ret+="&"+encodeURIComponent(_ba)+"="+encodeURIComponent(_b8[_ba]);}return ret;};_7c.utf8_decode=function(str){var _bc="";var ch;var ch2;for(var i=0;i<str.length;i++){ch=str.charCodeAt(i);if(ch<128){_bc+=String.fromCharCode(ch);}else{if((i+1)<str.length){ch2=str.charCodeAt(i+1);_bc+=String.fromCharCode(((ch&31)<<6)|(ch2&63));i++;}}}return _bc;};_7c.utf8_encode=function(str){var _c1="";var ch;for(var i=0;i<str.length;i++){ch=str.charCodeAt(i);if(ch<128){_c1+=String.fromCharCode(ch);}else{_c1+=String.fromCharCode((ch>>6)|192);_c1+=String.fromCharCode((ch&63)|128);}}return _c1;};_7c.xmlDecode=function(str){return str.replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&quot;/g,"\"").replace(/&apos;/g,"'").replace(/&amp;/g,"&");};return _7c;}());_7b.Utility=_7c;})(GeoCMSWrap||(GeoCMSWrap={}));var GeoCMSWrap;(function(_c5){var _c6;(function(_c7){var _c8=(function(){function _c8(){}_c8.getUrl=function(id){return this.list[id];};_c8.load=function(id,url,_cc){
22this.set(id,url,_cc);var req=new GeoCMS.Network.Request(url,this.onResponse,this,GeoCMS.Network.Request.RESPONSE_TEXT,true);req.callbackOnStartFunction=this.onStartLoad;req.callbackOnStartObject=this;GeoCMS.Network.XHR.addRequest(req);};_c8.loadCustom=function(id,url,_d0,_d1,_d2){this.set(id,url,_d0);var req=new GeoCMS.Network.Request(url,_d1,_d2,GeoCMS.Network.Request.RESPONSE_TEXT,true);req.callbackOnStartFunction=this.onStartLoad;req.callbackOnStartObject=this;GeoCMS.Network.XHR.addRequest(req);};_c8.reload=function(){for(var id in this.list){this.load(id,this.list[id],this.icon[id]);}};_c8.set=function(id,url,_d7){this.icon[id]=_d7;this.list[id]=url;};_c8.setOnStartLoadDivHeight=function(_d8){this.onStartLoadDivHeight=_d8+"px";};_c8.onResponse=function(_d9,url){for(var id in this.list){if(this.list[id]==url){var tmp=document.getElementById(id);if(tmp){if(this.icon[id]){tmp.style.opacity="1.0";tmp.style.height="";tmp.style.backgroundImage="";}tmp.scrollTop=0;tmp.innerHTML=_d9;
23gc.fxWrapper.opacity(tmp,0.2,0.5,1);GeoCMS.Utility.execJS(tmp);}}}};_c8.onStartLoad=function(url){for(var id in this.list){if(this.list[id]==url){var tmp=document.getElementById(id);if(tmp&&this.icon[id]){if(tmp.innerHTML==""){tmp.style.height=this.onStartLoadDivHeight;}tmp.style.backgroundImage="url(\""+GeoCMS.Core.baseUrl+this.icon[id]+"\")";tmp.style.backgroundRepeat="no-repeat";tmp.style.backgroundPosition="center";gc.fxWrapper.opacity(tmp,0.2,1,0.5);}}}};_c8.alternateDocumentReady=function(fn){if(document.readyState==="complete"||document.readyState==="interactive"){setTimeout(fn,1);}else{document.addEventListener("DOMContentLoaded",fn);}};_c8.icon={};_c8.list={};_c8.onStartLoadDivHeight="20px";return _c8;}());_c7.Core=_c8;})(_c6=_c5.Content||(_c5.Content={}));})(GeoCMSWrap||(GeoCMSWrap={}));var GeoCMSWrap;(function(_e1){var _e2;(function(_e3){var _e4=(function(){function _e4(_e5){this.disableIDs=[];this.enableIDs=[];this.hiddenSubmitID=null;this.hiddenVisibilityID=null;
24this.id=null;if(_e5.id){this.id=_e5.id;_e4.instances[this.id]=this;}}_e4.create=function(_e6){if(_e6.id){if(typeof this.instances[_e6.id]!=="undefined"){return this.instances[_e6.id];}}return new this(_e6);};_e4.prototype.apply=function(){if(typeof jQuery!=="undefined"){jQuery("#"+this.hiddenSubmitID).val(_e4.submitApplyVal);}};_e4.prototype.remove=function(){if(typeof jQuery!=="undefined"){var _e7=this;var _e8=false;GeoCMS.Utility.confirm("Soll der Filter wirklich gel\xc3\xb6scht werden?",function(){jQuery("#"+_e7.hiddenSubmitID).val(_e4.submitRemoveVal);_e8=true;});if(_e8===true){return true;}}return false;};_e4.prototype.save=function(_e9){if(typeof jQuery!=="undefined"){var _ea="#"+_e9;var _eb=jQuery(_ea).val();if(!_eb){alert("Sie m\xc3\xbcssen einen Namen f\xc3\xbcr den Filter vergeben.");jQuery(_ea).focus();return false;}jQuery("#"+this.hiddenSubmitID).val(_e4.submitSaveVal);return true;}return false;};_e4.prototype.setup=function(_ec,_ed,_ee,_ef){this.hiddenSubmitID=_ec;
25this.hiddenVisibilityID=_ed;this.disableIDs=_ef;this.enableIDs=_ee;};_e4.prototype.toggle=function(){if(typeof jQuery!=="undefined"){var _f0="#"+this.hiddenVisibilityID;var _f1=jQuery(_f0).val();
25if(_f1=="1"){jQuery(_f0).val("0");}else{jQuery(_f0).val("1");}try{for(var i=0;i<this.disableIDs.length;i++){XControls.Action.Visibility.vars[this.disableIDs[i]+"_cont"].onChange();}for(var i=0;i<this.enableIDs.length;i++){XControls.Action.Visibility.vars[this.enableIDs[i]+"_cont"].onChange();}}catch(err){console.log("Fehler beim Einblenden der Filter-Speichern-Optionen.");}}else{console.log("GeoCMS.Content.Filter without jQuery needs to be implemented");}};_e4.instances={};_e4.submitApplyVal="apply";_e4.submitRemoveVal="remove";_e4.submitSaveVal="save";return _e4;}());_e3.Filter=_e4;})(_e2=_e1.Content||(_e1.Content={}));})(GeoCMSWrap||(GeoCMSWrap={}));var GeoCMSWrap;(function(_f3){var _f4;(function(_f5){var _f6=(function(){function _f6(_f7){this.cpagerContainerID=null;
26this.cpagerDialogSelection=null;this.cpagerID=null;this.cpagerIDPrefix=null;this.cpagerIDSuffix=null;this.cpagerQueryParams="";this.cpagerURL=null;this.id=null;if(_f7.id){this.id=_f7.id;_f6.instances[this.id]=this;}}_f6.create=function(_f8){if(_f8.id){if(typeof this.instances[_f8.id]!=="undefined"){return this.instances[_f8.id];}}return new this(_f8);};_f6.prototype.applyCustomization=function(){var _f9=this.cpagerIDPrefix+this.cpagerID+this.cpagerIDSuffix;if(this.cpagerContainerID!==null){if(typeof gc.widget.Div.instances[this.cpagerContainerID]!=="undefined"){var _fa=gc.widget.Div.instances[this.cpagerContainerID];var _fb=_fa.url;if(_fb.indexOf("?")<0){_fb+="?";}else{if(_fb.indexOf("&",_fb.length-1)!==_fb.length-1){_fb+="&";}}_fa.reload(_fb+this.cpagerQueryParams,GeoCMS.Utility.serializeForm(_f9+"_setform",{skipempty:true}));_fa.url=_fb;}else{alert("Fehler bei der Verarbeitung der Pageranpassung.");}}else{if(typeof jQuery!=="undefined"){
27jQuery("#"+_f9+"_setform").attr("action",this.cpagerURL);document.getElementById(_f9+"_setform").submit();}}};_f6.prototype.initPagerCustomization=function(id,_fd,_fe,url,_100){this.cpagerID=id;this.cpagerIDPrefix=_fd;this.cpagerIDSuffix=_fe;this.cpagerURL=url;this.cpagerContainerID=_100;var _101=this.cpagerIDPrefix+this.cpagerID+this.cpagerIDSuffix;if(typeof jQuery!=="undefined"){if(this.cpagerDialogSelection!==null){this.cpagerDialogSelection.dialog("destroy").remove();}this.cpagerDialogSelection=jQuery("#"+_101+"_selectdialog").dialog({autoOpen:false,appendTo:"body",closeText:"Schlie\xc3\u0178en",modal:true,resizable:false,width:"auto",minHeight:0});jQuery("#"+_101+"_select").on("click",function(){jQuery("#"+_101+"_selectdialog").dialog("open").dialog("widget").position({my:"right",at:"left",of:jQuery("#"+_101+"_select")});return false;});}var _102=url.split("?",2);if(_102.length>1){this.cpagerQueryParams=_102[1];}};_f6.instances={};return _f6;}());_f5.Pager=_f6;
28})(_f4=_f3.Content||(_f3.Content={}));})(GeoCMSWrap||(GeoCMSWrap={}));var GeoCMSWrap;(function(_103){var _104;(function(_105){var _106=(function(){function _106(_107){this.activator=null;this.ctableContainerID=null;this.ctableDialogConfiguration=null;this.ctableDialogSelection=null;this.ctableID=null;this.ctableIDPrefix=null;this.ctableQueryParams="";this.ctableURL=null;this.name="";this.execMultiactionFunction=null;this.toggle={text0:"Alle",text1:"Kein"};if(_107.name){this.name=_107.name;_106.instances[this.name]=this;}this.activator=jQuery("#activator"+_107.name);if(typeof _107.toggle!=="undefined"){if(_107.toggle.text0){this.toggle.text0=_107.toggle.text0;}if(_107.toggle.text1){this.toggle.text1=_107.toggle.text1;}}var _108=this;jQuery(this.activator).text(this.toggle.text0).on("click",function(_109){_108.checkAll();_109.preventDefault();return false;});}_106.create=function(_10a){if(_10a.name){if(typeof this.instances[_10a.name]!=="undefined"){return this.instances[_10a.name];}}
29return new this(_10a);};_106.prototype.applyPreset=function(){if(this.ctableContainerID!==null){if(typeof gc.widget.Div.instances[this.ctableContainerID]!=="undefined"){var _10b=gc.widget.Div.instances[this.ctableContainerID];var _10c=_10b.url;if(_10c.indexOf("?")<0){_10c+="?";}else{if(_10c.indexOf("&",_10c.length-1)!==_10c.length-1){_10c+="&";}}_10b.reload(_10c+this.ctableQueryParams,GeoCMS.Utility.serializeForm(this.ctableID+"_presetform",{skipempty:true}));_10b.url=_10c;}else{alert("Fehler bei der Verarbeitung der Tabellenanpassung.");}}else{if(typeof jQuery!=="undefined"){jQuery("#"+this.ctableID+"_presetform").attr("action",this.ctableURL);document.getElementById(this.ctableID+"_presetform").submit();}}};_106.prototype.checkAll=function(){if(this.activator){var text="";var flag=false;if(this.activator.text()==this.toggle.text0){text=this.toggle.text1;flag=true;}else{text=this.toggle.text0;flag=false;}this.activator.text(text);
30jQuery("input[type='checkbox'][name*='"+this.name+"']").prop("checked",flag);}};_106.prototype.execMultiaction=function(_10f){var _110=jQuery("input[type='checkbox'][name*='"+this.name+"']:checked");if(_110.length==0){alert("Sie haben keine Auswahl getroffen");return false;}var ids=[];jQuery.each(_110,function(idx,item){ids.push(jQuery(item).val());});var _114=jQuery("select[name='act_"+this.name+"'] > option:selected");if(_114.val()==""){alert("Sie haben keine Aktion gew\xc3\xa4hlt");return false;}if(_114.data("confirm")!=""&&!window.confirm(_114.data("confirm"))){return false;}switch(_114.data("type")){case "js":var res=false;this.execMultiactionFunction=eval(_114.val());if(typeof this.execMultiactionFunction==="function"){if(_114.data("params")!=""){var _116=_114.data("params");res=eval("this.execMultiactionFunction( ids, "+_116+" );");}else{res=this.execMultiactionFunction(ids);}}if(res&&_114.data("callback")){var _117=eval(_114.data("callback"));
30if(typeof _117==="function"){
31return _117(ids);}}return res;case "ajax":default:jQuery.ajax({type:"POST",url:_114.val(),data:{"id_list":ids}}).fail(function(_118,_119,_11a){var text=(_118.responseText?_118.responseText:"Es ist ein Fehler aufgetreten!");var html="<p><span class=\"ui-icon ui-icon-alert\" style=\"float:left;margin:0 7px 80px 0;\"></span>"+text+"</p>";var dlg=new GeoCMS.JQDialog("Fehler",320,200,true);dlg.addCloseButton("Ok");dlg.setHtml(html);dlg.open();}).done(function(msg){var _11f=null;if(_114.data("callback")){_11f=eval(_114.data("callback"));}else{if(typeof _10f=="function"){_11f=_10f;}else{_11f=function(){GeoCMS.Content.Core.reload();};}}if(typeof _11f==="function"){_11f();}});break;}return true;};_106.prototype.initTableCustomization=function(id,_121,url,_123,_124){if(_124===void 0){_124=1;}this.ctableID=id;this.ctableIDPrefix=_121;this.ctableURL=url;this.ctableContainerID=_123;var _125=this;if(typeof jQuery!=="undefined"){var _126="#"+this.ctableIDPrefix+this.ctableID+"_configdialog";
32var _127="#"+this.ctableIDPrefix+this.ctableID+"_selectdialog";var _128=jQuery(_126).find("script");_128.remove();if(this.ctableDialogConfiguration!==null){this.ctableDialogConfiguration.dialog("destroy").remove();}if(this.ctableDialogSelection!==null){this.ctableDialogSelection.dialog("destroy").remove();}this.ctableDialogSelection=jQuery(_127).dialog({autoOpen:false,appendTo:"body",closeText:"Schlie\xc3\u0178en",modal:true,resizable:false,width:250});this.ctableDialogConfiguration=jQuery(_126).dialog({autoOpen:false,appendTo:"body",closeText:"Schlie\xc3\u0178en",modal:true,resizable:true,width:_124?"80%":"80%",maxWidth:800,minWidth:300});jQuery("button.ui-dialog-titlebar-close").attr("title","Dialog beenden").attr("aria-label","Dialog beenden");jQuery(document).on("click","#"+this.ctableIDPrefix+this.ctableID+"_select",function(){_125.ctableDialogSelection.dialog("open").dialog("widget").position({my:"right",at:"left",of:jQuery("#"+_125.ctableIDPrefix+_125.ctableID+"_select")});
33return false;});jQuery(document).on("click","#"+this.ctableIDPrefix+this.ctableID+"_config",function(){_125.ctableDialogSelection.dialog("close");_125.ctableDialogConfiguration.dialog("open").dialog("widget").position({my:"center",at:"center",of:window});return false;});}var _129=url.split("?",2);if(_129.length>1){this.ctableQueryParams=_129[1];}};_106.prototype.resolveCustomizationSubmit=function(_12a,_12b,_12c,_12d,_12e,_12f,_130,_131){if(typeof jQuery!=="undefined"){var _132=jQuery("#"+_12d).val();if(!_132){if(_12e){jQuery("#"+_12e).val("");}this.submitCustomization(_12a,_12b,_12c,_12f);}else{if(!_131){if(_12e){jQuery("#"+_12e).val("");}this.submitCustomization(_12a,_12b,_12c,_130);}else{if(_131===_132){this.submitCustomization(_12a,_12b,_12c,_130);}else{var _133=this;var dlg=jQuery("<div></div>").dialog({autoOpen:false,appendTo:"body",buttons:[{click:function(){_133.submitCustomization(_12a,_12b,_12c,_130);jQuery(this).dialog("destroy").remove();
34},text:"Umbenennen"},{click:function(){if(_12e){jQuery("#"+_12e).val("");}_133.submitCustomization(_12a,_12b,_12c,_130);jQuery(this).dialog("destroy").remove();},text:"Neu anlegen"}],closeText:"Schlie\xc3\u0178en",open:function(){jQuery(this).html("Es wurde ein neuer Name f\xc3\xbcr die Zusammenstellung angegeben. M\xc3\xb6chten Sie die bisherige Zusammenstellung umbenennen oder die Zusammenstellung unter einem neuen Namen anlegen?");},modal:true,title:"Weitere Vorgehensweise",width:400});jQuery(dlg).dialog("open");}}}}else{alert("Kein jQuery vorhanden, breche Verarbeitung ab.");}};_106.prototype.submitCustomization=function(_135,_136,_137,_138){if(typeof jQuery!=="undefined"){jQuery("#"+_137).val(_138);if(this.ctableContainerID!==null){XControls.Element.BoxTree2Box.vars[_136].onFormSubmit();if(typeof gc.widget.Div.instances[this.ctableContainerID]!=="undefined"){var _139=gc.widget.Div.instances[this.ctableContainerID];var _13a=_139.url;if(_13a.indexOf("?")<0){_13a+="?";}else{
35if(_13a.indexOf("&",_13a.length-1)!==_13a.length-1){_13a+="&";}}_139.reload(_13a+this.ctableQueryParams,GeoCMS.Utility.serializeForm(_135,{skipempty:true}));_139.url=_13a;}else{alert("Fehler bei der Verarbeitung der Tabellenanpassung.");}}else{jQuery("#"+_135).attr("action",this.ctableURL);}}else{alert("Kein jQuery vorhanden, breche Verarbeitung ab.");}};_106.instances={};return _106;}());_105.Table=_106;var _13b=(function(_13c){__extends(_13b,_13c);function _13b(_13d){var _13e=_13c.call(this,_13d)||this;if(_13d.id){_106.instances[_13d.prefix+_13d.id]=_13e;}if(_13d.name){_106.instances[_13d.name]=_13e;}_13e.the_options=_13d;_13e.initDatatables(_13d);var _13f=_13e;jQuery(".dataTable").on("click","#activatorid",function(){_13f.checkAll();event.preventDefault();return false;});return _13e;}_13b.prototype.updateTableContent=function(){this.initDatatables(this.the_options);};_13b.prototype.refreshData=function(data){var _141=this.table;_141.DataTable().rows().remove();
36_141.DataTable().rows.add(data).draw();};_13b.prototype.refresh=function(){var _142=this.table;_142.DataTable().ajax.reload();};_13b.prototype.filter=function(val){var _144=this.table;var id="#"+this.ctableIDPrefix+this.ctableID;var col=jQuery(id+"_scolumn").val();if(col=="all"){_144.DataTable().search(val).draw();}else{_144.DataTable().column(col).search(val).draw();}};_13b.prototype.initDatatables=function(_147){var _dt=this;this.ctableID=_147.id;this.ctableIDPrefix=_147.prefix;var id="#"+this.ctableIDPrefix+this.ctableID;var para=_147.parameter;para.drawCallback=function(){var _14b=jQuery(id+"_wrapper").find(id+"_paginate");_14b.toggle(this.api().page.info().pages>1);};para.initComplete=function(){};this.table=jQuery(id);if(jQuery.fn.DataTable.fnIsDataTable(this.table)){var t=this.table.DataTable();t.destroy();}var _14d=this.table;_14d.DataTable(para);jQuery(".dt_wrapper").on("keyup","#"+this.ctableID+"_filterboxAll",function(){_dt.filter(this.value);});
37jQuery(".dt_wrapper").on("change",".buttons-select-all",function(){var t=_14d.DataTable();if(jQuery(this).is(":checked")){t.rows().select();}else{t.rows().deselect();}});};_13b.prototype.iformat=function(icon){var _150=icon.element;
37return jQuery("<span><i class=\"icon icon-"+jQuery(_150).data("icon")+"\"></i> "+"v "+icon.text+"</span>");};_13b.prototype.date2numeric=function(date,_152){if(_152===void 0){_152=false;}if(_152==true){var _153=date.split(" ");var _154=_153[0].replace(/-/g,"");}else{var _153=date.split(".");var _154=_153[2]+_153[1]+_153[0];}return _154;};_13b.prototype.addDateRangeFilter=function(col){if(col===void 0){col=NULL;}var _dtF=this;if(!isNaN(col)){jQuery.fn.dataTable.ext.search.push(function(_157,data,_159){console.log("RangeFilter");var minV=jQuery("input[name=\"dateStart\"]").val();var maxV=jQuery("input[name=\"dateEnd\"]").val();var min=parseFloat(_dtF.date2numeric((isNaN(minV)?minV:"1970.01.01")));
38var max=parseFloat(_dtF.date2numeric((isNaN(maxV)?maxV:"2050.12.31")));var age=parseFloat(_dtF.date2numeric(data[col],true));if((isNaN(min)&&isNaN(max))||(isNaN(min)&&age<=max)||(min<=age&&isNaN(max))||(min<=age&&age<=max)){return true;}return false;});}};_13b.instances={};return _13b;}(_106));_105.DataTable=_13b;})(_104=_103.Content||(_103.Content={}));})(GeoCMSWrap||(GeoCMSWrap={}));var GeoCMSWrap;(function(_15f){var _160;(function(_161){var _162=(function(){function _162(geom,_164,id){this.description=null;this.geom=null;this.iconDimension={width:32,height:32,x:-16,y:-32};this.icon="res/images/geo/brainmarker_blue.png";this.id=null;this.identifier=null;this.statusDrawn={};this.style={};this.title=null;this.type=null;this.url=null;this.urlTarget=null;if(geom instanceof GeoCMS.ModuleFeature.Geom){this.geom=geom;}if(_164){this.title=_164;}if(id){this.id=id;}}_162.prototype.getDescription=function(){return this.description;};_162.prototype.getGeom=function(){if(!this.geom){
39this.geom=new _161.Geom(null,null,null,null);}return this.geom;};_162.prototype.getGeomAsWKT=function(_166){if(_166===true){return this.geom.getCRS(null)+";"+this.geom.getWKT(null);}else{return this.geom.getWKT(null);}};_162.prototype.getIcon=function(){return this.icon;};_162.prototype.getIconDimension=function(){return this.iconDimension;};_162.prototype.getIconFile=function(){return this.icon;};_162.prototype.getID=function(){return this.id;};_162.prototype.getIdentifier=function(){return this.identifier;};_162.prototype.getLink=function(){return this.url;};_162.prototype.getStyle=function(){return this.style;};_162.prototype.getTitle=function(){return this.title;};_162.prototype.getType=function(){return this.type;};_162.prototype.getUrl=function(){return this.url;};_162.prototype.getUrlTarget=function(){return this.urlTarget;};_162.prototype.info=function(){
40return "Titel: "+this.title+", ID: "+this.id+", URL: "+this.url+", Geometrie: "+(this.geom&&this.geom instanceof GeoCMS.ModuleFeature.Geom?this.geom.info():null);};_162.prototype.isDrawn=function(_167){return (typeof this.statusDrawn[_167]!=="undefined"&&this.statusDrawn[_167]===true);};_162.prototype.isMarkerType=function(){return (this.icon&&this.geom&&this.geom instanceof GeoCMS.ModuleFeature.Geom&&this.geom.isInitedAsWKT()===false);};_162.prototype.setDescription=function(_168){this.description=_168;return this;};_162.prototype.setGeom=function(geom){if(geom instanceof GeoCMS.ModuleFeature.Geom){this.geom=geom;}return this;};_162.prototype.setIcon=function(icon){this.icon=icon;return this;};_162.prototype.setIconDimension=function(_16b,_16c,x,y){this.iconDimension={width:_16b,height:_16c,x:x,y:y};return this;};_162.prototype.setIconFile=function(icon){this.icon=icon;return this;};_162.prototype.setID=function(id){this.id=id;return this;};
41_162.prototype.setIdentifier=function(_171){this.identifier=_171;return this;};_162.prototype.setLink=function(url){this.url=url;return this;};_162.prototype.setStatusDrawn=function(_173,_174){this.statusDrawn[_173]=_174===true;return this;};_162.prototype.setStyle=function(_175){if(typeof _175==="object"){this.style=_175;}return this;};_162.prototype.setTitle=function(_176){this.title=_176;return this;};_162.prototype.setType=function(type){this.type=type;return this;};_162.prototype.setUrl=function(url){this.url=url;return this;};_162.prototype.setUrlTarget=function(_179){this.urlTarget=_179;return this;};return _162;}());_161.Feature=_162;})(_160=_15f.ModuleFeature||(_15f.ModuleFeature={}));})(GeoCMSWrap||(GeoCMSWrap={}));var GeoCMSWrap;(function(_17a){var _17b;
41(function(_17c){var Geom=(function(){function Geom(x,y,crs,ewkt){this.crs={};this.statusWKT=false;this.wkt={};this.x={};this.y={};this.crs={"null":"EPSG:4326"};this.wkt={"null":null};this.x={"null":null};
42this.y={"null":null};if(x&&y){this.setXY(x,y,null);}if(crs){this.setCRS(crs,null);}if(ewkt){this.statusWKT=true;this.setWKT(ewkt,null);}}Geom.prototype.getCRS=function(_182){if(typeof this.crs[_182]==="undefined"){this.crs[_182]=this.crs[null];}return this.crs[_182];};Geom.prototype.getWKT=function(_183){if(typeof this.wkt[_183]==="undefined"){if(this.getX(_183)&&this.getY(_183)){this.setWKT("POINT("+this.getX(_183)+" "+this.getY(_183)+")",_183);}else{this.wkt[_183]=this.wkt[null];}}return this.wkt[_183];};Geom.prototype.getX=function(_184){if(typeof this.x[_184]==="undefined"){this.x[_184]=this.x[null];}return this.x[_184];};Geom.prototype.getY=function(_185){if(typeof this.y[_185]==="undefined"){this.y[_185]=this.y[null];}return this.y[_185];};Geom.prototype.info=function(){return "[Geometrie-Info] X-Wert: "+this.getX(null)+", Y-Wert: "+this.getY(null)+", CRS: "+this.getCRS(null)+", WKT: "+this.getWKT(null);};Geom.prototype.isInitedAsWKT=function(){return (this.statusWKT===true);};
43Geom.prototype.setCRS=function(crs,_187){var _188=_187;if(!_188){_188=null;}if(crs){if(crs.match(new RegExp("^EPSG:","ig"))){this.crs[_188]=crs.toUpperCase();}else{this.crs[_188]="EPSG:"+crs;}}return this;};Geom.prototype.setWKT=function(ewkt,_18a){var _18b=_18a;if(!_18b){_18b=null;}if(ewkt){var _18c=ewkt.split(";");if(_18c.length===1){this.wkt[_18b]=_18c[0];}else{this.setCRS(_18c[0],_18b);this.wkt[_18b]=_18c[1];}}else{this.wkt[_18b]=null;}return this;};Geom.prototype.setX=function(x,_18e){var _18f=_18e;if(!_18f){_18f=null;}this.x[_18f]=x;return this;};Geom.prototype.setXY=function(x,y,_192){this.setX(x,_192);this.setY(y,_192);this.setWKT("POINT("+this.getX(_192)+" "+this.getY(_192)+")",_192);return this;};Geom.prototype.setY=function(y,_194){var _195=_194;if(!_195){_195=null;}this.y[_195]=y;return this;};return Geom;}());_17c.Geom=Geom;})(_17b=_17a.ModuleFeature||(_17a.ModuleFeature={}));})(GeoCMSWrap||(GeoCMSWrap={}));var GeoCMSWrap;(function(_196){var _197;(function(_198){
44var _199=(function(){function _199(){}_199.addFeature=function(_19a,_19b,_19c){if(_19c===void 0){_19c=null;}var _19d=_19b;var _19e=_19c;var _19f=_19a.getStyle();if(_19f&&typeof _19f==="object"&&typeof OpenLayers!=="undefined"){_19f=OpenLayers.Util.applyDefaults(_19f,OpenLayers.Feature.Vector.style["default"]);}else{_19f={};}_19a.setStyle(_19f);if(!_19d){_19d=[this.defaultMapName];}else{if(typeof _19d==="string"){_19d=[_19d];}}if(!_19e){_19e=this.defaultSourceName;}for(var i=0;i<_19d.length;i++){if(!this.featureList[_19d[i]]){this.featureList[_19d[i]]={};}if(this.featureList[_19d[i]][_19e]){this.featureList[_19d[i]][_19e].push(_19a);}else{this.featureList[_19d[i]][_19e]=[_19a];}}};_199.addFeatures=function(_1a1,_1a2,_1a3){if(_1a3===void 0){_1a3=null;}var _1a4=_1a3;if(!_1a4){_1a4=this.defaultSourceName;}if(this.isArray(_1a1)){for(var i=0;i<_1a1.length;i++){this.addFeature(_1a1[i],_1a2,_1a4);}}};_199.addSourceTitle=function(_1a6,_1a7,_1a8){var _1a9=_1a6;var _1aa=_1a7;if(!_1a9){
45_1a9=this.defaultMapName;}if(!_1aa){_1aa=this.defaultSourceName;}if(typeof this.sourceTitles[_1a9]==="undefined"){this.sourceTitles[_1a9]={};}this.sourceTitles[_1a9][_1aa]=_1a8;};_199.clearFeatures=function(_1ab){this.featureList[_1ab]={};};_199.disableFeaturePopup=function(){this.flagFeaturePopup=false;};_199.drawOnGoogleMap=function(map,_1ad,_1ae){if(_1ad===void 0){_1ad=null;}if(_1ae===void 0){_1ae=false;}if(map&&map instanceof gc.gcgooglemap.GCGoogleMap&&this.hasFeaturesForMapName(map.mapname)){for(var _1af in this.featureList[map.mapname]){if(this.featureList[map.mapname].hasOwnProperty(_1af)){if(_1ad){if(_1ad!==_1af){continue;}}if(_1ae===true){map.clear();}for(var i=0;i<this.featureList[map.mapname][_1af].length;i++){var _1b1=this.featureList[map.mapname][_1af][i];if(_1b1.isDrawn(map.mapname)===false||_1ae===true){var _1b2={};_1b2.cfg=_1b1.getStyle();_1b2.content=_1b1.getDescription();_1b2.icon=_1b1.getIcon();_1b2.title=_1b1.getTitle();_1b2.type="wkt";_1b2.url=_1b1.getUrl();
46_1b2.urlTarget=_1b1.getUrlTarget();var crs=_1b1.getGeom().getCRS(map.mapname);var wkt=_1b1.getGeom().getWKT(map.mapname);if(crs!==this.crsWelt){continue;}if(wkt){_1b2.wkt=wkt;map.addFeature(_1b2);}}}}}}};_199.drawOnOpenLayers=function(map,_1b6,_1b7){if(_1b6===void 0){_1b6=null;}if(_1b7===void 0){_1b7=false;}if(map&&map instanceof gc.Map&&this.featureList[map.name]){if(this.mapList.indexOf(map.name)<0){this.mapList.push(map.name);}var _1b8=this;var _1b9=function(_1ba,_1bb){if(!_1bb||typeof _1bb.xy==="undefined"){return;}if(_199.hasPopupCallbacksForMapName(map.name)){return _199.popupCallbacks[map.name].constructor.call(window,"popup_open",_1ba,_1bb.xy);}if(typeof jQuery!=="undefined"){_1b8.removeFeaturePopup();var _1bc=["gc_map_popup_noclose"];var _1bd="left";var _1be=25;var _1bf=150;var _1c0="left+"+_1bb.xy.x+" top+"+_1bb.xy.y;if(jQuery(map.map.div).offset().left+_1bb.xy.x+_1bf+_1be>jQuery(document).width()){_1bc.push("gc_map_popup_right");_1bd="right";
47_1c0="left+"+(_1bb.xy.x-_1bf)+" top+"+_1bb.xy.y;}else{_1bc.push("gc_map_popup_left");}_1b8.popup=jQuery(_1b8.createFeaturePopupContent(_1ba)).dialog({appendTo:"#"+map.id+"_popup_container",dialogClass:_1bc.join(" "),autoOpen:false,resizable:false,draggable:false,modal:false,height:"auto",minHeight:30,width:_1bf,title:_1ba.attributes.title,show:{effect:"slide",direction:_1bd,duration:300},position:{my:"left top",at:_1c0,of:map.map.div}}).dialog("open");}else{var _1c1="<div style=\"padding: 2px 0;\">
47<span style=\"cursor:pointer;\">"+_1ba.attributes.title+"</span></div>";var _1c2=map.markerManager.tooltipTag;_1c2.innerHTML=_1c1;if(_1c1!==""){if(_1c2.style.position==="absolute"){_1c2.style.left=(_1bb.xy.x+10)+"px";_1c2.style.top=(_1bb.xy.y+10)+"px";}_1c2.style.display="";}}};var _1c3=function(){if(_199.hasPopupCallbacksForMapName(map.name)){if(_199.popupCallbacks[map.name].destructor){return _199.popupCallbacks[map.name].destructor.call(window,"popup_close");}return;}
48if(typeof jQuery!=="undefined"){_1b8.removeFeaturePopup();}else{map.markerManager.onTooltipHide(null);}};var _1c4=function(_1c5,lon,lat){var xy=map.map.getPixelFromLonLat(new OpenLayers.LonLat(lon,lat));if(_199.hasPopupCallbacksForMapName(map.name)){if(_199.popupCallbacks[map.name].click){return _199.popupCallbacks[map.name].click.call(window,"feature_click",_1c5,xy);}return;}if(typeof jQuery!=="undefined"){var _1c9={"xy":xy};_1b9(_1c5,_1c9);}else{map.markerManager.onTooltipHide(null);_1b8.showMapFeaturePopup(map,_1c5,_1b8.createFeaturePopupContent(_1c5));}};var _1ca=void 0;var _1cb=void 0;var _1cc=void 0;for(_1cc in this.featureList[map.name]){if(this.featureList[map.name].hasOwnProperty(_1cc)){if(_1b6){if(_1b6!==_1cc){continue;}}_1ca=map.getLayerTracking(this.createTrackingLayerTitle(map.name,_1cc));if(!_1ca){var _1cd={displayInLayerSwitcher:false,rendererOptions:{zIndexing:true,yOrdering:true}};
49if(typeof this.sourceTitles[map.name]!=="undefined"&&typeof this.sourceTitles[map.name][_1cc]!=="undefined"){_1cd.displayInLayerSwitcher=true;}_1ca=map.addLayerTracking(this.createTrackingLayerTitle(map.name,_1cc),null,_1cd);if(this.flagFeaturePopup===true){if(_1cb){if(!_1cb.layers){_1cb.setLayer([_1cb.layer,_1ca.layer]);}else{var _1ce=_1cb.layers;_1ce.push(_1ca.layer);_1cb.setLayer(_1ce);}_1ca.hoverCtrl=_1cb;}_1ca.addOnClickFeature(_1c4,this);_1ca.addOnHoverFeature(_1b9,this);_1ca.addOnHoverOutFeature(_1c3,this);if(!_1cb&&_1ca.hoverCtrl){_1cb=_1ca.hoverCtrl;}}}if(_1ca&&_1b7===true){_1ca.clear();}for(var i=0;i<this.featureList[map.name][_1cc].length;i++){var _1d0=this.featureList[map.name][_1cc][i];_1d0.setIdentifier(_1cc+this.separator+i);var wkt=_1d0.getGeom().getWKT(map.name);var _1d2=null;if(wkt){try{var _1d3=new OpenLayers.Format.WKT();_1d2=_1d3.read(wkt);
50if(typeof _1d2==="object"&&_1d2 instanceof OpenLayers.Feature.Vector&&_1d2.geometry&&_1d2.geometry instanceof OpenLayers.Geometry.Point){_1d0.getGeom().setXY(_1d2.geometry.x,_1d2.geometry.y,map.name);}}catch(e){GeoCMS.Console.error(e);}}var _1d4=_1d0.getStyle();if(_1d0.isMarkerType()===true){if(_1d0.isDrawn(map.name)===false||_1b7===true){if(this.checkJSTransform(map.map.projection,_1d0.getGeom().getCRS(map.name))){var _1d5=void 0,_1d6=void 0,_1d7=void 0;if(map.map.projection===this.crsMerkator){_1d5=gc.proj.mercator.toX(_1d0.getGeom().getX(map.name));_1d6=gc.proj.mercator.toY(_1d0.getGeom().getY(map.name));_1d7=this.crsMerkator;}else{_1d5=gc.proj.mercator.toLon(_1d0.getGeom().getX(map.name));_1d6=gc.proj.mercator.toLat(_1d0.getGeom().getY(map.name));_1d7=this.crsWelt;}_1d0.getGeom().setXY(_1d5,_1d6,map.name);_1d0.getGeom().setCRS(_1d7,map.name);}if(map.map.projection===_1d0.getGeom().getCRS(map.name)){var _1d8=_1d0.getIconDimension();_1d4.externalGraphic=_1d0.getIcon();
51_1d4.fillOpacity=1;_1d4.graphicWidth=_1d8.width;_1d4.graphicHeight=_1d8.height;_1d4.graphicXOffset=_1d8.x;_1d4.graphicYOffset=_1d8.y;if(typeof _1d4.graphicZIndex==="undefined"){_1d4.graphicZIndex=1000;}var _1d9=new OpenLayers.Feature.Vector(new OpenLayers.Geometry.Point(_1d0.getGeom().getX(map.name),_1d0.getGeom().getY(map.name)),null,_1d4);_1d9.attributes.id=_1d0.getID();_1d9.attributes.title=_1d0.getTitle();_1d9.attributes.description=_1d0.getDescription();_1d9.attributes.url=_1d0.getUrl();_1d9.attributes.urlTarget=_1d0.getUrlTarget();_1ca.addFeature(_1d9,null,null);_1d0.setStatusDrawn(map.name,true);}else{this.enqueueTransformRequest(_1d0,map);}}}else{if(_1ca&&_1d2){if(_1d0.isDrawn(map.name)===false||_1b7===true){if(map.map.projection===_1d0.getGeom().getCRS(map.name)){if(this.isArray(_1d2)){for(var j=0;j<_1d2.length;j++){_1d2[j].attributes.id=_1d0.getID();_1d2[j].attributes.title=_1d0.getTitle();_1d2[j].attributes.description=_1d0.getDescription();
52_1d2[j].attributes.url=_1d0.getUrl();_1d2[j].attributes.urlTarget=_1d0.getUrlTarget();if(typeof _1d4.graphicZIndex==="undefined"){_1d4.graphicZIndex=i+5;}_1ca.addFeature(_1d2[j],null,_1d4);}}else{_1d2.attributes.id=_1d0.getID();_1d2.attributes.title=_1d0.getTitle();_1d2.attributes.description=_1d0.getDescription();_1d2.attributes.url=_1d0.getUrl();_1d2.attributes.urlTarget=_1d0.getUrlTarget();if(typeof _1d4.graphicZIndex==="undefined"){_1d4.graphicZIndex=i+5;}_1ca.addFeature(_1d2,null,_1d4);}_1d0.setStatusDrawn(map.name,true);}else{this.enqueueTransformRequest(_1d0,map);}}}}}}}var _1db=new OpenLayers.Bounds(null,null,null,null);var _1dc=false;var _1dd=false;var _1de=0;for(_1cc in this.featureList[map.name]){if(this.featureList[map.name].hasOwnProperty(_1cc)){var _1df=null;_1ca=map.getLayerTracking(this.createTrackingLayerTitle(map.name,_1cc));if(_1ca&&_1ca.getFeatureCount()>
520){_1df=_1ca.layer.getDataExtent();_1de+=_1ca.getFeatureCount();if(_1ca.getFeatureCount()===1){
53var _1e0=_1ca.layer.features[0];if(_1e0.geometry&&_1e0.geometry instanceof OpenLayers.Geometry.Point){_1dd=true;}}}if(_1df){_1dc=true;_1db.extend(_1df);}}}if(_1dc===true){map.map.zoomToExtent(_1db);if(_1dd===true&&_1de===1){map.setZoom(map.baseZoom.zoom);}}this.performTransformRequests();}};_199.enableFeaturePopup=function(){this.flagFeaturePopup=true;};_199.hasFeaturesForMapName=function(_1e1){if(typeof this.featureList[_1e1]==="undefined"){return false;}var _1e2=0;for(var _1e3 in this.featureList[_1e1]){if(this.featureList[_1e1].hasOwnProperty(_1e3)){_1e2+=this.featureList[_1e1][_1e3].length;}}return _1e2>0;};_199.hasPopupCallbacksForMapName=function(_1e4){return (typeof this.popupCallbacks[_1e4]!=="undefined");};_199.isArray=function(a){return (Object.prototype.toString.call(a)==="[object Array]");};_199.registerPopupCallbacks=function(_1e6,_1e7,_1e8,_1e9){if(_1e7===void 0){_1e7=null;}if(_1e8===void 0){_1e8=null;}var _1ea=_1e9;if(!_1ea){_1ea=[this.defaultMapName];}else{
54if(typeof _1ea==="string"){_1ea=[_1ea];}}var _1eb=_1e8;if(typeof _1eb!=="function"){_1eb=null;}var _1ec=_1e7;if(typeof _1ec!=="function"){_1ec=null;}if(typeof _1e6==="function"){for(var i=0;i<_1ea.length;i++){var _1ee=_1ea[i];var _1ef={};_1ef.constructor=_1e6;_1ef.destructor=_1ec;_1ef.click=_1eb;this.popupCallbacks[_1ee]=_1ef;}return true;}return false;};_199.setFeatures=function(_1f0,_1f1,_1f2){var _1f3=_1f0;var _1f4=_1f1;var _1f5=_1f2;if(!_1f5){_1f5=this.defaultSourceName;}if(_1f4===null){_1f4=[this.defaultMapName];}else{if(typeof _1f4==="string"){_1f4=[_1f4];}}if(this.isArray(_1f3)){for(var i=0;i<_1f4.length;i++){var _1f7=_1f4[i];this.featureList[_1f7][_1f5]=_1f3;if(gc.Map.instances[_1f7]&&this.mapList.indexOf(_1f7)>=0){this.drawOnOpenLayers(gc.Map.instances[_1f7],_1f5,true);}}}};_199.checkJSTransform=function(_1f8,_1f9){if(_1f8===_1f9){return false;}return (_1f8===this.crsWelt||_1f8===this.crsMerkator)&&(_1f9===this.crsWelt||_1f9===this.crsMerkator);};
55_199.closeMapFeaturePopup=function(map,_1fb){if(map&&typeof _1fb.popup!=="undefined"&&_1fb.popup){map.popupManager.closePopup(_1fb.popup);_1fb.popup.destroy();_1fb.popup=null;}};_199.createFeaturePopupContent=function(_1fc){var _1fd;var _1fe;if(typeof jQuery!=="undefined"){_1fe=_1fc.attributes.title;if(_1fc.attributes.url){if(_1fc.attributes.urlTarget){_1fd=" target=\""+_1fc.attributes.urlTarget+"\"";}else{_1fd="";}_1fe="<a href=\""+_1fc.attributes.url+"\""+_1fd+">"+_1fe+"</a>";}if(_1fc.attributes.description){return "<div>"+"<div class=\"popup-title\">"+_1fe+"</div>"+"<div class=\"popup-desc\">"+_1fc.attributes.description+"</div>"+"</div>";}else{return "<div>"+"<div class=\"popup-title\">"+_1fe+"</div>"+"</div>";}}else{_1fe="<strong>"+_1fc.attributes.title+"</strong>";if(_1fc.attributes.url){if(_1fc.attributes.urlTarget){_1fd=" target=\""+_1fc.attributes.urlTarget+"\"";}else{_1fd="";}_1fe="<a href=\""+_1fc.attributes.url+"\""+_1fd+">"+_1fe+"</a>";}var _1ff="";
56if(_1fc.attributes.description){_1ff="<br />"+_1fc.attributes.description;}return "<div style=\"font-size:.9em;font-family:arial,sans-serif;color:#000;\">"+_1fe+_1ff+"</div>";}};_199.createTrackingLayerTitle=function(_200,_201){if(typeof this.sourceTitles[_200]!=="undefined"&&typeof this.sourceTitles[_200][_201]!=="undefined"){return this.sourceTitles[_200][_201];}return this.defaultTrackingLayerTitle+this.separator+_201;};_199.enqueueTransformRequest=function(_202,map){if(!this.transformQueue[map.name]){this.transformQueue[map.name]={};}if(!this.transformQueue[map.name][_202.getGeom().getCRS(map.name)]){this.transformQueue[map.name][_202.getGeom().getCRS(map.name)]=[];}for(var i=0;i<this.transformQueue[map.name][_202.getGeom().getCRS(map.name)].length;i++){if(_202.getIdentifier()===this.transformQueue[map.name][_202.getGeom().getCRS(map.name)][i].identifier){return;}}var _205={};_205.identifier=_202.getIdentifier();_205.request=_202.getGeom().getWKT(map.name);_205.response="";
57_205.sent=false;this.transformQueue[map.name][_202.getGeom().getCRS(map.name)].push(_205);};_199.onFinishTransformRequest=function(data,url){for(var _208 in this.requestList){if(this.requestList.hasOwnProperty(_208)&&this.requestList[_208]===url){var _209=_208.split(this.separator);var _20a=_209[0];if(this.transformQueue[_209[0]]&&this.transformQueue[_209[0]][_209[1]]){var _20b=this.transformQueue[_209[0]][_209[1]];if(this.isArray(data)){for(var i=_20b.length-1;i>=0;i--){if(data[i]){_20b[i].response=data[i];}if(_20b[i].identifier){var _20d=_20b[i].identifier.split(this.separator);if(_20d.length===2&&gc.Map.instances[_209[0]]){var _20e=_20d[0];var _20f=parseInt(_20d[1]);this.featureList[_20a][_20e][_20f].getGeom().setCRS(gc.Map.instances[_20a].map.projection,gc.Map.instances[_20a].name);this.featureList[_20a][_20e][_20f].getGeom().setWKT(data[i],gc.Map.instances[_20a].name);}}}}}if(gc.Map.instances[_20a]){this.drawOnOpenLayers(gc.Map.instances[_20a],null,fal
57se);}
58delete this.requestList[_208];break;}}};_199.performTransformRequests=function(){var _210=GeoCMS.Network.Request.RESPONSE_JSON;for(var _211 in _199.transformQueue){if(_199.transformQueue.hasOwnProperty(_211)&&typeof gc.Map.instances[_211]!=="undefined"){var _212=gc.Map.instances[_211].map.projection;var _213=gc.Map.instances[_211].getTransformURL();if(_213){var _214=function(_215){if(_199.transformQueue[_211].hasOwnProperty(_215)){var _216=_211+_199.separator+_215;var _217=[];var _218=[];for(var i=0;i<_199.transformQueue[_211][_215].length;i++){if(_199.transformQueue[_211][_215][i].sent===false){_217.push(_199.transformQueue[_211][_215][i].request);_218.push("wkt[]="+encodeURI(_199.transformQueue[_211][_215][i].request));_199.transformQueue[_211][_215][i].sent=true;}}if(_217.length>0&&_218.length>0){var _21a=_213+(_213.indexOf("?")>=0?"&":"?")+_218.join("&")+"&crs_source="+encodeURI(_215)+"&crs_target="+encodeURI(_212);_199.requestList[_216]=_21a;if(typeof jQuery==="undefined"){
59var req=new GeoCMS.Network.Request(_21a,_199.onFinishTransformRequest,_199,_210,true);GeoCMS.Network.XHR.addRequest(req,false);}else{jQuery.ajax({type:"POST",url:_213,dataType:"json",data:{"crs_source":_215,"crs_target":_212,"wkt":_217}}).done(function(data,_21d,_21e){_199.onFinishTransformRequest(data,_21a);});}}}};for(var _21f in _199.transformQueue[_211]){_214(_21f);}}}}};_199.removeFeaturePopup=function(){if(this.popup){this.popup.dialog("destroy").remove();this.popup=null;}};_199.showMapFeaturePopup=function(map,_221,_222){if(_221.geometry&&_222){var _223=_221.geometry.getCentroid();this.closeMapFeaturePopup(map,_221);var _224=this;_221.popup=map.popupManager.showPopupCloud("popup_"+_221.id,_223.x,_223.y,_222,true,{},function(){_224.closeMapFeaturePopup(map,_221);});}return _221.popup;};_199.crsMerkator="EPSG:900913";_199.crsWelt="EPSG:4326";_199.defaultMapName="default";_199.defaultSourceName="default";_199.defaultTrackingLayerTitle="ModFeatureManagerTrackingLayer";
60_199.featureList={};_199.flagFeaturePopup=true;_199.keyPopupClick="click";_199.keyPopupConstructor="constructor";_199.keyPopupDestructor="destructor";_199.mapList=[];_199.popup=null;_199.popupCallbacks={};_199.requestList={};_199.separator="|";_199.sourceTitles={};_199.transformQueue={};return _199;}());_198.Manager=_199;})(_197=_196.ModuleFeature||(_196.ModuleFeature={}));})(GeoCMSWrap||(GeoCMSWrap={}));var GeoCMSWrap;(function(_225){var _226;(function(_227){var _228=(function(){function _228(url,_22a,_22b,_22c,_22d,_22e){if(_22c===void 0){_22c=_228.RESPONSE_TEXT;}if(_22d===void 0){_22d=false;}if(_22e===void 0){_22e=null;}this.callbackFunction=null;this.callbackObject=null;this.callbackOnStartFunction=null;this.callbackOnStartObject=null;this.highPriority=false;this.noCache=false;this.persistent=false;this.postContentType="application/x-www-form-urlencoded";this.postData=null;this.responseType=null;this.url=null;this.callbackFunction=_22a;this.callbackObject=_22b;this.noCache=_22d;
61this.postData=_22e;this.responseType=_22c;this.url=url;}_228.prototype.readPostDataFromForm=function(form){if(form){this.postData=GeoCMS.Utility.serializeForm(form);}};_228.RESPONSE_JSON="json";_228.RESPONSE_TEXT="text";_228.RESPONSE_XML="xml";return _228;}());_227.Request=_228;})(_226=_225.Network||(_225.Network={}));})(GeoCMSWrap||(GeoCMSWrap={}));var GeoCMSWrap;(function(_230){var _231;(function(_232){var XHR=(function(){function XHR(){}XHR.addRequest=function(_234,_235){if(_235===void 0){_235=false;}_234.highPriority=_235;if(this.method==1){this.checkJSError();}if(_234.highPriority&&this.requests.length>1){for(var i=this.requests.length-1;i>=0;i--){if(i==0||this.requests[i].highPriority){this.requests[i+1]=_234;break;}else{this.requests[i+1]=this.requests[i];}}}else{this.requests.push(_234);}if(this.requests.length==1){this.sendRequest();}};XHR.newRequest=function(url,_238,_239,_23a,_23b,_23c,_23d){var _23e=new GeoCMS.Network.Request(url,_238,_239,_23a,_23b,_23c);
62_23e.persistent=false;this.addRequest(_23e,_23d);};XHR.onJSCallback=function(_23f){var _240=_23f;this.freeScriptTag();if(this.requests[0].responseType==GeoCMS.Network.Request.RESPONSE_JSON){_240=JSON.parse(_240);}this.sendResponse(_240);};XHR.checkJSError=function(){this.initDate();if(this.requests.length>0&&this.script_tag&&(this.date.getTime()-this.script_time)>15000){this.freeScriptTag();this.onError();}};XHR.freeScriptTag=function(){if(this.script_tag){if(!GeoCMS.Core.isIE()&&!GeoCMS.Core.isSafari()){try{GeoCMS.Core.getDocumentHead().removeChild(this.script_tag);}catch(exc){GeoCMS.Console.error(exc);}try{delete this.script_tag;}catch(exc){GeoCMS.Console.error(exc);}}this.script_tag=null;this.script_time=null;}};XHR.init=function(){this.initDate();if(this.method==1){this.initScriptTag();}else{this.initXHR();}};XHR.initDate=function(){try{delete this.date;}finally{this.date=new Date();}};XHR.initScriptTag=function(){this.freeScriptTag();this.script_time=this.date.getTime();};
63XHR.initXHR=function(){if(this.xhr){try{delete this.xhr;}catch(exc){GeoCMS.Console.error(exc);}}if(XMLHttpRequest){if(!this.xhr){this.xhr=new XMLHttpRequest();this.xhr.onerror=this.onError;}}else{try{this.xhr=new ActiveXObject("Msxml2.XMLHTTP");}catch(exc){try{this.xhr=new ActiveXObject("Microsoft.XMLHTTP");}catch(exc){this.xhr=null;GeoCMS.Console.error(exc);}}}if(this.xhr){this.xhr.onreadystatechange=this.onReadyStateChange;}};XHR.sendRequest=function(){if(this.requests.length>0){this.init();if(this.requests.length>0){if(this.requests[0].callbackOnStartFunction){try{this.requests[0].callbackOnStartFunction.call(this.requests[0].callbackOnStartObject,this.requests[0].url);}catch(exc){}}var _241="GET";var url=this.requests[0].url;var data=null;var _244=null;if(url.indexOf("?")>=0){url+="&";}else{url+="?";}if(document.charset){url+="charset="+document.charset;}else{if(document.characterSet){url+="charset="+document.characterSet;}else{if(document.inputEncoding){
64url+="charset="+document.inputEncoding;}}}if(this.requests[0].postData&&this.requests[0].postData!=""){_241="POST";data=this.requests[0].postData;_244=this.requests[0].postContentType;}if(this.requests[0].noCache&&(_241!="POST"||this.method==1)){url+="&timestamp_no_cac
64he="+this.date.getTime();}url+=this.urlPostfix;try{if(this.method==1){url+="&useCallback=1";if(data){url+="&"+data;}this.script_tag=document.createElement("script");this.script_tag.type="text/javascript";this.script_tag.src=url;GeoCMS.Core.getDocumentHead().appendChild(this.script_tag);}else{this.xhr.open(_241,url,true);if(_244){this.xhr.setRequestHeader("Content-Type",_244);}this.xhr.send(data);}}catch(exc){GeoCMS.Console.error(exc);this.onError();}}}};XHR.sendResponse=function(_245){if(this.requests.length>0){try{if(this.requests[0].callbackFunction){if(this.requests[0].callbackObject){this.requests[0].callbackFunction.call(this.requests[0].callbackObject,_245,this.requests[0].url);}else{
65this.requests[0].callbackFunction(_245,this.requests[0].url);}}}catch(exc){GeoCMS.Console.error(exc);}var _246=this.requests.shift();try{if(!_246.persistent){delete _246;}}catch(exc){GeoCMS.Console.error(exc);}this.sendRequest();}};XHR.onError=function(){if(XHR.requests.length>0){var _247=XHR.requests.shift();try{if(_247.callbackFunction){if(_247.callbackObject){_247.callbackFunction.call(_247.callbackObject,null);}else{_247.callbackFunction(null);}}}catch(exc){GeoCMS.Console.error(exc);}try{if(!_247.persistent){delete _247;}}catch(exc){GeoCMS.Console.error(exc);}XHR.sendRequest();}};XHR.onReadyStateChange=function(){if(XHR.xhr&&XHR.xhr.readyState==4&&XHR.requests.length>0){try{var _248=null;if(XHR.requests[0].responseType==GeoCMS.Network.Request.RESPONSE_XML){_248=XHR.xhr.responseXML;}else{if(XHR.requests[0].responseType==GeoCMS.Network.Request.RESPONSE_JSON){_248=JSON.parse(XHR.xhr.responseText);}else{_248=XHR.xhr.responseText;}}XHR.sendResponse(_248);}catch(exc){
66GeoCMS.Console.error(exc);}}};XHR.urlPostfix="";XHR.date=new Date();XHR.requests=[];XHR.script_tag=null;XHR.script_time=null;XHR.xhr=null;return XHR;}());_232.XHR=XHR;(function(XHR){var _24a;(function(_24b){_24b[_24b["XML_HTTP_REQUEST"]=0]="XML_HTTP_REQUEST";_24b[_24b["SCRIPT_TAG"]=1]="SCRIPT_TAG";})(_24a=XHR.XHRMethod||(XHR.XHRMethod={}));}
66)(XHR=_232.XHR||(_232.XHR={}));XHR.method=1;})(_231=_230.Network||(_230.Network={}));})(GeoCMSWrap||(GeoCMSWrap={}));var GeoCMSWrap;(function(_24c){var GIS;(function(GIS){var _24f;(function(_250){var _251=(function(){function _251(){this.handlers=[];}_251.prototype.addHandler=function(_252){this.handlers.push(_252);};_251.prototype.trigger=function(_253){for(var i=0;i<this.handlers.length;i++){if(this.handlers[i].shouldHandle(_253)){this.handlers[i].handle(_253);}}};return _251;}());_250.Manager=_251;})(_24f=GIS.WebClientNotifications||(GIS.WebClientNotifications={}));})(GIS=_24c.GIS||(_24c.GIS={}));})(GeoCMSWrap||(GeoCMSWrap={}));var GeoCMSWrap;
67(function(_255){var GIS;(function(GIS){var _258;(function(_259){var _25a=(function(){function _25a(){}_25a.prototype.shouldHandle=function(_25b){return true;};_25a.prototype.handle=function(_25c){var now=new Date().getTime();var _25e=GeoCMS.Storage.getItem(_25a.STORAGE_KEY,0);if(typeof _25e==="string"&&_25e!==""){_25e=JSON.parse(_25e);}else{_25e=[];}var _25f={timestamp:new Date().getTime(),method:_25c.getMethod(),params:_25c.getParams()};for(var i=0;i<_25e.length;i++){if(now-_25e[i].timestamp>_25a.MAX_TIME){delete _25e[i];_25e.splice(i,1);i--;}}if(_25e.length>=_25a.MAX_COUNT){_25e.shift();}_25e.push(_25f);GeoCMS.Storage.setItem(_25a.STORAGE_KEY,JSON.stringify(_25e),0);};_25a.STORAGE_KEY="gis_webclient_notification";_25a.MAX_COUNT=10;_25a.MAX_TIME=5*60*1000;return _25a;}());_259.WebStorageHandler=_25a;})(_258=GIS.WebClientNotifications||(GIS.WebClientNotifications={}));})(GIS=_255.GIS||(_255.GIS={}));})(GeoCMSWrap||(GeoCMSWrap={}));var GeoCMSWrap;(function(_261){var GIS;(function(GIS){
68var _264;(function(_265){var _266=(function(){function _266(_267,_268){this.request=_267;this.action=_268||"";}_266.prototype.getMethod=function(){return "highlightUrl";};_266.prototype.getParams=function(){return {request:this.request,action:this.action};};return _266;}());_265.NotificationHighlightUrl=_266;})(_264=GIS.WebClientNotifications||(GIS.WebClientNotifications={}));})(GIS=_261.GIS||(_261.GIS={}));})(GeoCMSWrap||(GeoCMSWrap={}));var GeoCMSWrap;(function(_269){var GIS;(function(GIS){var _26c;(function(_26d){var _26e=(function(){function _26e(x,y,crs,_272){this.x=x;this.y=y;this.crs=crs;this.text=_272||"";}_26e.prototype.getMethod=function(){return "center";};_26e.prototype.getParams=function(){return {x:this.x,y:this.y,crs:this.crs,text:this.text};};return _26e;}());_26d.NotificationCenter=_26e;})(_26c=GIS.WebClientNotifications||(GIS.WebClientNotifications={}));})(GIS=_269.GIS||(_269.GIS={}));})(GeoCMSWrap||(GeoCMSWrap={}));var GeoCMSWrap;(function(_273){var GIS;
69(function(GIS){var _276;(function(_277){var _278=(function(){function _278(_279){this.request=_279;}_278.prototype.getMethod=function(){return "centerUrl";};_278.prototype.getParams=function(){return {request:this.request};};return _278;}());_277.NotificationCenterUrl=_278;})(_276=GIS.WebClientNotifications||(GIS.WebClientNotifications={}));})(GIS=_273.GIS||(_273.GIS={}));})(GeoCMSWrap||(GeoCMSWrap={}));var GeoCMSWrap;(function(_27a){var GIS;(function(GIS){var _27d;(function(_27e){var _27f=(function(){function _27f(_280,crs,_282){this.geometry=_280;this.crs=crs;this.text=_282||"";this.format=typeof _280==="string"?"wkt":"geojson";}_27f.prototype.getMethod=function(){return "highlight";};_27f.prototype.getParams=function(){return {geometry:this.geometry,format:this.format,crs:this.crs,text:this.text};};return _27f;}());_27e.NotificationHighlightGeometry=_27f;})(_27d=GIS.WebClientNotifications||(GIS.WebClientNotifications={}));})(GIS=_27a.GIS||(_27a.GIS={}));
70})(GeoCMSWrap||(GeoCMSWrap={}));var GeoCMSWrap;(function(_283){var GIS;(function(GIS){var _286;(function(_287){var _288=(function(){function _288(_289,_28a,_28b){this.geometryList=_289;this.crsList=_28a;this.textList=_28b||[];this.formatList=[];for(var i=0;i<this.geometryList.length;i++){this.formatList.push((typeof this.geometryList[i]==="string"?"wkt":"geojson"));}}_288.prototype.getMethod=function(){return "highlightList";};_288.prototype.getParams=function(){return {geometryList:this.geometryList,formatList:this.formatList,crsList:this.crsList,textList:this.textList};};return _288;}());_287.NotificationHighlightGeometryList=_288;})(_286=GIS.WebClientNotifications||(GIS.WebClientNotifications={}));})(GIS=_283.GIS||(_283.GIS={}));})(GeoCMSWrap||(GeoCMSWrap={}));var GeoCMSWrap;(function(_28d){var GIS;(function(GIS){var _290;(function(_291){var _292=(function(){function _292(_293,crs){this.geometry=_293;this.crs=crs;this.format=typeof _293==="string"?"wkt":"geojson";}
71_292.prototype.getMethod=function(){return "zoom";};_292.prototype.getParams=function(){return {geometry:this.geometry,format:this.format,crs:this.crs};};return _292;}());_291.NotificationZoom=_292;})(_290=GIS.WebClientNotifications||(GIS.WebClientNotifications={}));})(GIS=_28d.GIS||(_28d.GIS={}));})(GeoCMSWrap||(GeoCMSWrap={}));var GeoCMSWrap;(function(_295){var GIS;(function(GIS){var _298;(function(_299){var _29a=(function(){function _29a(_29b){this.request=_29b;}_29a.prototype.getMethod=function(){return "zoomUrl";};_29a.prototype.getParams=function(){return {request:this.request};};return _29a;}());_299.NotificationZoomUrl=_29a;})(_298=GIS.WebClientNotifications||(GIS.WebClientNotifications={}));})(GIS=_295.GIS||(_295.GIS={}));})(GeoCMSWrap||(GeoCMSWrap={}));var GeoCMSWrap;(function(_29c){var GIS;(function(GIS){var _29f;(function(_2a0){var _2a1=(function(){function _2a1(){}_2a1.prototype.getMethod=function(){return "highlightReset";};_2a1.prototype.getParams=function(){return {};
72};return _2a1;}());_2a0.NotificationHighlightReset=_2a1;})(_29f=GIS.WebClientNotifications||(GIS.WebClientNotifications={}));})(GIS=_29c.GIS||(_29c.GIS={}));})(GeoCMSWrap||(GeoCMSWrap={}));var GeoCMSWrap;(function(_2a2){var GIS;(function(GIS){var _2a5=(function(){function _2a5(){this.notificationManager=new GIS.WebClientNotifications.Manager();this.notificationManager.addHandler(new GIS.WebClientNotifications.WebStorageHandler());}_2a5.prototype.notify=function(_2a6){this.notificationManager.trigger(_2a6);};return _2a5;}());GIS.WebClient=_2a5;})(GIS=_2a2.GIS||(_2a2.GIS={}));})(GeoCMSWrap||(GeoCMSWrap={}));var GeoCMSContent=(function(){function GeoCMSContent(){this.Core=GeoCMSWrap.Content.Core;this.DataTable=GeoCMSWrap.Content.DataTable;this.Filter=GeoCMSWrap.Content.Filter;this.Pager=GeoCMSWrap.Content.Pager;this.Table=GeoCMSWrap.Content.Table;}return GeoCMSContent;}());var GeoCMSModuleFeature=(function(){function GeoCMSModuleFeature
72(){this.Feature=GeoCMSWrap.ModuleFeature.Feature;
73this.Geom=GeoCMSWrap.ModuleFeature.Geom;this.Manager=GeoCMSWrap.ModuleFeature.Manager;}return GeoCMSModuleFeature;}());var GeoCMSNetwork=(function(){function GeoCMSNetwork(){this.Request=GeoCMSWrap.Network.Request;this.XHR=GeoCMSWrap.Network.XHR;}return GeoCMSNetwork;}());var GISWebClientNotification=(function(){function GISWebClientNotification(){this.NotificationCenter=GeoCMSWrap.GIS.WebClientNotifications.NotificationCenter;this.NotificationCenterUrl=GeoCMSWrap.GIS.WebClientNotifications.NotificationCenterUrl;this.NotificationHighlightGeometry=GeoCMSWrap.GIS.WebClientNotifications.NotificationHighlightGeometry;this.NotificationHighlightGeometryList=GeoCMSWrap.GIS.WebClientNotifications.NotificationHighlightGeometryList;this.NotificationHighlightReset=GeoCMSWrap.GIS.WebClientNotifications.NotificationHighlightReset;this.NotificationHighlightUrl=GeoCMSWrap.GIS.WebClientNotifications.NotificationHighlightUrl;this.NotificationZoom=GeoCMSWrap.GIS.WebClientNotifications.NotificationZoom;
74this.NotificationZoomUrl=GeoCMSWrap.GIS.WebClientNotifications.NotificationZoomUrl;}return GISWebClientNotification;}());var GIS=(function(){function GIS(){this.WebClient=GeoCMSWrap.GIS.WebClient;this.WebClientNotifications=new GISWebClientNotification();}return GIS;}());var GeoCMSMap=(function(){function GeoCMSMap(){this.Console=GeoCMSWrap.Console;this.Content=new GeoCMSContent();this.Cookie=GeoCMSWrap.Cookie;this.Core=GeoCMSWrap.Core;this.Delay=GeoCMSWrap.Delay;this.JQDialog=GeoCMSWrap.JQDialog;this.ModuleFeature=new GeoCMSModuleFeature();this.Network=new GeoCMSNetwork();this.Storage=GeoCMSWrap.Storage;this.Utility=GeoCMSWrap.Utility;this.GIS=new GIS();}return GeoCMSMap;}());var GeoCMS=GeoCMS||new GeoCMSMap();
75gc.initClass("gc.event",true,{getOffsetX:function(_1){if(_1.layerX){return _1.layerX;}else{return _1.offsetX;}},getOffsetY:function(_2){if(_2.layerY){return _2.layerY;}else{return _2.offsetY;}},getPageX:function(_3){if(_3.pageX){return _3.pageX;}else{return _3.clientX;}},getPageY:function(_4){if(_4.pageY){return _4.pageY;}else{return _4.clientY;}},getTarget:function(_5){if(_5.target){return _5.target;}else{if(_5.srcElement){return _5.srcElement;}else{return null;}}},addEventListener:function(_6,_7,_8,_9){if(!_9){_9=window;}if(_6.addEventListener){_6.addEventListener(_7,function(_a){_8.call(_9,_a);},false);}else{if(window.attachEvent){_6.attachEvent("on"+_7,function(_b){_8.call(_9,_b);});}}}});
76gc.initClass("gc.event.Custom",false,{object:null,listeners:null,constructor:function(_1){this.object=_1;this.listeners={};},register:function(_2,_3,_4){if(!this.listeners[_2]){this.listeners[_2]=[];}this.listeners[_2][this.listeners[_2].length]={func:_3,obj:_4};},unregister:function(_5,_6,_7){if(this.listeners[_5]){for(i in this.listeners[_5]){if(this.listeners[_5][i]&&this.listeners[_5][i].func==_6&&this.listeners[_5][i].obj==_7){this.listeners[_5][i]=null;}}}},trigger:function(_8,_9){if(_9){_9.object=this.object;}if(this.listeners[_8]){for(i in this.listeners[_8]){if(this.listeners[_8][i]&&this.listeners[_8][i].func){if(this.listeners[_8][i].obj){this.listeners[_8][i].func.call(this.listeners[_8][i].obj,_9);}else{this.listeners[_8][i].func(_9);}}}}}});
77gc.initClass("gc.event.Mouse",true,{BUTTON_LEFT:1,BUTTON_RIGHT:2,BUTTON_MIDDLE:4,registered:false,listeners:new Array(),is_drag:false,drag_x:0,drag_y:0,drag_target:null,register:function(){this.registered=true;document.body.onmouseover=this.onMouseOver;document.body.onmouseout=this.onMouseOut;document.body.onmousemove=this.onMouseMove;document.body.onmousedown=this.onMouseDown;document.body.onmouseup=this.onMouseUp;if(window.addEventListener){window.addEventListener("DOMMouseScroll",this.onMouseWheel,false);}else{document.body.onmousewheel=this.onMouseWheel;}document.body.onselectstart=function(e){return !gc.event.Mouse.is_drag;};},unregister:function(){this.registered=false;document.body.onmouseover=null;document.body.onmouseout=null;document.body.onmousemove=null;document.body.onmousedown=null;document.body.onmouseup=null;if(window.addEventListener){window.removeEventListener("DOMMouseScroll",this.onMouseWheel,false);}else{document.body.onmousewheel=null;}
78document.body.onselectstart=null;},addListener:function(_2){this.listeners.push(_2);if(!this.registered){this.register();}}
78,removeListener:function(_3){for(var i=0;i<this.listeners.length;++i){if(this.listeners[i]==_3){this.listeners.splice(i,1);--i;}}if(this.listeners.length==0&&this.registered){this.unregister();}},onMouseOver:function(_5){if(!_5){_5=window.event;}var _6=gc.event.getTarget(_5);var x=gc.event.getOffsetX(_5);var y=gc.event.getOffsetY(_5);var _9=gc.event.getPageX(_5);var _a=gc.event.getPageY(_5);for(var i=0;i<gc.event.Mouse.listeners.length;++i){if(gc.event.Mouse.listeners[i].onMouseOver){gc.event.Mouse.listeners[i].onMouseOver(_5,_6,x,y,_9,_a);}}},onMouseOut:function(_c){if(!_c){_c=window.event;}var _d=gc.event.getTarget(_c);var x=gc.event.getOffsetX(_c);var y=gc.event.getOffsetY(_c);var _10=gc.event.getPageX(_c);var _11=gc.event.getPageY(_c);for(var i=0;i<gc.event.Mouse.listeners.length;++i){if(gc.event.Mouse.listeners[i].onMouseOut){
79gc.event.Mouse.listeners[i].onMouseOut(_c,_d,x,y,_10,_11);}}},onMouseMove:function(_13){if(!_13){_13=window.event;}var _14=gc.event.getTarget(_13);var x=gc.event.getOffsetX(_13);var y=gc.event.getOffsetY(_13);var _17=gc.event.getPageX(_13);var _18=gc.event.getPageY(_13);for(var i=0;i<gc.event.Mouse.listeners.length;++i){if(gc.event.Mouse.listeners[i].onMouseMove){gc.event.Mouse.listeners[i].onMouseMove(_13,_14,x,y,_17,_18);}}gc.event.Mouse.onMouseDrag(_13);},onMouseDown:function(_1a){if(!_1a){_1a=window.event;}var _1b=gc.event.getTarget(_1a);var x=gc.event.getOffsetX(_1a);var y=gc.event.getOffsetY(_1a);var _1e=gc.event.getPageX(_1a);var _1f=gc.event.getPageY(_1a);for(var i=0;i<gc.event.Mouse.listeners.length;++i){if(gc.event.Mouse.listeners[i].onMouseDown){gc.event.Mouse.listeners[i].onMouseDown(_1a,_1b,x,y,_1e,_1f);}}gc.event.Mouse.onMouseDragStart(_1a);},onMouseUp:function(_21){if(!_21){_21=window.event;}var _22=gc.event.getTarget(_21);var x=gc.event.getOffsetX(_21);
80var y=gc.event.getOffsetY(_21);var _25=gc.event.getPageX(_21);var _26=gc.event.getPageY(_21);for(var i=0;i<gc.event.Mouse.listeners.length;++i){if(gc.event.Mouse.listeners[i].onMouseUp){gc.event.Mouse.listeners[i].onMouseUp(_21,_22,x,y,_25,_26);}}gc.event.Mouse.onMouseDragStop(_21);},onMouseWheel:function(_28){if(!_28){_28=window.event;}var _29=gc.event.getTarget(_28);var x=gc.event.getOffsetX(_28);var y=gc.event.getOffsetY(_28);var _2c=gc.event.getPageX(_28);var _2d=gc.event.getPageY(_28);var _2e=0;if(_28.wheelDelta){_2e=_28.wheelDelta/120;if(window.opera){_2e=-_2e;}}else{if(_28.detail){_2e=-_28.detail/3;}}var _2f=false;for(var i=0;i<gc.event.Mouse.listeners.length;++i){if(gc.event.Mouse.listeners[i].onMouseWheel){if(gc.event.Mouse.listeners[i].onMouseWheel(_28,_2e,_29,x,y,_2c,_2d)){_2f=true;}}}if(_2f){if(_28.preventDefault){_28.preventDefault();}_28.returnValue=false;}},onMouseDragStart:function(_31){if(!_31.button||_31.button==this.BUTTON_LEFT){var _32=gc.event.getTarget(_31);
81var x=gc.event.getOffsetX(_31);var y=gc.event.getOffsetY(_31);var _35=gc.event.getPageX(_31);var _36=gc.event.getPageY(_31);for(var i=0;i<this.listeners.length;++i){if(this.listeners[i].onMouseDragStart){if(this.listeners[i].onMouseDragStart(_31,_32,x,y,_35,_36)){this.is_drag=true;}}}if(this.is_drag){this.drag_x=_35;this.drag_y=_36;this.drag_target=_32;}}},onMouseDragStop:function(_38){if(this.is_drag){var _39=gc.event.getTarget(_38);var x=gc.event.getOffsetX(_38);var y=gc.event.getOffsetY(_38);var _3c=gc.event.getPageX(_38);var _3d=gc.event.getPageY(_38);this.is_drag=false;this.drag_x=0;this.drag_y=0;this.drag_target=null;for(var i=0;i<this.listeners.length;++i){if(this.listeners[i].onMouseDragStop){this.listeners[i].onMouseDragStop(_38,_39,x,y,_3c,_3d);}}}},onMouseDrag:function(_3f){if(this.is_drag){var x=gc.event.getPageX(_3f)-this.drag_x;var y=gc.event.getPageY(_3f)-this.drag_y;var _42=false;if(x!=0||y!=0){this.drag_x=gc.event.getPageX(_3f);this.drag_y=gc.event.getPageY(_3f);
82for(var i=0;i<this.listeners.length;++i){if(this.listeners[i].onMouseDrag){if(this.listeners[i].onMouseDrag(_3f,this.drag_target,x,y)){_42=true;}}}}if(_42){if(_3f.preventDefault){_3f.preventDefault();}_3f.returnValue=false;}}}});
83gc.initClass("gc.fx",true,{subject:null,opacityMax:1,opacityMin:0,opacityDelta:0.1,timeoutFunc:null,timeoutValue:100,timeoutStart:100,timeDelta:10,get
83Subject:function(){if(typeof (this.subject)=="string"){this.subject=document.getElementById(this.subject);}return this.subject;},setSubject:function(e){if(typeof (e)=="string"){e=document.getElementById(e);}this.subject=e;},show:function(_2){if(_2){this.setSubject(_2);}var e=this.getSubject();if(e){e.style.display="block";e.style.visibility="visible";}},hide:function(_4){if(_4){this.setSubject(_4);}var e=this.getSubject();if(e){e.style.display="none";e.style.visibility="hidden";}},fadeIn:function(_6){if(_6){this.setSubject(_6);}this.setOpacityToLow();this.show();this.resetTimeout();this.doFade("in");},fadeOut:function(_7){if(_7){this.setSubject(_7);}this.setOpacityToHigh();this.resetTimeout();this.doFade("out");},setOpacityToLow:function(_8){if(_8){this.setSubject(_8);}this.setOpacity(this.opacityMin);},setOpacityToHigh:function(_9){
84if(_9){this.setSubject(_9);}this.setOpacity(this.opacityMax);},getTimeout:function(){return this.timeoutValue;},setTimeout:function(_a){if(_a<1){_a=1;}this.timeoutValue=_a;},resetTimeout:function(){this.timeoutValue=this.timeoutStart;this.clearTimeoutFunc();},clearTimeoutFunc:function(){window.clearTimeout(this.timeoutFunc);this.timeoutFunc=null;},getOpacityDelta:function(){return this.opacityDelta;},getOpacity:function(){var e=this.getSubject();if(e){return parseFloat(e.style.opacity);}else{return -1;}},setOpacity:function(_c){var e=this.getSubject();if(e){var _e=parseFloat(_c).toFixed(1);_e=(_e<0)?0:((_e>1)?1:_e);e.style.opacity=_e;e.style.MozOpacity=_e;if(GeoCMS.Core.isIE()){var _f=parseInt(_e*100);e.style.zoom="1";e.style.filter="progid:DXImageTransform.Microsoft.Alpha(Opacity="+_f+")";}}},doFade:function(_10){this.setTimeout(this.getTimeout()-this.timeDelta);this.subject.timeoutFunc=window.setTimeout(function(){var _11=gc.fx.getOpacity();if(_11!=-1&&_10=="in"){
85if(_11<gc.fx.opacityMax){_11+=gc.fx.getOpacityDelta();gc.fx.setOpacity(_11);gc.fx.doFade("in");}else{gc.fx.setOpacityToHigh();gc.fx.clearTimeoutFunc();}}else{if(_11!=-1&&_10==="out"){if(_11>gc.fx.opacityMin){_11-=gc.fx.getOpacityDelta();gc.fx.setOpacity(_11);gc.fx.doFade("out");}else{gc.fx.hide();gc.fx.setOpacityToLow();gc.fx.clearTimeoutFunc();}}}},this.getTimeout());}});
86gc.initClass("gc.fxWrapper",true,{opacity:function(_1,_2,_3,to){if(typeof Effect!="undefined"&&Effect.Opacity){if(!_1.effect){_
861.effect=new Effect.Opacity(_1,{duration:_2,from:_3,to:to});}else{_1.effect.cancel();_1.effect.start({duration:_2,from:_3,to:to});}}else{if(typeof jQuery!="undefined"&&_1.id){jQuery("#"+_1.id).fadeTo(_2,to);}}}});
87gc.initClass("gc.gcgooglemap.GCGoogleMap",false,{mapname:"map",map:null,gbounds:null,infowindow:null,markersArray:[],startMarker:[],attribute:{zoom:8,center:null,scrollwheel:false,disableDoubleClickZoom:false,navigationControl:true,mapTypeControl:true,scaleControl:false,overviewMapControl:false,streetViewControl:false,globalIcon:""},list_index:-1,constructor:function(_1,_2){this.mapname=_1;if(typeof _2=="object"&&_2!=null){for(var _3 in _2){this.attribute[_3]=_2[_3];}}},option:function(_4,_5){if(typeof _5=="undefined"){return this.attribute[_4];}else{this.attribute[_4]=_5;}},addFeatures:function(_6){for(var i=0;i<_6.length;i++){this.addFeature(_6[i]);}},addFeature:function(_8){var _9=null;var _a=_8.title;var _b=typeof _8.icon!="undefined"?_8.icon:this.option("globalIcon");var _c=_8.content;var _d=typeof _8.url!="undefined"&&_8.url!=""?_8.url:null;var _e="point";if(typeof _8.type!="undefined"){_e=_8.type;}switch(_e){case "point":
88_9=new google.maps.Marker({position:new google.maps.LatLng(_8.y,_8.x),map:this.map,title:_a,icon:_b});this.gbounds.extend(_9.getPosition());break;case "polygon":case "rect":var _f=[];for(var i=0;i<_8.polygon.length;i++){_f[i]=new google.maps.LatLng(_8.polygon[i].y,_8.polygon[i].x);this.gbounds.extend(_f[i]);}_9=new google.maps.Polygon({paths:_f,map:this.map,title:_a,strokeColor:typeof _8.cfg.strokeColor!="undefined"?_8.cfg.strokeColor:"#FF0000",strokeOpacity:typeof _8.cfg.strokeOpacity!="undefined"?_8.cfg.strokeOpacity:0.8,strokeWeight:typeof _8.cfg.strokeWidth!="undefined"?_8.cfg.strokeWidth:2,fillColor:typeof _8.cfg.fillColor!="undefined"?_8.cfg.fillColor:"#FF0000",fillOpacity:typeof _8.cfg.fillOpacity!="undefined"?_8.cfg.fillOpacity:0.35});break;case "line":var _f=[];for(var i=0;i<_8.polygon.length;i++){_f[i]=new google.maps.LatLng(_8.polygon[i].y,_8.polygon[i].x);this.gbounds.extend(_f[i]);}
89_9=new google.maps.Polyline({path:_f,map:this.map,title:_a,geodesic:true,strokeColor:typeof _8.cfg.strokeColor!="undefined"?_8.cfg.strokeColor:"#FF0000",strokeOpacity:typeof _8.cfg.strokeOpacity!="undefined"?_8.cfg.strokeOpacity:0.8,strokeWeight:typeof _8.cfg.strokeWidth!="undefined"?_8.cfg.strokeWidth:2});break;case "wkt":if(typeof _8.wkt!="undefined"){wkt=new Wkt.Wkt();try{wkt.read(_8.wkt);}catch(e1){}obj=wkt.toObject({reverseInnerPolygons:false});if(obj){var _11=this;if(Wkt.isArray(obj)){for(i in obj){if(obj.hasOwnProperty(i)&&!Wkt.isArray(obj[i])){var _12={};if(wkt.type==="point"){_12["icon"]=_b;}else{_12["strokeColor"]=typeof _8.cfg.strokeColor!="undefined"?_8.cfg.strokeColor:"#FF0000";_12["strokeOpacity"]=typeof _8.cfg.strokeOpacity!="undefined"?_8.cfg.strokeOpacity:0.8;_12["strokeWeight"]=typeof _8.cfg.strokeWidth!="undefined"?_8.cfg.strokeWidth:2;_12["fillColor"]=typeof _8.cfg.fillColor!="undefined"?_8.cfg.fillColor:"#FF0000";
90_12["fillOpacity"]=typeof _8.cfg.fillOpacity!="undefined"?_8.cfg.fillOpacity:0.35;}_12["title"]=_a;obj[i].setOptions(_12);obj[i].setMap(this.map);this.markersArray.push(obj[i]);if(wkt.type==="point"||wkt.type==="multipoint"){this.gbounds.extend(obj[i].getPosition());}else{obj[i].getPath().forEach(function(_13,_14){_11.gbounds.extend(_13);});}}}}else{var _12={};if(wkt.type==="point"){_12["icon"]=_b;}else{_12["strokeColor"]=typeof _8.cfg.strokeColor!="undefined"?_8.cfg.strokeColor:"#FF0000";_12["strokeOpacity"]=typeof _8.cfg.strokeOpacity!="undefined"?_8.cfg.strokeOpacity:0.8;_12["strokeWeight"]=typeof _8.cfg.strokeWidth!="undefined"?_8.cfg.strokeWidth:2;_12["fillColor"]=typeof _8.cfg.fillColor!="undefined"?_8.cfg.fillColor:"#FF0000";_12["fillOpacity"]=typeof _8.cfg.fillOpacity!="undefined"?_8.cfg.fillOpacity:0.35;}_12["title"]=_a;obj.setOptions(_12);obj.setMap(this.map);this.markersArray.push(obj);if(wkt.type==="point"||wkt.type==="multipoint"){this.gbounds.extend(obj.getPosition());
91}else{obj.getPath().forEach(function(_15,_16){_11.gbounds.extend(_15);});}}if(_d){google.maps.event.addListener(obj,"click",function(){if(typeof _8.urlTarget!="undefined"&&_8.urlTarget=="_blank"){window.open(_d);}else{window.location.href=_d;}});}}}break;default:}if(_9){if(_d){google.maps.event.addListener(_9,"click",function(){if(typeof _8.urlTarget!="undefined"&&_8.urlTarget=="_blank"){window.open(_d);}else{window.location.href=_d;}});}this.markersArray.push(_9);}},prepare:function(){this.map=new google.maps.Map(document.getElementById(this.mapname),this.attribute);this.gbounds=new google.maps.LatLngBounds();this.infowindow=new google.maps.InfoWindow({content:"",disableAutoPan:false});google.maps.event.addListener(this.infowindow,"closeclick",function(){this.infowindow.setContent("");});},renderContent:function(){if(this.markersArray&&this.markersArray.length>0){if(this.markersArray.length>1){this.map.fitBounds(this.gbounds);}else{this.map.setCenter(this.gbounds.getCenter());
92this.map.setZoom(this.option("zoom"));}}},clear:function(){if(this.markersArray&&this.markersArray.length>0){for(var i=0;i<this.markersArray.length;i++){this.markersArray[i].setMap(null);}this.markersArray=[];}}});
93
94gc.initClass("gc.map.Edit",false,{map:null,layer:null,ctrlModifyFeature:null,style:null,styleNames:null,constructor:function(_1,_2,_3,_4){this.map=_1;if(_2){this.styleNames=_2;}else{this.styleNames=["fillColor","strokeColor","strokeWidth"];}if(!_3){_3=["polygon","line","point"];}if(!_4){_4=["delete","editvertex","translate"];}this.layer=new OpenLayers.Layer.Vector("Bearbeitungs-Layer");this.layer.styleMap.styles["default"].defaultStyle.strokeWidth=2;this.layer.events.register("beforefeaturemodified",this,this.beforeFeatureModified);this.layer.events.register("afterfeaturemodified",this,this.afterFeatureModified);this.map.map.addLayer(this.layer);this.afterFeatureModified();var _5;var _6=new OpenLayers.Control.Panel({displayClass:"olControlEditingToolbar"});for(var i=0;i<_4.length;i++){_5=null;if(_4[i]=="delete"){_5=new OpenLayers.Control.SelectFeature(this.layer,{displayClass:"olControlRemoveFeature",title:"Geometrie l\xc3\xb6schen"});_5.select=function(_8){
95this.layer.removeFeatures(_8);};}else{if(_4[i]=="editvertex"){_5=new OpenLayers.Control.ModifyFeature(this.layer,{displayClass:"olControlModifyFeature",title:"St\xc3\xbctzpunkte bearbeiten"});this.ctrlModifyFeature=_5;}else{if(_4[i]=="translate"||_4[i]=="drag"){_5=new OpenLayers.Control.DragFeature(this.layer,{displayClass:"olControlDragFeature",title:"Geometrie verschieben"});}}}if(_5){this.map.addToolbarControls(_5);}}_5=[];for(var i=0;i<_3.length;++i){if(_3[i]=="point"){_5[_5.length]=new OpenLayers.Control.DrawFeature(this.layer,OpenLayers.Handler.Point,{displayClass:"olControlDrawFeaturePoint",title:"Punkt erfassen"});}else{if(_3[i]=="line"||_3[i]=="polyline"||_3[i]=="path"){_5[_5.length]=new OpenLayers.Control.DrawFeature(this.layer,OpenLayers.Handler.Path,{displayClass:"olControlDrawFeaturePath",title:"Linie erfassen"});}else{if(_3[i]=="poly"||_3[i]=="polygon"){
96_5[_5.length]=new OpenLayers.Control.DrawFeature(this.layer,OpenLayers.Handler.Polygon,{displayClass:"olControlDrawFeaturePolygon",title:"Fl\xc3\xa4che erfassen"});}else{if(_3[i]=="rect"||_3[i]=="rectangle"){customHandlerOptions={sides:4,irregular:true};_5[_5.length]=new OpenLayers.Control.DrawFeature(this.layer,OpenLayers.Handler.RegularPolygon,{handlerOptions:customHandlerOptions,displayClass:"olControlDrawFeatureRectangle",title:"Rechteck erfassen"});}else{if(_3[i]=="circle"){customHandlerOptions={sides:90,irregular:true};_5[_5.length]=new OpenLayers.Control.DrawFeature(this.layer,OpenLayers.Handler.RegularPolygon,{handlerOptions:customHandlerOptions,displayClass:"olControlDrawFeatureCircle",title:"Kreis erfassen"});}}}}}}for(var i=0;i<_5.length;i++){_5[i].featureAdded=function(_9){_9.state=OpenLayers.State.INSERT;_9.style={};with(this.layer.styleMap.styles["default"]){for(var _a in defaultStyle){_9.style[_a]=defaultStyle[_a];}}};}this.map.addToolbarControls(_5);
97},getFeatureCount:function(){if(this.layer&&this.layer.features){return this.layer.features.length;}return 0;},setFeatureLimit:function(_b){var _c=function(_d){if(_d.feature!==null&&_d.feature!==undefined){var _e=_d.feature.layer.features.length;if(_e>_b){_d.feature.layer.removeFeatures(_d.feature.layer.features[_d.feature.layer.features.length-1]);}}};this.registerPriority("featureadded",this.layer,_c);},writeWkt:function(_f){if(this.ctrlModifyFeature){try{this.ctrlModifyFeature.unselectFeature(this.ctrlModifyFeature);}catch(exc){GeoCMS.Console.error(exc);}}var wkt=new OpenLayers.Format.WKT();var ret=[];var _12;var tmp;if(this.layer&&this.layer.features){for(var i=0;i<this.layer.features.length;++i){if(this.layer.features[i].style){_12=this.layer.features[i].style;}else{_12=this.layer.styleMap.styles["default"].defaultStyle;}tmp=wkt.write(this.layer.features[i]);if(_f){tmp+=";"+_12["fillColor"]+";"+parseInt(_12["fillOpacity"]*100)+";"+_12["strokeColor"]+";"+_12["strokeWidth"];}
98ret[ret.length]=tmp;}}return ret.join("|");},writeGeoID:function(){if(this.ctrlModifyFeature){try{this.ctrlModifyFeature.unselectFeature(this.ctrlModifyFeature);}catch(exc){GeoCMS.Console.error(exc);}}var ret=[];if(this.layer&&this.layer.features){for(var i=0;i<this.layer.features.length;++i){ret[ret.length]=typeof this.layer.features[i].geo_id!=="undefined"?this.layer.features[i].geo_id:-1;}}return ret.join("|");},readWkt:function(_17,_18,_19){var wkt=new OpenLayers.Format.WKT();var _1b;var _1c;if(typeof _17=="string"){if(!_19){this.layer.destroyFeatures();}_17=_17.split("|");for(var i=0;i<_17.length;++i){if(typeof _17[i]=="string"){try{_1b=_17[i].split(";");if(_1b.length>0){_1c=wkt.read(_1b[0]);_1c.geo_id=i;if(_1c){_1c.style={};with(this.layer.styleMap.styles["default"]){for(var j in defaultStyle){_1c.style[j]=defaultStyle[j];}}if(_1b.length>1){_1c.style["fillColor"]=_1b[1];}if(_1b.length>2){try{_1c.style["fillOpacity"]=parseFloat(_1b[2])*0.01;}catch(exc){}}if(_1b.length>3){
99_1c.style["strokeColor"]=_1b[3];}if(_1b.length>4){try{_1c.style["strokeWidth"]=parseInt(_1b[4]);}catch(exc){}}this.layer.addFeatures(_1c);}}}catch(exc){GeoCMS.Console.error(exc);}}}}if(_18){this.zoomToData();}},register:function(_1f,obj,_21){this.layer.events.register(_1f,obj,_21);},registerPriority:function(_22,obj,_24){this.layer.events.registerPriority(_22,obj,_24);},unregister:function(_25,obj,_27){this.layer.events.unregister(_25,obj,_27);}
99,updateStyle:function(_28,_29){for(var i in this.styleNames){if(this.styleNames[i]==_28){if(_28=="strokeWidth"){try{_29=Math.min(Math.max(1,parseInt(_29)),15);if(isNaN(_29)){_29=1;}}catch(exc){_29=1;}}this.style[_28]=_29;}}this.layer.redraw();},zoomToData:function(){if(this.layer.features.length>0){var _2b=this.layer.getDataExtent();this.map.zoomToExtent(_2b.left,_2b.bottom,_2b.right,_2b.top);}},beforeFeatureModified:function(_2c){OpenLayers.Event.stop(_2c);this.style=_2c.feature.style;for(var i=0;i<this.styleNames.length;++i){
100var tmp=document.getElementById(this.map.id+"_"+this.styleNames[i]);if(tmp){if(this.styleNames[i].search(/Color/)>=0){tmp.style.backgroundColor=this.style[this.styleNames[i]];}else{tmp.value=this.style[this.styleNames[i]];}}}},afterFeatureModified:function(_2f){if(_2f){OpenLayers.Event.stop(_2f);}this.style=this.layer.styleMap.styles["default"].defaultStyle;for(var i=0;i<this.styleNames.length;++i){var tmp=document.getElementById(this.map.id+"_"+this.styleNames[i]);if(tmp){if(this.styleNames[i].search(/Color/)>=0){tmp.style.backgroundColor=this.style[this.styleNames[i]];}else{tmp.value=this.style[this.styleNames[i]];}}}}});
101gc.initClass("gc.map.Frame",false,{crosshairLayer:null,crosshairRadius:10,map:null,layer:null,geom:null,width:null,height:null,constructor:function(_1,_2,_3){"use strict";this.map=_1;this.layer=new OpenLayers.Layer.Vector("Highlight Layer");
101this.layer.displayInLayerSwitcher=false;this.layer.styleMap.styles["default"].defaultStyle.strokeWidth=1;this.layer.styleMap.styles["default"].defaultStyle.strokeColor="#ff0000";this.layer.styleMap.styles["default"].defaultStyle.fillColor="#707070";this.layer.styleMap.styles["default"].defaultStyle.fillOpacity=0.2;this.map.map.addLayer(this.layer);this.crosshairLayer=new OpenLayers.Layer.Vector("Crosshair Layer");this.crosshairLayer.displayInLayerSwitcher=false;this.crosshairLayer.styleMap.styles["default"].defaultStyle.strokeWidth=1;this.crosshairLayer.styleMap.styles["default"].defaultStyle.strokeColor="#ff0000";this.map.map.addLayer(this.crosshairLayer);this.map.map.events.register("move",this,this.refresh);
102this.map.map.events.register("move",this,this.refreshCrossHair);this.set(_2,_3);},set:function(_4,_5){this.width=_4;this.height=_5;if(!this.geom){this.geom=new OpenLayers.Geometry.Polygon(new OpenLayers.Geometry.LinearRing());this.layer.addFeatures([new OpenLayers.Feature.Vector(this.geom)]);}this.refresh();this.refreshCrossHair();},refresh:function(_6){try{if(this.geom&&this.geom.components[0]){with(this.geom.components[0]){var i=0;while(components.length<5&&i<5){addComponent(new OpenLayers.Geometry.Point(0,i++));}components[0].x=this.map.getCenterX()-this.width/2;components[0].y=this.map.getCenterY()-this.height/2;components[1].x=components[0].x;components[1].y=components[0].y+this.height;components[2].x=components[0].x+this.width;components[2].y=components[0].y+this.height;components[3].x=components[0].x+this.width;components[3].y=components[0].y;components[4].x=components[0].x;components[4].y=components[0].y;for(i=0;i<components.length;++i){components[i].calculateBounds();}
103calculateBounds();this.geom.calculateBounds();var p1=this.map.map.getViewPortPxFromLonLat(new OpenLayers.LonLat(components[0].x,components[0].y));var p2=this.map.map.getViewPortPxFromLonLat(new OpenLayers.LonLat(components[2].x,components[2].y));this.layer.setVisibility(Math.abs(p1.x-p2.x)>4&&Math.abs(p1.y-p2.y)>4);this.layer.redraw();}}}catch(exc){if(exc&&window.console&&window.console.error){window.console.error(exc);}}},createCrosshairGeom:function(){"use strict";var _a=this.map.map.getPixelFromLonLat(this.map.map.getCenter());var _b=this.map.map.getLonLatFromPixel(new OpenLayers.Pixel(_a.x,_a.y+this.crosshairRadius));var _c=this.map.map.getLonLatFromPixel(new OpenLayers.Pixel(_a.x-this.crosshairRadius,_a.y));var _d=this.map.map.getLonLatFromPixel(new OpenLayers.Pixel(_a.x+this.crosshairRadius,_a.y));var _e=this.map.map.getLonLatFromPixel(new OpenLayers.Pixel(_a.x,_a.y-this.crosshairRadius));
104var _f=new OpenLayers.Geometry.LineString([new OpenLayers.Geometry.Point(_c.lon,_c.lat),new OpenLayers.Geometry.Point(_d.lon,_d.lat)]);var _10=new OpenLayers.Geometry.LineString([new OpenLayers.Geometry.Point(_e.lon,_e.lat),new OpenLayers.Geometry.Point(_b.lon,_b.lat)]);return new OpenLayers.Geometry.MultiLineString([_f,_10]);},refreshCrossHair:function(){"use strict";this.crosshairLayer.removeAllFeatures();this.crosshairLayer.addFeatures([new OpenLayers.Feature.Vector(this.createCrosshairGeom())]);this.crosshairLayer.setVisibility(!this.layer.getVisibility());this.crosshairLayer.redraw();}});
105gc.initClass("gc.map.Legend",true,{setState:function(_1,_2,_3,_4){var _5=_2.split(",");var _6;if(!_4){_6=document.getElementsByName(_1+"_legend");}else{_6=document.getElementsByName(_1+"_legend_grp");}for(var i=0;i<_6.length;++i){for(var j=0;j<_5.length;++j){if(_6[i].value&&GeoCMS.Utility.inArray(_6[i].value.split(","),_5[j])){_6[i].checked=_3;}}}this.updateMap(_1);},setStateGrp:function(_9,_a,_b){this.setState(_9,_a,_b,true);},updateMap:function(_c){var _d=gc.Map.instances[_c];if(_d){var _e=document.getElementsByName(_c+"_legend");var _f=_d.map.layers;for(var i=0;i<_f.length;++i){if(_f[i].isBaseLayer){for(var k=0;k<_e.length;++k){if(_d.map.baseLayer.id!=_f[i].id&&(((_f[i].CLASS_NAME.indexOf("Google")>=0||_f[i].CLASS_NAME.indexOf("OSM.Mapnik")>=0||_f[i].CLASS_NAME.indexOf("OSM.Osmarender")>=0)&&_e[k].value==_f[i].name)||(_f[i].params&&_f[i].params.LAYERS&&_e[k].value==_f[i].params.LAYERS))){if(_e[k].checked==true){_f[i].map.setBaseLayer(_f[i],true);
106_f[i].map.events.triggerEvent("changebaselayer");}}}}else{if(_f[i].CLASS_NAME.indexOf("WMS")>=0){if(!_f[i].origLayers){_f[i].origLayers=_f[i].params.LAYERS.split(",");_f[i].origVisible=_f[i].getVisibility();}var tmp=[];var _13;for(var j=0;j<_f[i].origLayers.length;++j){_13=false;for(var k=0;k<_e.length;++k){if(_e[k].value&&GeoCMS.Utility.inArray(_e[k].value.split(","),_f[i].origLayers[j])){_13=true;if(_e[k].checked&&!GeoCMS.Utility.inArray(tmp,_f[i].origLayers[j])){tmp[tmp.length]=_f[i].origLayers[j];}}}if(!_13&&_f[i].origVisible){tmp[tmp.length]=_f[i].origLayers[j];}}tmp=tmp.join(",");if(tmp!=""){var _15=(_f[i].params.LAYERS!=tmp);_f[i].params.LAYERS=tmp;_f[i].setVisibility(true);if(_15){_f[i].redraw();}}else{_f[i].setVisibility(false);}}}}}}});
107gc.initClass("gc.Map",false,{defaultToolbar:"olControlEditingToolbar",id:null,name:null,baseZoom:null,map:null,menu:null,markerManager:null,edit:null,frame:null,popupManager:null,tooltipTag:null,clickHandler:null,onClickCoordHandler:null,hoverHandler:null,onHoverCoordHandler:null,geocoder:null,geocoderLayer:null,trackingLayers:null,toolbars:null,transformURL:null,constructor:function(_1,id){if(_1){this.name=_1;gc.Map.instances[this.name]=this;}this.id=id;this.menu=new gc.map.Menu(this);this.popupManager=new gc.map.Popup(this);this.onClickCoordinatesIgnore=false;this.onClickCoordHandler=new Array();this.onHoverCoordHandler=new Array();this.trackingLayers=new Array();this.toolbars={};OpenLayers.Lang.setCode("de");},initTransform:function(_3){this.transformURL=_3;},getTransformURL:function(){return this.transformURL;},initMap:function(id,x,y,_7,_8,_9,_a,_b){this.baseZoom={x:x,y:y,zoom:_7};this.menu.search.init(_8,_9);this.map=new OpenLayers.Map(id,_a);
108this.clickHandler=new OpenLayers.Handler.Click(this,{"click":this.doOnClickCoordinates},{"double":false,"stopDouble":false});this.clickHandler.activate();this.hoverHandler=new OpenLayers.Handler.Hover(this,{"pause":this.doOnHoverCoordinates});this.hoverHandler.activate();var _c;var _d=false;var _e=undefined;var _f=false;for(var i=0;i<_b.length;++i){if(_b[i]=="LayerSwitcher"){_b[i]="MobileLayerSwitcher";}if(eval("OpenLayers.Control."+_b[i])){var _11=eval("new OpenLayers.Control."+_b[i]+"()");switch(_b[i]){case "MobileLayerSwitcher":case "GCLegendLayerSwitcher":_e=_11;_11.ascending=false;break;case "Navigation":_c=_11;_c.zoomWheelEnabled=_d;break;case "MousePosition":if(!(_a.projection&&_a.projection=="EPSG:4326")){_11.numDigits=2;}break;case "GCSessionViewport":var old=GeoCMS.Storage.getItem("session_viewport",GeoCMS.Storage.StorageType.SESSION);if(old){old=JSON.parse(old);if(old.projection&&old.geometry){var wkt=new OpenLayers.Format.WKT();var _14=wkt.read(old.geometry);
109if(_14.geometry&&_14.geometry.getBounds()){this.baseZoom={extent:_14.geometry.getBounds().toArray(),projection:old.projection};}}}break;}this.map.addControl(_11);if(_b[i]=="LayerSwitcher"||_b[i]=="GCLegendLayerSwitcher"){_11.baseLbl.innerHTML="Grundkarte";_11.dataLbl.innerHTML="ausw&auml;hlbare Ebenen";}}else{switch(_b[i]){case "MouseWheel":_d=true;if(_c&&_c.enableZoomWheel){_c.enableZoomWheel();}break;case "GCLayerSwitcherAutoExpand":_f=true;break;}}}if(_f&&_e){if(typeof _e.maximizeControl=="function"){GeoCMS.Core.addOnLoadEvent(function(){setTimeout(function(){_e.maximizeControl();},500);});}}},initMarkerManager:function(url,_16,_17,_18){this.markerManager=new gc.map.MarkerManager(this.map);this.markerManager.defaultVisible=_16;if(_17){this.markerManager.initTooltip(_17);}if(_18){this.markerManager.initDetail(_18);}OpenLayers.Util.alphaHack=function(){return false;};if(url&&url!=""){
110GeoCMS.Network.XHR.newRequest(url,this.markerManager.loadCategories,this.markerManager,GeoCMS.Network.Request.RESPONSE_TEXT,true);}},initEditing:function(_19,_1a,_1b){if(!this.edit){this.edit=new gc.map.Edit(this,_19,_1a,_1b);}return (this.edit instanceof gc.map.Edit)?this.edit:null;},initToolbar:function(_1c,_1d){var tmp=[];for(var i=0;i<_1c.length;++i){if(eval("OpenLayers.Control."+_1c[i])){var _20=eval("new OpenLayers.Control."+_1c[i]+"()");switch(_1c[i]){case "ZoomBox":_20.displayClass="olControlZoomBox";_20.title="Zoomen per Auswahlrechteck";_20.alwaysZoom=true;tmp[tmp.length]=_20;break;case "Navigation":_20.title="Kartenausschnitt verschieben";tmp[tmp.length]=_20;break;case "NavigationHistory":_20.next.title="Schritt vor";_20.next.displayClass="olControlZoomBox";_20.previous.title="Schritt zur\xc3\xbcck";_20.previous.displayClass="olControlZoomBox";tmp[tmp.length]=_20.next;tmp[tmp.length]=_20.previous;break;}}}if(tmp.length>0){this.addToolbarControls(tmp,_1d);}
111},setFrame:function(_21,_22,_23){if(this.frame){this.frame.set(_21,_22);}else{this.frame=new gc.map.Frame(this,_21,_22);}if(_23){var _24=this.map.getZoomForExtent(new OpenLayers.Bounds(this.getCenterX()-_21/2,this.getCenterY()-_22/2,this.getCenterX()+_21/2,this.getCenterY()+_22/2));if(_24<this.getZoom()){this.setZoom(_24);}}},setLayerLegendGraphic:function(_25,_26){var _27=this.map.getControlsByClass("OpenLayers.Control.GCLegendLayerSwitcher");if(_27&&_27.length>0){_27[0].setLegendGraphic(_25,_26);}},addLayerTMS:function(_28,_29,url,_2b){var _2c=(!this.map.layers||this.map.layers.length==0);
111var _2d={layername:_29,type:"png",isBaseLayer:_2b};if(!_2b&&GeoCMS.Core.isIE()&&!GeoCMS.Core.isIE7()){_2d["type"]="gif";}var tms=new OpenLayers.Layer.TMS(_28,url,_2d);tms.displayOutsideMaxExtent=true;this.map.addLayer(tms);if(_2c){this._applyBaseZoom();}return tms;},addLayerWMTS:function(_2f,_30,url,_32,_33,_34,_35,_36){var _37=(!this.map.layers||this.map.layers.length===0);
112var _38={name:_2f,url:url,layer:_30,style:_32,matrixSet:_33,format:"image/png",requestEncoding:"REST",isBaseLayer:_34};_36=_36||{};if(_36.format){_38.format=_36.format;}if(_36.requestEncoding&&_36.requestEncoding.toLowerCase()==="kvp"){_38.requestEncoding="KVP";}if(_36.tileSize&&Array.isArray(_36.tileSize)&&_36.tileSize.length>1){_38.tileSize=new OpenLayers.Size(_36.tileSize[0],_36.tileSize[1]);}if(_36.tileOrigin&&Array.isArray(_36.tileOrigin)&&_36.tileOrigin.length>1){_38.tileOrigin=new OpenLayers.LonLat(_36.tileOrigin[0],_36.tileOrigin[1]);}if(_36.maxExtent&&Array.isArray(_36.maxExtent)&&_36.maxExtent.length>3){_38.maxExtent=_36.maxExtent.slice(0,4);}if(_36.numAdvResolutions&&_36.numAdvResolutions>0){_38.serverResolutions=gc.map.Util.getWMTSADVResolutions(_36.numAdvResolutions);}else{if(_36.serverResolutions&&Array.isArray(_36.serverResolutions)&&_36.serverResolutions.length>0){_38.serverResolutions=_36.serverResolutions;}}if(_34){_38.transitionEffect="resize";}
113var _39=new OpenLayers.Layer.WMTS(_38);_39.displayInLayerSwitcher=("boolean"===typeof _35)?_35:true;this.map.addLayer(_39);if(_37){this._applyBaseZoom();}return _39;},addLayerWMS:function(_3a,_3b,url,_3d,_3e,_3f,_40,_41,_42,_43){var _44=(!this.map.layers||this.map.layers.length==0);var _45={};if(_43){_45=_43;}if(!_42){if(!_3d&&GeoCMS.Core.isIE6()){_42="image/gif";}else{_42="image/png";}}var _46={transparent:(_3d)?"false":"true",layers:_3b,format:_42};var _43={projection:this.map.projection,units:this.map.units,isBaseLayer:_3d};if(_3e){_43["singleTile"]=true;_43["ratio"]=1.5;}if(!_3d&&GeoCMS.Core.isIE6()&&_42.indexOf("png")>=0){_43["alpha"]=true;}var wms=new OpenLayers.Layer.WMS(_3a,url,_46,_43);wms.displayOutsideMaxExtent=true;wms.visibility=("boolean"==typeof _40)?_40:true;wms.displayInLayerSwitcher=("boolean"==typeof _41)?_41:true;if(_3d){wms.transitionEffect="resize";}if(_3f){wms.gutter=_3f;}this.map.addLayer(wms);if(_45.legendGraphic&&_45.legendGraphic.length>0){
114this.setLayerLegendGraphic(wms,_45.legendGraphic);}if(_44){this._applyBaseZoom();}return wms;},addLayerWFS:function(_48,_49,_4a,_4b,_4c,_4d){var wfs=null;if(typeof _49=="string"){if(!_4b){_4b=false;}var _4f={url:_4a,geometryName:(_4c)?_4c:"geom"};var pos=_49.search(":");if(pos>0&&pos<_49.length){_4f.featurePrefix=_49.substring(0,pos);_4f.featureType=_49.substring(pos+1);}else{_4f.featureType=_49;}if(!_4d){_4d={};}if(!_4d.isBaseLayer){_4d.isBaseLayer=_4b;}if(!_4d.strategies){_4d.strategies=[new OpenLayers.Strategy.BBOX({autoActivate:false})];}if(!_4d.protocol){_4d.protocol=new OpenLayers.Protocol.WFS(_4f);}_4d.rendererOptions={zIndexing:true};wfs=new OpenLayers.Layer.Vector(_48,_4d);this.map.addLayer(wfs);}else{GeoCMS.Console.error("addLayerWFS(): missing FeatureType");}return wfs;},addLayerWFSjson:function(_51,_52,_53,_54,_55,_56){var wfs=null;if(typeof _52=="string"){if(!_54){_54=false;}if(!_55){_55="geom";}var _58;var _59;var pos=_52.search(":");if(pos>0&&pos<_52.length){
115_58=_52.substring(0,pos);_59=_52.substring(pos+1);}else{_59=_52;}var _5b={url:_53,callbackKey:"format_options",callbackPrefix:"callback:",params:{service:"WFS",version:"1.1.0",srsName:this.getProjection(),request:"GetFeature",typeName:_52,outputFormat:"GML3"},format:new OpenLayers.Format.GML.v3({geometryName:_55}),filterToParams:function(_5c,_5d){if(_5c.type===OpenLayers.Filter.Spatial.BBOX){_5d.bbox=_5c.value.toArray();if(_5c.projection){_5d.bbox.push(_5c.projection.getCode());}}return _5d;}};if(!_56){_56={};}if(!_56.isBaseLayer){_56.isBaseLayer=_54;}if(!_56.strategies){_56.strategies=[new OpenLayers.Strategy.BBOX({autoActivate:false})];}if(!_56.protocol){_56.protocol=new OpenLayers.Protocol.Script(_5b);}_56.rendererOptions={zIndexing:true};wfs=new OpenLayers.Layer.Vector(_51,_56);this.map.addLayer(wfs);}else{GeoCMS.Console.error("addLayerWFS(): missing FeatureType");}return wfs;},addLayerGoogle:function(_5e,_5f,_60){
116var _61={sphericalMercator:this.map.projection==gc.proj.mercator.srs,isBaseLayer:true};if(!_5e){switch(_60){case "TERRAIN":_5e="Google Gel\xc3\xa4nde";break;case "HYBRID":_5e="Google Satellit/Labels";break;case "SATELLITE":_5e="Google Satellit";break;default:_5e="Google Karte";}}switch(_60){case "TERRAIN":_61.type=google.maps.MapTypeId.TERRAIN;break;case "HYBRID":_61.type=google.maps.MapTypeId.HYBRID;break;case "SATELLITE":_61.type=google.maps.MapTypeId.SATELLITE;break;}var _62=(!this.map.layers||this.map.layers.length==0);var _63=new OpenLayers.Layer.Google(_5e,_61);_63.animationEnabled=true;this.map.addLayer(_63);if(_62){this._applyBaseZoom();}return _63;},addLayerOSM:function(_64,_65,url){var _67=null;try{var _68=(!this.map.layers||this.map.layers.length==0);if(!_64){_64="OpenStreetMap";}if(!_65){_65="Mapnik";}if(OpenLayers.Layer.OSM&&OpenLayers.Layer.OSM[_65]){_67=new OpenLayers.Layer.OSM[_65](_64,{},url);this.map.addLayer(_67);if(_68){this._applyBaseZoom();}}}catch(e){
117GeoCMS.Console.error(e);}return _67;},addLayerWebAtlasDELight:function(_69,_6a,_6b,_6c){var _6d=null;_6b=_6b!==false;_6c=_6c!==false;try{var url="//sg.geodatenzentrum.de/wmts_webatlasde.light",_6f="webatlasde.light",_70=_6a?_6a:"WebAtlasDE.light";if(_69&&_69.toLowerCase()==="grau"){url+="_grau";_6f+="_grau";if(!_6a){_70+=" (Graustufen)";}}url+="/tile/";this.addLayerWMTS(_70,_6f,url,"default","DE_EPSG_25832_LIGHT",_6b,_6c,{tileOrigin:[-46133.17,6301219.54],numAdvResolutions:11,maxExtent:[272125,5217364.800000001,934197.6000000001,6114422.4]});}catch(e){GeoCMS.Console.error(e);}return _6d;},addLayerTracking:function(_71,_72,_73){var i=this.trackingLayers.length;this.trackingLayers[i]=new gc.map.TrackingLayer(this,_71,_72,_73);return this.trackingLayers[i];},getLayerTracking:function(_75){for(var i=0;i<this.trackingLayers.length;i++){if(this.trackingLayers[i].layer.name==_75){return this.trackingLayers[i];}}return null;},_applyBaseZoom:function(){
118if(typeof this.baseZoom.projection==="string"&&this.map.getProjection().toLowerCase()===this.baseZoom.projection.toLowerCase()&&Array.isArray(this.baseZoom.extent)&&this.baseZoom.extent.length===4){this.zoomToExtent(this.baseZoom.extent[0],this.baseZoom.extent[1],this.baseZoom.extent[2],this.baseZoom.extent[3]);}else{this.map.setCenter(new OpenLayers.LonLat(this.baseZoom.x,this.baseZoom.y),this.baseZoom.zoom);}},register:function(_77,obj,_79){this.map.events.register(_77,obj,_79);},unregister:function(_7a,obj,_7c){this.map.events.unregister(_7a,obj,_7c);},loadDetails:function(cat,id,_7f,_80,_81){if(this.markerManager){var _82=this.markerManager.getCategory(cat);if(_82){this.markerManager.setHighlight(_7f,_80);_82.loadDetails(id);}else{this.markerManager.setHighlight(null,null);this.markerManager.onDetails();return;}}this.map.setCenter(new OpenLayers.LonLat(_7f,_80),(this.map.getZoom()<_81)?_81:null);},reload:function(){if(this.map&&this.map.layers){
119for(var i=0;i<this.map.layers.length;i++){if(this.map.layers[i].visibility){this.map.layers[i].redraw();}}}},getProjection:function(){return this.map.projection;},getExtent:function(_84){var _85=this.map.getExtent();if(!_84){_84="bounds";}switch(_84){case "wkt":var wkt=new OpenLayers.Format.WKT();return wkt.extractGeometry(_85.toGeometry());case "geom":return _85.toGeometry();case "array":return _85.toArray();}return _85;},getCenterX:function(){return this.map.getCenter().lon;},getCenterY:function(){return this.map.getCenter().lat;},setCenter:function(x,y,_89){var tmp=new OpenLayers.LonLat();tmp.lon=x;tmp.lat=y;if(_89){this.map.zoomTo(_89);}else{_89=this.map.getZoom();}this.map.setCenter(tmp,_89,true);if(this.markerManager){this.markerManager.updateMarkers();}for(var i=0;i<this.map.layers.length;i++){if(this.map.layers[i].visibility&&this.map.layers[i].singleTile){this.map.layers[i].redraw();}}},getZoom:function(){return this.map.getZoom();},setZoom:function(_8c){
120var ret=this.map.zoomTo(_8c);if(this.markerManager){this.markerManager.updateMarkers();}return ret;},zoomToExtent:function(_8e,_8f,_90,_91){if(_8e==_90&&_8f==_91){this.setCenter(_8e,_8f,Math.min(15,this.map.maxZoomLevel-1));}else{this.map.zoomToExtent(new OpenLayers.Bounds(_8e,_8f,_90,_91));}},getLayer:function(_92){for(var i=0;i<this.map.layers.length;i++){if(this.map.layers[i].name==_92){return this.map.layers[i];}}return null;},getLayerVisible:function(_94){for(var i=0;i<this.map.layers.length;i++){if(this.map.layers[i].name==_94){return this.map.layers[i].getVisibility();}}return false;},setLayerVisible:function(_96,_97){for(var i=0;i<this.map.layers.length;i++){if(this.map.layers[i].name==_96){if(this.map.layers[i].isBaseLayer){if(_97){this.map.setBaseLayer(layers[i],true);this.map.events.triggerEvent("changebaselayer");}}else{this.map.layers[i].setVisibility(_97);}}}},getActiveWMSLayers:function(){var _99=new Array();var _9a=this.map.layers;if(_9a!=null){
121for(var i=0;i<_9a.length;i++){if(!_9a[i].isBaseLayer&&_9a[i].visibility&&OpenLayers.String.contains(_9a[i].CLASS_NAME,"WMS")){var _9c=_9a[i].params["LAYERS"].split(",");if(_9c instanceof Array){for(var j=0;j<_9c.length;j++){_99.push(_9c[j]);}}else{_99.push(_9c);}}}}return _99;},addToolbarControls:function(_9e,_9f){if(typeof _9f=="undefined"){_9f=this.defaultToolbar;}if(!this.toolbars[_9f]){this.toolbars[_9f]=new OpenLayers.Control.Panel();this.toolbars[_9f].displayClass=_9f;this.map.addControl(this.toolbars[_9f]);}
121if(this.toolbars[_9f]!=null){this.toolbars[_9f].addControls(_9e);return this.toolbars[_9f];}return null;},geocode:function(_a0,_a1,_a2){if(GClientGeocoder){if(!this.geocoder){this.geocoder=new GClientGeocoder(new GGeocodeCache());}if(_a2){if(this.map.projection==gc.proj.mercator.srs){this.geocoder.getLocations(_a0,function(_a3){if(_a3&&_a3.Placemark){for(var i=0;i<_a3.Placemark.length;++i){if(!_a3.Placemark[i].Point.srs||_a3.Placemark[i].Point.srs!=gc.proj.mercator.srs){
122_a3.Placemark[i].Point.srs=gc.proj.mercator.srs;_a3.Placemark[i].Point.coordinates[0]=gc.proj.mercator.toX(_a3.Placemark[i].Point.coordinates[0]);_a3.Placemark[i].Point.coordinates[1]=gc.proj.mercator.toY(_a3.Placemark[i].Point.coordinates[1]);_a3.Placemark[i].x=_a3.Placemark[i].Point.coordinates[0];_a3.Placemark[i].y=_a3.Placemark[i].Point.coordinates[1];}}}_a1.apply(this,[_a3]);});}else{this.geocoder.getLocations(_a0,_a1);}}else{if(this.map.projection==gc.proj.mercator.srs){this.geocoder.getLatLng(_a0,function(_a5){if(_a5){_a5.x=gc.proj.mercator.toX(_a5.x);_a5.y=gc.proj.mercator.toY(_a5.y);}_a1.apply(this,[_a5]);});}else{this.geocoder.getLatLng(_a0,_a1);}}return true;}else{return false;}},onGeocoderResults:function(_a6){if(!this.geocoderLayer){var _a7={fill:false,fillColor:"#bb0000",fillOpacity:0,stroke:true,strokeWidth:2,strokeColor:"#bb0000",pointRadius:6};this.geocoderLayer=this.addLayerTracking("Geocoder",_a7);}this.geocoderLayer.layer.removeAllFeatures();var _a8=[];
123for(var i=0;i<_a6.length;i++){if(_a6[i].geometry){var g=_a6[i].geometry;if(g.wkt){var _ab=new OpenLayers.Format.WKT();_a8=_ab.read(g.wkt);if(_a8){if(_a8.constructor!=Array){_a8=[_a8];}if(_a8.length>0){this.geocoderLayer.layer.addFeatures(_a8);}}}var _ac=this.map.getNumZoomLevels();if(g.extent){this.zoomToExtent(g.extent.minx,g.extent.miny,g.extent.maxx,g.extent.maxy);}else{if(g.location){this.setCenter(g.location.x,g.location.y,(_ac-3>this.getZoom()?_ac-3:this.getZoom()));}}}}this.geocoderLayer.zoomToData();},addOnClickCoordinates:function(_ad,_ae){var i=this.onClickCoordHandler.length;this.onClickCoordHandler[i]={obj:_ae,func:_ad};},removeOnClickCoordinates:function(_b0,_b1){for(var i=0;i<this.onClickCoordHandler.length;i++){if(this.onClickCoordHandler[i].func==_b0&&this.onClickCoordHandler[i].obj==_b1){this.onClickCoordHandler.splice(i,1);--i;}}},doOnClickCoordinates:function(_b3){try{if(gc.mod&&gc.mod.geoinfo){gc.mod.geoinfo.onClickEvent(_b3);}
124var tmp=this.map.getLonLatFromViewPortPx(_b3.xy);for(var i=0;i<this.onClickCoordHandler.length;++i){try{if(this.onClickCoordHandler[i]){this.onClickCoordHandler[i].func.call(this.onClickCoordHandler[i].obj,tmp.lon,tmp.lat,this.getProjection(),_b3);}}catch(exc){GeoCMS.Console.error(exc);}}}catch(exc){GeoCMS.Console.error(exc);}},addOnHoverCoordinates:function(_b6,_b7){var i=this.onHoverCoordHandler.length;this.onHoverCoordHandler[i]={obj:_b7,func:_b6};},removeOnHoverCoordinates:function(_b9,_ba){for(var i=0;i<this.onHoverCoordHandler.length;i++){if(this.onHoverCoordHandler[i].func==_b9&&this.onHoverCoordHandler[i].obj==_ba){this.onHoverCoordHandler.splice(i,1);--i;}}},doOnHoverCoordinates:function(_bc){try{var tmp=this.map.getLonLatFromViewPortPx(_bc.xy);for(var i=0;i<this.onHoverCoordHandler.length;++i){try{if(this.onHoverCoordHandler[i]){this.onHoverCoordHandler[i].func.call(this.onHoverCoordHandler[i].obj,tmp.lon,tmp.lat,this.getProjection(),_bc);}}catch(exc){
125GeoCMS.Console.error(exc);}}}catch(exc){GeoCMS.Console.error(exc);}}});if(gc.Map&&!gc.Map.instances){gc.Map.instances={};}
126gc.initClass("gc.map.MarkerCategory",false,{markerManager:null,visible:false,id:null,title:null,subCategories:null,features:null,icon:null,dataUrl:null,detailUrl:null,levels:null,isRequested:false,constructor:function(_1,id,_3){this.markerManager=_1;this.id=id;this.title=_3;this.subCategories=new Array();this.features=null;},setIcon:function(_4,_5,_6,_7,_8){if(typeof _4=="Object"){this.icon=_4;}else{this.icon=new OpenLayers.Icon(_4,new OpenLayers.Size(_5,_6),(_7||_8)?(new OpenLayers.Pixel(_7,_8)):null);}},addSubCategory:function(_9){if(!this.subCategories){this.subCategories=[_9];}else{this.subCategories.push(_9);}},getSubCategory:function(id){var _b;if(this.subCategories&&this.subCategories.length>0){for(var i=0;i<this.subCategories.length;++i){if(this.subCategories[i].id==id){return this.subCategories[i];}else{_b=this.subCategories[i].getSubCategory(id);if(_b){return _b;}}}}},getVisible:function(){return this.visible;},setVisible:function(_d,_e){this.visible=_d;
127if(_e&&this.subCategories&&this.subCategories.length>0){for(var i=0;i<this.subCategories.length;++i){this.subCategories[i].setVisible(_d,_e);}}this.updateMarkers();},addFeature:function(x,y,_12,url){if(!this.features){this.features=new Array();}var _14=new OpenLayers.Feature.Vector();_14.geometry=new OpenLayers.Geometry.Point(x,y);_14.attributes.name=_12;if(url){_14.attributes.detailUrl=url;}this.features.push(_14);this.updateMarkers();return _14;},clear:function(){this.clearFeatures();if(this.subCategories&&this.subCategories.length>0){var cat;while(cat=this.subCategories.pop()){cat.clear();}}},clearFeatures:function(){if(this.features){for(var i=0;i<this.features.length;++i){if(this.features[i].data.visible){this.features[i].data.visible=false;try{this.markerManager.layer.removeMarker(this.features[i].marker);}catch(exc){}}}this.features=null;}},loadFeatures:function(_17){var _18=new OpenLayers.Format.GeoJSON();if(_17){var _19=_18.read(_17,"FeatureCollection");if(_19){
128this.features=_19;this.isRequested=false;this.updateMarkers();}}else{this.isRequested=false;}},setFeatures:function(_1a){this.clearFeatures();this.features=_1a;},getFeatures:function(x,y,_1d){if(!_1d){_1d=new Array();}if(this.features){var px;var x1;var x2;var y1;var y2;for(var i=this.features.length-1;i>=0;--i){if(this.features[i].data.visible&&this.features[i].lonlat&&this.features[i].marker&&this.features[i].marker.icon){px=this.markerManager.layer.getViewPortPxFromLonLat(this.features[i].lonlat);px=this.markerManager.layer.map.getLayerPxFromViewPortPx(px);x1=px.x+this.features[i].marker.icon.offset.x;x2=x1+this.features[i].marker.icon.size.w;y1=px.y+this.features[i].marker.icon.offset.y;y2=y1+this.features[i].marker.icon.size.h;if(x1<=x&&x<=x2&&y1<=y&&y<=y2){_1d.push(this.features[i]);}}}}if(this.subCategories&&this.subCategories.length>0){for(var i=0;i<this.subCategories.length;++i){this.subCategories[i].getFeatures(x,y,_1d);}}return _1d;},loadDetails:function(id){
129if(this.detailUrl){var _25=new GeoCMS.Network.Request(this.detailUrl+id,this.markerManager.onDetails,this.markerManager,GeoCMS.Network.Request.RESPONSE_TEXT,false,null);_25.callbackOnStartFunction=this.markerManager.onDetailStartLoad;_25.callbackOnStartObject=this.markerManager;GeoCMS.Network.XHR.addRequest(_25,true);}},updateMarkers:function(_26){if(this.markerManager){if(this.visible){if(this.dataUrl&&!this.features){if(!this.isRequested){this.isRequested=true;GeoCMS.Network.XHR.newRequest(this.dataUrl,this.loadFeatures,this,GeoCMS.Network.Request.RESPONSE_TEXT);}}else{if(this.features){var _27=this.markerManager.layer.map.getExtent();var _28=_27.getWidth();var _29=_27.getHeight();_27.left=_27.left-_28;_27.right=_27.right+_28;_27.bottom=_27.bottom-_29;_27.top=_27.top+_29;var _2a;for(var i=0;i<this.features.length;++i){this.features[i].layer=this.markerManager.layer;this.features[i].attributes.layer=this.id;if(!this.features[i].marker){_2a=this.icon.clone();
130_2a.imageDiv.style.cursor="pointer";this.features[i].lonlat=new OpenLayers.LonLat(this.features[i].geometry.x,this.features[i].geometry.y);this.features[i].marker=new OpenLayers.Marker(this.features[i].lonlat,_2a);}if(_26===true||(_27.containsLonLat(this.features[i].lonlat)&&(!this.features[i].data.level||this.features[i].data.level<=this.markerManager.layer.map.zoom))){if(!this.features[i].data.visible){this.features[i].data.visible=true;this.markerManager.layer.addMarker(this.features[i].marker);}}else{if(this.features[i].data.visible){this.features[i].data.visible=false;try{this.markerManager.layer.removeMarker(this.features[i].marker);}catch(exc){}}}}}}}else{if(this.features){for(var i=0;i<this.features.length;++i){if(this.features[i].data.visible){this.features[i].data.visible=false;try{this.markerManager.layer.removeMarker(this.features[i].marker);}catch(exc){}}}}}}if(this.subCategories&&this.subCategories.length>0){for(var i=0;i<this.subCategories.length;++i){
131this.subCategories[i].updateMarkers(_26);}}}});
132gc.initClass("gc.map.MarkerManager",false,{index:null,defaultVisible:false,map:null,clickHandler:null,layer:null,categories:null,layerHighlight:null,markerHighlight:null,tooltipTag:null,tooltipFeatures:null,tooltipFixed:false,detailTag:null,constructor:function(_1){this.index=gc.map.MarkerManager.instances.length;gc.map.MarkerManager.instances[this.index]=this;this.setMap(_1);this.categories=new Array();this.markerHighlight=new OpenLayers.Marker(null,new OpenLayers.Icon(GeoCMS.Core.getScriptLocation()+"../icons/marker.gif",new OpenLayers.Size(29,29)));},setMap:function(_2){try{if(this.map){try{this.map.events.unregister("moveend",this,this.updateMarkers);}catch(exc){}try{this.map.events.unregister("zoomend",this,this.onTooltipHide);}catch(exc){}try{this.clickHandler=new OpenLayers.Handler.Click(this,{"click":this.doOnClickCoordinates},{"double":false,"stopDouble":false});this.clickHandler.activate();}catch(exc){}if(this.layer){this.map.removeLayer(this.layer);}if(this.layerHighlight){
133this.map.removeLayer(this.layerHighlight);}}}catch(exc){}this.map=_2;if(this.map){if(!this.layer){this.layer=new OpenLayers.Layer.Mar
133kers("",{displayInLayerSwitcher:false});this.layer.markerManager=this;}this.map.addLayer(this.layer);if(!this.layerHighlight){this.layerHighlight=new OpenLayers.Layer.Markers("",{displayInLayerSwitcher:false});}this.map.addLayer(this.layerHighlight);this.map.setLayerZIndex(this.layer,1001);this.map.setLayerZIndex(this.layerHighlight,1002);this.map.events.register("moveend",this,this.updateMarkers);this.map.events.register("zoomend",this,this.onTooltipHide);this.clickHandler=new OpenLayers.Handler.Click(this.layer,{"click":this.onClick},{"double":false,"stopDouble":false});this.clickHandler.activate();}},initTooltip:function(id){this.tooltipTag=document.getElementById(id);if(this.tooltipTag&&this.layer){this.layer.events.register("mousemove",this,this.onTooltip);this.layer.events.register("mouseout",this,this.onTooltipHide);}},initDetail:function(id){
134this.detailTag=document.getElementById(id);},loadCategories:function(_5){if(_5){var _6=JSON.parse(_5);if(_6){this.loadChildCategories(null,_6);this.updateMarkers();}}},loadChildCategories:function(_7,_8){for(var i=0;i<_8.length;++i){this.addCategory(_7,_8[i].id,_8[i].title,(_8[i].icon)?_8[i].icon.src:null,(_8[i].icon)?_8[i].icon.width:null,(_8[i].icon)?_8[i].icon.height:null,_8[i].dataUrl,_8[i].detailUrl,[]);if(_8[i].items&&_8[i].items.length>0){this.loadChildCategories(_8[i].id,_8[i].items);}}},addCategory:function(_a,id,_c,_d,_e,_f,_10,_11,_12){var _13;if(_a){_13=this.getCategory(_a);if(!_13){_13=new gc.map.MarkerCategory(this,_a);_13.visible=this.defaultVisible;this.categories.push(_13);}}var _14=new gc.map.MarkerCategory(this,id,_c);_14.dataUrl=_10;_14.detailUrl=_11;_14.levels=_12;if(_d){_14.setIcon(_d,_e,_f);}_14.visible=this.defaultVisible;if(_13){_13.subCategories.push(_14);}else{this.categories.push(_14);}return _14;},getCategory:function(id){var tmp;
135for(var i=0;i<this.categories.length;++i){if(this.categories[i].id==id){return this.categories[i];}else{tmp=this.categories[i].getSubCategory(id);if(tmp){return tmp;}}}return null;},setCategoryVisible:function(id,_19,_1a){var _1b=this.getCategory(id);if(_1b){_1b.setVisible(_19,_1a);}},setAllVisible:function(_1c){for(var i=0;i<this.categories.length;++i){this.categories[i].setVisible(_1c,true);}this.updateMarkers();},getFeatures:function(x,y){var _20=new Array();for(var i=0;i<this.categories.length;++i){this.categories[i].getFeatures(x,y,_20);}return _20;},setHighlight:function(x,y){if(this.layer&&this.markerHighlight){try{this.layer.removeMarker(this.markerHighlight);}catch(exc){}if(x&&y){if(this.markerHighlight.lonlat){this.markerHighlight.lonlat.lon=x;this.markerHighlight.lonlat.lat=y;}else{this.markerHighlight.lonlat=new OpenLayers.LonLat(x,y);}this.layer.addMarker(this.markerHighlight);}}},updateMarkers:function(_24){if(this.layer){for(var i=this.categories.length-1;i>=0;--i){
136this.categories[i].updateMarkers(_24);}}},onTooltip:function(_26){if(this.tooltipTag&&this.layer&&!this.tooltipFixed){var _27=gc.event.getTarget(_26).parentNode;var px=new OpenLayers.Pixel(gc.event.getOffsetX(_26)+parseFloat(_27.style.left),gc.event.getOffsetY(_26)+parseFloat(_27.style.top));var _29=this.getFeatures(px.x,px.y);px=this.map.getViewPortPxFromLayerPx(px);if(_29&&_29.length>0){this.tooltipFeatures=_29;var tmp="";var _2b,_2c;var _2d={};for(var i=0;i<_29.length;++i){if(_29[i].attributes.name&&_29[i].attributes.name!=""&&!_2d[_29[i].attributes.name]){_2b=_29[i].attributes.name;if(_29.length>1){_2c="gc.map.MarkerManager.instances["+this.index+"]";_2b="<span onclick=\""+_2c+".onClickDetail("+_2c+".tooltipFeatures["+i+"]);\""+" style=\"cursor:pointer;\">"+_2b+"</span>";}tmp+="<div style=\"padding: 2px 0px;\">"+_2b+"</div>";_2d[_29[i].attributes.name]=1;}}this.tooltipTag.innerHTML=tmp;if(tmp!=""){if(this.tooltipTag.style.position=="absolute"){
137this.tooltipTag.style.left=(px.x+10)+"px";this.tooltipTag.style.top=(px.y+10)+"px";}this.tooltipTag.style.display="";}else{this.onTooltipHide();}}else{this.onTooltipHide();}}},onTooltipHide:function(_2f){if(this.tooltipTag&&!this.tooltipFixed){this.tooltipTag.style.display="none";}},onDetailStartLoad:function(){this.onDetails();this.detailTag.innerHTML="";this.detailTag.style.backgroundImage="url('"+GeoCMS.Core.baseUrl+"res/images/ajax-loader-grey.gif')";this.detailTag.style.height="64px";},onDetails:function(_30){if(this.detailTag){if(!_30){_30="";}this.detailTag.innerHTML=_30;this.detailTag.style.backgroundImage="";this.detailTag.style.height="";GeoCMS.Utility.execJS(this.detailTag);}},onClick:function(_31){this.markerManager.tooltipFixed=false;var _32=gc.event.getTarget(_31).parentNode;var px=new OpenLayers.Pixel(gc.event.getOffsetX(_31)+parseFloat(_32.style.left),gc.event.getOffsetY(_31)+parseFloat(_32.style.top));var _34=this.markerManager.getFeatures(px.x,px.y);if(_34){
138if(_34.length==1){this.markerManager.onClickDetail(_34[0]);}if(_34.length>1){this.markerManager.onTooltip(_31);this.markerManager.tooltipFixed=true;}}this.markerManager.onTooltip(_31);},onClickDetail:function(_35){this.tooltipFixed=false;this.onTooltipHide();if(_35&&_35.marker){var cat;if(_35.attributes.layer){cat=this.getCategory(_35.attributes.layer);}if(_35.marker.lonlat){this.map.setCenter(_35.marker.lonlat,null,true);this.setHighlight(_35.lonlat.lon,_35.lonlat.lat);}if(_35.attributes.detailUrl){document.location=_35.attributes.detailUrl;}else{if(cat){cat.loadDetails(_35.fid);}}}},clear:function(){if(this.categories&&this.categories.length>0){var cat;while(cat=this.categories.pop()){cat.clear();}}}});if(!gc.map.MarkerManager.instances){gc.map.MarkerManager.instances=[];}
139gc.initClass("gc.map.Menu",false,{map:null,menuTag:null,menuPanelTag:null,sections:null,sectionContent:null,visible:false,visibleSection:null,loadCount:null,search:null,notepad:null,constructor:function(_1){this.map=_1;this.loadCount=0;this.sections=new Object();this.sectionContent=new Object();this.search=new gc.map.Search(this);this.notepad=new gc.map.Notepad(this);},init:function(_2,_3){this.menuTag=document.getElementById(_2);this.menuPanelTag=document.getElementById(_3);},add:function(_4,_5){this.sections[_4]=_5;},startLoad:function(){++this.loadCount;this.menuPanelTag.parentNode.style.backgroundImage="url('"+GeoCMS.Core.baseUrl+"res/images/ajax-loader-grey.gif')";},stopLoad:function(){if(this.loadCount>0){--this.loadCount;}if(this.loadCount==0){this.menuPanelTag.parentNode.style.backgroundImage="";}},switchVisible:function(_6){if(this.visible&&this.visibleSection==_6){this.hide();}else{this.show(_6);}},show:function(_7){
140if(this.menuTag&&this.menuPanelTag&&this.sections[_7]&&this.menuPanelTag.parentNode.style.backgroundImage==""){if(this.visibleSection){if(this[this.visibleSection]&&this[this.visibleSection].onHide){this[this.visibleSection].onHide();}this.sectionContent[this.visibleSection]=this.menuPanelTag.innerHTML;this.visibleSection=null;}this.visible=true;this.menuTag.style.display="";if(this.sectionContent[_7]){this.menuPanelTag.innerHTML=this.sectionContent[_7];this.visibleSection=_7;if(this[this.visibleSection]&&this[this.visibleSection].onShow){this[this.visibleSection].onShow();}}else{this.menuPanelTag.innerHTML="";this.startLoad();GeoCMS.Network.XHR.newRequest(this.sections[_7],this.onContentLoad,this,GeoCMS.Network.Request.RESPONSE_TEXT,true,null,true);}}},hide:function(){if(this.menuTag&&this.menuPanelTag&&this.menuPanelTag.parentNode.style.backgroundImage==""){if(this.visibleSection){if(this[this.visibleSection]&&this[this.visibleSection].onHide){this[this.visibleSection].onHide();}
141this.sectionContent[this.visibleSection]=this.menuPanelTag.innerHTML;this.visibleSection=null;}this.visible=false;this.menuTag.style.display="none";this.menuPanelTag.innerHTML="";this.stopLoad();}},onContentLoad:function(_8,_9){if(this.menuTag&&this.menuPanelTag){this.menuPanelTag.innerHTML=_8;GeoCMS.Utility.execJS(this.menuPanelTag);this.stopLoad();}for(var _a in this.sections){if(this.sections[_a]==_9){this.visibleSection=_a;this.sectionContent[_a]=_8;if(this[this.visibleSection]&&this[this.visibleSection].onShow){this[this.visibleSection].onShow();}break;}}}});
142gc.initClass("gc.map.Notepad",false,{menu:null,parser:null,dataUrl:null,notepad:null,current:null,category:null,constructor:function(_1){this.menu=_1;this.parser=new OpenLayers.Format.GeoJSON();},init:function(_2){this.dataUrl=_2;this.loadNotepad();},onShow:function(){if(this.category){this.category.setVisible(true);}},onHide:function(){if(this.category){this.category.setVisible(false);}},onChangeNotepad:function(_3){this.notepad=_3;this.menu.sectionContent["notepad"]=null;if(this.menu.visibleSection=="notepad"){this.menu.visibleSection=null;this.menu.show("notepad");}this.checkOnNotepad();this.loadNotepad();},onLoadNotepad:function(_4){if(_4){var _5=this.parser.read(_4,"FeatureCollection");if(_5){var _6;this.notepad=new Array();for(var i=0;i<_5.length;++i){this.notepad[this.notepad.length]=_5[i].attributes.notepad_key;_5[i].layer=this.menu.map.markerManager.layer;_5[i].attributes.level=null;_5[i].data.level=null;_6=this.menu.map.markerManager.getCategory(_5[i].attributes.layer);
143if(!_5[i].marker&&_6){icon=_6.icon.clone();icon.imageDiv.style.cursor="pointer";_5[i].lonlat=new OpenLayers.LonLat(_5[i].geometry.x,_5[i].geometry.y);_5[i].marker=new OpenLayers.Marker(_5[i].lonlat,icon);}}if(!this.category){this.category=this.menu.map.markerManager.addCategory(null,"intern___notepad");}this.category.setFeatures(_5);this.category.updateMarkers();}}},loadNotepad:function(){if(this.dataUrl){GeoCMS.Network.XHR.newRequest(this.dataUrl,this.onLoadNotepad,this,GeoCMS.Network.Request.RESPONSE_TEXT,true,null,true);}},checkOnNotepad:function(id){if(id){this.current=id;}if(this.current){if(this.isOnNotepad(this.current)){document.getElementById(this.menu.map.id+"_poi_toolbar_add_notepad").style.display="none";document.getElementById(this.menu.map.id+"_poi_toolbar_remove_notepad").style.display="";}else{document.getElementById(this.menu.map.id+"_poi_toolbar_add_notepad").style.display="";
144document.getElementById(this.menu.map.id+"_poi_toolbar_remove_notepad").style.display="none";}}},isOnNotepad:function(id){if(this.notepad){for(var i=0;i<this.notepad.length;++i){if(this.notepad[i]==id){return true;}}}return false;}});
145gc.initClass("gc.map.Popup",false,{DEFAULT_MAX_SIZE:400,map:null,popups:null,constructor:function(_1){this.map=_1;this.popups=new Array();},showPopup:function(id,x,y,_5,_6,_7,_8){var _9=this.createPopup("",id,x,y,_5,_6,_7,_8);this.popups.push(_9);this.map.map.addPopup(_9);return _9;},showAnchoredPopup:function(id,x,y,_d,_e,_f,_10){var _11=this.createPopup("Anchored",id,x,y,_d,_e,_f,_10);this.popups.push(_11);this.map.map.addPopup(_11);return _11;},showPopupCloud:function(id,x,y,_15,_16,_17,_18){var _19=this.createPopup("Cloud",id,x,y,_15,_16,_17,_18);this.popups.push(_19);this.map.map.addPopup(_19);return _19;},closePopup:function(_1a){if(typeof _1a!="undefined"){var i=0;for(i=0;i<this.popups.length;++i){if(this.popups[i]===_1a){break;}}this.map.map.removePopup(_1a);this.popups.splice(i,1);}},closeAllPopups:function(){for(var i=0;i<this.popups.length;i++){this.map.map.removePopup(this.popups[i]);this.popups[i]=null;}this.popups=new Array();
146},createPopup:function(_1d,id,x,y,_21,_22,_23,_24){var _25=null;var _26=null;var _27=null;var _28=null;var _29=null;var _2a=new OpenLayers.LonLat(x,y);if(typeof _23!="object"){_23={};}if(typeof _22!="boolean"){_22=true;}if(typeof _24=="undefined"){_24=null;}if(typeof _23.size=="object"&&typeof _23.size.w!="undefined"&&typeof _23.size.h!="undefined"&&_23.size.w>0&&_23.size.h>0){_26=new OpenLayers.Size(_23.size.w,_23.size.h);}if(typeof _23.minSize=="object"&&typeof _23.minSize.w!="undefined"&&typeof _23.minSize.h!="undefined"&&_23.minSize.w>0&&_23.minSize.h>0){_28=new OpenLayers.Size(_23.minSize.w,_23.minSize.h);}if(typeof _23.maxSize=="object"&&typeof _23.maxSize.w!="undefined"&&typeof _23.maxSize.h!="undefined"&&_23.maxSize.w>0&&_23.maxSize.h>0){_27=new OpenLayers.Size(_23.maxSize.w,_23.maxSize.h);}else{var _2b=this.map.map.getSize();var _2c=Math.min(Math.floor(_2b.w/2),this.DEFAULT_MAX_SIZE);var _2d=Math.min(Math.floor(_2b.h/2),this.DEFAULT_MAX_SIZE);if(_28!=null){if(_2c<_28.w){
147_2c=_28.w;}if(_2d<_28.h){_2d=_28.h;}}_27=new OpenLayers.Size(Math.max(30,_2c),Math.max(30,_2d));}if(typeof _23.offset=="object"&&typeof _23.offset.x!="undefined"&&typeof _23.offset.y!="undefined"){switch(_1d){case "Anchored":case "Cloud":_29={size:new OpenLayers.Size(0,0),offset:new OpenLayers.Pixel(_23.offset.x,_23.offset.y)};break;default:var tmp=this.map.map.getPixelFromLonLat(_2a);tmp.x+=_23.offset.x;tmp.y+=_23.offset.y;_2a=this.map.map.getLonLatFromPixel(tmp);}}switch(_1d){case "Anchored":_25=new OpenLayers.Popup.Anchored(id,_2a,_26,_21,_29,_22,_24);break;case "Cloud":_25=new OpenLayers.Popup.FramedCloud(id,_2a,_26,_21,_29,_22,_24);break;default:_25=new OpenLayers.Popup(id,_2a,_26,_21,_22,_24);}if(_26==null){_25.autoSize=true;}if(_27!=null){_25.maxSize=_27;}if(_28!=null){_25.minSize=_28;}_25.panMapIfOutOfView=true;return _25;}});
148gc.initClass("gc.map.Search",false,{menu:null,formName:null,searchUrl:null,parser:null,resultTagAddress:null,resultTag:null,resultPage:0,searchText:null,searchResult:null,searchCategory:null,constructor:function(_1){this.menu=_1;},init:function(_2,_3){this.formName=_2;this.searchUrl=_3;this.parser=new OpenLayers.Format.GeoJSON();},execSearch:function(_4){this.resultTagAddress=document.getElementById(this.formName+"_result_address");this.resultTag=document.getElementById(this.formName+"_result");for(var i=0;i<_4.elements.length;++i){if(_4.elements[i].name==this.formName){this.resultPage=0;this.searchText=_4.elements[i].value;this.execSearchPOI();this.execSearchAddress();break;}}},execSearchPOI:function(){if(this.resultTag){this.resultTag.innerHTML="";gc.map.Util.setVisibleSection(this.resultTag.id,true);this.resultTag.parentNode.style.display="none";}if(this.searchCategory){this.searchCategory.setVisible(false);}
149GeoCMS.Network.XHR.newRequest(this.searchUrl+encodeURIComponent(this.searchText)+"&resultpage="+this.resultPage,this.onSearchResult,this,GeoCMS.Network.Request.RESPONSE_TEXT,true,null,true);this.menu.startLoad();},execSearchAddress:function(){if(this.resultTagAddress){this.resultTagAddress.innerHTML="";gc.map.Util.setVisibleSection(this.resultTagAddress.id,true);this.resultTagAddress.parentNode.style.display="none";}var _6=this;
149if(this.menu.map.geocode(this.searchText,function(_7){_6.onSearchResultAddress(_7);},true)){this.menu.startLoad();}},showResult:function(_8){if(this.searchResult&&_8>=0&&_8<this.searchResult.length){var _9=this.menu.map.markerManager.getCategory(this.searchResult[_8].attributes.layer);if(_9){if(this.searchResult[_8].geometry){this.menu.map.setCenter(this.searchResult[_8].geometry.x,this.searchResult[_8].geometry.y);this.menu.map.markerManager.setHighlight(this.searchResult[_8].geometry.x,this.searchResult[_8].geometry.y);}
150_9.loadDetails(this.searchResult[_8].fid);}}},onSearchResultAddress:function(_a){this.menu.stopLoad();if(this.resultTagAddress&&_a&&_a.Placemark){var _b="";var _c=this.menu.map.map.maxExtent;for(var i=0;i<_a.Placemark.length;++i){if(_c.left<=_a.Placemark[i].x&&_c.right>=_a.Placemark[i].x&&_c.bottom<=_a.Placemark[i].y&&_c.top>=_a.Placemark[i].y){_b+="<div class=\"gc_map_searchresult_address\""+" onclick=\"gc.Map.instances['"+this.menu.map.name+"'].setCenter("+_a.Placemark[i].x+","+_a.Placemark[i].y+");\">"+_a.Placemark[i].address.replace(", Germany","")+"</div>";}}if(_b!=""){this.resultTagAddress.innerHTML=_b;this.resultTagAddress.parentNode.style.display="";}else{this.resultTagAddress.innerHTML="";this.resultTagAddress.parentNode.style.display="none";}}},onSearchResult:function(_e){this.menu.stopLoad();if(this.resultTag&&_e){this.searchResult=this.parser.read(_e,"FeatureCollection");var _f="";for(var i=0;i<this.searchResult.length;++i){_f+=this.searchResult[i].attributes.html;}
151if(_f!=""){this.resultTag.innerHTML=_f;this.resultTag.parentNode.style.display="";}else{this.resultTag.innerHTML="";this.resultTag.parentNode.style.display="none";}var _11,_12,_13,_14;var cat;if(!this.searchCategory){this.searchCategory=this.menu.map.markerManager.addCategory(null,"intern___searchresult");}for(var i=0;i<this.searchResult.length;++i){if(i==0||this.searchResult[i].geometry.x<_11){_11=this.searchResult[i].geometry.x;}if(i==0||this.searchResult[i].geometry.y<_12){_12=this.searchResult[i].geometry.y;}if(i==0||this.searchResult[i].geometry.x>_13){_13=this.searchResult[i].geometry.x;}if(i==0||this.searchResult[i].geometry.y>_14){_14=this.searchResult[i].geometry.y;}this.searchResult[i].layer=this.menu.map.markerManager.layer;this.searchResult[i].attributes.level=null;this.searchResult[i].data.level=null;cat=this.menu.map.markerManager.getCategory(this.searchResult[i].attributes.layer);if(!this.searchResult[i].marker&&cat){icon=cat.icon.clone();
152icon.imageDiv.style.cursor="pointer";this.searchResult[i].lonlat=new OpenLayers.LonLat(this.searchResult[i].geometry.x,this.searchResult[i].geometry.y);this.searchResult[i].marker=new OpenLayers.Marker(this.searchResult[i].lonlat,icon);}}if(this.searchResult.length>1){this.menu.map.map.zoomToExtent(new OpenLayers.Bounds(_11,_12,_13,_14));}else{if(this.searchResult.length==1){this.menu.map.setCenter(this.searchResult[0].geometry.x,this.searchResult[0].geometry.y);}}this.searchCategory.setFeatures(this.searchResult);this.searchCategory.setVisible(true);}}});
153gc.initClass("gc.map.TrackingLayer",false,{index:null,map:null,layer:null,clusterStrategy:null,hoverCtrl:null,onHoverHandler:null,onHoverOutHandler:null,clickFeatureCtrl:null,onClickHandler:null,onClickDblHandler:null,blinkSpeed:200,constructor:function(_1,_2,_3,_4){this.index=gc.map.TrackingLayer.instances.length;gc.map.TrackingLayer.instances[this.index]=this;this.map=_1;var _5=_1.getLayer(_2);if(_5!=null){this.layer=_5;}else{if(typeof _4==="undefined"){_4={isBaseLayer:false,displayInLayerSwitcher:false};}else{if(typeof _4["isBaseLayer"]==="undefined"){_4.isBaseLayer=false;}if(typeof _4["displayInLayerSwitcher"]==="undefined"){_4.displayInLayerSwitcher=false;}}if(_4.cluster!=="undefined"){if(_4.cluster){this.clusterStrategy=new OpenLayers.Strategy.Cluster({distance:20});_4.strategies=[this.clusterStrategy];}delete _4.cluster;}this.layer=new OpenLayers.Layer.Vector(_2?_2:"Tracking Layer",_4);this.map.map.addLayer(this.layer);}this.onHoverHandler=new Array();
154this.onHoverOutHandler=new Array();this.onClickHandler=new Array();this.onClickDblHandler=new Array();if(_3){this.layer.style=_3;}},addFeature:function(_6,_7,_8){try{if(_6){if(_8){_6.style=_8;}if(!this.clusterStrategy){this.layer.addFeatures([_6]);}else{var _9=this.layer.features;this.layer.removeFeatures(_9);_9.push(_6);this.layer.addFeatures(_9);}if(_7){var _a=_6.geometry.getBounds();this.map.zoomToExtent(_a.left,_a.bottom,_a.right,_a.top);}}}catch(e){GeoCMS.Console.error(e);}},addFeatures:function(_b,_c,_d){try{if(_b){var _e=null;if(_d||_c){for(var i=0,ii=_b.length;i<ii;i++){if(_d){_b[i].style=_d;}
154if(_c){if(!_e){_e=_b[i].geometry.getBounds();}else{_e.extend(_b[i].geometry.getBounds());}}}}if(!this.clusterStrategy){this.layer.addFeatures(_b);}else{var _11=this.layer.features;this.layer.removeFeatures(_b);this.layer.addFeatures(_11.concat(_b));}if(_e){this.map.zoomToExtent(_e.left,_e.bottom,_e.right,_e.top);}}}catch(e){GeoCMS.Console.error(e);}},addFeatureByWKT:function(wkt,_13,_14){
155var _15=null;try{var _16=new OpenLayers.Format.WKT();_15=_16.read(wkt);if(typeof _15==="object"&&_15 instanceof Array){this.addFeatures(_15,_13,_14);}else{this.addFeature(_15,_13,_14);}}catch(e){GeoCMS.Console.error(e);}return _15;},clear:function(){this.layer.destroyFeatures();},redraw:function(){this.layer.redraw();},zoomToData:function(){if(this.layer.features.length>0){var _17=this.layer.getDataExtent();this.map.zoomToExtent(_17.left,_17.bottom,_17.right,_17.top);}},getFeatureCount:function(){if(this.layer.features){return this.layer.features.length;}return 0;},setBlinkSpeed:function(_18){this.blinkSpeed=Math.round(_18);},addOnHoverFeature:function(_19,_1a){this.__internalCreateHoverCtrl();var i=this.onHoverHandler.length;this.onHoverHandler[i]={obj:_1a,func:_19};},removeOnHoverFeature:function(_1c,_1d){for(var i=0;i<this.onHoverHandler.length;i++){if(this.onHoverHandler[i].func==_1c&&this.onHoverHandler[i].obj==_1d){this.onHoverHandler.splice(i,1);i--;}}
156},doOnHoverFeature:function(_1f){for(var i=0;i<this.onHoverHandler.length;i++){try{if(this.onHoverHandler[i]){this.onHoverHandler[i].func.call(this.onHoverHandler[i].obj,_1f.feature,typeof this.hoverCtrl.handlers.feature.evt!="undefined"?this.hoverCtrl.handlers.feature.evt:null);}}catch(exc){GeoCMS.Console.error(exc);}}},addOnHoverOutFeature:function(_21,_22){this.__internalCreateHoverCtrl();var i=this.onHoverOutHandler.length;this.onHoverOutHandler[i]={obj:_22,func:_21};},removeOnHoverOutFeature:function(_24,_25){for(var i=0;i<this.onHoverOutHandler.length;i++){if(this.onHoverOutHandler[i].func==_24&&this.onHoverOutHandler[i].obj==_25){this.onHoverOutHandler.splice(i,1);i--;}}},doOnHoverOutFeature:function(_27){for(var i=0;i<this.onHoverOutHandler.length;i++){try{if(this.onHoverOutHandler[i]){this.onHoverOutHandler[i].func.call(this.onHoverOutHandler[i].obj,_27.feature);}}catch(exc){GeoCMS.Console.error(exc);}}},addOnClickFeature:function(_29,_2a){
157this.__internalCreateClickFeatureCtrl();var i=this.onClickHandler.length;this.onClickHandler[i]={obj:_2a,func:_29};},removeOnClickFeature:function(_2c,_2d){for(var i=0;i<this.onClickHandler.length;i++){if(this.onClickHandler[i].func==_2c&&this.onClickHandler[i].obj==_2d){this.onClickHandler.splice(i,1);i--;}}},doOnClickFeature:function(_2f,x,y){var _32=this.map.map.getLonLatFromViewPortPx(new OpenLayers.Pixel(x,y));for(var i=0;i<this.onClickHandler.length;i++){try{if(this.onClickHandler[i]){this.onClickHandler[i].func.call(this.onClickHandler[i].obj,_2f,_32.lon,_32.lat);}}catch(exc){GeoCMS.Console.error(exc);}}},addOnDblClickFeature:function(_34,_35){this.__internalCreateClickFeatureCtrl();var i=this.onClickDblHandler.length;this.onClickDblHandler[i]={obj:_35,func:_34};},removeOnDblClickFeature:function(_37,_38){for(var i=0;i<this.onClickDblHandler.length;i++){if(this.onClickDblHandler[i].func==_37&&this.onClickDblHandler[i].obj==_38){this.onClickDblHandler.splice(i,1);i--;}}
158},doOnDblClickFeature:function(_3a,x,y){var _3d=this.map.map.getLonLatFromViewPortPx(new OpenLayers.Pixel(x,y));for(var i=0;i<this.onClickDblHandler.length;i++){try{if(this.onClickDblHandler[i]){this.onClickDblHandler[i].func.call(this.onClickDblHandler[i].obj,_3a,_3d.lon,_3d.lat);}}catch(exc){GeoCMS.Console.error(exc);}}},blinkLayer:function(_3f,_40){this.blinkLayerByStyle({fillOpacity:0,strokeOpacity:0},_3f,_40);},blinkFeature:function(_41,_42,_43){this.blinkFeatureByStyle(_41,{fillOpacity:0,strokeOpacity:0},_42,_43);},blinkLayerByStyle:function(_44,_45,_46){if(typeof _46=="undefined"){_46=this.blinkSpeed;}for(var i=0;i<this.layer.features.length;i++){this.layer.features[i]._gcSwitchedStyle=_44;}var cmd="gc.map.TrackingLayer.instances["+this.index+"].switchLayerBlinkStyle()";for(var i=0;i<2*_45;i++){setTimeout(cmd,i*_46);}},blinkFeatureByStyle:function(_49,_4a,_4b,_4c){if(_49>=0&&_49<this.layer.features.length){if(typeof _4c=="undefined"){_4c=this.blinkSpeed;}
159this.layer.features[_49]._gcSwitchedStyle=_4a;var cmd="gc.map.TrackingLayer.instances["+this.index+"]."+"switchFeatureBlinkStyle("+_49+")";for(var i=0;i<2*_4b;i++){setTimeout(cmd,i*_4c);}}},switchFeatureBlinkStyle:function(_4f){if(_4f>=0&&_4f<this.layer.features.length&&typeof this.layer.features[_4f]._gcSwitchedStyle!="undefined"){var _50=this.layer.features[_4f].style;this.layer.features[_4f].style=this.layer.features[_4f]._gcSwitchedStyle;this.layer.features[_4f]._gcSwitchedStyle=_50;this.layer.drawFeature(this.layer.features[_4f]);}},switchLayerBlinkStyle:function(){for(var i=0;i<this.layer.features.length;i++){var _52=this.layer.features[i].style;this.layer.features[i].style=this.layer.features[i]._gcSwitchedStyle;this.layer.features[i]._gcSwitchedStyle=_52;}this.layer.redraw();},enableDragOnHover:function(_53){if(this.hoverCtrl!=null){if(typeof (this.hoverCtrl.handlers)!="undefined"){this.hoverCtrl.handlers.feature.stopDown=!_53;this.hoverCtrl.handlers.feature.stopClick=!_53;}}
160},__internalCreateHoverCtrl:function(){if(this.hoverCtrl==null){try{var _54=this;
160this.hoverCtrl=new OpenLayers.Control.SelectFeature(this.layer,{hover:true,highlightOnly:true,eventListeners:{featurehighlighted:function(_55){_54.doOnHoverFeature(_55);},featureunhighlighted:function(_56){_54.doOnHoverOutFeature(_56);}}});this.enableDragOnHover(true);this.map.map.addControl(this.hoverCtrl);this.hoverCtrl.activate();}catch(e){GeoCMS.Console.error(e);}}},__internalCreateClickFeatureCtrl:function(){if(this.clickFeatureCtrl==null){try{var _57=OpenLayers.Class(OpenLayers.Control,{initialize:function(_58,_59){OpenLayers.Control.prototype.initialize.apply(this,[_59]);this.handler=new OpenLayers.Handler.Feature(this,_58,{click:this.click,dblclick:this.dblclick});}});var _5a=this;var _5b={click:function(_5c){_5a.doOnClickFeature(_5c,this.handler.down.x,this.handler.down.y);},dblclick:function(_5d){_5a.doOnDblClickFeature(_5d,this.handler.down.x,this.handler.down.y);}};
161this.clickFeatureCtrl=new _57(this.layer,_5b);this.map.map.addControl(this.clickFeatureCtrl);this.clickFeatureCtrl.activate();}catch(e){GeoCMS.Console.error(e);}}}});if(!gc.map.TrackingLayer.instances){gc.map.TrackingLayer.instances=[];}
162gc.initClass("gc.map.Util",true,{ADV_WMTS_RESOLUTIONS:[4891.96981025128,2445.98490512564,1222.99245256282,611.49622628141,305.748113140705,152.874056570353,76.4370282851763,38.2185141425881,19.1092570712941,9.55462853564703,4.77731426782352,2.38865713391176,1.19432856695588,0.59716428347794,0.29858214173897],getWMTSADVResolutions:function(_1){return gc.map.Util.ADV_WMTS_RESOLUTIONS.slice(0,_1);},setVisibleMenuCategory:function(_2,_3,_4){gc.map.Util.setVisibleSection(_3,_4);gc.Map.instances[_2].markerManager.setCategoryVisible(_3,_4,true);},setVisibleSection:function(_5,_6){if(_6){document.getElementById("mapcat_"+_5).style.display="none";document.getElementById("mapcat_"+_5+"_act").style.display="";}else{document.getElementById("mapcat_"+_5).style.display="";document.getElementById("mapcat_"+_5+"_act").style.display="none";}},saveToForm:function(_7,_8){var _9=gc.Map.instances[_7];if(_9){GeoCMS.Utility.setFormValue(_8,"zoomlevel",_9.getZoom());
163GeoCMS.Utility.setFormValue(_8,"center_x",Math.round(_9.getCenterX()*10)/10);GeoCMS.Utility.setFormValue(_8,"center_y",Math.round(_9.getCenterY()*10)/10);GeoCMS.Utility.setFormValue(_8,"config::ZOOMLEVEL",_9.getZoom());GeoCMS.Utility.setFormValue(_8,"config::CENTER_X",Math.round(_9.getCenterX()*10)/10);GeoCMS.Utility.setFormValue(_8,"config::CENTER_Y",Math.round(_9.getCenterY()*10)/10);GeoCMS.Utility.setFormValue(_8,"config::map::config::ZOOMLEVEL",_9.getZoom());GeoCMS.Utility.setFormValue(_8,"config::map::config::CENTER_X",Math.round(_9.getCenterX()*10)/10);GeoCMS.Utility.setFormValue(_8,"config::map::config::CENTER_Y",Math.round(_9.getCenterY()*10)/10);}},changeNotepad:function(_a,_b){var _c=gc.Map.instances[_a];GeoCMS.Network.XHR.newRequest(_b,_c.menu.notepad.onChangeNotepad,_c.menu.notepad,GeoCMS.Network.Request.RESPONSE_JSON,true,null,true);}});
164gc.initClass("gc.proj.lonlat",true,{maxx:180,maxy:90,srs:"EPSG:4326"});
165gc.initClass("gc.proj.mercator",true,{maxx:20037508.34,maxy:20037508.34,srs:"EPSG:900913",toX:function(_1){if(typeof _1=="string"){_1=parseFloat(_1);}return _1*this.maxx/180;},toY:function(_2){if(typeof _2=="string"){_2=parseFloat(_2);}return Math.log(Math.tan((90+_2)*Math.PI/360))/Math.PI*this.maxy;},toLon:function(x){if(typeof x=="string"){x=parseFloat(x);}return x*180/this.maxx;},toLat:function(y){if(typeof y=="string"){y=parseFloat(y);}return Math.atan(Math.exp(y*Math.PI/this.maxy))*360/Math.PI-90;}});
166gc.initClass("gc.tree.Tree",false,{event:null,name:null,url:null,opened:null,selectedNodeName:null,selectedParams:null,selectedItem:null,selectedItemToolbar:null,classNodeOpen:"gctree_node_open",classNodeClose:"gctree_node_close",classItem:"gctree_node_title",classSelectedItem:"gctree_node_title_selected",constructor:function(_1,_2){this.event=new gc.event.Custom(this);if(_1){this.name=_1;gc.tree.Tree.instances[this.name]=this;}this.url=_2;this.opened={};},reload:function(){var _3=document.getElementById("gctree_"+this.name+"_root");if(_3){_3.innerHTML="";_3.style.height="20px";_3.style.backgroundImage="url(\""+GeoCMS.Core.baseUrl+"res/images/ajax-loader-small.gif\")";_3.gcTree=this;GeoCMS.Network.XHR.newRequest(this.url,this.loadContent,_3,GeoCMS.Network.Request.RESPONSE_TEXT,true);}},onClick:function(_4,_5,_6,_7){var _8=document.getElementById("gctree_"+this.name+"_"+_4+"_sub");var _9=document.getElementById("gctree_"+this.name+"_"+_4+"_node");if(_8&&_9){
167if(_8.style.display==""&&!_6&&!_7){this.opened[_4]=false;_8.style.display="none";_9.className=this.classNodeClose;}else{this.opened[_4]=true;_9.className=this.classNodeOpen;_8.style.display="";if((_6||_8.innerHTML=="")&&this.url&&this.url!=""){_8.innerHTML="";_8.style.height="20px";_8.style.backgroundImage="url(\""+GeoCMS.Core.baseUrl+"res/images/ajax-loader-small.gif\")";_8.gcTree=this;
167GeoCMS.Network.XHR.newRequest(this.url+GeoCMS.Utility.urlParams(_5),this.loadContent,_8,GeoCMS.Network.Request.RESPONSE_TEXT,true);}}}},onSelect:function(_a,_b){var _c=document.getElementById("gctree_"+this.name+"_"+_a+"_title");var _d=document.getElementById("gctree_"+this.name+"_"+_a+"_toolbar");if(_c){if(this.selectedItem){this.selectedItem.className=this.classItem;}if(this.selectedItemToolbar){this.selectedItemToolbar.style.display="none";}_c.className=this.classSelectedItem;this.selectedNodeName=_a;this.selectedParams=_b;this.selectedItem=_c;if(_d){_d.style.display="";}this.selectedItemToolbar=_d;
168this.event.trigger("onselect",{nodeName:_a,params:_b,selectedItem:this.selectedItem,selectedItemToolbar:this.selectedItemToolbar});}if(_b){this.onClick(_a,_b,false,true);}},loadContent:function(_e){if(GeoCMS.Core.isIE7()){this.style.height="100%";}else{this.style.height="";}this.style.backgroundImage="";if(_e){this.innerHTML=_e;}if(this.gcTree){with(this.gcTree){selectedItem=document.getElementById("gctree_"+name+"_"+selectedNodeName+"_title");if(selectedNodeName&&selectedItem&&selectedItem.className!=classSelectedItem){selectedItemToolbar=null;onSelect(selectedNodeName,selectedParams);}}}}});gc.tree.Tree.instances={};
169window["GCTreeManager"]=function(_1,_2){this.treeSelector=_1;this.contentSelector=_2;this.refreshUrl="";this.contentUrl="";this.editUrl="";this.rightsUrl="";this.searchTimeout=false;this.cmNames=["create","rename","remove","ccp","gc_preview","gc_edit","gc_create","gc_rename","gc_rights","gc_cut","gc_copy","gc_paste","gc_remove"];this.cmHeadline="Datensatz";this.cmPasteEnable=false;this.cmOptions={};this.getTreeInst=function(){return jQuery(this.treeSelector);};this.getContentInst=function(){return jQuery(this.contentSelector);};this.setRefreshUrl=function(_3){this.refreshUrl=_3;return this;};this.setContentUrl=function(_4){this.contentUrl=_4;return this;};this.setEditUrl=function(_5){this.editUrl=_5;return this;};this.setRightsUrl=function(_6){this.rightsUrl=_6;return this;};this.getEditUrl=function(_7){return this.getFormUrl(_7,this.editUrl);};this.getRightsUrl=function(_8){return this.getFormUrl(_8,this.rightsUrl);};this.getFormUrl=function(_9,_a){try{var _b=new URL(_a);var _c=null;
170if(typeof _9==="object"&&!Array.isArray(_9)){_c=new URLSearchParams(_9);}else{_c=new URLSearchParams();}_b.search=_c.toString();return _b.toString();}catch(e){console.error("ajaxGet/URL:",e);return "";}};this.loadContent=function(_d){var _e=this.getContentInst();var _f="";_e.addClass("container_ajaxrequest_loading");if(typeof _d==="object"){_f=this.contentUrl+"&cat="+_d.data.nodeid.replace("_",",");}else{if(typeof _d==="string"){var _10=_d.split("?");_f=this.contentUrl+_10[1];}else{_e.attr("style","");return false;}}_e.load(_f,"",function(){_e.removeClass("container_ajaxrequest_loading");});};this.refreshTree=function(_11){var _12=this.getTreeInst();var _13=_12.parent();_12.remove();jQuery.ajax({async:false,type:"GET",url:this.refreshUrl+"&init_node="+_11}).done(function(_14){_13.html(_14);initTree(_11);});};this.searchInTree=function(id){var str=jQuery(id).val();var _17=jQuery(id+"_shrink");var _18=false;var _19=this.getTreeInst();if(_17.prop("checked")){_18=true;}
171if(this.searchTimeout){clearTimeout(this.searchTimeout);}this.searchTimeout=setTimeout(function(){_19.jstree(true).search(str,false,_18);},250);};this.openNodes=function(_1a){if(_1a){this.getTreeInst().jstree(true).open_all();}else{this.getTreeInst().jstree(true).close_all();}return false;};this.createContentMenu=function(_1b){var _1c=this.cmHeadline;var _1d=this;var _1e=_1b.data.perms;if(typeof _1e!=="undefined"){_1e=_1e.split("|");}else{_1e=[];}if(_1d.cmPasteEnable){_1e[_1e.length]="paste_enable";}var _1f={"gc_preview":{"separator_after":true,"label":"Anzeigen","action":function(_20){var _21=jQuery.jstree.reference(_20.reference),obj=_21.get_node(_20.reference);window.open(obj.data.url,"preview");},"icon":"res/iconset/page_white_preview.png"},"gc_edit":{"label":"Bearbeiten","action":function(_23){var _24=jQuery.jstree.reference(_23.reference),obj=_24.get_node(_23.reference);var id=obj.data.nodeid.replace("node_","").replace("_",",");var _27=_1d.getEditUrl({node:id});
172gc.widget.admin2.startLoad(_1c+" bearbeiten",_27,"90%",650);jQuery(".jstree-geocms-contextmenu").hide();return false;},"icon":"res/iconset/pencil.png"},"gc_create":{"label":"Hinzuf&uuml;gen","action":function(_28){var _29=jQuery.jstree.reference(_28.reference),obj=_29.get_node(_28.reference);obj=_29.create_node(obj,{"type":"folder"});if(obj){_29.edit(obj);}},"icon":"res/iconset/add.png"},"gc_rename":{"separator_after":true,"label":"Umbenennen","action":function(_2b){var _2c=jQuery.jstree.reference(_2b.reference),obj=_2c.get_node(_2b.reference);_2c.edit(obj);},"icon":"res/iconset/rename.png"},"gc_rights":{"separator_before":false,"separator_after":false,"label":"Rechte setzen","action":function(_2e){var _2f=jQuery.jstree.reference(_2e.reference),obj=_2f.get_node(_2e.reference);var id=obj.data.nodeid.replace("node_","").replace("_",",");var _32=_1d.getRightsUrl({cat:id});gc.widget.admin2.startLoad("Rechte setzen",_32,"90%",650);
173},"icon":"res/iconset/key.png"},"gc_cut":{"separator_before":true,"label":"Ausschneiden","action":function(_33){var _34=jQuery.jstree.reference(_33.reference),obj=_34.get_node(_33.reference);_34.cut(obj);_1d.cmPasteEnable=true;},"icon":"res/iconset/cut.png"},"gc_copy":{"label":"Kopieren","action":function(_36){var _37=jQuery.jstree.reference(_36.reference),obj=_37.get_node(_36.reference);_37.copy(obj);_1d.cmPasteEnable=true;},"icon":"res/iconset/page_copy.png"},"gc_paste":{"label":"Einf&uuml;gen","action":function(_39){var _3a=jQuery.jstree.reference(_39.reference),obj=_3a.get_node(_39.reference);_3a.paste(obj);_1d.cmPasteEnable=false;},"icon":"res/iconset/page_paste.png"},"gc_remove":{"separator_before":true,"label":"Entfernen","action":function(_3c){var _3d=confirm(_1c+" wirklich l\xc3\xb6schen?");if(_3d){var _3e=jQuery.jstree.reference(_3c.reference),obj=_3e.get_node(_3c.reference);_3e.delete_node(obj);}},"icon":"res/iconset/delete.png"}};for(i=0;i<this.cmNames.length;i++){
174if(typeof this.cmOptions[this.cmNames[i]]==="undefined"){_1f[this.cmNames[i]]=false;}else{if(typeof this.cmOptions[this.cmNames[i]]==="object"){for(var _40 in this.cmOptions[this.cmNames[i]]){if(_40==="rights"){_1f[this.cmNames[i]]["_disabled"]=this.isAvailable(this.cmOptions[this.cmNames[i]][_40],_1e);}else{_1f[this.cmNames[i]][_40]=this.cmOptions[this.cmNames[i]][_40];}}}}}return _1f;};this.isAvailable=function(_41,_42){var i=0;var _44=_41.split("|");for(i=0;i<_44.length;i++){if(jQuery.inArray(_44[i],_42)<0){return true;}}return false;};};
175gc.initClass("gc.tree.Util",true,{reload:function(_1){if(gc.tree.Tree.instances[_1]){gc.tree.Tree.instances[_1].reload();}},onClick:function(_2,_3,_4,_5){if(gc.tree.Tree.instances[_2]){gc.tree.Tree.instances[_2].onClick(_3,_4,_5);}},onSelect:function(_6,_7,_8){if(gc.tree.Tree.instances[_6]){gc.tree.Tree.instances[_6].onSelect(_7,_8);}}});
176gc.initClass("gc.widget.ColorPicker",true,{node:null,div:null,timeout:null,colors:[["#ffffff","#d3d3d3","#c0c0c0","#808080","#696969","#4f4f4f","#000000"],["#fff5ee","#ffc0cb","#f08080","#ff0000","#dc143c","#b22222","#8b0000"],["#fff8dc","#ffe4c4","#f4a460","#ff4500","#d2691e","#8b4513","#800000"],["#fffacd","#ffe4b5","#ffa500","#ff8c00","#ff7f50","#a0
176522d","#a52a2a"],["#ffffe0","#f0e68c","#eee8aa","#ffff00","#ffd700","#808000","#556b2f"],["#98fb98","#90ee90","#7fff00","#32cd32","#228b22","#008000","#006400"],["#afeeee","#20b2aa","#48d1cc","#8fbc8f","#2e8b57","#008b8b","#191970"],["#e0ffff","#87cefa","#87ceeb","#4169e1","#0000ff","#0000cd","#000080"],["#e6e6fa","#6495ed","#7b68ee","#6a5acd","#8a2be2","#483d8b","#4b0082"],["#dda0dd","#ee82ee","#da70d6","#ba55d3","#9932cc","#8b008b","#800080"]],init:function(){if(!this.div){this.div=document.createElement("div");this.div.className="xc_popup";with(this.div.style){display="none";position="absolute";top="-1000px";left="-1000px";
177width="220px";height="100px";zIndex="10000";}GeoCMS.Core.getDocumentBody().appendChild(this.div);this.div.onclick=function(){gc.widget.ColorPicker.onClick();};var _1="";this.div.style.width=(this.colors.length*18+4)+"px";for(var i in this.colors){_1+="<div onClick=\"gc.widget.ColorPicker.onClick();\">";this.div.style.height=(this.colors[i].length*18+4)+"px";for(var j in this.colors[i]){_1+="<div class=\"xc_color_picker\" style=\"position: absolute; "+"background-color: "+this.colors[i][j]+"; "+"left: "+(i*18+4)+"px; "+"top: "+(j*18+4)+"px;\" "+"onClick=\"gc.widget.ColorPicker.onClick('"+this.colors[i][j]+"');\""+"></div>";}_1+="</div>";}this.div.innerHTML=_1;}},show:function(_4,_5){if(this.timeout){window.clearTimeout(this.timeout);this.timeout=null;}this.init();this.node=_5;this.div.style.display="";this.div.style.left=""+GeoCMS.Utility.getAbsoluteX(_5)+"px";this.div.style.top=""+(GeoCMS.Utility.getAbsoluteY(_5)+_5.offsetHeight+1)+"px";},hide:function(_6,_7){
178this.timeout=window.setTimeout(this.hide2,200);},hide2:function(){with(gc.widget.ColorPicker){if(timeout){div.style.display="none";node=null;timeout=null;}}},onClick:function(_8){if(this.timeout){window.clearTimeout(this.timeout);this.timeout=null;}if(this.node){this.node.focus();if(_8){this.node.style.backgroundColor=_8;this.node.onchange();}}}});
179gc.initClass("gc.widget.Div",false,{id:null,node:null,url:null,effect:null,constructor:function(id){this.id=id;gc.widget.Div.instances[id]=this;},reload:function(_2,_3){if(!this.node){this.node=document.getElementById(this.id);}if(this.node){this.url=_2;this.node.classList.add("container-in-progress");this.node.classList.add("container_ajaxrequest_loading");gc.fxWrapper.opacity(this.node,0.2,1,0.5);GeoCMS.Network.XHR.newRequest(_2,this.onReload,this,GeoCMS.Network.Request.RESPONSE_TEXT,true,_3);}},addOnClick:function(_4){for(var i=0;i<_4.childNodes.length;++i){if(_4.childNodes[i].nodeName=="A"){var _6=_4.childNodes[i].getAttribute("data-disable-ajax");if(_6==null||_6==0){gc.event.addEventListener(_4.childNodes[i],"click",this.onClick,this);var _7=_4.childNodes[i].getAttribute("href").split("?",2);if(_7.length>1){_4.childNodes[i].queryString=_7[1];}}}this.addOnClick(_4.childNodes[i]);}},addOnChange:function(_8){for(var i=0;i<_8.childNodes.length;++i){
180if(_8.childNodes[i].nodeName==="SELECT"){var _a=_8.childNodes[i].getAttribute("data-disable-ajax");var _b=_8.childNodes[i].getAttribute("data-link-ajax");if((_a==null||_a===0)&&_b){gc.event.addEventListener(_8.childNodes[i],"change",this.onChange,this);}}this.addOnChange(_8.childNodes[i]);}},onReload:function(_c){if(this.node){this.node.classList.remove("container-in-progress");this.node.classList.remove("container_ajaxrequest_loading");if(window["jQuery"]&&window["jQuery"](".btp_popover_tooltip")){window["jQuery"](".btp_popover_tooltip").tooltip("dispose");}this.node.innerHTML="_"+_c;this.node.removeChild(this.node.firstChild);gc.fxWrapper.opacity(this.node,0.2,0.5,1);this.addOnClick(this.node);this.addOnChange(this.node);GeoCMS.Utility.execJS(this.node);}},onClick:function(_d){var _e=gc.event.getTarget(_d);if(_e){_e.blur();if(this.url&&_e.queryString){var _f=this.url;if(this.url.indexOf("?")<0){this.url+="?";}else{this.url+="&";}this.reload(this.url+_e.queryString);this.url=_f;}}
181if(_d.preventDefault){_d.preventDefault();}_d.returnValue=false;return false;},onChange:function(_10){var _11=gc.event.getTarget(_10);if(_11){var _12=decodeURI(_11.value);var _13=_12.split("?");var _14=_13[1]?_13[1]:"";_11.blur();if(this.url&&_14){var url=this.url;if(this.url.indexOf("?")<0){this.url+="?";}else{this.url+="&";}var _16=this.url+_14;this.reload(_16);this.url=url;}}if(_10.preventDefault){_10.preventDefault();}_10.returnValue=false;return false;}});if(gc.widget.Div&&!gc.widget.Div.instances){gc.widget.Div.instances={};}
182gc.initClass("gc.widget.FrameWidget",false,{event:null,width:null,height:null,visible:false,disabled:false,changed:false,changedInfo:null,div:null,divTitle:null,divContent:null,iframe:null,widgetControls:null,controlMinMax:null,controlClose:null,closeWithConfirm:true,widgetControlOptions:{"max":{"title":"Fenster maximieren","className":"btn btn-sm mr-2 maximize-button maximize","icon":"bi bi-arrows-angle-expand","icon_old":"icon icon-enlarge6"},"min":{"title":"Fenster minimieren","className":"btn btn-sm mr-2 minimize-button minimize","icon":"bi bi-arrows-angle-contract","icon_old":"icon icon-shrink6"},"close":{"title":"Fenster schliessen","className":"btn btn-sm mr-2 close-button","icon":"bi bi-x-lg","icon_old":"icon icon-cross2"}},divBG:null,loadSplashDisabled:false,formValuesStr:null,startURL:null,originalSize:{w:"",h:""},offset:52,with_bootstrap:1,constructor:function(_1,_2,_3,x,y,_6,_7){this.event=new gc.event.Custom(this);this.setBootstrap(typeof _7!=="undefined"?_7:1);if(_6){
183this.divBG=document.createElement("div");this.divBG.style.display="none";this.divBG.className="gc_widget_background";GeoCMS.Core.getDocumentBody().appendChild(this.divBG);}this.div=document.createElement("div");this.div.style.display="none";this.div.className="gc_widget";this.div.setAttribute("role","dialog");this.div.setAttribute("aria-modal","true");this.div.setAttribute("aria-labelledby","gc_widget_title_id");this.widgetControls=document.createElement("div");this.widgetControls.id="gc_widget_controls_id";this.widgetControls.className="gc_widget_controls";this.div.appendChild(this.widgetControls);this.controlMinMax=this.createButton(this.toggleMinMax,this.widgetControlOptions.max.title,this.widgetControlOptions.max.className,this.isBootstrap()?this.widgetControlOptions.max.icon:this.widgetControlOptions.max.icon_old);this.widgetControls.appendChild(this.controlMinMax);
184this.controlClose=this.createButton(this.confirm_close,this.widgetControlOptions.close.title,this.widgetControlOptions.close.className,this.isBootstrap()?this.widgetControlOptions.close.icon:this.widgetControlOptions.close.icon_old);this.widgetControls.appendChild(this.controlClose);this.divTitle=document.createElement("div");this.divTitle.className="gc_widget_title";this.divTitle.id="gc_widget_title_id";this.setTitle(_1);this.div.appendChild(this.divTitle);this.divContent=document.createElement("div");this.divContent.className="gc_widget_iframe";this.div.appendChild(this.divContent);this.iframe=document.createElement("iframe");this.iframe.width="100%";this.iframe.height="100%";this.iframe.frameborder=0;this.iframe.className="gc_widget_iframe";this.iframe.name="gc_widget_iframe_name";this.iframe.id="gc_widget_iframe_id";gc.event.addEventListener(this.iframe,"load",this.stopLoad,this);this.divContent.appendChild(this.iframe);this.divDisabled=document.createElement("div");
185this.divDisabled.className="gc_widget_content_disabled";this.divDisabled.style.display="none";this.div.appendChild(this.divDisabled);this.setSize(_2,_3);this.setPosition(x,y);GeoCMS.Core.getDocumentBody().appendChild(this.div);gc.event.addEventListener(document,"keyup",this.onKeyUp,this);var _8=this;jQuery(function(){jQuery(_8.div).draggable({cursor:"move",handle:".gc_widget_title"});});},setBootstrap:function(_9){this.with_bootstrap=parseInt(_9.toString())?1:0;},isBootstrap:function(){return this.with_bootstrap?true:false;},setCloseWithConfirm:function(_a){this.closeWithConfirm=_a;},isCloseWithConfirm:function(){return this.closeWithConfirm?true:false;},disableLoadSplash:function(){this.loadSplashDisabled=true;},setTitle:function(_b){if(this.divTitle){this.divTitle.innerHTML=_b;if(!_b){this.divTitle.style.display="none";}else{this.divTitle.style.display="";}}},setPosition:function(x,y){if(!x){x=GeoCMS.Utility.getScreenCenterX(this.width);}if(!y){
186y=GeoCMS.Utility.getScreenCenterY(this.height+this.offset);}x=Math.max(0,Math.min(x,GeoCMS.Utility.getDocumentWidth()-this.width-2));y=Math.max(0,Math.min(y,Math.max(GeoCMS.Utility.getDocumentHeight(),GeoCMS.Utility.getWindowHeight())-this.height-this.offset));if(this.div){this.div.style.left=x+"px";this.div.style.top=y+"px";}},setSize:function(_e,_f,_10,_11){if(typeof _10=="undefined"){var _10=100;}if(typeof _11=="undefined"){var _11=100;}if(!_f){_f=GeoCMS.Utility.getWindowHeight()-this.offset;}if(GeoCMS.Utility.endsWith(_e,"%")){var _12=parseInt(GeoCMS.Utility.trim(_e.substr(0,_e.length-1)));if(_12!=Number.NaN){_e=Math.floor(GeoCMS.Utility.getWindowWidth()*_12/100);}}if(GeoCMS.Utility.endsWith(_f,"%")){var _12=parseInt(GeoCMS.Utility.trim(_f.substr(0,_f.length-1)));if(_12!=Number.NaN){_f=Math.floor((GeoCMS.Utility.getWindowHeight()-this.offset)*_12/100);}}this.width=Math.max(_10,_e);this.height=Math.max(_11,_f);if(this.divContent){this.divContent.style.width=this.width+"px";
187this.divContent.style.height=this.height+"px";}if(this.iframe){this.iframe.width=this.width;this.iframe.height=this.height;}},open:function(_13,url,_15,_16,x,y){this.changed=false;this.setTitle(_13);if(_15){this.originalSize.w=_15;this.originalSize.h=_16;this.setSize(_15,_16);this.setPosition(x,y);}if(url&&this.iframe){if(url.indexOf("?")>=0){url+="&";}else{url+="?";}var _19=new Date();
187this.iframe.src=url+"timestamp_no_cache="+_19.getTime();delete _19;this.startURL=this.iframe.src;}if(!this.visible){this.visible=true;if(this.div){if(GeoCMS.Core.isIE6()){this.divBG.style.position="absolute";this.divBG.style.height=Math.max(GeoCMS.Utility.getDocumentHeight(),GeoCMS.Utility.getWindowHeight())+"px";}if(typeof jQuery!="undefined"){jQuery(this.div).fadeIn(300);var _1a=this;jQuery(window).resize(function(){_1a.onResize();});}else{this.div.style.display="";}}if(this.divBG){if(typeof jQuery!="undefined"){jQuery(this.divBG).fadeTo(300,0.33);}else{this.divBG.style.display="";}}}
188},clear:function(){if(this.iframe&&this.iframe.contentWindow&&this.iframe.contentWindow.document){var _1b=this.iframe.contentWindow.document.getElementsByTagName("body");if(_1b&&_1b[0]){_1b[0].innerHTML="";}}},confirm_close:function(_1c){if(this.visible&&this.closeWithConfirm&&GeoCMS.Utility.confirm("Dialog wirklich beenden? Ungesicherte Informationen gehen verloren.")){this.close(_1c);}else{if(this.visible&&!this.closeWithConfirm){this.close(_1c);}}},close:function(_1d){if(this.visible&&!this.disabled){this.iframe.src="";this.visible=false;if(this.div){if(typeof jQuery!="undefined"){jQuery(this.div).fadeOut(300);}else{this.div.style.display="none";}}if(this.divBG){if(typeof jQuery!="undefined"){jQuery(this.divBG).fadeOut(200);}else{this.divBG.style.display="none";}}this.event.trigger("close",_1d?_1d:[]);}},enable:function(){if(this.disabled){this.disabled=false;if(this.divDisabled){this.divDisabled.style.display="none";}if(GeoCMS.Core.isIE6()&&this.iframe){
189this.iframe.height=this.height;}}},disable:function(){if(!this.disabled){this.disabled=true;if(this.divDisabled){this.divDisabled.style.display="";}if(GeoCMS.Core.isIE6()&&this.iframe){this.divDisabled.style.width=this.width;this.divDisabled.style.height=this.height;this.iframe.height=0;}}},startLoad:function(_1e,url,_20,_21,x,y){if(this.loadSplashDisabled==false){this.disable();if(this.divDisabled){this.divDisabled.style.backgroundImage="url('"+GeoCMS.Core.baseUrl+"res/images/ajax-loader.gif')";}}this.loadSplashDisabled=false;if(url){this.closeWithConfirm=url.indexOf("_no_confirm")>=0?false:true;this.open(_1e,url,_20,_21,x,y);}},stopLoad:function(_24){if(_24&&this.iframe){this.iframe.contentWindow.widget=this;with(this.iframe.contentWindow){var me=this;if(document.addEventListener){document.addEventListener("keyup",function(_26){me.onKeyUp(_26);},false);}else{if(attachEvent){document.attachEvent("onkeyup",function(_27){me.onKeyUp(_27);});}}}GeoCMS.Core.refreshSessionTimeout();
190this.formValuesStr=this.getFormValuesStr();}this.enable();if(this.divDisabled){this.divDisabled.style.backgroundImage="";}if(this.visible){this.event.trigger("load",_24);}},isChanged:function(){return this.changed;},getChangedInfo:function(){return this.changedInfo;},setChanged:function(_28){this.changed=true;this.changedInfo=_28;if(typeof jQuery!="undefined"){var _29=this.div;jQuery(_29).removeClass("stateSuccess");jQuery(_29).removeClass("stateError");jQuery(_29).addClass("stateSuccess");window.setTimeout(function(){jQuery(_29).removeClass("stateSuccess");},3000);}},setError:function(){if(typeof jQuery!="undefined"){var _2a=this.div;jQuery(_2a).removeClass("stateSuccess");jQuery(_2a).removeClass("stateError");jQuery(_2a).addClass("stateError");window.setTimeout(function(){jQuery(_2a).removeClass("stateError");},3000);}},onKeyUp:function(_2b){if(_2b.keyCode===27){try{this.confirm_close();}catch(exc){}}},onResize:function(_2c){this.setPosition();},getFormValuesStr:function(){
191if(this.iframe&&this.iframe.contentWindow&&this.iframe.contentWindow.document){var _2d=this.iframe.contentWindow.document.getElementsByTagName("form");if(_2d&&_2d[0]){return this.getSerializedFormValues(_2d[0]);}}return null;},getSerializedFormValues:function(_2e){var _2f=GeoCMS.Utility.serializeForm(_2e,{hidden:true,skipempty:true});var _30=_2f.split("&");var _31=[/xc\d_submitted/,/xce_\d_current_tab/,/save/,/save_close/];while(_31.length>0){var _32=_31.shift();for(var i=0;i<_30.length;i++){if(_30[i].match(_32)){_30[i]="";}}}var _34=[];while(_30.length>0){var val=_30.shift();if(val!==""){_34.push(val);}}_30=_34;delete _34;if(typeof jQuery!="undefined"){var _36=jQuery(_2e).find("select[class*=\"xc_box_target\"]");jQuery(_36).each(function(idx,_38){var _39=[];jQuery(_38).find("option").each(function(){_39.push(jQuery(this).val());});_30.push(jQuery(_38).prop("id")+"="+_39.join(","));});}else{GeoCMS.Console.warn("Can not serialize Box2Tree - jQuery is undefined");}
192if(typeof jQuery!="undefined"){var _3a=jQuery(_2e).find(".mce-edit-area iframe");jQuery(_3a).each(function(idx,_3c){_30.push(jQuery(_3c).prop("id")+"="+jQuery(_3c).contents().find("body").html());});}else{GeoCMS.Console.warn("Can not serialize RichTextEditor - jQuery is undefined");}return _30.join("&");},isFormHashChanged:function(){return (this.formValuesStr!=this.getFormValuesStr());},historyBack:function(){if(this.iframe!=null){if(this.iframe.contentWindow.location.href!=this.startURL){history.back();}}},toggleMinMax:function(){var _3d=jQuery(this.controlMinMax);var $i=_3d.find("i");if(_3d.hasClass("maximize")){this.maximize();_3d.removeClass(this.widgetControlOptions.max.className).addClass(this.widgetControlOptions.min.className).prop("title",this.widgetControlOptions.min.title);
193$i.removeClass(this.isBootstrap()?this.widgetControlOptions.max.icon:this.widgetControlOptions.max.icon_old).addClass(this.isBootstrap()?this.widgetControlOptions.min.icon:this.widgetControlOptions.min.icon_old);}else{this.minimize();_3d.removeClass(this.widgetControlOptions.min.className).addClass(this.widgetControlOptions.max.className).prop("title",this.widgetControlOptions.max.title);$i.removeClass(this.isBootstrap()?this.widgetControlOptions.min.icon:this.widgetControlOptions.min.icon_old).addClass(this.isBootstrap()?this.widgetControlOptions.max.icon:this.widgetControlOptions.max.icon_old);}},minimize:function(){this.setSize(this.originalSize.w,this.originalSize.h);this.onResize();},maximize:function(){this.setSize("97%","100%");this.onResize();},createButton:function(_3f,_40,css,_42){var _43,i;i=document.createElement("i");i.className=_42;_43=document.createElement("button");_43.className=css;_43.title=_40;_43.setAttribute("aria-label",_40);_43.appendChild(i);
194gc.event.addEventListener(_43,"click",_3f,this);return _43;}});
195gc.initClass("gc.widget.Widget",false,{x:0,y:0,width:200,height:300,visible:false,is_drag:false,div_widget_bg:null,div_widget:null,img_close:null,div_title:null,div_content:null,div_disabled:null,list_index:-1,autoReload:false,constructor:function(_1,_2,_3,x,y,_6){this.list_index=gc.widget.widgets.length;gc.widget.widgets[this.list_index]=this;if(_2&&_3){this.width=_2;this.height=_3;}if(x||y){this.x=x;this.y=y;}else{this.x=GeoCMS.Utility.getScreenCenterX(this.width);this.y=GeoCMS.Utility.getScreenCenterY(this.height);}if(_6){this.div_widget_bg=document.createElement("div");this.div_widget_bg.style.display="none";this.div_widget_bg.className="gc_widget_background";GeoCMS.Core.getDocumentBody().appendChild(this.div_widget_bg);}this.div_widget=document.createElement("div");this.div_widget.style.display="none";this.div_widget.className="gc_widget";var i=this.list_index;this.img_close=document.createElement("img");this.img_close.className="gc_widget_close";
196this.img_close.alt="Dialog schliessen";this.img_close.src=GeoCMS.Core.baseUrl+"res/images/buttons/close.gif";this.img_close.onclick=function(){gc.widget.widgets[i].setVisible(false);return false;};this.div_widget.appendChild(this.img_close);this.div_title=document.createElement("div");this.div_title.className="gc_widget_title";this.div_title.innerHTML=_1;this.div_widget.appendChild(this.div_title);this.div_content=document.createElement("div");this.div_content.className="gc_widget_content";this.div_widget.appendChild(this.div_content);this.div_disabled=document.createElement("div");this.div_disabled.className="gc_widget_content_disabled";this.div_disabled.style.display="none";this.div_widget.appendChild(this.div_disabled);this.setPosition(this.x,this.y,true);this.setSize(this.width,this.height);document.body.appendChild(this.div_widget);if(gc.event.Mouse){gc.event.Mouse.addListener(this);}gc.event.addEventListener(document,"keyup",this.onKeyUp,this);},destroy:function(){
197if(gc.event.Mouse){gc.event.Mouse.removeListener(this);}if(this.div_widget){document.body.removeChild(this.div_widget);this.div_widget.removeChild(this.div_title);this.div_widget.removeChild(this.div_content);delete this.div_widget;delete this.div_title;delete this.div_content;this.div_widget=null;this.div_title=null;this.div_content=null;}},setPosition:function(x,y,_a){if(_a){if(x>(GeoCMS.Utility.getDocumentWidth()-this.width+4)){x=GeoCMS.Utility.getDocumentWidth()-this.width+4;}if(x<0){x=0;}var _b=GeoCMS.Utility.getWindowHeight()-50;if(y>(_b-this.height)){y=_b-this.height;}if(y<0){y=0;}}this.x=x;this.y=y;if(this.div_widget){this.div_widget.style.left=this.x+"px";this.div_widget.style.top=this.y+"px";}},setSize:function(_c,_d){this.width=Math.max(100,_c);this.height=Math.max(100,_d);if(this.div_content){this.div_content.style.width=this.width+"px";this.div_content.style.height=this.height+"px";}},setTitle:function(_e){if(this.div_title){this.div_title.innerHTML=_e;if(!_e){
198this.div_title.style.display="none";}else{this.div_title.style.display="";}}},getVisible:function(){return this.visible;},setVisible:function(_f){if(_f){if(this.div_widget_bg){if((GeoCMS.Core.isIE()&&!GeoCMS.Core.isIE7())||GeoCMS.Core.isFF()){this.div_widget_bg.style.position="absolute";this.div_widget_bg.style.height=Math.max(GeoCMS.Utility.getDocumentHeight(),GeoCMS.Utility.getWindowHeight())+"px";}}if(typeof Effect!="undefined"&&Effect.Appear&&!this.getVisible()){Effect.Appear(this.div_widget,{duration:0.3,from:0,to:1});if(this.div_widget_bg){Effect.Appear(this.div_widget_bg,{duration:0.3,from:0,to:0.3});}}else{this.div_widget.style.display="";if(this.div_widget_bg){this.div_widget_bg.style.display="";}}}else{if(this.getVisible()){if(typeof Effect!="undefined"&&Effect.Fade){Effect.Fade(this.div_widget,{duration:0.3,from:1,to:0});if(this.div_widget_bg){Effect.Fade(this.div_widget_bg,{duration:0.3,from:0.3,to:0});}}else{this.div_widget.style.display="none";if(this.div_widget_bg){
199this.div_widget_bg.style.display="none";}}}}this.visible=_f;},setContent:function(_10){this.div_disabled.style.display="none";this.div_disabled.style.backgroundImage="";if(_10){this.div_content.scrollTop=0;this.div_content.innerHTML=_10.replace(/this\.widget/g,"gc.widget.widgets["+this.list_index+"]");GeoCMS.Utility.execJS(this.div_content);}},startLoad:function(url,_12){if(!_12){this.div_content.innerHTML="";}this.div_disabled.style.display="";this.div_disabled.style.backgroundImage="url('"+GeoCMS.Core.baseUrl+"res/images/ajax-loader.gif')";},stopLoad:function(_13){this.setContent(_13);this.setVisible(true);if(this.autoReload){GeoCMS.Content.Core.reload();}}
199,show:function(_14,url,_16,_17){if(!_16){_16=400;}if(!_17){_17=GeoCMS.Utility.getWindowHeight()-64;}this.setTitle(_14);this.setContent("");this.setSize(_16,_17);this.setPosition(GeoCMS.Utility.getScreenCenterX(this.width),GeoCMS.Utility.getScreenCenterY(this.height)-20,true);this.setVisible(true);this.reload(url);
200},reload:function(url){this.setContent("");var _19=new GeoCMS.Network.Request(url,this.stopLoad,this,GeoCMS.Network.Request.RESPONSE_TEXT,true);_19.callbackOnStartFunction=this.startLoad;_19.callbackOnStartObject=this;GeoCMS.Network.XHR.addRequest(_19,true);},submitForm:function(_1a,url){try{req=new GeoCMS.Network.Request();req.url=url;req.callbackFunction=this.stopLoad;req.callbackObject=this;req.noCache=true;req.responseType=req.RESPONSE_TEXT;req.readPostDataFromForm(_1a);GeoCMS.Network.XHR.addRequest(req);this.startLoad(true);}catch(exc){}},onMouseDragStart:function(_1c,_1d,x,y,_20,_21){if(_1d==this.div_title){this.is_drag=true;this.setPosition(this.x,this.y,true);return true;}return false;},onMouseDragStop:function(_22,_23,x,y,_26,_27){if(this.is_drag){this.is_drag=false;this.setPosition(this.x,this.y,true);return true;}return false;},onMouseDrag:function(_28,_29,x,y){if(_29==this.div_title&&this.is_drag){this.setPosition(this.x+x,this.y+y);return true;}return false;
201},onKeyUp:function(_2c){if(_2c.keyCode==27){try{this.setVisible(false);}catch(exc){}}}});gc.widget.widgets=new Array();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.