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=(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_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_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 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 glossary_addLinkBackButton(){var C=document.getElementById("description");if(!C){C=document.getElementById("bodyContent")}if(!C){C=document.getElementById("content")}if(!C){return }var A=C.getElementsByTagName("a");for(var B=0;B<A.length;B++){if(A[B].href.match(/\?/)){A[B].href=A[B].href+"&back=1"}else{A[B].href=A[B].href+"?back=1"}}}function print_setImg(){var A=document.getElementById("mainbar");for(var B=0;B<A.getElementsByTagName("img").length;B++){if(document.formular.setImg[0].checked){A.getElementsByTagName("img")[B].style.display="inline"}if(document.formular.setImg[1].checked){A.getElementsByTagName("img")[B].style.display="none"}}}var operabar=(window.opera?"=yes":"");function sendPopUp(C){var A=480;var B=475;return PopUpOpenWindow(C,"popup","resizable=yes, status=no, toolbar=no, scrollbars"+operabar,A,B)}function printPopUp(E){var A=626;var C=560;var B="";if(window.opera){B="=yes"}var D="gbfactbook_printPopUp";return PopUpOpenWindow(E,D,"resizable=yes, status=no, toolbar=no, scrollbars"+B,A,C)}function resizePrintPopUp(){var A=626;var C=560;try{var B=geber_getBrowser();C=C+B.extraStatusBarHeight}catch(E){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=350;var A=500;return PopUpOpenWindow(C,"glossary","resizable=yes, status=no, toolbar=no, scrollbars"+operabar,A,B)}function fileLibraryPopUp(B){var C=280;var A=412;return PopUpOpenWindow(B,"geber_fileLibrary","resizable=yes, status=no, toolbar=no, scrollbars"+operabar,A,C)}function filelibraryPopUp(A){return fileLibraryPopUp(A)}function rwePopUp(C){var A=1010;var B=750;return PopUpOpenWindow(C,"geber_RWE","resizable=yes,status=yes,menubar=yes,toolbar=yes,location=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(I,C,D,H,E){var B;try{var F=geber_getBrowser();E=E+F.extraStatusBarHeight}catch(G){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/)){E=E+20}else{E=E+15}}}if(!I.match(/^(https?|file|ftp):\/\//i)&&typeof (geberPopUpBaseURL)=="string"&&geberPopUpBaseURL!=null&&geberPopUpBaseURL.length>0){I=geberPopUpBaseURL+"/"+I}if(!D){D=""}try{B=window.open(I,C,D+",width="+H+",height="+E)}catch(G){return false}try{B.resizeTo(H,E)}catch(G){}try{B.focus()}catch(G){}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,E){try{if(E){var D=E.protocol+"//"+E.host;var B=E.pathname.replace(/downloads?\.php[3-9]?\?file=/,"");if(B.substr(0,1)!="/"){D+="/"}D+=B+E.search+E.hash;E.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 F=escape(B);try{D=D?escape(D):""}catch(E){}var C="http://gws.geber.at/rwe/gws.gif?js=1&ref="+D+"&pg="+F+"&rep=rwe-factbook";try{C+="&screen="+screen.width+"x"+screen.height}catch(E){}try{var H=new geber_lib_CookieClass();var G=H.getValue("SESSID");if(!G||G.length<0){G=H.getValue("PHPSESSID")}if(!G||G.length<0){G=H.getValue("JSESSID")}if(!G||G.length<0){G=H.getValue("JSESSIONID")}if(!G||G.length<0){G=H.getValue("SID")}if(G&&G.length>0){C+="&SESSID="+G}}catch(E){}var A=new Image();A.src=C}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)}}
