var xPos = 0, yPos = 0
var showSNDelay, lastSN
var showTabRowDelay
cSNCond = new Array(); cSNCond[0] = new Object();

if(top.frames.length > 0 && self.name!="fileMngPreview"){top.location.href=self.location;}

document.onmousedown = getPos;

function getPos(e){
if(document.all){xPos = window.event.screenX; yPos = window.event.screenY;}
else if(document.getElementById){xPos = e.screenX;yPos = e.screenY;}}

function topInfo(cont,target,w,h)
{var topInf = window.open(cont,target,'width='+w+', height='+h+', dependent=yes, resizable=yes, scrollbars=yes, menubar=yes, status=yes'); topInf.focus(); return false;}

function openCal(target,obj){var openCal = window.open (target, 'topCal', 'width=200,height=280,dependent=yes,resizable=yes,scrollbars=no,top='+(yPos-150)+',left='+(xPos-100)); openCal.focus();}

function hideSN(x){
showSNDelay = setTimeout("hideSNgo('" + x + "')",100);}

function hideSNgo(x){var dd = document.getElementById(x);
if(dd){dd.style.display = cSNCond[0][x];}}

function uncoverSN(x){var dd = document.getElementById(x); if(dd){
if(typeof(cSNCond[0][x])=="undefined"){cSNCond[0][x] = dd.style.display;} 
clearTimeout(showSNDelay); if(lastSN != x){hideSNgo(lastSN);}
dd.style.display = "block"; lastSN = x;}}

function setDivBalance(){var c = 55; // Korrektur padding mainDiv //
var dN = document.getElementById('navDiv').offsetHeight; 
var dC = document.getElementById('mainTxt');
if(dN > dC.offsetHeight){if(dN - c > 0){dC.style.height = (dN - c) + 'px';}}}

function hideTabRowShowDiv(){clearTimeout(showTabRowDelay);
document.getElementById("tabRowShowDiv").style.visibility = "hidden";}

function uncoverShowDiv(){if(document.all){}
else{document.getElementById("tabRowShowDiv").style.visibility = "visible";}}

function showTabRow(xy){ clearTimeout(showTabRowDelay);
var sD = document.getElementById("tabRowShowDiv");
var sDf = sD.firstChild;
var xNode = xy.firstChild;
var x = 0; 
var p = 20;
if(document.all){p = p + document.body.scrollTop;}
else if(document.getElementById){p = p + window.pageYOffset;}
if(p<20) p = 20;
while (sDf!=null){
   sD.removeChild(sDf);
   sDf = sD.firstChild;}
while (xNode!=null){
   if(xNode.nodeType==1 && xNode.childNodes[0].nodeValue!=null){x+=1; 
      var newEntry = document.createTextNode(x + ": " + xNode.childNodes[0].nodeValue);
      var newBr = document.createElement("br");
      sD.appendChild(newEntry);
      sD.appendChild(newBr); }
   xNode = xNode.nextSibling; }
sD.style.top = p + 'px';
showTabRowDelay = setTimeout("uncoverShowDiv()",1000);}