var oldSearchFieldValue="";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_redirectToPath(b){if(!b||typeof(b)!="string"||b.length<=0){return false}var a=geber_lib_getBaseURLPath();if(!a||typeof(a)!="string"||a.length<=0){return false}var c="";if(b.substring(0,3)=="../"){a=window.location.pathname;while(b.substring(0,3)=="../"){a=geber_lib_dirname(a);b=b.substr(3)}if(!a||a.length<=0){a=""}c=a+"/"+b}if(b.substring(0,1)=="/"&&a.substring(a.length-1,a.length)=="/"){c=a.substring(0,a.length-1)+b}else{c=a+b}if(c&&c.length>0){window.location.href=c;return true}return false}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=b.indexOf(a);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{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_dirname(c){if(!c){return c}c=String(c);if(c.length<=0){return c}var b="/";if(String(window.location.protocol).match(/file/i)&&navigator.platform.match(/Win/i)&&navigator.userAgent.match(/MSIE/)){b="\\"}var a=c.lastIndexOf(b);if(a&&(a>=0)){return c.substring(0,a)}else{return c}}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(geber_getCookie(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 glossary_addLinkBackButton(){}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"}}}var operabar=(window.opera?"=yes":"");function sendPopUp(c){var a=540;var b=635;return PopUpOpenWindow(c,"popup","resizable=yes, status=no, toolbar=no, scrollbars"+operabar,a,b)}function printPopUp(e){var a=665;var c=580;var b="";if(window.opera){b="=yes"}if(e.indexOf("output.php")>=0&&!e.match(/(keyfigurescomparison|chartgenerator|kennzahlenvergleich)\//)){var d="kennzahlenvergleich";if(document.location.pathname.indexOf("chartgenerator")>=0){d="chartgenerator"}else{if(document.location.pathname.indexOf("keyfigurescomparison")>=0){d="keyfigurescomparison"}}e=e.replace(/^.*output.php(.*)/,d+"/files/output.php$1")+"&rand="+Math.round(Math.random()*1000000)+Math.round(Math.random()*1000000);popupName="chartGen_"+Math.round(Math.random()*1000000)+Math.round(Math.random()*1000000)}return PopUpOpenWindow(e,"popup","resizable=yes, status=no, toolbar=no, scrollbars"+b,a,c)}function chartPopUp(e){var a=700;var b=550;var d="gbhb2009_chartPopUp";if(e.indexOf("output.php")>=0&&!e.match(/(keyfigurescomparison|chartgenerator|kennzahlenvergleich)\//)){var c="kennzahlenvergleich";if(document.location.pathname.indexOf("chartgenerator")>=0){c="chartgenerator"}else{if(document.location.pathname.indexOf("keyfigurescomparison")>=0){c="keyfigurescomparison"}}e=e.replace(/^.*output.php(.*)/,c+"/files/output.php$1")+"&rand="+Math.round(Math.random()*1000000)+Math.round(Math.random()*1000000);d="chartGen_"+Math.round(Math.random()*1000000)+Math.round(Math.random()*1000000);return PopUpOpenWindow(e,d,"resizable=yes, status=yes, toolbar=yes, scrollbars"+operabar,a,b)}return PopUpOpenWindow(e,d,"resizable=yes, status=no, toolbar=no, scrollbars"+operabar,a,b)}function resizePrintPopUp(){var a=605;var c=540;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 fileLibraryPopUp(b){var a=415;var c=320;return PopUpOpenWindow(b,"geber_fileLibrary","resizable=yes, status=no, toolbar=no, scrollbars"+operabar,a,c)}function filelibraryPopUp(a){return fileLibraryPopUp(a)}function fileLibraryBigPopUp(b){var a=605;var c=540;return PopUpOpenWindow(b,"geber_fileLibrary","resizable=yes, status=no, toolbar=no, scrollbars"+operabar,a,c)}function tablePopUp(d,b){var a=(b&&!isNaN(b))?b:650;var c=750;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_preLoadGWSImage(a){}window.setTimeout("geber_doPreLoadGWSImage()",50);function geber_doPreLoadGWSImage(){if(String(window.location.hostname).match(/iedit.geber.at/)||String(window.location.protocol).match(/(file|https)/)){return}var c=window.location;var a=document.referrer==null?"":document.referrer;if((a==""||a.length<=0)&&(opener)){try{a=opener.location}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(a,j){var k=escape(a);var j="";try{j=j?escape(j):""}catch(h){}var d="http://gws.geber.at/llb/gws.gif?js=1&ref="+j+"&pg="+k+"&rep=llb-hb2009";try{d+="&screen="+screen.width+"x"+screen.height}catch(h){}try{var c=new geber_lib_CookieClass();var b=c.getValue("STATs-ID");if(!b||b.length<0){b="";for(var g=0;g<34;g++){b+=Math.ceil(Math.random()*255).toString(16)}c.setValue("STATs-ID",b.substring(0,32))}if(b&&b.length>0){d+="&SESSID="+b}}catch(h){}var f=new Image();f.src=d}function geber_table_handlemouseover(a){geber_table_addclassname(a,"highlightmouseover")}function geber_table_handlemouseout(a){geber_table_removeclassname(a,"highlightmouseover")}function geber_table_handlemouseclick(a){if(a==null){return}if(a.className==null||a.className==""||a.className.indexOf("highlightclick")<0){geber_table_addclassname(a,"highlightclick")}else{geber_table_removeclassname(a,"highlightclick")}}function geber_table_addclassname(b,a){if(b==null||a==null||typeof(a)!="string"||a==""){return}try{if(b.className==null||b.className==""){b.className=a}else{if(b.className.length<a.length||(b.className!=a&&b.className.indexOf(" "+a+" ")<0&&b.className.substr(b.className.length-a.length-1)!=" "+a&&b.className.substring(0,a.length+1)!=a+" ")){b.className+=" "+a}}}catch(c){alert(c)}}function geber_table_removeclassname(b,a){if(b==null||a==null||typeof(a)!="string"||a==""){return}try{if(b.className==a){b.className=""}else{if(b.className!=null&&b.className!=""&&b.className.length>a.length){var d=b.className.indexOf(" "+a+" ");if(d>=0){b.className=b.className.substring(0,d+1)+b.className.substr(d+1+a.length+1)}else{if(b.className.substr(b.className.length-a.length-1)==" "+a){b.className=b.className.substr(0,b.className.length-a.length-1)}else{if(b.className.substring(0,a.length+1)==a+" "){b.className=b.className.substr(a.length+1)}}}}}}catch(c){alert(c)}}function geber_lib_keywordsOnSubmit(b){if(!b){b=document.keywordsearch}if(!b){return false}var c=String(b.elements.q.value).toLowerCase();var a=b.action;if(a.match(/\.(html|php|asp|jsp)/)){a=a.replace(/.(html|php|asp|jsp)/,"/"+c+".html")}else{a+="?q="+c}document.location.href=a;return true};