
function initNavi(){
getCss();

if (!document.getElementsByTagName){ return; }
		var anchors_navi = document.getElementsByTagName('li');
		

		// loop through all anchor tags
		for (var i=0; i<anchors_navi.length; i++){
			var anchor_navi = anchors_navi[i];
			
			var relAttribute = String(anchor_navi.getAttribute('value'));
			
			// use the string.match() method to catch 'lightbox' references in the rel attribute
			if (anchor_navi.getAttribute('value') && (relAttribute.toLowerCase().match('navi'))){
        //var navi_id = anchor_navi.getAttribute('id');
				anchor_navi.onmouseover = function () {show_ul(this['id']); return true;}
        anchor_navi.onmouseout = function () {hide_ul(this['id']); return true;}
			}
		}

}

function getCss(){
  var cssLocation = "css/nz/navi.css";
  // CSS für IEs nachladen
  if(document.createStyleSheet) document.createStyleSheet(cssLocation);
    // CSS für Mozilla, Netscape, Opera nachladen
  else{
    var objStyle = document.createElement("style");
    var objText = document.createTextNode("@import url("+cssLocation+") screen;");
    objStyle.appendChild(objText);
    document.getElementsByTagName("body")[0].appendChild(objStyle);
  }
}

function show_ul(objLink){

aktiv = setTimeout("einblenden('"+objLink+"')",1000);

}

//"Ticker('"+nr+"')"

function hide_ul(objLink){

setTimeout("ausblenden('"+objLink+"')",5000);
clearTimeout(aktiv);
}

function einblenden(objLink){
document.getElementById(objLink).className = 'display_j';
}

function ausblenden(objLink){
document.getElementById(objLink).className = 'none';
}
/*#navcontainer li:hover ul, #navcontainer li:active ul,  #navcontainer li:focus ul{
display: block;
}
#navcontainer .display ul, #navcontainer ul.display{
display: block;
}*/
window.addEvent('domready', function(){
initNavi();
});