function decryptCharcode(n,start,end,offset){n=n+offset;if(offset>0&&n>end){n=start+(n-end-1);}else if(offset<0&&n<start){n=end-(start-n-1);}
return String.fromCharCode(n);}
function decryptString(enc,offset){var dec="";var len=enc.length;for(var i=0;i<len;i++){var n=enc.charCodeAt(i);if(n>=0x2B&&n<=0x3A){dec+=decryptCharcode(n,0x2B,0x3A,offset);}else if(n>=0x40&&n<=0x5A){dec+=decryptCharcode(n,0x40,0x5A,offset);}else if(n>=0x61&&n<=0x7A){dec+=decryptCharcode(n,0x61,0x7A,offset);}else{dec+=enc.charAt(i);}}
return dec;}
function linkTo_UnCryptMailto(s){location.href=decryptString(s,-2);}
function over(name,imgObj){if(version=="n3"&&document[name]){document[name].src=eval(name+"_h.src");}
else if(imgObj){imgObj.src=eval(name+"_h.src");}}
function out(name,imgObj){if(version=="n3"&&document[name]){document[name].src=eval(name+"_n.src");}
else if(imgObj){imgObj.src=eval(name+"_n.src");}}
function openPic(url,winName,winParams){var theWindow=window.open(url,winName,winParams);if(theWindow){theWindow.focus();}}
function link_create(){if(document.all){document.form1.text.focus();document.execCommand('createlink');document.form1.text.blur();}
else{fehler();}}
function doc_paste(){if(document.all){document.form1.text.focus();document.execCommand("paste");document.form1.text.blur();}
else{fehler();}}
function doc_copy(){if(document.all){document.execCommand("Copy");}
else{fehler();}}
function doc_select(){if(document.all){document.execCommand("selectAll");}
else{fehler();}}
function doc_open(){if(document.all){document.execCommand("Open");}
else{fehler();}}
function doc_save_as(){if(document.all){document.execCommand("SaveAs",true,"IhrDokumentName.html");}
else{fehler();}}
function doc_save(){if(document.all){document.execCommand("SaveAs");}
else{fehler();}}
function doc_insertimage(){if(document.all){document.execCommand("insertimage",true);}
else{fehler();}}
function doc_print(){if(document.all){document.execCommand("Print",true);}
else{fehler();}}
function fehler(){alert("Ihr Browser versteht diese Funktion leider nicht!");}
var JumpToFirstOccurance=true;var CatchJSErrors=true;var SkipZoomStops=true;var IsZoomStop=0;function catcherror(){return true;}
if(CatchJSErrors)
window.onerror=catcherror;function QueryString(key)
{var value=null;for(var i=0;i<QueryString.keys.length;i++)
{if(QueryString.keys[i]==key)
{value=QueryString.values[i];break;}}
return value;}
function QueryString_Parse()
{var query=window.location.search.substring(1);var pairs=query.split("&");for(var i=0;i<pairs.length;i++)
{var pos=pairs[i].indexOf('=');if(pos>=0)
{var argname=pairs[i].substring(0,pos);var value=pairs[i].substring(pos+1);QueryString.keys[QueryString.keys.length]=argname;QueryString.values[QueryString.values.length]=value;}}}
QueryString.keys=new Array();QueryString.values=new Array();QueryString_Parse();function getElement(id)
{if(document.getElementById)
return(document.getElementById(id));else if(document.all)
return(document.all[id]);}
function findPosY(obj)
{var curtop=0;if(obj.offsetParent)
{while(obj.offsetParent)
{curtop+=obj.offsetTop
obj=obj.offsetParent;}}
else if(obj.y)
curtop+=obj.y;return curtop;}
function ZRetrieveQuery()
{var SearchAsSubstring=0;var hl;var terms;hl=QueryString("zoom_highlight");if(hl==""||hl==null)
{hl=QueryString("zoom_highlightsub");if(hl==""||hl==null)
return false;else
SearchAsSubstring=1;}
if((document.charset&&document.charset=="utf-8")||(document.characterSet&&document.characterSet=="UTF-8"))
hl=decodeURIComponent(hl);else
hl=unescape(hl);hl=hl.toLowerCase();var re=/\"(.*?)\"|[^\\+\"]+/g;terms=hl.match(re);for(var i=0;i<terms.length;i++)
{if(terms[i]!="")
{if(terms[i].indexOf("\"")!=-1)
{terms[i]=terms[i].replace(/\"/g,"");terms[i]=terms[i].replace(/\+/g," ");}
else
{terms[i]=terms[i].replace(/\+/g,"");}
if(terms[i].indexOf("*")!=-1||terms[i].indexOf("?")!=-1)
{terms[i]=terms[i].replace(/\\/g," ");terms[i]=terms[i].replace(/\^/g," ");terms[i]=terms[i].replace(/\#/g," ");terms[i]=terms[i].replace(/\$/g," ");terms[i]=terms[i].replace(/\./g," ");var wildcards=/\w/;if(wildcards.test(terms[i]))
{terms[i]=terms[i].replace(/\*/g,"[^\\s]*");terms[i]=terms[i].replace(/\?/g,"[^\\s]");}
else
terms[i]="";}
if(terms[i]!="")
{if(SearchAsSubstring==0)
{terms[i]="(>[\\s]*|>[^<]+[\\b\\W])("+terms[i]+")(<|[\\b\\W][^>]*<)";}
else
{var strWB="";if(terms[i].substr(0,7)=="[^\\s]*")strWB="\\b";terms[i]="(>|>[^<]+)"+strWB+"("+terms[i]+")([^>]*<)";}}}}
return terms;}
function ZHighlightText(terms,text)
{text=text.replace(/&amp;/ig,'&');text=text.replace(/&nbsp;/ig,'');for(var i=0;i<terms.length;i++)
{if(terms[i]!="")
{var l=0;re=new RegExp(terms[i],"gi");var count=0;text=">"+text+"<";do
{l=text.length;text=text.replace(re,'$1<span class="highlight" id="highlight" name="highlight">$2</span id="highlight">$3');count++;}
while(l!=text.length&&count<100);text=text.substring(1,text.length-1);}}
text=text.replace(eval("//g"),'');text=text.replace(eval("//g"),'&nbsp;');return(text);}
function jumpHL()
{var d=getElement("highlight");if(d)
{var y=findPosY(d);if(y<100)
window.scrollTo(0,0);else
window.scrollTo(0,y-50);}}
function ZHighlightReplace(q,node)
{var node_value=node.nodeValue;var newtext=ZHighlightText(q,node_value);if(newtext!=node_value)
{var repl=document.createElement('span');repl.innerHTML=newtext;node.parentNode.replaceChild(repl,node);}}
function ZHighlightSearch(q,root)
{if(!root)
root=document.body.childNodes;for(var i=0,j=root.length;i<j;i++)
{ZHighlightSearch(q,root[i].childNodes);if(SkipZoomStops&&root[i].nodeType===8)
{if(root[i].nodeValue=="ZOOMSTOP")
IsZoomStop=1;else if(root[i].nodeValue=="ZOOMRESTART")
IsZoomStop=0;}
if(IsZoomStop==0&&root[i].nodeType===3)
{ZHighlightReplace(q,root[i]);}}}
function highlight()
{if(!"".match)
return;if(document.body)
{var terms=ZRetrieveQuery();if(terms!=false)
{IsZoomStop=0;ZHighlightSearch(terms);if(JumpToFirstOccurance)
jumpHL();}}}
