	
 	/*************************************************************
 	* ANPASSUNGEN VON OC:
 	* 1) Der Aufbau der Menues wurde in eine JSP Seite ausgelagert, 
 	*    um die Inhalte dort dynamisch fuellen zu koennen.
 	* 2) Die Funktion moveTo() wurde folgendermassen angepasst, da 
 	*    eine abweichende Funktionalitaet in verschiedenen Browsern 
 	*    festgestellt wurde: this.css.left=x + 'px';this.css.top=y + 'px'
 	* 3) Der Pfad zu den Bilder "imgPath" wurde ausgelagert.
 	* 4) Der Pfad auf das image 1x1.gif wurde fuer die Layer 'NavHelpLayer'
 	*    und 'navHelpButton' hart verdrahtet.
 	* 5) Die fixe Breitenangabe im Style des Aufklappmenues ('div.menu') wurde entfernt.
 	* 6) In der Methode buildMenu wurde die Sonderbehandlung des vierten
 	*    Menueeintrags entfernt! 
 	* 7) Das padding-right innerhalb eines Aufklappmenues wurde auf 26px gesetzt.
 	*    Diese Breite entspricht dem Platz vor einem Eintrag.
 	* 8) Die Methode checkMenuWidth wurde hinzugefuegt. Der Aufruf erfolgt nach 
 	*    der Erstellung eines Aufklappmenues in der methode buildMenu
 	* 9) In der Methode getMenuPosition wurde die abweichende Berechnung fuer
 	*    den NS6 entfernt. Der Layer in der Navigation verschoben und die allgemeine
 	*    Anzeigeposition fuer alle Browser ausser NS4 neu berechnet.
 	* 10) In der Methode buildMenu wurde die erzeigte Tabelle so angepasst, dass eine Zelle 
 	*     komplett anklickbar ist.
 	*
 	* AUTHOR: christian.schmitz@opitz-consulting.de
 	* **************************************************************/
	
	var initialized = false;

	// API Browsercheck
		function dhBw(){ 
			this.name = navigator.appName;
			this.version = navigator.appVersion;
			this.dom=document.getElementById?1:0
			this.opera5=(this.name.indexOf("Opera") > -1 && (this.dom))?1:0
			this.ie4=(document.all && !this.dom)?1:0
			this.ie5=(this.dom && this.version.indexOf("MSIE ") > -1)?1:0
			this.ns4=(document.layers && !this.dom)?1:0 
			this.ns6=(this.dom && this.version.indexOf("MSIE ") == -1)?1:0
			if (this.ie4 || this.ie5) {
				document.write('<DIV id=testOpera style="position:absolute; visibility:hidden">TestIfOpera5</DIV>');
				if (document.all['testOpera'].style.clip=='rect()') {this.ie4=0;this.ie5=0;this.opera5=1;}
			}
			this.bw=(this.ie4||this.ie5||this.ns4||this.ns6||this.opera5)
			eval ("bt=this");
		}
	
		bw=new dhBw()
		function dSize(){
	  		this.dW=(bt.ns4||bt.ns6||bt.opera5)?innerWidth:document.body.offsetWidth;
	  		this.dH=(bt.ns4||bt.ns6||bt.opera5)?innerHeight:document.body.offsetHeight;
	  		return this;
		}
		var cdSize = new dSize(); 
	
	// API Objects
		function dhObj(obj,nest){ 
			nest=(!nest) ? "":'document.'+nest+'.';
			this.evnt=bw.dom? document.getElementById(obj):
			bw.ie4?document.all[obj]:bw.ns4?eval(nest+"document.layers." +obj):0;	
			if(!this.evnt) return lib_message('The layer does not exist ('+obj+')');
			this.css=bw.dom||bw.ie4?this.evnt.style:this.evnt; 
			this.ref=bw.dom||bw.ie4?document:this.css.document;
			this.x=parseInt(this.css.left)||this.css.pixelLeft||this.evnt.offsetLeft||0;
			this.y=parseInt(this.css.top)||this.css.pixelTop||this.evnt.offsetTop||0;
			this.w=this.evnt.offsetWidth||this.css.clip.width||this.ref.width||this.css.pixelWidth||0; 
			this.h=this.evnt.offsetHeight||this.css.clip.height||this.ref.height||this.css.pixelHeight||0;
			this.c=0;this.zI=this.css.zIndex;
			if((bw.dom || bw.ie4) && this.css.clip) {this.c=this.css.clip; this.c=this.c.slice(5,this.c.length-1);this.c=this.c.split(' ');for(var i=0;i<4;i++){this.c[i]=parseInt(this.c[i])}}
			this.ct=this.css.clip.top||this.c[0]||0; 
			this.cr=this.css.clip.right||this.c[1]||this.w||0;
			this.cb=this.css.clip.bottom||this.c[2]||this.h||0; 
			this.cl=this.css.clip.left||this.c[3]||0;
			this.obj = obj + "Object";
			eval(this.obj + "=this");
			return this
		}
	// API Functions
		dhObj.prototype.moveIt = function(x,y){this.x=x;this.y=y; this.css.left=x + 'px';this.css.top=y + 'px'}
		dhObj.prototype.showIt = function(){this.css.visibility="visible"}
		dhObj.prototype.hideIt = function(){this.css.visibility="hidden"}
		dhObj.prototype.bg = function(color){(bw.opera)?this.style.background=color:0;(bw.dom||bw.ie4)?this.css.background=color:0;if(bw.ns4){this.css.bgColor=color;this.backgroundColor}}
		dhObj.prototype.clipTo = function(t,r,b,l,setwidth){this.ct=t; this.cr=r; this.cb=b; this.cl=l;if(bw.ns4){this.css.clip.top=t;this.css.clip.right=r;this.css.clip.bottom=b;this.css.clip.left=l;}else{if(t<0)t=0;if(r<0)r=0;if(b<0)b=0;if(b<0)b=0;this.css.clip="rect("+t+","+r+","+b+","+l+")";if(setwidth){this.css.pixelWidth=this.css.width=r;this.css.pixelHeight=this.css.height=b}}}

	// Style Class Definition für Menue-Layer DE
	if (bw.ns4){
		document.write("<style type=\"text/css\">div.menu {visibility : hidden; position: absolute; z-index : 1000; background-color : #D7D7D7; border : 1px solid #C5C5C5; background : #F4F4F4 ; margin-top: 0px;padding: 0px 0px 0px 0px;}</style>");
 	} else {
		document.write("<style type=\"text/css\">div.menu {visibility : hidden; position: absolute; z-index : 1000; background-color : #D7D7D7; border-left : 1px solid #FFFFFF;  border-right : 1px solid #FFFFFF; padding : 0px 0px 0px 0px; background : #D7D7D7 ;}</style>");
  }
	
	function buildMenu(menuName,menuID,menuItemArray){
	if(!bw.ns4){
		if (bw.ns4)
		{
			document.write("<div id="+menuID+" class=menu onMouseOut=hM('"+menuName+"') onMouseOver=sM('"+menuName+"')>")
			for (Z=0;Z<menuItemArray[0].length;Z++)
			{
				document.write("<img src="+imgPath+"nav/1x1.gif width=21 height=8 border=0 name="+menuName+"_"+Z+"><a href="+menuItemArray[1][Z]+" class=greynav onMouseOver=\"high('"+menuName+"_"+Z+"')\" onMouseOut=\"low('"+menuName+"_"+Z+"')\">"+menuItemArray[0][Z]+"</a><br>\n");
			}
			document.write("<img src="+imgPath+"nav/1x1.gif width=1 height=5 border=0>");
			document.write("</div>");
		}
		else
		{
			document.write("<div id="+menuID+" class=menu onMouseOut=hM('"+menuName+"') onMouseOver=sM('"+menuName+"')>");
			document.write("<table id='"+menuID+"_table' cellspacing=0 cellpadding=0 border=0><tr><td height=2  style=\"font-size:2pt;\"><img src="+imgPath+"nav/1x1_white.gif width=100% height=2 border=0></td></tr>");
			for (Z=0;Z<menuItemArray[0].length;Z++){
				document.write("<tr><td height=20 style=\"padding-left:5px;padding-right:26px;\" nowrap>");
				document.write("<a href="+menuItemArray[1][Z]+" class=greynav style=\"display:block; width:100%;\" onMouseOver=\"high('"+menuName+"_"+Z+"')\" onMouseOut=\"low('"+menuName+"_"+Z+"')\">");
				document.write("<img src="+imgPath+"nav/1x1.gif width=21 height=8 border=0 name="+menuName+"_"+Z+">" + menuItemArray[0][Z]+ "</a></td></tr>");
				document.write("<tr><td height=2 style=\"font-size:1pt;\" nowrap><img src="+imgPath+"nav/1x1_white.gif width=100% height=1 border=0></td></tr>\n");
			}		
			document.write("</table></div>");
			checkMenuWidth(menuID, menuID+"_table");
		}
	 }
	}
	
	/**********************************
	*
	* Diese beiden Layer wurden auskommentiert, da sie scheinbar keinen 
	*	Einfluss auf die Funktionaltät der hauptnavigation haben.
	*
	***********************************/ 
	// document.write("<div class=NavHelpLayer id=NavHelpLayer><a href='javascript:void(0)' onMouseOver=hM('nsH')><img src='/ikbde_neu_edit/images/common/1x1.gif' width=770 height=400 border=0></a></div>");
	// document.write("<div class=NavHelpButton id=NavHelpButton><img src='/ikbde_neu_edit/images/common/1x1.gif' width=50 height=20 border=0></div>");
	
	function getMenuPosition(){if(bw.ns4){this.x=(cdSize.dW/2-193);this.y=156;}else{this.x=lPL.x;this.y=lPL.y;}}	
		
	function libinit(){
		
		lPL=new dhObj('calcLeft');
		
		var menuPosition = new getMenuPosition();
if(!bw.ns4){
		if(bw.ns4){
			nC=new dhObj('NavHelpLayer');
			nC.moveIt(menuPosition.x,0)
			nB=new dhObj('NavHelpButton');
			nB.moveIt(menuPosition.x-30,95)			
		}
		
		for (i=0;i<menuNameArray.length;i++){
			eval(menuNameArray[i]+"=new dhObj('"+menuNameArray[i]+"_layer"+"');");
			(bw.ns4)?eval(menuNameArray[i]+".bg('#F4F4F4')"):0
			eval(menuNameArray[i]+".moveIt("+menuPosition.x+","+menuPosition.y+");")
			menuPosition.x+=menuItemWidth[i];	
		}
		
	}
		initialized = true;	
}
	function high(item){(!bw.ns4)?document.images[item].src=imgPath+"button_arrow_auf_hell.gif":0}
	function low(item){(!bw.ns4)?document.images[item].src=imgPath+"nav/1x1.gif":0}
	
	function sM(menuName){
		if (initialized) {
			document.images[menuName+"_img"].src=(imgPath+"nav/"+menuName+"_hi.gif");
		   //temp
			if(!bw.ns4){
			if (initialized == true) eval(menuName+".showIt();");
			
			
			if(bw.ns4){
				eval("nB.moveIt("+menuName+".x,95);");
				for (i=0;i<menuNameArray.length;i++){
					if (menuName==menuNameArray[i]){
						eval("nB.clipTo(0,"+menuItemWidth[i]+",21,0,1);");
					}
				}
				nC.showIt();	
				nB.showIt();	
			}
			}
		}
	}
	
	function hM(menuName){
		if (initialized) {
		
			if (!bw.ns4||menuName=="nsH"){
				for (i=0;i<menuNameArray.length;i++){
					eval(menuNameArray[i]+".hideIt();");
				}
			}

			document.images[menuName+"_img"].src=(imgPath+"nav/"+menuName+".gif");
			
			if (menuName=="nsH"){
				nC.hideIt();
				nB.hideIt();
			}
		}
	}	
	
	function myOnResize(){document.location.href=document.location.href;}
	
	/***************************************
	*
	* Diese Funktion wird beim Erstellen eines Aufklappmenues aufgerufen.
	* Sie prüft, ob das gefüllte Aufklappmenue eine bestimmte Mindestbreite hat,
	* ist dies nicht der Fall wird die Breite des Menues hier angepasst.
	*
	* AUTHOR: christian.schmitz@opitz-consulting.de
	*
	****************************************/
	function checkMenuWidth(divID, divContentTableID)
	{
		if(document.getElementById(divID).offsetWidth < 183)
			document.getElementById(divContentTableID).width=183;
	}	

// Tauscht die Buttons in der Subnavigation bei mouseOver aus
function NeueFarbe(Nr,which,tf){

	image=which+"_img_"+Nr;
	
  if (document.all && !document.getElementById)
  {
   	if (tf=="true")
   	{
			if(which=="sub")
			{
				document.images[image].src=imgPath+"nav/subnav_"+which+"_high.gif";
			}else
			{
				document.images[image].src=imgPath+"nav/subnav_"+which+"_med.gif";	
			}

    }else
    {
			document.images[image].src=imgPath+"nav/subnav_"+which+"_low.gif";
    }
  }

  if (document.getElementById)
  {
    if (tf=="true")
    {
			if(which=="sub")
			{
				document.images[image].src=imgPath+"nav/subnav_"+which+"_high.gif";
			}else
			{
				document.images[image].src=imgPath+"nav/subnav_"+which+"_med.gif";			
			}
    }else
    {
		  document.images[image].src=imgPath+"nav/subnav_"+which+"_low.gif";
    }
  }
}