
function findPos2(){
  if(bw.ns4){  //Netscape 4
    x2 = document.layers.layerMenu2.pageX+20
    y2 = document.layers.layerMenu2.pageY
  }else{ //other browsers
    x2=0; y2=0; var el2, temp2
    el2 = bw.ie4?document.all["divMenu2"]:document.getElementById("divMenu2");
    if(el2.offsetParent){
      temp2 = el2
      while(temp2.offsetParent){ //Looping parent elements to get the offset of them as well
        temp2=temp2.offsetParent; 
        x2+=temp2.offsetLeft;
        y2+=temp2.offsetTop;
      }
    }
    x2+=el2.offsetLeft
    y2+=el2.offsetTop
  }
  //Returning the x and y as an array
  return [x2,y2]
}

pos2 = findPos2()
//Menu object creation
oCMenu2=new makeCM("oCMenu2") //Making the menu object. Argument: menuname

//Menu properties   
oCMenu2.pxBetween=10
//Using the cm_page object to place the menu ----
  if(bw.ns4){oCMenu2.fromLeft=pos2[0]-5}
  else{
oCMenu2.fromLeft=pos2[0]+4}
oCMenu2.fromTop=pos2[1]+5
//We also need to "re place" the menu on resize. So:
oCMenu2.onresize="pos2 = findPos2(); oCMenu2.fromLeft=pos2[0]; oCMenu2.fromTop=pos2[1]"

oCMenu2.rows=0
oCMenu2.menuPlacement=0
                                                                    
oCMenu2.offlineRoot="" 
oCMenu2.onlineRoot="" 
oCMenu2.resizeCheck=1 
oCMenu2.wait=1000 
//oCMenu2.fillImg="pics/cm_fill.jpg"
oCMenu2.zIndex=0

//Background bar properties
oCMenu2.useBar=1
oCMenu2.barWidth="menu"
oCMenu2.barHeight="menu" 
oCMenu2.barClass="clBar"
oCMenu2.barX="menu"
oCMenu2.barY="menu"
oCMenu2.barBorderX=0
oCMenu2.barBorderY=0
oCMenu2.barBorderClass=""


//Level properties - ALL properties have to be spesified in level 0
oCMenu2.level[0]=new cm_makeLevel() //Add this for each new level
oCMenu2.level[0].width=135
oCMenu2.level[0].height=35 
oCMenu2.level[0].regClass="clLevel0"
oCMenu2.level[0].overClass="clLevel0over"
oCMenu2.level[0].borderX=0
oCMenu2.level[0].borderY=0
oCMenu2.level[0].borderClass="clLevel0border"
oCMenu2.level[0].offsetX=-4
oCMenu2.level[0].offsetY=0
oCMenu2.level[0].rows=0
oCMenu2.level[0].arrow=0
oCMenu2.level[0].arrowWidth=0
oCMenu2.level[0].arrowHeight=0
oCMenu2.level[0].align="left"


//EXAMPLE SUB LEVEL[1] PROPERTIES - You have to specify the properties you want different from LEVEL[0] - If you want all items to look the same just remove this
oCMenu2.level[1]=new cm_makeLevel() //Add this for each new level (adding one to the number)
oCMenu2.level[1].width=oCMenu2.level [0].width-2
//oCMenu2.level[1].width=135
oCMenu2.level[1].height=20
oCMenu2.level[1].regClass="clLevel1"
oCMenu2.level[1].overClass="clLevel1over"
oCMenu2.level[1].borderX=0
oCMenu2.level[1].borderY=1
oCMenu2.level[1].align="right" 
oCMenu2.level[1].offsetX=-(oCMenu2.level[0].width-2)/2+20
oCMenu2.level[1].offsetY=0
oCMenu2.level[1].borderClass="clLevel1border"


//EXAMPLE SUB LEVEL[2] PROPERTIES - You have to spesify the properties you want different from LEVEL[1] OR LEVEL[0] - If you want all items to look the same just remove this
oCMenu2.level[2]=new cm_makeLevel() //Add this for each new level (adding one to the number)
oCMenu2.level[2].width=150
oCMenu2.level[2].height=20
oCMenu2.level[2].offsetX=0
oCMenu2.level[2].offsetY=0
oCMenu2.level[2].regClass="clLevel2"
oCMenu2.level[2].overClass="clLevel2over"
oCMenu2.level[2].borderClass="clLevel2border"
oCMenu2.level[2].align="right" 
//oCMenu2.level[1].offsetX=-(oCMenu2.level[1].width-2)/2+120
//oCMenu2.level[1].offsetX=oCMenu2.level[1].width-390
oCMenu2.level[2].offsetX=oCMenu2.level[1].width-160


/******************************************
Menu item creation:
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout) 
*************************************/
if(bw.ns4){
// Eyery gändert ----------------
//oCMenu2.makeMenu('t2op0','','&nbsp;Willkommen','Begruessende Worte an unsere Gaeste','/willkommen/')
//	oCMenu2.makeMenu('s2ub01','t2op0','Familie Lerche','lerche.html')
//
oCMenu2.makeMenu('t2op0','','&nbsp;Virtual Tour','Panoramatour','/Panoramatour/')
	oCMenu2.makeMenu('s2ub01','t2op0','A virtual tour through our hotel;','pano_e.html')
// --------------------------
oCMenu2.makeMenu('t2op1','','&nbsp;Health and Beauty','Get yourself cuddled!','/wellness/')
	oCMenu2.makeMenu('s2ub105','t2op1','Overview','beauty_farm_e.html')
	oCMenu2.makeMenu('s2ub1055','t2op1','special treatments','spezialbehandlungen_e.html')
	oCMenu2.makeMenu('s2ub18','t2op1','Prices','preise_beauty_e.html')


oCMenu2.makeMenu('t2op2','','&nbsp;Wellbeing','Free for all hotel guests','/wellness/')
oCMenu2.makeMenu('s2ub20','t2op2','Overview','wellness_e.html')
			 
oCMenu2.makeMenu('t2op3','','&nbsp;History','A historical survey','/geschichte/')
	oCMenu2.makeMenu('s2ub30','t2op3','A historical survey','geschichte_e.html')
		   
oCMenu2.makeMenu('t2op4','','&nbsp;Culture and Leisure','What´s to see and to do in the surroundings of our hotel','/culture/')
	oCMenu2.makeMenu('s2ub40','t2op4','Surroundings','umgebung_e.html')
	oCMenu2.makeMenu('s2ub42','t2op4','The Harz Mountains','harz_e.html')

oCMenu2.makeMenu('t2op5','','&nbsp;Contact','Please contact us for further infornmation','/geschichte/')
	oCMenu2.makeMenu('s2ub50','t2op5','Adress','anschrift_e.html')
    oCMenu2.makeMenu('s2ub51','t2op5','Approach','anfahrt_e.html')
	oCMenu2.makeMenu('s2ub52','t2op5','Contact','kontakt_e.html')
     
oCMenu2.makeMenu('t2op7','','&nbsp;The Romanesque Road','The Westerburg as a starting point for the Romanesque Road','/romanik/')
	oCMenu2.makeMenu('s2ub71','t2op7','The Road ...','romanik_e.html')
	oCMenu2.makeMenu('s2ub72','t2op7','Northern Route','nordroute_e.html')
	oCMenu2.makeMenu('s2ub73','t2op7','Southern Route','suedroute_e.html')
	
oCMenu2.makeMenu('t2op8','','Job opportunities','Please apply','/stellen/')
	oCMenu2.makeMenu('s2ub80','t2op8','Vacancies','stellen_e.html')
   	
}
else
{
// Eyery ------------------------
//oCMenu2.makeMenu('t2op0','','&nbsp;Willkommen<img src="./pics/willkommen.gif" alt="" width="30" height="30" style="vertical-align:middle; margin-left:22px;">','Begruessende Worte an unsere Gaeste','/willkommen/')
//	oCMenu2.makeMenu('s2ub01','t2op0','Familie Lerche','lerche.html')
//		     oCMenu2.makeMenu('s2ub001','s2ub01','Familie Lerche begrüsst Sie herzlichst.','lerche.html','',150,40,'','','','','','','','')	   		   	

oCMenu2.makeMenu('t2op0','','&nbsp;Virtual Tour<img src="./pics/pano.gif" alt="" width="30" height="30" style="margin-top: -14px;vertical-align:middle; margin-left:99px;">','Panoramatour','/panoramatour/')
	oCMenu2.makeMenu('s2ub01','t2op0','Tour','pano_e.html')
		     oCMenu2.makeMenu('s2ub001','s2ub01','A virtual tour through our hotel','pano_e.html','',150,40,'','','','','','','','')	   		   	
// ------------------------------	

oCMenu2.makeMenu('t2op1','','&nbsp;Health <br>and Beauty<img src="./pics/schoenheit.gif" alt="" width="30" height="30" style="margin-top:-28px;vertical-align:middle; margin-left:100px;">','Just relax','/wellness/')
	oCMenu2.makeMenu('s2ub105','t2op1','Overview','beauty_farm_e.html')
      		oCMenu2.makeMenu('s2ub0101','s2ub105','Enjoy our beauty area','beauty_farm_e.html','',150,40,'','','','','','','','')	
	oCMenu2.makeMenu('s2ub1055','t2op1','special treatments','spezialbehandlungen_e.html')
      		oCMenu2.makeMenu('s2ub01015','s2ub1055','Thalasso, beauty days,...','spezialbehandlungen_e.html','',150,40,'','','','','','','','')	
	oCMenu2.makeMenu('s2ub18','t2op1','Prices','preise_beauty_e.html')
	       oCMenu2.makeMenu('s2ub019','s2ub18','Overview, 10 x subscription','preise_beauty_e.html','',150,40,'','','','','','','','')	   	


oCMenu2.makeMenu('t2op2','','&nbsp;Wellbeing<img src="./pics/wellness.gif" alt="" width="30" height="30" style="margin-top:-14px;vertical-align:middle; margin-left:99px;">','Free for all our hotel guests','/wellness/')
oCMenu2.makeMenu('s2ub20','t2op2','Overview','wellness_e.html')
       		oCMenu2.makeMenu('s2ub021','s2ub20','Free use for our hotel guests','wellness_e.html','',150,40,'','','','','','','','')	   	

oCMenu2.makeMenu('t2op3','','&nbsp;History<img src="./pics/geschichte.gif" alt="" width="30" height="30" style="margin-top:-14px;vertical-align:middle; margin-left:99px;">','An histiorical survey of our castle','/geschichte/')
	oCMenu2.makeMenu('s2ub30','t2op3','Historical Survey','geschichte_e.html')
       		oCMenu2.makeMenu('s2ub030','s2ub30','When the castle was besieged ...','geschichte_e.html','',150,40,'','','','','','','','')	   	
	
oCMenu2.makeMenu('t2op4','','&nbsp;Culture <br>and Leisure<img src="./pics/freizeit.gif" alt="" width="30" height="30" style="margin-top:-34px;vertical-align:middle; margin-left:100px;"> ','What´s expecting you in the surroundings of the castle','/kultur/')
	oCMenu2.makeMenu('s2ub40','t2op4','Surroundings','umgebung_e.html')
       		oCMenu2.makeMenu('s2ub040','s2ub40','Towns and touristic destinations','umgebung_e.html','',150,40,'','','','','','','','')	   	
	oCMenu2.makeMenu('s2ub42','t2op4','The Harz Mountains','harz_e.html')
       		oCMenu2.makeMenu('s2ub042','s2ub42','The Nationalpark Harz','harz_e.html','',150,40,'','','','','','','','')	   	
	/*oCMenu2.makeMenu('s2ub43','t2op4','Die Walpurgisnacht','walpurgis.html')
	       oCMenu2.makeMenu('s2ub043','s2ub43','Den Hexen auf der Spur!','walpurgis.html','',150,40,'','','','','','','','')	   	 
		*/						   
oCMenu2.makeMenu('t2op5','','&nbsp;Address/<br>Approach<img src="./pics/kontakt.gif" alt="" width="30" height="30" style="margin-top:-15	px;vertical-align:middle; margin-left:40px;">','Please contact us','/kontakt/')
	oCMenu2.makeMenu('s2ub50','t2op5','Address','anschrift_e.html')
       		oCMenu2.makeMenu('s2ub050','s2ub50','Address, telephone, fax, e-mail, ... of the Westerburg','anschrift_e.html','',150,40,'','','','','','','','')	   	
	oCMenu2.makeMenu('s2ub51','t2op5','Approach','anfahrt_e.html')
	       oCMenu2.makeMenu('s2ub051','s2ub51','How to find us!','anfahrt_e.html','',150,40,'','','','','','','','')	   	 
	oCMenu2.makeMenu('s2ub52','t2op5','Contact','kontakt_e.html')
	       oCMenu2.makeMenu('s2ub052','s2ub52','Please ask for further information','kontakt_e.html','',150,40,'','','','','','','','')	   	 

		   
oCMenu2.makeMenu('t2op7','','&nbsp;Romanesque <br>Road<img src="./pics/romaniklogo_klein.gif" alt="" width="30" height="30" style="margin-top:-15px;vertical-align:middle; margin-left:67px;">','Our castle as a part of the Romanesque Road','/romanik/')
	oCMenu2.makeMenu('s2ub71','t2op7','The Road','romanik_e.html')
       		oCMenu2.makeMenu('s2ub071','s2ub71','to the middle-ages.','romanik_e.html','',150,40,'','','','','','','','')	   	
	oCMenu2.makeMenu('s2ub72','t2op7','Northern Route','nordroute_e.html')
       		oCMenu2.makeMenu('s2ub072','s2ub72','The northern half of the Road','nordroute_e.html','',150,40,'','','','','','','','')	   	
	oCMenu2.makeMenu('s2ub73','t2op7','Southern Route','suedroute_e.html')
       		oCMenu2.makeMenu('s2ub073','s2ub73','The southern half of the Road','suedroute_e.html','',150,40,'','','','','','','','')	   	

oCMenu2.makeMenu('t2op8','','Job <br>opportunities<img src="./pics/stellengesuch.gif" alt="" width="30" height="30" style="margin-top:-15px;vertical-align:middle; margin-left:15px;">','Apply for a job at the Westerburg!','/stellen/')
	oCMenu2.makeMenu('s2ub80','t2op8','Vacancies','stellen_e.html')
       		oCMenu2.makeMenu('s2ub080','s2ub80','Training posts, Jobs (fulltime/halftime)','stellen_e.html','',150,40,'','','','','','','','')	   	

}
//Leave this line - it constructs the menu
oCMenu2.construct()

