a= document.all;
needToggle= 0;
_altKey=0; _ctrlKey=0; _shiftKey=0; _ddId='';
function cK(){ if(window.event) {_altKey=window.event.altKey; _ctrlKey=window.event.ctrlKey; _shiftKey=window.event.shiftKey; _ddId=window.event.srcElement.alt; }}
function sD(aItemId, aTitle) { window.event.dataTransfer.setData ('Text', aItemId+' '+aTitle); window.event.dataTransfer.effectAllowed= 'link'; }
function sS(aMsg){ window.status=aMsg; return 1; }
function XX(aCmd) {_shiftKey=0; if(_altKey){_altKey=0; if(_ctrlKey){_ctrlKey=0; if(typeof showItem =='function'){showItem(_ddId);return;}} else{if(typeof startEditor =='function'){startEditor(_ddId);return;}}} xeq(aCmd); }
function XL(aRef) {_shiftKey=0; if(_altKey){_altKey=0; if(_ctrlKey){_ctrlKey=0; if(typeof showItem =='function'){showItem(_ddId);return;}} else{if(typeof startEditor =='function'){startEditor(_ddId);return;}}} window.open(aRef,"_new"); }


function innerText(aE){
var result= '';
var c= aE.firstChild;
while (c){
if(c.nodeType == 3) result+= c.nodeValue;
else result+= innerText(c);
c= c.nextSibling; }
return result;
}


function comfortizer() {
if (!_env.DOM || (_env.MS && (_env.V<5.0))) return;
var i;

var allLinks= document.getElementsByTagName('a');
for (i=0; i<allLinks.length; i++) {var ts='', t='', Xi, e=allLinks[i];
if(Xi=(''+e.getAttribute('title')).match(/^((doc|topic|docOrTopic|link|obj):([\w\-\._]+)|assoc|mail|xeq);?(.+)?/)) {
var ti=Xi[1], ty=Xi[2] || '', id=Xi[3], st=(''+Xi[4]).replace(/"/g,'´´').replace(/'/g,'´');
var tx= innerText(e).replace(/"/g,'´´').replace(/'/g,'´');
if(ty.match(/^doc/)) ts= t='Dieses Dokument anzeigen';
else{ if(ty.match(/[Tt]opic\b/)) { ts= t='Infos zu ``'+tx+'´´ auflisten'; if(st!=''){t+='\n» '+st; ts+='     » '+st; }}
else {if(ti=='assoc'){ ts= t= 'Verwandte Infos und Themen auflisten'; }
else {if (ti=='mail'){ ts= t= 'PERSÖNLICHE Nachricht an AutorIn schicken'; }
else {if (ty.match(/^link/)){ ts= t= 'Aufruf der Internet-Seite: '+st; e.setAttribute('href','javascript:XL("'+e.href+'");'); }
else if (ti.match(/^xeq/)) { ts= t=st; }}}}}
ts=ts.replace(/\n/g,'   ');
if(ty.match(/^(topic|doc|topicOrDoc|link|obj)$/)) { if(ty.match(/^(link|obj)/)){ti=ti.replace(/link|obj/, 'doc');};
e.setAttribute('ondragstart','sD("'+ti+'","'+tx+'")');
e.setAttribute('onClick','cK();');
e.setAttribute('alt',id); }
e.setAttribute('title',t);
e.setAttribute('onmouseover','return sS("'+ts+'");');
e.setAttribute('onmouseleave','return sS("");');
if(_env.MS) e.outerHTML=e.outerHTML;//workaround
}
else { if(!e.onclick && e.href && !e.href.match(/^javascript:/i)) {
e.setAttribute('onclick','xeq("track:'+e.href.replace(/http:\/\//i, '').replace(/;/g,'%3B')+';")');
if(_env.MS) e.outerHTML=e.outerHTML;//workaround
}}}

var allInput= document.getElementsByTagName('input');
for (i=0; i<allInput.length; i++) {var ts='', t='', Xi= new Array(), e=allInput.item(i);
if((e.type=='image')&&(Xi=(''+e.getAttribute('title')).match(/^((doc|topic|docOrTopic):([\w\-\._]+)|assoc|mail|xeq);?(.+)?/))) {
var ti=Xi[1], ty=Xi[2] || '', id=Xi[3], st=(''+Xi[4]).replace(/"/g,'´´').replace(/'/g,'´');
var p=e.parentNode;
var tx= innerText(p).replace(/"/g,'´´').replace(/'/g,'´');
if(ty.match(/^doc/)) ts= t='Dokument / Beitrag / Internetseite anzeigen';
else{ if(ty.match(/[Tt]opic\b/)) { ts= t='Infos zu ``'+tx+'´´ auflisten'; if(st!=''){t+='\n» '+st; ts+='     » '+st; }}
else {if (ti=='assoc'){ ts= t= 'Verwandte Infos und Themen auflisten'; }
else {if (ti=='mail'){ ts= t= 'PERSÖNLICHE Nachricht an AutorIn schicken'; }
else {if (ti.match(/^xeq/)) { ts= t=st; }}}}} //+- alert(Xi[3]+','+Xi[4]+','+Xi[5]);
ts=ts.replace(/\n/g,'   ');
var ae= document.createElement('a');
ae.setAttribute('href', "javascript:XX('"+e.getAttribute('name')+"')");
ae.setAttribute('title', t);
ae.setAttribute('onmouseover', 'return sS("'+ts+'")');
ae.setAttribute('onmouseleave', 'return sS("")');
if(ty.match(/^topic|doc|topicOrDoc$/)) {
ae.setAttribute('ondragstart', 'sD("'+ti+'","'+tx+'")');
ae.setAttribute('onclick', 'cK()');
ae.setAttribute('alt', id); }
p.removeChild(e);
while(p.firstChild) ae.appendChild(p.firstChild);
p.appendChild (ae);
i--; }}

var allImg= document.getElementsByTagName('img');
for (i=0; i<allImg.length; i++) {e=allImg[i];
if(e.getAttribute('title')=='link'){
e.parentNode.removeChild(e);
i--;}}


if (!_env.MS || (_env.V<5.0)) return;  //--

if(needToggle){ //--
for (i=0; i<a.length; i++) {var e=a[i];
if(e.toggle){ e.style.marginbottom= '2ex';
if(e.nextSibling) { e.innerHTML= '<a href="javascript:;" onClick="toggle()">'+e.innerHTML+'</a>';
var disp= 'none';
if(e.toggle > 0) disp= 'block';
with (e.nextSibling.style) { display= disp; marginTop= '1ex'; marginBottom='2ex'; }}}
else {}}}

} onLoad.add(comfortizer);


function toggle(a) { var e= event.srcElement.parentElement; //--
while(((e.toggle!=1) && (e.toggle!=0)) && e.parentElement) e=e.parentElement;
e= e.nextSibling;
if(e && e.style.display.match(/block/i)) e.style.display= "none"; else e.style.display= "block"; }

function toggleX(aId, aShow){var e=a[aId];if(e&&e.style.display.match(/none/i)){e.style.display="block";a[aId+'.img'].src='http://cs-wim.de/img/hide1.gif';}else{e.style.display="none";a[aId+'.img'].src='http://cs-wim.de/img/show1.gif';}} //--


function tST (aId) { return t_T (aId, 't', 'xpTopics' ); } //--
function tAT (aId) { return t_T (aId, 'a', 'xpAssocs' ); } //--
function tFT (aId) { return t_T (aId, 'f', 'xpFilterTopics' ); } //--
function t_T (aId, aPrefix, aType) { //--
var e=window.event.srcElement;
var b=a[aPrefix+aId+'_n'];
if(e.src.match('show')){
if(b.innerText == '') e.style.display='none';
e.src=e.src.replace(/show/, 'hide');
b.style.display='block';
a[aType].value+= ' '+aId; }
else {
e.src=e.src.replace(/hide/, 'show');
b.style.display='none';
var v=String(a[aType].value);
var expr='v.replace(/\\b'+aId+'\\b/g, " ")';
v=eval(expr);
a[aType].value= v.replace(/\s+/g, ' ').replace(/^\s*|\s*$/g, ''); }
}


var shList= ' ';
var cgiNames= new Array();
cgiNames.a= 'xpAssocs';
cgiNames.f= 'xpFilterTopics';
cgiNames.t= 'xpTopics';
cgiNames.p= 'xpParents';
cgiNames.s= 'xpSuccessor';
cgiNames.b= 'visBodies';

function sh( aElement ){
var i;
var e= aElement;
var nam= e.getAttribute('name');
if(nam == '') nam= e.getAttribute('id');
var i_n= nam.split(/\./);
var objId= i_n[0];
var type= i_n[1].substring(0,1);
if((objId != '') && (type != '')){
var show= 0;
var l= document.getElementsByName(objId+'.'+type);
var src= e.src;
if(!src && (l.length>0)) src=l.item(0).src;
if(src && src.match(/show/)) show= 1;

if(l.length>0){
for (i= 0; i<l.length; i++) {
var img= l.item(i);
if(show) img.src= img.src.replace(/show/, 'hide');
else img.src= img.src.replace(/hide/, 'show'); }}

l= document.getElementsByName(objId+'.'+type+'s');
if(l.length>0){
for (i= 0; i<l.length; i++) {
var s= l.item(i).style;
if(show) s.display='block';
else s.display= 'none'; }}

l= document.getElementsByName(objId+'.'+type+'h');
if(l.length>0){
for (i= 0; i<l.length; i++) {
var s= l.item(i).style;
if(show) s.display='none';
else s.display= 'block'; }}

if(cgiNames[type] != ''){
l= document.getElementsByName(cgiNames[type]);
if(l.length==0){
if(show) shList+= objId+' '; else eval('shList= shList.replace(/ '+objId+' /g," ")'); }
else {
var c= l.item(0);
if(show) c.value= (c.value+' '+objId).replace(/^\s+|\s+$/,'');
else { eval("c.value= c.value.replace(/"+objId+"/g, '')"); c.value= c.value.replace(/\s\s+/g,' ').replace(/^\s+|\s+$/g,''); }}}}
else alert('§ Problem "sh.1"');
}


function xeqSSL (aParam) {
document.forms[0].action= 'https://ssl.kundenserver.de/ssl.denkste.net' +document.forms[0].action; //?*?//
xeq(aParam);
}

function autoScrolling (aNeedFocus, aSens, aSpeed) {
var oSens= 30;
if (aSens) oSens= aSens;
var oNeedFocus= false;
if (aNeedFocus) oNeedFocus= aNeedFocus;
if(_env.V < 5.0)oNeedFocus=0;//?wg.IE4-Kompatibilität
if (aSpeed) oSpeed= aSpeed;
var oSpeed= 20;
if ((window.event) && (!oNeedFocus || window.document.hasFocus())) {
var yPos= window.event.clientY;
var oBodyElement= window.document.body;
if (yPos < oSens) { window.scrollBy (0, -Math.round((oSens -yPos) /oSens *oSpeed)); }
else if (yPos > (oBodyElement.clientHeight -oSens)) { window.scrollBy (0, +Math.round((yPos +oSens -oBodyElement.clientHeight) /oSens *oSpeed)); } }
}

function _subWindow (aCgiParams, aWindowParams) {
if(!aWindowParams) aWindowParams= 'width=420, height='+document.body.clientHeight+', resizable=yes, scrollbars=yes, status=yes, toolbar=yes, menubar=yes';
W= open (window.location.protocol+'//'+window.location.host+window.location.pathname+'?site=$C?&sId=$B'+aCgiParams, '_blank', aWindowParams);
W.focus();
}