
// ################################### //

USA=navigator.userAgent.toUpperCase();
//alert(USA)

ie4 = (document.all) ? 1 : 0
n4 = ((navigator.userAgent.indexOf("Mozilla/4") >= 0) && (navigator.appName=="Netscape")) ? 1 : 0 ;
nodom = 0;

ff = (USA.indexOf("FIREFOX") >= 0) ? 1 : 0 ;
n6 = (USA.indexOf("GECKO") >= 0) ? 1 : 0 ;
ie = (USA.indexOf("MSIE") >= 0) ? 1 : 0 ;
ie6 = (USA.indexOf("MSIE 6") >= 0) ? 1 : 0 ;

dom = (document.getElementById) ? 1 : 0 ;
if(dom){
	ie4 = 0;
} else {
	nodom = 1;
}

// alert(ff+" - "+n6+" - "+ie4+" - "+dom)

// ################################### //

function prep(pObj,pSrc){
	if(document.images){
		eval(pObj+' = new Image()')
		eval(pObj+'.src = "'+pSrc+'"')
	}
}

// prep('Pkunstwerke0','../p/kunstwerke-o.gif')


// ###################################### //

function px(id,st){
	document.images["P"+id].src = eval("P"+id+st).src
}

// ################################### //

// if(nav){} nur aura

	if(window.navigator.systemLanguage && !window.navigator.language) {
	  function hoverIE() {
	    var LI = document.getElementById("navidrop").firstChild;
	    do {
	      if (sucheUL(LI.firstChild)) {
	        LI.onmouseover=einblenden; LI.onmouseout=ausblenden;
	      }
	      LI = LI.nextSibling;
	    }
	    while(LI);
	  }
	
	  function sucheUL(UL) {
	    do {
	      if(UL) UL = UL.nextSibling;
	      if(UL && UL.nodeName == "UL") return UL;
	    }
	    while(UL);
	    return false;
	  }
	
	  function einblenden() {
	    var UL = sucheUL(this.firstChild);
	    UL.style.display = "block"; // UL.style.backgroundColor = "silver";
	  }
	  function ausblenden() {
	    sucheUL(this.firstChild).style.display = "none";
	  }
	
	  window.onload=hoverIE;
	}



// ################################### //
