/*
<html>
<head><!-- PageID 29 - published by RedDot 7.1 - 7.1.0.22 - 29619 -->
<title>special_voith_com_de_menu_js</title>
<head>
<body>
<!--
template="nav_903_menu_js"
title="special_voith_com_de_menu_js"
ownID="29"
ownURL="/sys/js/voith_com_menu_de.js"
-->
*/
/********************************************************************************
Name:  Voith_com_Menus
Version:    2005-01-02-1
Beschreibung:  Menue bleibt bei MouseOut geoeffnet
               Es können bis zu 10 Hauptmenüs mit variabler Button-Breite angelegt werden
Getestet auf:  NS4/Win  NS6/Win IE6/Win
********************************************************************************/
/********************************************************************************
Infos:
title:special_voith_com_de_menu_js
ownID:29
ownURL:/sys/js/voith_com_menu_de.js
jsLanguage:de
********************************************************************************/
var jsLanguage = "de";
imagepath = "/sys/images/";  // Pfad fuer Bilder
<!-- template="con_901_js" title="special_voith_???_export_sys_js_??_menu_javascript_body_facelift" ownID="548499" ownURL="/sys/js/voith_com_menu_de.js" -->
/********************************************************************************
Add "selected" in selected menu
********************************************************************************/
if (!selectedmenu) { selectedmenu = 0;}
var selected = new Array();
  for(i=0;i<10;i++){
    selected[i] = "";
  }
selected[selectedmenu] = "_selected";
var explorerev=''
/********************************************************************************
Object constructor and object functions
********************************************************************************/
function makePageCoords(){
  this.x=0;this.x2=(bw.ns4 || bw.ns5)?innerWidth:document.body.offsetWidth-20;
  this.y=0;this.y2=(bw.ns4 || bw.ns5)?innerHeight:document.body.offsetHeight-5;
  this.x50=this.x2/2;  this.y50=this.y2/2;
  return this;
}
function makeMenu(parent,obj,nest,type,num,subnum,subsubnum){
    nest=(!nest) ? '':'document.'+nest+'.'
     this.css=bw.dom? document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?eval(nest+"document.layers." +obj):0;
  this.evnt=bw.dom? document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?eval(nest+"document.layers." +obj):0;
  this.height=bw.ns4?this.css.document.height:this.evnt.offsetHeight
  this.width=bw.ns4?this.css.document.width:this.evnt.offsetWidth
  this.moveIt=b_moveIt; this.bgChange=b_bgChange;
  this.clipTo=b_clipTo;
  this.showIt=b_showIt;
  this.hideIt=b_hideIt;
  this.show='';
  this.hide='';
  this.parent=parent;
  this.active=0;
  this.nssubover=0
  // Menue-Ebene 0 (Buttons)
  if(type==0){
    if(bw.ns4){
      this.show= hideLayer+'.showIt()';
      this.hide= hideLayer+'.hideIt()';
      this.css.captureEvents(Event.MOUSEDOWN);
    }
    this.evnt.onmouseover=new Function("mmover("+num+","+this.parent.name+");"+this.show);
    this.evnt.onmouseout=new Function("mmout("+num+","+this.parent.name+");"+this.hide);
    this.evnt.onmousedown= new Function("goLnk("+this.parent.name+".lnk["+num+"],"+this.parent.name+".target["+num+"])");
  // Menue-Ebene 1
  }else if(type==1){
    this.clipIn=b_clipIn;
    this.clipOut=b_clipOut;
    this.clipy=0
    if(bw.ns4 && this.parent.menueventoff=="mouse"){
      // MouseOut: wenn von einem Menuepunkt der Ebene 1 NICHT in das Untermenue dieses Punkts gewechselt wird, diesen Menuepunkt auf inaktiv setzen
      this.evnt.onmouseout=new Function("setTimeout('if(!"+this.parent.name+"["+num+"].nssubover)"+this.parent.name+".hideactive("+num+");',100)")
      // MouseOver: diesen Menuepunkt auf aktiv setzen
      this.evnt.onmouseover=new Function(this.parent.name+"["+num+"].nssubover=true")
    }
    else this.evnt.onmouseover= cancelEv;
  }else if(type==2){
    if(bw.ns4){
      this.show= hideLayer+'.showIt()';
      this.hide= hideLayer+'.hideIt()';
      this.css.captureEvents(Event.MOUSEDOWN);
    }
    this.evnt.onmouseover=new Function("submmover("+num+","+subnum+","+this.parent.name+");"+this.show);
    this.evnt.onmouseout=new Function("submmout("+num+","+subnum+","+this.parent.name+");"+this.hide);
    this.evnt.onmousedown= new Function("goLnk("+this.parent.name+".sublnk["+num+"]["+subnum+"],"+this.parent.name+".subtarget["+num+"]["+subnum+"])");
  }else if(type==3){
    if(bw.ns4){
      this.show= hideLayer+'.showIt()';
      this.hide= hideLayer+'.hideIt()';
      this.css.captureEvents(Event.MOUSEDOWN);
    }
    this.evnt.onmouseover=new Function("subsubmmover("+num+","+subnum+","+subsubnum+","+this.parent.name+");"+this.show);
    this.evnt.onmouseout=new Function("subsubmmout("+num+","+subnum+","+subsubnum+","+this.parent.name+");"+this.hide);
    this.evnt.onmousedown= new Function("goLnk("+this.parent.name+".subsublnk["+num+"]["+subnum+"]["+subsubnum+"],"+this.parent.name+".subsubtarget["+num+"]["+subnum+"]["+subsubnum+"])");
  }
  this.tim=100
    this.obj = obj + "Object";   eval(this.obj + "=this"); hideLayer= this.obj;
  return this
}
function b_clipTo(t,r,b,l,h){if(bw.ns4){this.css.clip.top=t;this.css.clip.right=r
this.css.clip.bottom=b;this.css.clip.left=l; this.clipx=r;
}else{this.css.clip="rect("+t+","+r+","+b+","+l+")"; this.clipx=r;;
if(h){ if(bw.ie4 || bw.ie5 || bw.dom){ this.css.height=b; this.css.width=r}}}}
function b_moveIt(x,y){this.x=x; this.y=y; this.css.left=this.x;this.css.top=this.y}
function b_bgChange(color,hilite){
  if(!bw.ns4){
    this.css.backgroundColor=color;
    if(bw.ie4) this.evnt.children[0].style.color= hilite;
    else this.evnt.firstChild.style.color= hilite;
  }
}
function b_showIt(){this.css.visibility='show'}
function b_hideIt(){this.css.visibility='hide'}
function goLnk(url,target){
  if(url=='#' || !url) return;
  if(target){
    if(target=='_parent') parent.location.href= url;
    else if(target=='_top') top.location.href= url;
    else if(target=='_blank') window.open(url,'');
    else if(target=='_self') setTimeout('location.href="'+url+'"',200);
    else if(parent.frames.length>0){
      if(!parent.frames[target]) window.open(url,target);
      else eval('parent.'+target+'.location.href="'+url+'"');
    }
    else window.open(url,target);
  }
  else setTimeout('location.href="'+url+'"',200);
  return false;
}
function b_clipIn(speed){
  if(this.clipy>0){
    this.clipy-=speed
    if(this.clipy<0) this.clipy=0
    this.clipTo(0,this.clipx,this.clipy,0,1)
    this.tim=setTimeout(this.obj+".clipIn("+speed+")",10)
  }else{this.clipy=0; this.clipTo(0,this.clipx,this.clipy,0,1)}
}
function b_clipOut(speed){
  if(this.clipy<this.clipheight){
    speed=((this.clipheight-this.clipy)<speed)?this.clipheight-this.clipy:speed;
    this.clipy+=speed
    this.clipTo(0,this.clipx,this.clipy,0,1)
    this.tim=setTimeout(this.obj+".clipOut("+speed+")",10)
  }else{this.clipy=this.clipheight; this.clipTo(0,this.clipx,this.clipy,0,1)}
}
//Page variable, holds the width and height of the document. (see documentsize tutorial on bratta.com/dhtml)
var page=new makePageCoords()
/********************************************************************************
Checking if the values are % or not.
********************************************************************************/
function checkp(num,lefttop){
  if(num){
    if(num.toString().indexOf("%")!=-1){
      if(this.menurows)num=(page.x2*parseFloat(num)/100)
      else num=(page.y2*parseFloat(num)/100)
    }else num=parseFloat(num)
  }else num=0
  return num
}
/********************************************************************************
Menu object, constructing menu ++
********************************************************************************/
function menuObj(name){
  this.makeStyle=makeStyle;
  this.makeMain=makeMain;
  this.makeSub=makeSub;
  this.makeSubSub=makeSubSub
  this.back= new Array();
  this.lnk= new Array();
  this.sublnk= new Array();
  this.subsublnk= new Array();
  this.target= new Array();
  this.subtarget= new Array();
  this.subsubtarget= new Array();
  this.mainmenus=0;
  this.submenus=new Array()
  this.construct=constructMenu;
  this.checkp=checkp;
  this.name=name;
  this.menumain=menumain;
  this.hidemain=hidemain;
  this.hideactive=hideactive;
  this.menusub=menusub;
  this.hidesubs=hidesubs;
  this.menueventon="mouse"
  this.menueventoff=""
    //hald menue schliesst auf ie nicht bei MouseOut
    //if(bw.ie4 || bw.ie5) this.menueventoff=""
  this.stayoncolor=1;
}
function constructMenu(){
  bw=new checkBrowser()
  page=new makePageCoords()
  //Checking numbers for %
  this.mainwidth=checkp(this.mainwidth,0)
  this.mainheight=checkp(this.mainheight,1)
  this.subplacement=checkp(this.subplacement,1)
  this.subwidth=checkp(this.subwidth,0)
  this.subheight=checkp(this.subheight,1)
  this.subsubwidth=checkp(this.subsubwidth,0)
  this.subsubheight=checkp(this.subsubheight,1)
  this.subsubXplacement=checkp(this.subsubXplacement,1)
  this.subsubYplacement=checkp(this.subsubYplacement,1)
  if(this.backgroundbar){ //Backgroundbar part
    this.oBackgroundbar=new makeMenu(this,'div'+this.name+'Backgroundbar','',-1)
    this.oBackgroundbar.moveIt(this.checkp(this.backgroundbarfromleft,0),this.checkp(this.backgroundbarfromtop,1))
 if(this.menurows) this.oBackgroundbar.clipTo(0,this.checkp(this.backgroundbarsize),this.mainheight+(this.mBorderSize*2),0,1)
    else this.oBackgroundbar.clipTo(0,this.mainwidth+(this.mBorderSize*2),this.checkp(this.backgroundbarsize),0,1)
    if(!bw.ns4)this.oBackgroundbar.css.backgroundColor=this.backgroundbarcolor
    else this.oBackgroundbar.css.bgColor= this.backgroundbarcolor
  }
  this.x=this.checkp(this.fromleft,0); this.y=this.checkp(this.fromtop,1);
  for(i=0;i<this.mainmenus;i++){
    if(this.menuplacement!=0){
      if(this.menurows) this.x=this.checkp(this.menuplacement[i])
      else this.y=this.checkp(this.menuplacement[i])
    }
    this.back[i]= new makeMenu(this,'div'+this.name+'Mainback'+i,'',-1,i);
    this.back[i].clipTo(0,this.arrButtonWidth[i]+(this.mBorderSize*2),this.mainheight+(this.mBorderSize*2),0,1);
    this.back[i].moveIt(this.x,this.y);
    // Ebenen fuer NS
    if(bw.ns4){
      this[i]=new makeMenu(this,'div'+this.name+'Main'+i,'',-1,i)
      this[i].css.bgColor= this.mainbgcoloroff;
      this[i].hilite=new makeMenu(this,'div'+this.name+'Main'+i+'Hilite','',-1,i)
      this[i].hilite.clipTo(0,this.arrButtonWidth[i],this.mainheight,0,1)
      this[i].hilite.moveIt(this.x+this.mBorderSize,this.y+this.mBorderSize)
      this[i].hilite.css.bgColor=this.mainbgcoloron;
      this[i].cover=new makeMenu(this,'div'+this.name+'Main'+i+'Cover','',0,i)
      this[i].cover.clipTo(0,this.arrButtonWidth[i],this.mainheight,0,1)
      this[i].cover.moveIt(this.x+this.mBorderSize,this.y+this.mBorderSize);
    }
    else this[i]=new makeMenu(this,'div'+this.name+'Main'+i,'',0,i)
    this[i].clipTo(0,this.arrButtonWidth[i],this.mainheight,0,1)
    this[i].moveIt(this.x+this.mBorderSize,this.y+this.mBorderSize)
    this[i].bgChange(this.mainbgcoloroff)
    if(!bw.ns4)this.back[i].css.backgroundColor=this.mBorderColor;
    else this.back[i].css.bgColor= this.mBorderColor;
    if(!this.menurows) this.y+=this.arrButtonWidth[i]+this.checkp(this.pxbetween)+this.mBorderSize
    else {this.x+=this.arrButtonWidth[i]+this.checkp(this.pxbetween)+this.mBorderSize;/*this.s1BorderSize=this.mBorderSize*/}
    // submenues
    if(this.submenus[i]!='nosub'){
      this[i].subs=new makeMenu(this,'div'+this.name+'Sub'+i,'',1,i,-1)
      if(!this.menurows) this[i].subs.moveIt(this.subplacement+this[i].x,this[i].y-this.s1Separator)
      else this[i].subs.moveIt(this[i].x+this.s1BorderSize-this.s1BorderSize,this[i].y+this.subplacement) //s1
      if(!bw.ns4) this[i].subs.css.backgroundColor= this.s1BorderColor;
      else this[i].subs.css.bgColor= this.s1BorderColor;
      this.suby=this.s1BorderSize;
      this[i].sub=new Array()
      for(j=0;j<this.submenus[i]["main"];j++){
        if(bw.ns4){
          this[i].sub[j]=new makeMenu(this,'div'+this.name+'Sub'+i+'_'+j,'div'+this.name+'Sub'+i,-1,i,j)
          this[i].sub[j].css.bgColor=this.subbgcoloroff;
          this[i].sub[j].hilite=new makeMenu(this,'div'+this.name+'Sub'+i+'_'+j+'Hilite','div'+this.name+'Sub'+i,-1,i,j);
          this[i].sub[j].hilite.clipTo(0,this.subwidth,this.subheight,0,1)
          this[i].sub[j].hilite.moveIt(this.s1BorderSize,this.suby)
          this[i].sub[j].hilite.css.bgColor=this.subbgcoloron
          this[i].sub[j].cover=new makeMenu(this,'div'+this.name+'Sub'+i+'_'+j+'Cover','div'+this.name+'Sub'+i,2,i,j)
          this[i].sub[j].cover.clipTo(0,this.subwidth,this.subheight,0,1)
          this[i].sub[j].cover.moveIt(this.s1BorderSize,this.suby)
        }
        else this[i].sub[j]=new makeMenu(this,'div'+this.name+'Sub'+i+'_'+j,'div'+this.name+'Sub'+i,2,i,j)
       
       tmp1 = this.subheight;
     
    if (this.doubleheightFirstLevel.items[i][j]!= 0 ) {
                tmp1 = tmp1 +(this.subheight*this.doubleheightFirstLevel.items[i][j]) +(this.s2Separator*this.doubleheightFirstLevel.items[i][j]);
               
                this.suby -=(this.subheight*this.doubleheightFirstLevel.items[i][j]) +(this.s2Separator*this.doubleheightFirstLevel.items[i][j]);
                this[i].sub[j].clipTo(0,this.subwidth,tmp1,0,1)
             this[i].sub[j].moveIt(this.s2BorderSize,this.suby)
             this[i].sub[j].bgChange(this.subbgcoloroff)
             this.suby+=this.subheight+this.s2Separator
              
            }   
          
   
    
       
        this[i].sub[j].clipTo(0,this.subwidth,tmp1,0,1)
        this[i].sub[j].moveIt(this.s1BorderSize,this.suby)
        this[i].sub[j].bgChange(this.subbgcoloroff)
        this.suby+=this.subheight+this.s1Separator
        if (this.doubleheightFirstLevel.items[i][j] != 0) { 
            this.suby = this.suby+(this.doubleheightFirstLevel.items[i][j] *this.subheight)+(this.s2Separator*this.doubleheightFirstLevel.items[i][j]); 
        }
        if(this.submenus[i]["submenus"][j]>0){
          this.subsuby=this.s2BorderSize
          this[i].sub[j].subs=new makeMenu(this,'div'+this.name+'Sub'+i+'_'+j+'_sub','',1,i,j)
//hald: y-Positionierung der SubSub-Ebene muss nach oben rutschen,
//      wenn zu viele Eintraege enthalten sind
// ALT: this[i].sub[j].subs.moveIt(this[i].subs.x+this.subsubXplacement,this[i].subs.y+this[i].sub[j].y+this.subsubYplacement)
    maxsubsub = 10;
    total = this.submenus[i]["submenus"][j]
    endpos = j+total;
    rollback = 0;
    if (total>maxsubsub) endpos = maxsubsub;
    if (endpos>maxsubsub) rollback = (maxsubsub-endpos)*(this.subsubheight+this.s2Separator);
    yposi = this[i].subs.y+this.subsubYplacement // Anfang ganz oben
    yposi = yposi + this[i].sub[j].y // Verschieben auf die Position des Sub-Eintrags
    yposi = yposi + rollback // Verschieben des SubSub-Eintrags um entsprechende Felder
          this[i].sub[j].subs.moveIt(this[i].subs.x+this.subsubXplacement,yposi)
//----------------------------------------------------------------------------------------
          if(!bw.ns4)this[i].sub[j].subs.css.backgroundColor= this.s2BorderColor
          else this[i].sub[j].subs.css.bgColor= this.s2BorderColor
          this[i].sub[j].sub=new Array()
          for(a=0;a<this.submenus[i]["submenus"][j];a++){
            if(bw.ns4){
              this[i].sub[j].sub[a]=new makeMenu(this,'div'+this.name+'Sub'+i+'_'+j+'_sub'+a,'div'+this.name+'Sub'+i+'_'+j+'_sub',-1,i,j,a)
              this[i].sub[j].sub[a].css.bgColor=this.subsubbgcoloroff
              this[i].sub[j].sub[a].hilite=new makeMenu(this,'div'+this.name+'Sub'+i+'_'+j+'_sub'+a+'Hilite','div'+this.name+'Sub'+i+'_'+j+'_sub',-1,i,j,a)
              this[i].sub[j].sub[a].hilite.clipTo(0,this.subsubwidth,this.subsubheight,0,1)
              this[i].sub[j].sub[a].hilite.moveIt(this.s2BorderSize,this.subsuby)
              this[i].sub[j].sub[a].hilite.css.bgColor=this.subsubbgcoloron
              this[i].sub[j].sub[a].cover=new makeMenu(this,'div'+this.name+'Sub'+i+'_'+j+'_sub'+a+'Cover','div'+this.name+'Sub'+i+'_'+j+'_sub',3,i,j,a)
              this[i].sub[j].sub[a].cover.clipTo(0,this.subsubwidth,this.subsubheight,0,1)
              this[i].sub[j].sub[a].cover.moveIt(this.s2BorderSize,this.subsuby)
            }
            else this[i].sub[j].sub[a]=new makeMenu(this,'div'+this.name+'Sub'+i+'_'+j+'_sub'+a,'div'+this.name+'Sub'+i+'_'+j+'_sub',3,i,j,a)
   tmp = this.subsubheight;
   if (this.doubleheight.items[i][j][a] != 0 ) { 
    tmp = tmp +(this.subsubheight*this.doubleheight.items[i][j][a]) +(this.s2Separator*this.doubleheight.items[i][j][a]);
   }
            this[i].sub[j].sub[a].clipTo(0,this.subsubwidth,tmp,0,1)
            this[i].sub[j].sub[a].moveIt(this.s2BorderSize,this.subsuby)
            this[i].sub[j].sub[a].bgChange(this.subsubbgcoloroff)
            this.subsuby+=this.subsubheight+this.s2Separator
   if (this.doubleheight.items[i][j][a] != 0) { 
    this.subsuby = this.subsuby+(this.doubleheight.items[i][j][a] *this.subsubheight)+(this.s2Separator*this.doubleheight.items[i][j][a]); 
   }
          }
          this[i].sub[j].subs.clipTo(0,this.subsubwidth+(this.s2BorderSize*2),0,0,1)
          this[i].sub[j].subs.clipheight=this.subsuby+this.s2BorderSize-this.s2Separator
        }else this[i].sub[j].subs=0
      }
      this[i].subs.clipTo(0,this.subwidth+(this.s1BorderSize*2),0,0,1)
      this[i].subs.clipheight=this.suby+this.s1BorderSize-this.s1Separator
    }else this[i].subs=0
  }
//setTimeout("window.onresize=resized;",500)
  if(this.menueventoff=="mouse"){
    explorerev+=this.name+".hidemain(-1);"
    document.onmouseover=new Function(explorerev)
  }
}
function changesize(){
  page2=new makePageCoords()
  var deltaX = Math.abs( page2.x2-page.x2 );
  var deltaY = Math.abs( page2.y2-page.y2 );
  if( deltaX>20 || deltaY>20 ) location.reload()
}
function Array3D(x,y,z)
{
 this.items = new Array(x);
 for(i=0;i<y;i++)
 {
  this.items[i] = new Array(y);
  for(j=0;j<z;j++)
  {
   this.items[i][j] = new Array(z);
  }
 }
}
function Array2D(x,y)
{
 this.items = new Array(x);
 for(i=0;i<y;i++)
 {
  this.items[i] = new Array(y);
 }
}
function getAnzahlVorkommen(hayStack, needle){
 var c = 0;
 re = new RegExp(needle, "g");
 while (re.exec(hayStack)) c++;
 return c;
}
/*********************************************************************************************
Mouseevents (name==this (as in made object, not the event "this"))
*********************************************************************************************/
function cancelEv(){
  if(bw.ie4 || bw.ie5) window.event.cancelBubble=true
}
function mmover(num,name){
  name[num].bgChange(name.mainbgcoloron,name.mainHilite)
  if(name.menueventon=="mouse") name.menumain(num,1)
  name[num].nssubover=true
  cancelEv()
}
function mmout(num,name){
//hald alert("num="+num + " name=" +name.name);
  if(!isNaN(num)){
    if(name[num].subs==0 || !name.stayoncolor || !name[num].active)
      // Hintergundfarbe auf inaktiv name.bgChange
      name[num].bgChange(name.mainbgcoloroff,name.mainOff);
    name[num].nssubover=false
    // Hintergundfarbe auf inaktiv name.hideactive
    if(name.menueventoff=="mouse")
      if(bw.ns4) setTimeout("if(!"+name.name+"["+num+"].nssubover) "+name.name+".hideactive("+num+")",100)
  }
  cancelEv()
}
function submmover(num,subnum,name){
  name[num].sub[subnum].bgChange(name.subbgcoloron,name.subHilite)
  if(name.menueventon=="mouse") {name.menusub(num,subnum,1)}
  name[num].nssubover=true
  cancelEv()
}
function submmout(num,subnum,name){
  if(!isNaN(subnum)){
    if(!name.stayoncolor || !name[num].sub[subnum].active || name[num].sub[subnum].subs==0)
    name[num].sub[subnum].bgChange(name.subbgcoloroff,name.subOff)
  }
  cancelEv()
}
function subsubmmover(num,subnum,subsubnum,name){
  if(!isNaN(subnum)){
    name[num].sub[subnum].sub[subsubnum].bgChange(name.subsubbgcoloron,name.subsubHilite);
    name[num].nssubover=true
  }
  cancelEv()
}
function subsubmmout(num,subnum,subsubnum,name){
  if(!isNaN(subnum)){
    name[num].nssubover=false;
    name[num].sub[subnum].sub[subsubnum].bgChange(name.subsubbgcoloroff,name.subsubOff)
  }
  cancelEv()
}
/*********************************************************************************************
Showing submenus
*********************************************************************************************/
function menumain(num,mouse){
  if(this[num].subs!=0){
    clearTimeout(this[num].subs.tim)
    if(this[num].subs.clipy==0 || mouse){
      this.hidemain(num); this[num].subs.clipOut(this.menuspeed); this[num].active=1
    }else{
      this.hidemain(-1); this[num].active=0
    }
  }
  else{
    this.hidemain(-1);
    this[num].bgChange(this.mainbgcoloron,this.mainHilite)
  }
}
/*********************************************************************************************
Showing subsubmenus
*********************************************************************************************/
// Oeffnet ein SubSubMenue (Ebene 2) und schliesst ggf. das aktuelle geoeffnete Menue der Ebene 2
function menusub(num,sub,mouse){
  this.hidesubs(num,sub)
  if(this[num].sub[sub].subs!=0){
    if(this[num].sub[sub].subs.clipy==0 || mouse){
      this[num].sub[sub].active=1
      this[num].sub[sub].subs.clipOut(this.menusubspeed)
    }else{
      this[num].sub[sub].active=0
      this[num].sub[sub].subs.clipIn(this.menusubspeed)
    }
  }
}
/*********************************************************************************************
Hides the other sub menuitems if any are shown. Also calls the hidesubs to hide any showing
submenus.
*********************************************************************************************/
// Bei MouseOver auf ein Menue der Ebene 0 werden alle anderen Menues der Ebene 0 inkl. aller Submenues und SubSubMenues
function hidemain(num){
  for(i=0;i<this.mainmenus;i++){
    if(this[i].subs!=0){
      if(this[i].subs.clipy<=this[i].subs.clipheight){
        // SubSubMenues schliessen (Ebene 2)
        this.hidesubs(i,100)
        // SubMenues schliessen (Ebene 1) ausser, die der aktiven Ebene 0
        if(i!=num){
          clearTimeout(this[i].subs.tim)
          this[i].active=0
          this[i].bgChange(this.mainbgcoloroff)
          if(this.menurows)this[i].subs.clipIn(this.menuspeed)
          else{this[i].subs.clipy=0; this[i].subs.clipTo(0,this[i].subs.clipx,this[i].subs.clipy,0,1)}
        }
      }
    }else this[i].bgChange(this.mainbgcoloroff)
  }
}
/*********************************************************************************************
Hides the active submenuitems
*********************************************************************************************/
// hideactive auf NS wird aufgerufen bei:
// 1. MouseOut aus dem DHTML-Menue (Maus verlaesst das Menue komplett)
// 2. Beim Wechsel von einem Menuepunkt der Ebene 0 in einen anderen menuepunkt der Ebene 0
// num = Nummer des Menues der Ebene 0, das verlassen wird
function hideactive(num){
  if(this[num].subs!=0){
    // Submenues Ebene 2 (letze Ebene) schliessen
    this.hidesubs(num,100)
    clearTimeout(this[num].subs.tim)
    this[num].active=0
    this[num].bgChange(this.mainbgcoloroff)
    // Submenues Ebene 1 schliessen animiert oder nicht animiert
    if(this.menurows)this[num].subs.clipIn(this.menuspeed)
    else{this[num].subs.clipy=0; this[num].subs.clipTo(0,this[num].subs.clipx,this[num].subs.clipy,0,1)}
  }
}
/*********************************************************************************************
Hides the other subsub menuitems if any are shown.
*********************************************************************************************/
function hidesubs(num,sub){
  // Schleife uber alle Menuepunkte der Ebene 1 dieses Menues der Ebene 0
  for(j=0;j<this[num].sub.length;j++){
    if(this[num].sub[j].subs!=0 && j!=sub){
      if(this[num].sub[j].subs.clipy<=this[num].sub[j].subs.clipy
      || this[num].subs.clipy<this[num].subs.clipheight){
        clearTimeout(this[num].sub[j].subs.tim)
        this[num].sub[j].active=0
        this[num].sub[j].bgChange(this.subbgcoloroff)
        this[num].sub[j].subs.clipy=0
        this[num].sub[j].subs.clipTo(0,this[num].sub[j].subs.clipx,this[num].sub[j].subs.clipy,0,1)
      }
    }
  }
}
/*********************************************************************************************
These are the functions that writes the style and menus to the page.
*********************************************************************************************/
function makeStyle(){
 if(bw.ns4 || bw.mac) { 
  str='\n<style type="text/css">\n'
  str+='\tDIV.cl'+this.name+'Back{position:absolute; z-index:50; clip:rect(0,0,0,0)}\n'
  str+='\tDIV.cl'+this.name+'Main{position:absolute; z-index:51; clip:rect(0,0,0,0); xoverflow:hidden; width:'+(this.mainwidth-10)+'; '+this.clMain+'; color:'+this.mainOff+'}\n'
   // Styles der Buttons (mainmenues)
   for(k=0;k<this.arrButtonWidth.length;k++){
   str+='\tDIV.cl'+this.name+'Main'+k+' {position:absolute; z-index:51; clip:rect(0,0,0,0); xoverflow:hidden; width:'+(this.mainwidth-10)+'; '+this.clMain+'; color:'+this.mainOff+'}\n'
   }
  str+='\tDIV.cl'+this.name+'Sub{position:absolute; z-index:52; clip:rect(0,0,0,0); xoverflow:hidden; width:'+(this.subwidth-10)+'; '+this.clSub+'; color:'+this.subOff+'}\n'
  str+='\tDIV.cl'+this.name+'SubSub{position:absolute; z-index:54; clip:rect(0,0,0,0); width:'+(this.subsubwidth-10)+'; '+this.clSubSub+'; color:'+this.subsubOff+'}\n'
  if(bw.ns4){
    str+='\tDIV.cl'+this.name+'MainCover{position:absolute; z-index:51; clip:rect(0,0,0,0); xoverflow:hidden; width:'+(this.mainwidth-10)+'}\n'
    str+='\tDIV.cl'+this.name+'MainHilite{position:absolute; z-index:51; clip:rect(0,0,0,0); xoverflow:hidden; width:'+(this.mainwidth-10)+'; '+this.clMainHilite+'; color:'+this.mainHilite+'; visibility:hidden}\n'
    str+='\tDIV.cl'+this.name+'SubCover{position:absolute; z-index:52; clip:rect(0,0,0,0); xoverflow:hidden; width:'+(this.subwidth-10)+'}\n'
    str+='\tDIV.cl'+this.name+'SubHilite{position:absolute; z-index:52; clip:rect(0,0,0,0); xoverflow:hidden; width:'+(this.subwidth-10)+'; '+this.clSubHilite+'; color:'+this.subHilite+'; visibility:hidden}\n'
    str+='\tDIV.cl'+this.name+'SubSubCover{position:absolute; z-index:54; clip:rect(0,0,0,0); width:'+(this.subsubwidth-10)+'}\n'
    str+='\tDIV.cl'+this.name+'SubSubHilite{position:absolute; z-index:54; clip:rect(0,0,0,0); width:'+(this.subsubwidth-10)+'; '+this.clSubSubHilite+';color:'+this.subsubHilite+'; visibility:hidden}\n'
  }
  str+='\tDIV.cl'+this.name+'Subs{position:absolute; z-index:53; clip:rect(0,0,0,0); xoverflow:hidden}\n'
  str+='\t#div'+this.name+'Backgroundbar{position:absolute; z-index:50; clip:rect(0,0,0,0); xoverflow:hidden}\n'
  str+='\tA.clA'+this.name+'Main{'+this.clAMain+'; color:'+this.mainOff+'}\n'
  str+='\tA.clA'+this.name+'Sub{'+this.clASub+'; color:'+this.subOff+'}\n'
  str+='\tA.clA'+this.name+'SubSub{'+this.clASubSub+'; color:'+this.subsubOff+'}\n'
  str+='</style>'
  document.write(str)
 }
 else {  
  str='\n<style type="text/css">\n'
  /* SCREEN */
   str+='\t @media screen { \n'
   str+='\tDIV.cl'+this.name+'Back{position:absolute; z-index:50; clip:rect(0,0,0,0)}\n'
   str+='\tDIV.cl'+this.name+'Main{position:absolute; z-index:51; clip:rect(0,0,0,0); xoverflow:hidden; width:'+(this.mainwidth-10)+'; '+this.clMain+'; color:'+this.mainOff+'}\n'
   
   // Styles der Buttons (mainmenues)
   for(k=0;k<this.arrButtonWidth.length;k++){
     str+='\tDIV.cl'+this.name+'Main'+k+'{position:absolute; z-index:51; clip:rect(0,0,0,0); xoverflow:hidden; width:'+(this.arrButtonWidth[k]-10)+'; '+this.clMain+'; color:'+this.mainOff+'}\n'
   }
   str+='\tDIV.cl'+this.name+'Sub{position:absolute; z-index:52; clip:rect(0,0,0,0); xoverflow:hidden; width:'+(this.subwidth-10)+'; '+this.clSub+'; color:'+this.subOff+'}\n'
   str+='\tDIV.cl'+this.name+'SubSub{position:absolute; z-index:54; clip:rect(0,0,0,0); width:'+(this.subsubwidth-10)+'; '+this.clSubSub+'; color:'+this.subsubOff+'}\n'
   str+='\tDIV.cl'+this.name+'Subs{position:absolute; z-index:53; clip:rect(0,0,0,0); xoverflow:hidden}\n'
   str+='\t#div'+this.name+'Backgroundbar{position:absolute; z-index:50; clip:rect(0,0,0,0); xoverflow:hidden}\n'
   str+='\tA.clA'+this.name+'Main{'+this.clAMain+'; color:'+this.mainOff+'}\n'
   str+='\tA.clA'+this.name+'Sub{'+this.clASub+'; color:'+this.subOff+'}\n'
   str+='\tA.clA'+this.name+'SubSub{'+this.clASubSub+'; color:'+this.subsubOff+'}\n'
   str+='} \n'
  /* PRINT */
   str+='\t @media print { \n'
   str+='\tDIV.cl'+this.name+'Back{position:absolute; z-index:50; clip:rect(0,0,0,0);visibility:hidden;}\n'
   str+='\tDIV.cl'+this.name+'Main{position:absolute; z-index:51; clip:rect(0,0,0,0); xoverflow:hidden; width:'+(this.mainwidth-10)+'; '+this.clMain+'; color:'+this.mainOff+';visibility:hidden;}\n'
   str+='\tDIV.cl'+this.name+'Sub{position:absolute; z-index:52; clip:rect(0,0,0,0); xoverflow:hidden; width:'+(this.subwidth-10)+'; '+this.clSub+'; color:'+this.subOff+';visibility:hidden;}\n'
   str+='\tDIV.cl'+this.name+'SubSub{position:absolute; z-index:54; clip:rect(0,0,0,0); width:'+(this.subsubwidth-10)+'; '+this.clSubSub+'; color:'+this.subsubOff+';visibility:hidden;}\n'
   str+='\tDIV.cl'+this.name+'Subs{position:absolute; z-index:53; clip:rect(0,0,0,0); xoverflow:hidden;visibility:hidden;}\n'
   str+='\t#div'+this.name+'Backgroundbar{position:absolute; z-index:50; clip:rect(0,0,0,0); xoverflow:hidden;visibility:hidden;}\n'
   str+='\tA.clA'+this.name+'Main{'+this.clAMain+'; color:'+this.mainOff+';visibility:hidden;}\n'
   str+='\tA.clA'+this.name+'Sub{'+this.clASub+'; color:'+this.subOff+';visibility:hidden;}\n'
   str+='\tA.clA'+this.name+'SubSub{'+this.clASubSub+'; color:'+this.subsubOff+';visibility:hidden;}\n'
  str+='} \n'
  str+='</style>'
  document.write(str);
 }
}
function ALTmakeStyle(){
  str='\n<style type="text/css">\n'
  str+='\tDIV.cl'+this.name+'Back{position:absolute; z-index:50; clip:rect(0,0,0,0)}\n'
  str+='\tDIV.cl'+this.name+'Main{position:absolute; z-index:51; clip:rect(0,0,0,0); xoverflow:hidden; width:'+(this.mainwidth-10)+'; '+this.clMain+'; color:'+this.mainOff+'}\n'
  str+='\tDIV.cl'+this.name+'Sub{position:absolute; z-index:52; clip:rect(0,0,0,0); xoverflow:hidden; width:'+(this.subwidth-10)+'; '+this.clSub+'; color:'+this.subOff+'}\n'
  str+='\tDIV.cl'+this.name+'SubSub{position:absolute; z-index:54; clip:rect(0,0,0,0); width:'+(this.subsubwidth-10)+'; '+this.clSubSub+'; color:'+this.subsubOff+'}\n'
  if(bw.ns4){
    str+='\tDIV.cl'+this.name+'MainCover{position:absolute; z-index:51; clip:rect(0,0,0,0); xoverflow:hidden; width:'+(this.mainwidth-10)+'}\n'
    str+='\tDIV.cl'+this.name+'MainHilite{position:absolute; z-index:51; clip:rect(0,0,0,0); xoverflow:hidden; width:'+(this.mainwidth-10)+'; '+this.clMainHilite+'; color:'+this.mainHilite+'; visibility:hidden}\n'
    str+='\tDIV.cl'+this.name+'SubCover{position:absolute; z-index:52; clip:rect(0,0,0,0); xoverflow:hidden; width:'+(this.subwidth-10)+'}\n'
    str+='\tDIV.cl'+this.name+'SubHilite{position:absolute; z-index:52; clip:rect(0,0,0,0); xoverflow:hidden; width:'+(this.subwidth-10)+'; '+this.clSubHilite+'; color:'+this.subHilite+'; visibility:hidden}\n'
    str+='\tDIV.cl'+this.name+'SubSubCover{position:absolute; z-index:54; clip:rect(0,0,0,0); width:'+(this.subsubwidth-10)+'}\n'
    str+='\tDIV.cl'+this.name+'SubSubHilite{position:absolute; z-index:54; clip:rect(0,0,0,0); width:'+(this.subsubwidth-10)+'; '+this.clSubSubHilite+';color:'+this.subsubHilite+'; visibility:hidden}\n'
  }
  str+='\tDIV.cl'+this.name+'Subs{position:absolute; z-index:53; clip:rect(0,0,0,0); xoverflow:hidden}\n'
  str+='\t#div'+this.name+'Backgroundbar{position:absolute; z-index:50; clip:rect(0,0,0,0); xoverflow:hidden}\n'
  str+='\tA.clA'+this.name+'Main{'+this.clAMain+'; color:'+this.mainOff+'}\n'
  str+='\tA.clA'+this.name+'Sub{'+this.clASub+'; color:'+this.subOff+'}\n'
  str+='\tA.clA'+this.name+'SubSub{'+this.clASubSub+'; color:'+this.subsubOff+'}\n'
  str+='</style>'
  document.write(str)
}
/*
function makeMain(num,text,link,target){
  str=""
  if(this.backgroundbar && num==0){str+='\n<div id="div'+this.name+'Backgroundbar"></div>\n'}
  str+='<div id= "div'+this.name+'Mainback'+num+'" class="cl'+this.name+'Back"></div>\n'
  str+='\n\n<div id="div'+this.name+'Main'+num+'" class="cl'+this.name+'Main">'
  if(bw.ns4){
    str+=text;
    str+='</div>\n<div id="div'+this.name+'Main'+num+'Hilite" class="cl'+this.name+'MainHilite">'+text+'</div>\n'
    str+='<div id="div'+this.name+'Main'+num+'Cover" class="cl'+this.name+'MainCover"></div>\n'
    if(link) this.submenus[num]='nosub';
  }
  else{
    if(link){ str+='<a href="'+link+'" onclick= "return false"'; this.submenus[num]='nosub'
    }else str+='<a href="#" onclick="'+this.name+'.menumain('+num+'); return false"'
    if(target) str+=' target="'+target+'" '
    str+=' class="clA'+this.name+'Main">'+text+'</a></div>\n'
  }
  this.target[num]= (target)?target:0;
  this.lnk[num]=link;
  this.sublnk[num]= new Array();
  this.subsublnk[num]= new Array();
  this.subtarget[num]= new Array();
  this.subsubtarget[num]= new Array();
  this.mainmenus++;
  document.write(str)
}*/
function makeMain(num,text,link,target){
  str=""
  if(this.backgroundbar && num==0){str+='\n<div id="div'+this.name+'Backgroundbar"></div>\n'}
  str+='<div id= "div'+this.name+'Mainback'+num+'" class="cl'+this.name+'Back"></div>\n'
  str+='\n\n<div id="div'+this.name+'Main'+num+'" class="cl'+this.name+'Main'+num+'">'
  /*if(bw.ns4){
    str+='<img src="'+imagepath+text+'.gif" name="ig'+this.name+'Main'+num+'" width="136" height="18" alt="" border="0">';
    str+='</div>\n<div id="div'+this.name+'Main'+num+'Hilite" class="cl'+this.name+'MainHilite"><img src="'+imagepath+text+'.gif" width="136" height="18" alt="" border="0"></div>\n'
    str+='<div id="div'+this.name+'Main'+num+'Cover" class="cl'+this.name+'MainCover"><img src="'+imagepath+text+'.gif" width="136" height="18" alt="" border="0"></div>\n'
    if(link) this.submenus[num]='nosub';
  }
    else{
    if(link){ str+='<a href="'+link+'" onclick= "return false"'; this.submenus[num]='nosub'
    }else str+='<a href="#" onclick="'+this.name+'.menumain('+num+'); return false"'
    if(target) str+=' target="'+target+'" '
    str+=' class="clA'+this.name+'Main"><img src="'+imagepath+text+'.gif" width="136" height="18" alt="" border="0"></a></div>\n'
  }
  */ //Ohne Rollover
  // HALD: Rollover-Anfang ---------
   bildpos  = text.indexOf("_selected");
  if (bildpos>0) bildname = text.substr(0,bildpos); else bildname = text;
  if(bw.ns4){
    str+='<img src="'+imagepath+text+'.gif" name="img'+this.name+'Main'+num+'" width="'+this.arrButtonWidth[num]+'" height="18" alt="" border="0">';
    str+='</div>\n<div id="div'+this.name+'Main'+num+'Hilite" class="cl'+this.name+'MainHilite"><img src="'+imagepath+bildname+'_selected.gif" width="'+this.arrButtonWidth[num]+'" height="22" alt="" border="0"></div>\n'
    str+='<div id="div'+this.name+'Main'+num+'Cover" class="cl'+this.name+'MainCover"><img src="'+imagepath+'1pixt.gif" width="'+this.arrButtonWidth[num]+'" height="18" alt="" border="0"></div>\n'
    if(link) this.submenus[num]='nosub';
  }
    else{
    if(link){ str+='<a href="'+link+'" onclick= "return false"'; this.submenus[num]='nosub'
    }else str+='<a href="#" onclick="'+this.name+'.menumain('+num+'); return false"'
    if(target) str+=' target="'+target+'" '
    str+=' onMouseOut="MM_swapImgRestore();"  onMouseOver="MM_swapImage(\''+bildname+'\',\'\',\''+imagepath+bildname+'_selected.gif\',1);"'
    str+=' class="clA'+this.name+'Main"><img src="'+imagepath+text+'.gif" width="'+this.arrButtonWidth[num]+'" height="22" alt="" border="0" name="'+bildname+'"></a></div>\n'
  }
  // Rollover-Ende ---------
  this.target[num]= (target)?target:0;
  this.lnk[num]=link;
  this.sublnk[num]= new Array();
  this.subsublnk[num]= new Array();
  this.subtarget[num]= new Array();
  this.subsubtarget[num]= new Array();
  this.mainmenus++;
  document.write(str);
}
function makeSub(num,subnum,text,link,total,target){
  
  str=""
  if(subnum==0) str='<div id="div'+this.name+'Sub'+num+'" class="cl'+this.name+'Subs">\n'
  str+='\t<div id="div'+this.name+'Sub'+num+'_'+subnum+'" class="cl'+this.name+'Sub">'
    anzUmbrueche = getAnzahlVorkommen(text, "&lt;br&gt;");
  this.doubleheightFirstLevel.items[parseInt(num)][parseInt(subnum)] = anzUmbrueche;
  mark=text.substr(0,1);
  menutext=text; 
  if (mark == '>' || mark == '=') {
   menutext=text.substr(1,text.length-1); 
  } 
  
  for(i=0; i<anzUmbrueche; i++) {
    menutext = menutext.replace(/&lt;br&gt;/, "<br>");
    menutext = "<div style='float:left;'>"+menutext+"</div>";  
  }
 
  
  //text nach Pfeil untersuchen und entsprechendes Image voranstellen
 
  if (mark == '>' || mark == '=') {text="<img src='"+imagepath+"/topic_13-10.gif' width=10 height=13 border=0 align=left>"+menutext;}
  else text="<img src='"+imagepath+"/1pixt.gif' width=10 height=13 border=0 align=left>"+menutext;
  
  
  if(bw.ns4){
    str+=text;
    str+='</div>\n\t<div id="div'+this.name+'Sub'+num+'_'+subnum+'Hilite" class="cl'+this.name+'SubHilite">'+text+'</div>\n'
    str+='\t<div id="div'+this.name+'Sub'+num+'_'+subnum+'Cover" class="cl'+this.name+'SubCover"></div>\n'
  }
  else{
    if(link) str+='<a href="'+link+'" onclick= "return false"'; else str+='<a href="#" onclick="'+this.name+'.menusub('+num+','+subnum+'); return false"'
    if(target) str+=' target="'+target+'" '
    str+=' class="clA'+this.name+'Sub"><font color="#000000">'+text+'</font></a></div>\n'
    // <font></font>-Tag direkt eingetragen , da sonst Probleme mit IE/Mac
    // Farbwechsel nun nicht mehr moeglich auf IE (Bereiche Sub und SubSub)
  }
  this.subtarget[num][subnum]= (target)?target:0;
  this.sublnk[num][subnum]=link;
  this.subsublnk[num][subnum]= new Array();
  this.subsubtarget[num][subnum]= new Array();
  if(subnum==total-1){
    str+='</div>\n'; this.submenus[num]=new Array()
    this.submenus[num]["main"]=total; this.submenus[num]["submenus"]=new Array()
  }
  document.write(str)
}
function makeSubSub(num,subnum,subsubnum,text,link,total,target){
  str=""
  if(subsubnum==0) str='<div id="div'+this.name+'Sub'+num+'_'+subnum+'_sub" class="cl'+this.name+'Subs">\n'
  str+='\t<div id="div'+this.name+'Sub'+num+'_'+subnum+'_sub'+subsubnum+'" class="cl'+this.name+'SubSub">'
  anzUmbrueche = getAnzahlVorkommen(text, "&lt;br&gt;");
   this.doubleheight.items[parseInt(num)][parseInt(subnum)][parseInt(subsubnum)] = anzUmbrueche;
   for(i=0; i<anzUmbrueche; i++) {
    text = text.replace(/&lt;br&gt;/, "<br>");
   }   
if(bw.ns4){
    str+=text;
    str+='</div>\n\t<div id="div'+this.name+'Sub'+num+'_'+subnum+'_sub'+subsubnum+'Hilite" class="cl'+this.name+'SubSubHilite">'+text+'</div>\n';
    str+='\t<div id="div'+this.name+'Sub'+num+'_'+subnum+'_sub'+subsubnum+'Cover" class="cl'+this.name+'SubSubCover"></div>\n'
  }
  else{
    if(link) str+='<a href="'+link+'" onclick= "return false"'; else str+='<a href="#"'
    if(target) str+=' target="'+target+'" '
    str+=' class="clA'+this.name+'SubSub"><font color="#000000">'+text+'</font></a></div>\n'
  }
  this.subsubtarget[num][subnum][subsubnum]=(target)?target:0;
  this.subsublnk[num][subnum][subsubnum]=link;
  if(subsubnum==total-1){str+='</div>\n'; this.submenus[num]["submenus"][subnum]=total}
  document.write(str)
}
function getImageWidth(sImageTag){
  
  if(sImageTag == "")  return 136;
  sImageTag = sImageTag.toLowerCase();
  sImageTag = sImageTag.replace(/"/g,"");
  sImageTag = sImageTag.replace(/'/g,"");
  sImageTag = sImageTag.replace(/.*width=/,"");
  var arrParams = sImageTag.split(' ');
  if(arrParams[0] == "") arrParams[0]="136"; // default.
  return arrParams[0];
}
/*********************************************************************************************
END Menu script
*********************************************************************************************/
function goMenus(){
oMenu=new menuObj('oMenu') //Place a name for the menu in there. Must be uniqe for each menu
//Setting menu object variables
//Style variables NOTE: The stylesheet have been removed. Use this instead! (some styles are there by default, like position:absolute ++)
/*************************************************************/
// NEW NOTE: Don't specify your font colors in the styles below. They'll be ignored. Use the variables further down in the script.
// The styles with the 'Hilite' suffixes are for the Netscape "on" state.
// If you want IE to display the "hand" cursor over the links, add "cursor:hand;" to each of the three classes with the "clA" prefixes at the bottom.
/*************************************************************/
if(bw.mac){
oMenu.clMain='padding:0px; font-family:arial; font-size:12px; font-weight:bold' //The style for the main menus
oMenu.clMainHilite='padding:0px; font-family:arial; font-size:12px; font-weight:bold;' //The style for NN main mouseovers
oMenu.clSub='padding-top:2px; padding-left:0px; font-family:arial; font-size:10px;' //The style for the submenus
oMenu.clSubHilite='padding-top:2px; padding-left:0px; font-family:arial; font-size:10px;' //The style for NN submenu mouseovers
oMenu.clSubSub='padding-top:2px; padding-left:17px; font-family:arial; font-size:10px;' //The style for the subsubmenus
oMenu.clSubSubHilite='padding-top:2px; padding-left:17px; font-family:arial; font-size:10px;' //The style for NN subsubmenu mouseovers
} else {
oMenu.clMain='padding:0px; font-family:arial; font-size:12px; font-weight:bold' //The style for the main menus
oMenu.clMainHilite='padding:0px; font-family:arial; font-size:12px; font-weight:bold;' //The style for NN main mouseovers
oMenu.clSub='padding-top:2px; padding-left:0px; font-family:arial; font-size:11px;' //The style for the submenus
oMenu.clSubHilite='padding-top:2px; padding-left:0px; font-family:arial; font-size:11px;' //The style for NN submenu mouseovers
oMenu.clSubSub='padding-top:2px; padding-left:17px; font-family:arial; font-size:11px;' //The style for the subsubmenus
oMenu.clSubSubHilite='padding-top:2px; padding-left:17px; font-family:arial; font-size:11px;' //The style for NN subsubmenu mouseovers
}
oMenu.clAMain='text-decoration:none; cursor:default' //The style for the main links
oMenu.clASub='text-decoration:none; cursor:default' //The style for the sub links
oMenu.clASubSub='text-decoration:none; cursor:default' //The style for the subsub links
/***************************************
Border and separator variables
NOTE: The first sub border (s1BorderSize) will default to the main border size if you're arranging the menus in columns across the top (menurows=1). Only if the menus are in left-hand rows (menurows=0) will the s1BorderSize variable be applied.
****************************************/
oMenu.mBorderColor= '999999';
oMenu.s1BorderColor= '999999';
oMenu.s2BorderColor= '999999';
oMenu.mBorderSize=  0;    // The "frame" border size
oMenu.s1BorderSize= 1;
oMenu.s2BorderSize= 1;
oMenu.s1Separator= 1;    // The borders between the menu items
oMenu.s2Separator= 1;
/****************************************
*****************************************/
//Page size
  //pageWidth=(bw.ie4 || bw.ie5)?document.body.offsetWidth-4:innerWidth-1;
  pageWidth=(document.body.offsetWidth)?document.body.offsetWidth-1:innerWidth-1;
  if( !bw.ns5 && !bw.opera) pageWidth-=19;
  if (bw.mac && (bw.ie4 || bw.ie5)) pageWidth+=20; // Verrutsch
  //if (bw.mac && (bw.ns4)) pageWidth+=20; // Verrutsch auf MAC Netscape
  
  // Scrollbar auf FireFox immer anzeigen
  if ( bw.ns || bw.mac ) document.body.style.overflowY = 'scroll';   
//Background bar properties
oMenu.backgroundbar=0 //Set to 0 if no backgroundbar
oMenu.backgroundbarfromleft=(pageWidth-gright)/2+1 //The left placement of the backgroundbar in pixel or %
oMenu.backgroundbarfromtop=22 //The top placement of the backgroundbar  in pixel or %
oMenu.backgroundbarsize="544" //The size of the bar in pixel or %
oMenu.backgroundbarcolor="#0033cc" //The backgroundcolor of the bar
if (oMenu.backgroundbarfromleft<0){
  oMenu.backgroundbarfromleft=0;
} //flori added because of small screens
oMenu.mainheight=22 //The height of the main menuitems in pixel or %
//OLD: MHald2005: Die Breite jedes Buttons wird jetzt individuell in einem Array definiert, siehe: oMenu.arrButtonWidth 
oMenu.mainwidth=136 //The width of the main menuitems  in pixel or %
/**************************************************************/
// NEW VARIABLES
oMenu.mainOff= '000000';  // The main menu font "off" color
oMenu.mainHilite= 'ffff00';  // The main menu font "on" color
oMenu.subOff= '000000'    // The submenu font "off" color
oMenu.subHilite= '000000';  // The submenu font "on" color
oMenu.subsubOff= '000000'  // The subsubmenu font "off" color
oMenu.subsubHilite= '000000'  // The subsubmenu font "on" color
/**************************************************************/
/*These are new variables. In this example they are set like the previous version*/
oMenu.subwidth=134 // ** NEW ** The width of the submenus
oMenu.subheight=17 //The height if the subitems in pixel or %
oMenu.subsubwidth=135 // ** NEW ** The width of the subsubmenus in pixel or %
oMenu.subsubheight=oMenu.subheight //** NEW ** The height if the subsubitems in pixel or %
oMenu.subplacement=oMenu.mainheight //** NEW ** Relative to the main item
oMenu.subsubXplacement=oMenu.subwidth+1 //** NEW ** The X placement of the subsubmenus, relative to the sub item
oMenu.subsubYplacement=-1 //** NEW ** The Y placement of the subsubmenus, relative to the sub item
oMenu.mainbgcoloroff='#0033cc' //The backgroundcolor of the main menuitems
oMenu.mainbgcoloron='#000099' //The backgroundcolor on mouseover of the main menuitems
oMenu.subbgcoloroff='#ffffff' //The backgroundcolor of the sub menuitems
oMenu.subbgcoloron='#dedede' //The backgroundcolor on mouseover of the sub menuitems
oMenu.subsubbgcoloroff='#dedede' //The backgroundcolor of the subsub menuitems
oMenu.subsubbgcoloron='#999999' //The backgroundcolor on mouseover of the subsub menuitems
oMenu.doubleheight = new Array3D(100,100,100); // Array zwecks mehrzeiliger Anzeige
oMenu.doubleheightFirstLevel = new Array3D(100,100); // Array zwecks mehrzeiliger Anzeige
if (bw.mac) {
oMenu.menuspeed=999 //The speed of the clipping in px
oMenu.menusubspeed=999 //The speed of the submenus clipping in px
} else {
oMenu.menuspeed=10 //The speed of the clipping in px
oMenu.menusubspeed=15 //The speed of the submenus clipping in px
}
oMenu.menurows=1 //Set to 0 if you want rows and to 1 if you want columns
//Placement of the menuitems
//Example in %:
//oMenu.menuplacement=new Array("20%","40%","60%","50%","65%") //Remember to make the arrays contain as many values as you have main menuitems
//Example in px: (remember to use the ' ' around the numbers)
//oMenu.menuplacement=new Array(10,200,300,400,500)
//Example right beside eachother (only adding the pxbetween variable)
oMenu.menuplacement=0
//If you use the "right beside eachother" you cant how many pixel there should be between each here
oMenu.pxbetween=0 //in pixel or %
//And you can set where it should start from the left here
oMenu.fromleft=(pageWidth-gright)/2+1 //in pixel or %
if (oMenu.fromleft<0){
  oMenu.fromleft=0;
} //flori added because of small screens
//This is how much from the top the menu should be.
oMenu.fromtop=30 //in pixel or %
//
//



/********************************************************************************
Breiten der Buttons Ebene 1 ermitteln
********************************************************************************/
  oMenu.arrButtonWidth = new Array();
  var arrButtonImage   = new Array(
   '<img src="/sys/images/menu_nav_de_1.gif" border="0" width="104" height="22">', /* Button 1: <img src="/sys/images/menu_nav_de_1_selected.gif" border="0" width="104" height="22"> */
   '<img src="/sys/images/menu_nav_de_2.gif" border="0" width="74" height="22">', /* Button 2: <img src="/sys/images/menu_nav_de_2_selected.gif" border="0" width="74" height="22">*/ 
   '<img src="/sys/images/menu_nav_de_3.gif" border="0" width="132" height="22">', /* Button 3: <img src="/sys/images/menu_nav_de_3_selected.gif" border="0" width="132" height="22">*/
   '<img src="/sys/images/menu_nav_de_4.gif" border="0" width="120" height="22">', /* Button 4: <img src="/sys/images/menu_nav_de_4_selected.gif" border="0" width="120" height="22">*/
   '<img src="/sys/images/menu_nav_de_5.gif" border="0" width="114" height="22">', /* Button 5: <img src="/sys/images/menu_nav_de_5_selected.gif" border="0" width="114" height="22">*/
   '', /* Button 6: */
   '', /* Button 7: */
   '', /* Button 8: */
   ''  /* Button 9: */
  );

  // Bildbreiten in Array speichern
  for(j=0; j<arrButtonImage.length; j++) {
    if( arrButtonImage[j] != "" ) $iWidthTmp = parseInt(getImageWidth(arrButtonImage[j])) ;  
    else                          $iWidthTmp = 0;
    
    oMenu.arrButtonWidth[oMenu.arrButtonWidth.length] = $iWidthTmp;   
  }

  // Defaultwerte fuer Übergang alte Version -> neue Version
  // Falls weniger als 4 Bilder vorhanden sind den Rest mit einen Standardwert festlegen

   for(j=0; j<4; j++) {
     if( !oMenu.arrButtonWidth[j] || oMenu.arrButtonWidth[j] < 10) {
       oMenu.arrButtonWidth[j] = 136;
     }
     if( !arrButtonImage[j] || arrButtonImage[j] == "") {
       iIndex = j+1;
       arrButtonImage[j] = "menu_nav_"+jsLanguage+"_"+iIndex;
     }
   } 
  
  //Writing out the style for the menu (leave this line!)
  oMenu.makeStyle();




/********************************************************************************
Construct your menus below
********************************************************************************/
  //MAIN 0
  //Main items:
  // makeMain(MAIN_NUM,'TEXT','LINK','FRAME_TARGET') (set link to 0 if you want submenus of this menu item)
  //oMenu.makeMain(0,'Voith Holding',0)
  oMenu.makeMain(0,'menu_nav_'+jsLanguage+'_1'+selected[1],0);
    //Sub items:
    // makeSub(MAIN_NUM,SUB_NUM,'TEXT','LINK',TOTAL,'FRAME_TARGET') (set link to 0 if you want submenus of this menu item)
    oMenu.makeSub(0,0,'=Struktur', sServerURL+'/d_konzern_struktur.htm',11);
//    oMenu.makeSub(0,1,'=Careers@Voith', sServerURL+'', 11);
    oMenu.makeSub(0,1,'=Daten', sServerURL+'/d_konzern_daten.htm',11);
    oMenu.makeSub(0,2,'=Philosophie', sServerURL+'/voith_com_de_Philosophie.htm',11);
    oMenu.makeSub(0,3,'=Geschichte', sServerURL+'/voith_com_de_geschichte.htm',11);
    oMenu.makeSub(0,4,'Einkauf', sServerURL+'/einkauf.htm',11);
    oMenu.makeSub(0,5,'J&auml;hrliches Dokument', sServerURL+'/d_konzern_jaehrlichesdokument.htm',11);
    //oMenu.makeSub(0,6,'Umwelterkl&auml;rung', sServerURL+'',11);
    oMenu.makeSub(0,6,'Datenschutzerkl&auml;rung', sServerURL+'/datenschutz.htm',11);
    oMenu.makeSub(0,7,'Rechtliche Hinweise', sServerURL+'/rechtliche-hinweise.htm',11);
    oMenu.makeSub(0,8,'Compliance', sServerURL+'/verhaltenscodex.htm',11);
    oMenu.makeSub(0,9,'Nachhaltigkeitsbericht', sServerURL+'/nachhaltigkeit.htm',11);
    oMenu.makeSub(0,10,'Hanns-Voith-Stiftung', sServerURL+'/d-hanns-voith-stiftung.html',11);

    //oMenu.makeSub(0,3,'=Kultur', sServerURL+'/d_konzern_kultur.htm',5);
     //SubSub items:
      // makeSubSub(MAIN_NUM,SUB_NUM,SUBSUB_NUM,'TEXT','LINK',TOTAL,'FRAME_TARGET')
      oMenu.makeSubSub(0,0,0,'Organisationsstruktur', sServerURL+'/d_konzern_struktur_organisationsstruktur.htm', 4);
      oMenu.makeSubSub(0,0,1,'Standorte', sServerURL+'/d_konzern_struktur_standorte.php3', 4);
      oMenu.makeSubSub(0,0,2,'Gesch&auml;ftsf&uuml;hrung', sServerURL+'/d_konzern_struktur_konzernvorstand.htm',4);
      oMenu.makeSubSub(0,0,3,'Aufsichtsrat', sServerURL+'/d_konzern_struktur_aufsichtsrat.htm', 4);

      //oMenu.makeSubSub(0,1,0,'Stellenangebote', sServerURL+'', 5);
      //oMenu.makeSubSub(0,1,1,'Europa', sServerURL+'', 5);
      //oMenu.makeSubSub(0,1,2,'Amerika', sServerURL+'', 5);
      //oMenu.makeSubSub(0,1,3,'Asien / Australien', sServerURL+'', 5);
      //oMenu.makeSubSub(0,1,4,'Afrika', sServerURL+'', 5);

      oMenu.makeSubSub(0,1,0,'Umsatz', sServerURL+'/d_konzern_daten_umsatz.htm', 6);
      oMenu.makeSubSub(0,1,1,'Auftragseingang', sServerURL+'/d_konzern_daten_auftragseingang.php', 6);
      oMenu.makeSubSub(0,1,2,'Ergebnis', sServerURL+'/d_konzern_daten_ergebnis.htm', 6);
      oMenu.makeSubSub(0,1,3,'Investition', sServerURL+'/d_konzern_daten_investitionabschreibung.htm', 6);
      oMenu.makeSubSub(0,1,4,'Forschung', sServerURL+'/d_konzern_daten_forschungentwicklung.htm', 6);
      oMenu.makeSubSub(0,1,5,'Mitarbeiter', sServerURL+'/d_konzern_daten_mitarbeiter.htm', 6);

      oMenu.makeSubSub(0,2,0,'Vertrauen', sServerURL+'/d_konzern_kultur_selbstverstaendnis_unsereaufgaben.htm', 2);
      oMenu.makeSubSub(0,2,1,'Zuverl&auml;ssigkeit', sServerURL+'/d_konzern_kultur_selbstverstaendnis_unserewerte.htm', 2);

      oMenu.makeSubSub(0,3,0,'1825-1867', sServerURL+'/d_konzern_kultur_geschichte_1825to1867.htm', 7);
      oMenu.makeSubSub(0,3,1,'1867-1913', sServerURL+'/d_konzern_kultur_geschichte_1867to1913.htm', 7);
      oMenu.makeSubSub(0,3,2,'1913-1945', sServerURL+'/d_konzern_kultur_geschichte_1913to1945.htm', 7);
      oMenu.makeSubSub(0,3,3,'1945-1973', sServerURL+'/d_konzern_kultur_geschichte_1945to1973.htm', 7);
      oMenu.makeSubSub(0,3,4,'1973-1986', sServerURL+'/d_konzern_kultur_geschichte_1973to1986.htm', 7);
      oMenu.makeSubSub(0,3,5,'1986-2000', sServerURL+'/d_konzern_kultur_geschichte_1986to2000.htm', 7);
      oMenu.makeSubSub(0,3,6,'2001-heute', sServerURL+'/voith_com_de_Konzern_Kultur_Geschichte_2001toheute.html', 7);

      //oMenu.makeSubSub(0,3,0,'Engineered reliability', sServerURL+'/d_konzern_kultur_selbstverstaendnis.htm', 2);
      //oMenu.makeSubSub(0,3,1,'Geschichte', sServerURL+'/d_konzern_kultur_geschichte.htm', 2);
  //MAIN 1
  //oMenu.makeMain(1,'Leistungen',0)
  oMenu.makeMain(1,'menu_nav_'+jsLanguage+'_2'+selected[2],0);

    oMenu.makeSub(1,0,'Papier', sServerURL+'/d_produkteundservices_papier.htm', 5);
    oMenu.makeSub(1,1,'Energie', sServerURL+'/d_produkteundservices_energie.htm', 5);
    oMenu.makeSub(1,2,'Mobilit&auml;t', sServerURL+'/d_produkteundservices_mobilitaet.htm', 5);
    oMenu.makeSub(1,3,'Service', sServerURL+'/d_produkteundservices_service.htm', 5);
    oMenu.makeSub(1,4,'=Produktfinder', sServerURL+'/voith_com_de_produkteundservices_produktfinder.htm', 5);

        oMenu.makeSubSub(1,4,0,'Produkte nach M&auml;rkten', sServerURL+'/de_produkteundservices_produktfinder_nachmaerkten.php', 2);
        oMenu.makeSubSub(1,4,1,'Produkte A-Z', sServerURL+'/de_produkteundservices_produktfinder_abisz.php', 2);
    
//    oMenu.makeSub(1,0,'Kompetenz', sServerURL+'/de_produkteundservices_produktfinder.php', 4);
//    oMenu.makeSub(1,1,'Produkt&uuml;bersicht', sServerURL+'/d_leistungen_serviceundprodukte.htm', 4);
//    oMenu.makeSub(1,2,'Forschung Entwicklung', sServerURL+'/d_leistungen_forschungentwicklung.htm', 4);
//    oMenu.makeSub(1,3,'Druckschriften', sServerURL+'/d_leistungen_druckschriften.php3', 4);
      //SubSub items:
      // makeSubSub(MAIN_NUM,SUB_NUM,SUBSUB_NUM,'TEXT','LINK',TOTAL,'FRAME_TARGET')
  //MAIN 2
  //oMenu.makeMain(2,'Aktuelles',0)

  oMenu.makeMain(2,'menu_nav_'+jsLanguage+'_3'+selected[3],0);
//    oMenu.makeSub(2,0,'=Basispressemappe', sServerURL+'/d_aktuelles_pressemappe.htm', 7);
 //   oMenu.makeSub(2,0,'Besuch der &lt;br&gt;Bundeskanzlerin  ', sServerURL+'', 5);
//    oMenu.makeSub(2,3,'Wichtige Ereignisse', sServerURL+'', 5);


    oMenu.makeSub(2,0,'Druckschriften', sServerURL+'/d_aktuelles_halbjahresbericht.php', 4);
    oMenu.makeSub(2,1,'=Presseinformationen', sServerURL+'/d_aktuelles_presseinformationen_voith_latest.php3', 4);
    oMenu.makeSub(2,2,'=Veranstaltungen', sServerURL+'/d_aktuelles_veranstaltungen.htm', 4);
    oMenu.makeSub(2,3,'Wissensfabrik', sServerURL+'/de_aktuelles_wissensfabrik.htm', 4);
//    oMenu.makeSub(2,4,'Land der Ideen', sServerURL+'', 5);



 //   oMenu.makeSub(2,5,'Klingelton', sServerURL+'', 6);

//    oMenu.makeSub(2,4,'Brasilien', sServerURL+'/brasilien.htm', 5);
      //SubSub items:
      // makeSubSub(MAIN_NUM,SUB_NUM,SUBSUB_NUM,'TEXT','LINK',TOTAL,'FRAME_TARGET')
      
//   oMenu.makeSubSub(2,0,0,'Chinesisch', sServerURL+'/d_aktuelles_pressemappe_chinesisch.htm', 8);
//   oMenu.makeSubSub(2,0,1,'Deutsch', sServerURL+'/d_aktuelles_pressemappe_deutsch.htm', 8);
//   oMenu.makeSubSub(2,0,2,'Englisch', sServerURL+'/d_aktuelles_pressemappe_englisch.htm', 8);
//   oMenu.makeSubSub(2,0,3,'Finnisch', sServerURL+'/d_aktuelles_pressemappe_finnisch.htm', 8);
//   oMenu.makeSubSub(2,0,4,'Hindi', sServerURL+'/d_aktuelles_pressemappe_hindi.htm', 8);
//   oMenu.makeSubSub(2,0,5,'Portugiesisch', sServerURL+'/d_aktuelles_pressemappe_portugiesisch.htm', 8);
//   oMenu.makeSubSub(2,0,6,'Russisch', sServerURL+'/d_aktuelles_pressemappe_russisch.htm', 8);
//   oMenu.makeSubSub(2,0,7,'Schwedisch', sServerURL+'/d_aktuelles_pressemappe_schwedisch.htm', 8);
   
   
   oMenu.makeSubSub(2,1,0,'Recherche', sServerURL+'/d_aktuelles_presseinformationen_recherche.php', 6);
      oMenu.makeSubSub(2,1,1,'Unternehmensinfos', sServerURL+'/d_aktuelles_presseinformationen_unternehmensinformationen.htm', 6);
      oMenu.makeSubSub(2,1,2,'Pressebilder', sServerURL+'/d_aktuelles_presseinformationen_bilddatenbank.htm', 6);
      oMenu.makeSubSub(2,1,3,'Druckschriften', sServerURL+'/d_aktuelles_presseinformationen_druckschriften.php3', 6);
      oMenu.makeSubSub(2,1,4,'News-Service', sServerURL+'/d_aktuelles_presseinformationen_infoservice.php', 6);
      oMenu.makeSubSub(2,1,5,'Kontakt', sServerURL+'/d_aktuelles_presseinformationen_kontakt.htm', 6);

      oMenu.makeSubSub(2,2,0,'Messen', sServerURL+'/d_aktuelles_veranstaltungen_messen.php', 2);
      oMenu.makeSubSub(2,2,1,'Konferenzen', sServerURL+'/konferenzen.php', 2);

      //oMenu.makeSubSub(2,5,0,'Walk of Ideas ', sServerURL+'', 1);
        //oMenu.makeSubSub(2,5,0,'365 Orte im Land der Ideen', sServerURL+'', 1);


  //MAIN 3
  //oMenu.makeMain(3,'Konzernbereiche',0)
  oMenu.makeMain(3,'menu_nav_'+jsLanguage+'_4'+selected[4],0);
//    oMenu.makeSub(3,0,'=Voith Paper Technology', '#', 5, '_self')
    oMenu.makeSub(3,0,'Voith Paper', 'http://www.voithpaper.de', 5, '_self')
    oMenu.makeSub(3,1,'Voith Hydro', 'http://www.voithhydro.de', 5, '_self')
    oMenu.makeSub(3,2,'Voith Turbo', 'http://www.voithturbo.de', 5, '_self')
    oMenu.makeSub(3,3,'Voith Indust. Services', 'http://www.voithindustrialservices.de/', 5, '_self')
    oMenu.makeSub(3,4,'=Voith Others', '#', 5)

        //SubSub items:
        // makeSubSub(MAIN_NUM,SUB_NUM,SUBSUB_NUM,'TEXT','LINK',TOTAL,'FRAME_TARGET')
//        oMenu.makeSubSub(3,0,0,'Voith Paper', 'http://www.voithpaper.de', 2, '_self')
//        oMenu.makeSubSub(3,0,1,'Voith Fabrics', 'http://www.voithfabrics.de', 2, '_self')

//      oMenu.makeSubSub(3,3,0,'DIW', 'http://www.diw-ag.de', 2, '_blank')
//      oMenu.makeSubSub(3,3,1,'Voith Dienstleistungen', 'http://www.voith-dienstleistungen.de', 2, '_self')
//if( jsLanguage == "de" ){
//         oMenu.makeSubSub(3,4,0,'Voith Composites', 'http://www.voith-composites.de', 3, '_self')
      //oMenu.makeSubSub(3,4,0,'Schiffstechnik', 'http://www.voith-schiffstechnik.de', 2, '_self')
//      oMenu.makeSubSub(3,4,1,'Voith IT Solutions', 'http://www.voith-it-solutions.de', 3, '_self')
//      oMenu.makeSubSub(3,4,2,'Gie&szlig;erei Sao Paulo', 'http://www.foundry.voith.com/', 3, '_self')
//} else {
      oMenu.makeSubSub(3,4,0,'Voith IT Solutions', 'http://www.voith-it-solutions.de', 3, '_self')
      oMenu.makeSubSub(3,4,1,'Lohnfertigung', 'http://www.lohnfertigung.voithpaper.com/index_de.htm', 3, '_self')
      oMenu.makeSubSub(3,4,2,'Gie&szlig;erei Sao Paulo', 'http://www.foundry.voith.com/', 3, '_self')

//}

  //MAIN 4
  //oMenu.makeMain(3,'Jobs & Karriere',0)
  oMenu.makeMain(4,'menu_nav_'+jsLanguage+'_5'+selected[5],0);
  if( jsLanguage == "de" ){
    oMenu.makeSub(4,0,'Job Portal', 'http://www.career.voith.de/index_de.php', 5, '_self')
    oMenu.makeSub(4,1,'&nbsp;&nbsp;&nbsp;&nbsp;Schulabg&auml;nger', 'http://www.career.voith.de/de_schulabgaenger.php', 5, '_self')
    oMenu.makeSub(4,2,'&nbsp;&nbsp;&nbsp;&nbsp;Studenten', 'http://www.career.voith.de/de_studenten.php', 5, '_self') 
    oMenu.makeSub(4,3,'&nbsp;&nbsp;&nbsp;&nbsp;Berufseinsteiger', 'http://www.career.voith.de/de_berufseinsteiger.php', 5, '_self')
    oMenu.makeSub(4,4,'&nbsp;&nbsp;&nbsp;&nbsp;Berufserfahrene', 'http://www.career.voith.de/de_berufserfahrene.php', 5, '_self')
  }
 else {
    oMenu.makeSub(4,0,'Job Portal', 'http://www.career.voith.de/index_de.php', 4, '_self')
    oMenu.makeSub(4,1,'&nbsp;&nbsp;&nbsp;&nbsp;Studenten', 'http://www.career.voith.de/de_studenten.php', 4, '_self') 
    oMenu.makeSub(4,2,'&nbsp;&nbsp;&nbsp;&nbsp;Berufseinsteiger', 'http://www.career.voith.de/de_berufseinsteiger.php', 4, '_self')
    oMenu.makeSub(4,3,'&nbsp;&nbsp;&nbsp;&nbsp;Berufserfahrene', 'http://www.career.voith.de/de_berufserfahrene.php', 4, '_self')
  } 


/********************************************************************************
End menu construction
********************************************************************************/
<!-- template="con_901_js" title="special_voith???_export_sys_js_??_menu_javascript_tail" ownID="1672" ownURL="/sys/js/voith_com_menu_de.js" -->

//When all the menus are written out we initiates the menu
oMenu.construct()

/********************************************************************************
// Erweiterungen von HALD
// 1. Menues bleiben stehen:  this.menueventon="mouse"
// 2. MouseDown capturen
// 3. hidemain(menue0) ausfuehren (menue0 darf nicht existieren)
********************************************************************************/
//Capture Mouse-Click
  // Event auf Netscpae abfangen, um Menue zu schliessen
  if (bw.ns4 || bw.ns5) document.captureEvents(Event.MOUSEDOWN);
  document.onmousedown=closemenu;
}
function closemenu(e) {
  if ((bw.ie4 || bw.ie5) && (event.button==1))
    oMenu.hidemain(5);
  if ((bw.ns4 || bw.ns5) && (e.which==1)) {
    oMenu.hidemain(5);
    window.routeEvent(e);
  }
}

/********************************************************************************
Create dynamic menu
********************************************************************************/
goMenus();

/********************************************************************************
Check for change of size
********************************************************************************/
// Da die DHTML-Elemente absolut positioniert sind, werden sie nach einer
// Aenderung der Browsergroesse nicht neu positioniert.
// Auf NS wird periodisch geprueft, ob die Fenstergroesse geaendert wurde
// und im Fall einer Aenderung ein Reload erzwungen.
// Auf IE wird der onresize Handler gesetzt.
// Wenn der onresize Handler jedoch vor dem Beenden des Ladens der Seite
// gesetzt wird, greift er nicht. Da wir den onload Handler bereits an einer
// anderen Stelle einsetzen, wird aus diesem Grund auch auf IE zusaetzlich
// periodisch der Groessencheck ausgefuhert, um sicherzustellen, dass der
// Reload ausgefuehrt wird (Vorteil wenn der onresize greift: Nach dem
// Aendern der Fenstergroesse wird sofort ein Reload ausgefuehrt.
if (bw.ie4 || bw.ie5) {
   changechecker = setTimeout("window.onresize=changesize;",500);
   changechecker = setTimeout("window.onresize=changesize;",4000);
}
changechecker = window.setInterval("changesize()",2000);
/*
</body>
</html>
*/
//io need this
//
