   ulLiMenu = function(elemId) {
    if ( document.getElementById(elemId)) { // nur für IE, MacIE, Opera
      var navroot = document.getElementById(elemId);
      var lis=navroot.getElementsByTagName("li"); 

      for (i=0; i<lis.length; i++) { 
        for (j=0; j<lis[i].getElementsByTagName("ul").length; j++){ 

          lis[i].onmouseover=function() {
		  	                  this.getElementsByTagName("ul")[j].style.visibility = 'visible'; 
							   
                             } 

          lis[i].onmouseout= function() { 
                               this.getElementsByTagName("ul")[j].style.visibility = 'hidden'; 
							   
                             }
							 
          }
       }
         
      for (i=0; i<lis.length; i++) { // loop LIs 
          for (j=0; j<lis[i].getElementsByTagName("ul").length; j++){ // Loop  in LIs

           lis[i].getElementsByTagName("ul")[j].onmouseover=function(){
                                                               this.parentNode.getElementsByTagName("a")[0].className ="over";
                                                             } 

           lis[i].getElementsByTagName("ul")[j].onmouseout=function(){
                                                             if (this.parentNode.getElementsByTagName("a")[0].id!="aktiv") // Bug(?)fix IE: zurücksetzen von class überschreibt ID-Eigenschaft
                                                               this.parentNode.getElementsByTagName("a")[0].className ="out";
                                                               //alert("mouseouse auf ul")
                                                           } 

        } // ENDE loop in LIs
      }// ENDE loop  LI           

   } // ENDE IE only  

  } // ENDE function  
  

function init(){
	ulLiMenu("navTop");
	//nachrichtenDisplay();
	//document.getElementById("rightColumn").width = "18em";
	//document.getElementById("rightColumn").margin = "0 -18em 0 1px";
}

function nachrichtenDisplay() {
	var nachrichten = document.getElementById("nachrichten").childNodes;
	var elem;
	for(i=0; i<nachrichten.length; i++)
 	{
 		elem = nachrichten[i];
 		if (elem.className == 'nachrichtentext') {
 			elem.style.display="none";
 		}
 	}
}
function showNachrichtentext(id) {
	var elem = document.getElementById(id)
	if (elem.style.display=="block")
		elem.style.display="none";
	else
		elem.style.display="block";
}
function searchInside(form, url) {		
	new Ajax.Request(url, {
	  	parameters: { buchnummer:form.buchnummer.value, text:form.text.value },
	  	onSuccess: function(transport) {
	    	$('searchInsideErg').innerHTML = transport.responseText;	    	
	    }
	});	
}

function elektronischePostAnschrift(name,server,domain) {
	var realname = rueckwaerts(name);
	var realserver = rueckwaerts(server);
	var realdomain = rueckwaerts(domain);
	document.write('<a href=\"mailto:' + realname + '@' + realserver + '.' + realdomain + '\">' +
	domain + '.' + server + '<span style=\"display:none;\">blablabla</span>@' + name + '</a>');
}

function elektronischePostAnschriftAnzeige(name,server,domain) {
	var realname = rueckwaerts(name);
	var realserver = rueckwaerts(server);
	var realdomain = rueckwaerts(domain);
	document.write(realname + '<span style=\"display:none;\">blablabla</span>@' + realserver + '.' + realdomain);
}

function rueckwaerts(zeichenkette) {
    var rueck = "";
    for (i=zeichenkette.length-1; i >=0  ; i-- ) {
       rueck = rueck + zeichenkette.charAt(i);
    }
    return(rueck);
}

/*function rechteSpalteAnpassen(minwidth,filebig,filesmall) {
	document.write('<style type=\"text/css\"><!--\n@import \"');
	if (minwidth > document.body.offsetWidth || minwidth > window.innerWidth) {
		document.write(filesmall);
	}
	else {
		document.write(filebig);
	}
	document.write('\";\n--></style>');
}*/

function rechteSpalteAnpassen(minwidth,filebig,filesmall) {
	document.write('<link rel=\"stylesheet\" media=\"screen\" href=\"');
	if (minwidth > document.body.offsetWidth || minwidth > window.innerWidth) {
		document.write(filesmall);
	}
	else {
		document.write(filebig);
	}
	document.write('\"/>');
}

function wartung(hinweis) {
	alert(hinweis);
}

function initwartung(hinweis) {
	ulLiMenu("navTop");
	wartung(hinweis);
}

function opencover(jspfile, isbn, titel, transparentfile) {
	var coverWindow = window.open("", "Cover", "width=490,height=660,location=no,scrollbars=yes,screenX=15,screenY=1");
	coverWindow.document.writeln('<html><head><title>'+titel+'</title></head>');
	coverWindow.document.writeln('<body>'+'<img style=\'border:1px solid gray\' src=\''+jspfile+'?isbn='+isbn+'\'>');
	coverWindow.document.writeln('<div style=\'position:absolute;top:0px;left:0px;width:100%;height:100%;background-image:url('+transparentfile+');background-repeat:repeat\'>');
	coverWindow.document.writeln('</div></body></html>');
	coverWindow.document.close();
}

function accessLightbox(jspfile, isbn) {
	var finallink = jspfile+'?isbn='+isbn;
	return finallink;
}