if(!document.getElementById&&document.all){document.getElementById=function(a){return document.all[a]}}function geber_lib_activateLibrary(b){geber_lib_detectBasePath(b);var a=geber_lib_getBaseURLPath_withoutslash()+"/layout/preload.gif.php"}var geber_lib_onloadFuncArray;function geber_lib_addLoadEvent(a){if(document.all){try{attachEvent("onload",a);return}catch(b){}}else{window.addEventListener("load",a,true);return}if(geber_lib_onloadFuncArray==null){geber_lib_onloadFuncArray=new Array();var c=window.onload;window.onload=function(){for(var d=0;d<geber_lib_onloadFuncArray.length;d++){geber_lib_onloadFuncArray[d]()}}}geber_lib_onloadFuncArray[geber_lib_onloadFuncArray.length]=a}function geber_lib_stripTags(a){if(!a||(typeof(a)!="string")||(a.length<=0)){return""}a=a.replace(/<script.*<\/script[^>]*>/gi,"");a=a.replace(/<style.*<\/style[^>]*>/gi,"");a=a.replace(/<head.*<\/head[^>]*>/gi,"");a=a.replace(/<[^>]*>/gi,"");a=a.replace(/[^-_,;:\/&\w+0-9a-zA-Z|"'\.]/gi,"");return a}function geber_lib_getQueryParameter(c){var b=window.location.search.toString();if(!b||(b.length<=0)){return""}if((c==null)||(typeof(c)!="string")||(c.length<=0)){c="q"}b=b.match(new RegExp("^.*[?&]"+c+"=(.*)$"));if(!b){return""}b=b[1];b=unescape(b);b=b.replace(/[\r\n\t]+/gi," ");var a=new RegExp("["+String.fromCharCode(0)+"-"+String.fromCharCode(31)+String.fromCharCode(96)+"]","gi");b=b.replace(a,"");a=new RegExp(String.fromCharCode(160)+"+","gi");b=b.replace(a," ");b=b.replace(/&(amp;)?([^;]*=.*)?$/gi,"");if(b.match(/<.?(script|style)/gi)){return""}b=geber_lib_stripTags(b);b=b.replace(/[^-_:;,0-9a-zA-Z\w\/\.=]/gi,"");return b}function geber_lib_writeDocument(a){document.write(a)}var geber_lib_pageBaseURL="/";function geber_lib_getBaseURLPath(){if(geber_lib_pageBaseURL){return geber_lib_pageBaseURL}else{return"/"}}function geber_lib_getBaseURLPath_withoutslash(){var a=geber_lib_getBaseURLPath();if(a=="/"){return""}else{return a}}function geber_lib_detectBasePath(a){if(!a){return}a=String(a).replace(new RegExp("^/(de|en|fr|it|es)/20[0-9][0-9]/(qb/[1-3]|zb/[1-3]|z/[1-3]|gb|ar|ir/[1-3]|q[1-3])/"),"/");a=String(a).replace(new RegExp("^/(de|en|fr|it|es)/"),"/");var b=String(window.location.pathname).replace(/\\/g,"/");var c=(a!="/")?b.indexOf(a):-1;if(window.location.protocol.match(/file/i)&&(navigator.userAgent.match(/Windows|Win(NT|95|98|XP|16|32)/i)||navigator.platform.match(/Windows|Win(NT|95|98|XP|16|32)/i))&&b.substr(0,1)=="/"&&b.length>1){b=b.substr(1)}if(c<0){c=b.indexOf("/serviceseiten/suche")}if(c<0){c=b.indexOf("/servicepages/search")}if(c<0){c=b.indexOf("/servicepages")}if(c<0){c=b.indexOf("/serviceseiten")}if(c>=0){geber_lib_pageBaseURL=b.substring(0,c)}else{if(a=="/"){geber_lib_pageBaseURL=b}else{geber_lib_pageBaseURL="/"}}if(geber_lib_pageBaseURL.substr(geber_lib_pageBaseURL.length-1,1)=="/"&&geber_lib_pageBaseURL.length>1){geber_lib_pageBaseURL=geber_lib_pageBaseURL.substring(0,geber_lib_pageBaseURL.length-1)}if(geber_lib_pageBaseURL==""){geber_lib_pageBaseURL="/"}if(window.location.protocol.match(/file/i)&&(navigator.userAgent.match(/Windows|Win(NT|95|98|XP|16|32)/i)||navigator.platform.match(/Windows|Win(NT|95|98|XP|16|32)/i))&&geber_lib_pageBaseURL.length>1){geber_lib_pageBaseURL=window.location.protocol+"///"+geber_lib_pageBaseURL}else{if(window.location.protocol.match(/file/i)&&geber_lib_pageBaseURL.length>1){geber_lib_pageBaseURL=window.location.protocol+"//"+geber_lib_pageBaseURL}}}function geber_lib_resizeDocumentTo(a,b){if(window.innerHeight){window.innerHeight=b;if(window.innerWidth){window.innerWidth=a}if(window.outerHeight>(screen.availHeight-50)){window.resizeBy(0,screen.availHeight-window.outerHeight-50)}if(window.outerWidth>(screen.availWidth)){window.resizeBy(screen.availWidth-window.outerWidth,0)}}else{if(document.documentElement.clientWidth){window.resizeTo(a+50,b+80);window.resizeBy(a-document.documentElement.clientWidth,0);if(document.documentElement.clientHeight){window.resizeBy(0,b-document.documentElement.clientHeight)}if(document.documentElement.clientHeight>(screen.availHeight-100)){window.resizeBy(0,screen.availHeight-document.documentElement.clientHeight-100)}if(document.documentElement.clientWidth>(screen.availWidth-40)){window.resizeBy(screen.availWidth-document.documentElement.clientWidth-20,0)}}else{if(document.body.clientWidth){window.resizeTo(a+50,b+80);window.resizeBy(a-document.body.clientWidth,0);if(document.body.clientHeight){window.resizeBy(0,b-document.body.clientHeight)}if(document.body.clientHeight>(screen.availHeight-100)){window.resizeBy(0,screen.availHeight-document.body.clientHeight-100)}if(document.body.clientWidth>(screen.availWidth-40)){window.resizeBy(screen.availWidth-document.body.clientWidth-20,0)}}}}}function glossary_Resize(a){}function print_setImg(){var b=document.getElementById("mainbar");for(var c=0;c<b.getElementsByTagName("img").length;c++){if(document.formular.setImg[0].checked){b.getElementsByTagName("img")[c].style.display="inline"}if(document.formular.setImg[1].checked){b.getElementsByTagName("img")[c].style.display="none"}}for(var c=0;c<b.getElementsByTagName("object").length;c++){if(document.formular.setImg[0].checked){b.getElementsByTagName("object")[c].style.display="inline"}if(document.formular.setImg[1].checked){b.getElementsByTagName("object")[c].style.display="none"}}for(var c=0;c<b.getElementsByTagName("embed").length;c++){if(document.formular.setImg[0].checked){b.getElementsByTagName("embed")[c].style.display="inline"}if(document.formular.setImg[1].checked){b.getElementsByTagName("embed")[c].style.display="none"}}}function print_hideLinks(){try{resizePrintPopUp()}catch(d){}var b=document.getElementById("mainbar");var a=b.getElementsByTagName("a");for(var c=0;c<a.length;c++){a[c].href="#"}}var operabar=(window.opera?"=yes":"");function printPopUp(e){var a=655;var c=600;var b="";if(window.opera){b="=yes"}var d="gb2007_printPopUp";return PopUpOpenWindow(e,d,"resizable=yes, status=no, toolbar=no, scrollbars"+b,a,c)}function resizePrintPopUp(){var a=655;var c=600;try{var b=geber_getBrowser();c=c+b.extraStatusBarHeight}catch(f){var d=navigator.userAgent.match(/Windows NT ([5-9]).([0-9])/);if(navigator.userAgent.match(/firefox/i)||d&&d[2]&&d[1]&&((d[2]>=1)||(d[2]>5))){if(navigator.userAgent.match(/ MSIE/)){c=c+20}else{c=c+15}}}if(opener){window.resizeTo(a,c)}}function glossaryPopUp(c){var b=380;var a=412;return PopUpOpenWindow(c,"glossary","resizable=yes, status=no, toolbar=no, scrollbars"+operabar,a,b)}function tablePopUp(d,b){var a=(b&&!isNaN(b))?b:650;var c=500;return PopUpOpenWindow(d,"tablePopUp","scrollbars,resizable=yes,location=no,status=no,toolbar=no,",a,c)}function imagePopUp(c,a,b){a+=15;b+=32;return PopUpOpenWindow(c,"imagePopUp","resizable=yes,location=no,status=no,toolbar=no,",a,b)}function popUp(i,c,k,f,h,d,b){var j="";var e=(h=="ja")?"yes":"no";var a=(d=="ja")?"yes":"no";var g=(f=="ja")?"yes":"no";j+=",resizable="+g;j+=",scrollbars="+a;j+=",toolbar="+e;j+=",menubar="+e;j+=",status="+e;j+=",directories=no";j+=",copyhistory=no";j+=",location=no";return PopUpOpenWindow(i,b,j,k,c)}function PopUpOpenWindow(k,c,d,j,f){var b;try{var g=geber_getBrowser();f=f+g.extraStatusBarHeight}catch(i){var a=navigator.userAgent.match(/Windows NT ([5-9]).([0-9])/);if(navigator.userAgent.match(/firefox/i)||a&&a[2]&&a[1]&&((a[2]>=1)||(a[2]>5))){if(navigator.userAgent.match(/ MSIE/)){f=f+20}else{f=f+15}}}if(!k.match(/^(https?|file|ftp):\/\//i)&&typeof(geberPopUpBaseURL)=="string"&&geberPopUpBaseURL!=null&&geberPopUpBaseURL.length>0){k=geberPopUpBaseURL+"/"+k}if(!d){d=""}try{b=window.open(k,c,d+",width="+j+",height="+f)}catch(i){return false}try{b.resizeTo(j,f)}catch(i){}try{b.focus()}catch(i){}return true}function geber_lib_CookieClass(){this.defaultPath=""}geber_lib_CookieClass.prototype.setRaw=function(a){document.cookie=a};geber_lib_CookieClass.prototype.getRaw=function(){return document.cookie.toString()};geber_lib_CookieClass.prototype.setValue=function(c,e,a,g,d,f){var b=c+"="+escape(e)+((a)?"; expires="+a.toGMTString():"")+((g)?"; path="+g:"; path="+this.getDefaultPath())+((d)?"; domain="+d:"")+((f)?"; secure":"");this.setRaw(b)};geber_lib_CookieClass.prototype.getValue=function(c){var b=this.getRaw();if(!b){return null}var e=c+"=";var d=b.indexOf("; "+e);if(d==-1){d=b.indexOf(e);if(d!=0){return null}}else{d+=2}var a=b.indexOf(";",d);if(a==-1){a=b.length}return unescape(b.substring(d+e.length,a))};geber_lib_CookieClass.prototype.deleteValue=function(a,c,b){if(this.getValue(a)){this.setRaw(a+"="+((c)?"; path="+c:(this.defaultPath!=""?"; path=":"")+this.defaultPath)+((b)?"; domain="+b:"")+"; expires=Thu, 01-Jan-70 00:00:01 GMT")}};geber_lib_CookieClass.prototype.setDefaultPath=function(a){if(typeof(a)=="string"&&a.length>0){this.defaultPath=a}else{this.defaultPath=""}};geber_lib_CookieClass.prototype.getDefaultPath=function(){if(this.defaultPath&&typeof(this.defaultPath)=="string"&&this.defaultPath.length>0){return this.defaultPath}else{var a=geber_lib_getBaseURLPath();a=a.replace(new RegExp("/(de|en|fr|it|es|nl)/?$","i"),"");return a}};function geber_cookie_addCookieToBrowserObject(){try{var a=geber_getBrowser();if(a){a.cookie=new geber_lib_CookieClass()}}catch(b){}}geber_cookie_addCookieToBrowserObject();function geber_preLoadGWSImage(a){}window.setTimeout("geber_doPreLoadGWSImage()",50);function geber_doPreLoadGWSImage(){var c=String(window.location.href);var a=document.referrer==null?"":document.referrer;if((typeof(a)=="undefined"||a==""||a.length<=0)&&(opener)){try{a=String(opener.location.href)}catch(b){}}if((typeof(a)=="undefined"||a==""||a.length<=0)&&(parent)){try{a=String(parent.location.href)}catch(b){}}geber_doGWSImage(c,a)}function geber_gwsPrepareDownload(a,f){try{if(f){var d=f.protocol+"//"+f.host;var b=f.pathname.replace(/downloads?\.php[3-9]?\?file=/,"");if(b.substr(0,1)!="/"){d+="/"}d+=b+f.search+f.hash;f.href=String(d)}}catch(c){}window.setTimeout("geber_doGWSDownloadFile('"+a+"')",200)}function geber_doGWSDownloadFile(b){var c=geber_lib_getBaseURLPath();if(c=="/"){c=""}c+=b;if(!c.match(/^file:/)){c=window.location.protocol+"//"+window.location.host+c}var a=window.location;geber_doGWSImage(c,a)}function geber_doGWSImage(b,d){if(String(window.location.protocol).match(/https/)){return}var g=escape(b);try{d=d?escape(d):""}catch(f){}var c="http://gws.geber.at/staedtische/gws.gif?js=1&ref="+d+"&pg="+g+"&rep=staedtische-GB2007";try{c+="&screen="+screen.width+"x"+screen.height}catch(f){}try{var i=new geber_lib_CookieClass();var h=i.getValue("SESSID");if(!h||h.length<0){h=i.getValue("PHPSESSID")}if(!h||h.length<0){h=i.getValue("JSESSID")}if(!h||h.length<0){h=i.getValue("JSESSIONID")}if(!h||h.length<0){h=i.getValue("SID")}if(h&&h.length>0){c+="&SESSID="+h}}catch(f){}var a=new Image();a.src=c};