/*** 
This is the menu creation code - place it right after you body tag
Feel free to add this to a stand-alone js file and link it to your page.
**/

//Menu object creation
oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname

oCMenu.frames = 0

//Menu properties   
oCMenu.pxBetween=30  // Pixel zwischen den Men�punkten

if (navigator.appName!="Microsoft Internet Explorer" && screen.width>=1024) {
oCMenu.fromLeft=410
} else if(navigator.appName=="Microsoft Internet Explorer" && screen.width>=1024) {
oCMenu.fromLeft=360
} else if(navigator.appName!="Microsoft Internet Explorer" && screen.width<=800) {
oCMenu.fromLeft=280
} else if(navigator.appName=="Microsoft Internet Explorer" && screen.width<=800) {
oCMenu.fromLeft=270
}

if (navigator.appName!="Microsoft Internet Explorer") {
oCMenu.fromTop=48   // Pixel von Oben
} else {
oCMenu.fromTop=53
}



oCMenu.rows=1  // 0 = Men�punkte nebeneinander; 1 = Men�punkte nebeneinander
oCMenu.menuPlacement="left"
                                                             
oCMenu.offlineRoot=""  // wichtig wenn Offline gestestet, Angabe ab C://
oCMenu.onlineRoot="/"  // wichtig beim Onlinestellen, sonst werden die Men�punkte nicht angezeigt.
oCMenu.resizeCheck=1 
oCMenu.wait=1000 
//oCMenu.fillImg="cm_fill.gif"
oCMenu.zIndex=0

//Background bar properties
oCMenu.useBar=0 // 0 = Hintergrundstreifen wird nicht genutzt; 1 = Hintergrundstreifen wird genutzt
oCMenu.barWidth="100%"
oCMenu.barHeight="menu" 
oCMenu.barClass="clBar"
oCMenu.barX=0 
oCMenu.barY=0
oCMenu.barBorderX=0
oCMenu.barBorderY=0
oCMenu.barBorderClass=""

//Level properties - ALL properties have to be spesified in level 0
oCMenu.level[0]=new cm_makeLevel() //Add this for each new level
oCMenu.level[0].width=121 // Grunds�tzliche Breite f�r die Obermen�punkte, kann im Men� auch noch ge�ndert werden
oCMenu.level[0].height=20  // Grunds�tzliche H�he f�r die Obermen�punkte, kann im Men� auch noch ge�ndert werden
oCMenu.level[0].regClass="clLevel0"  // Stylesheet
oCMenu.level[0].overClass="clLevel0over"  // Stylesheet
oCMenu.level[0].borderX=1
oCMenu.level[0].borderY=1
oCMenu.level[0].borderClass="clLevel0border"
oCMenu.level[0].offsetX=0
oCMenu.level[0].offsetY=1
oCMenu.level[0].rows=0  // Untermen� in Reihe = 1; Untermen� untereinander = 0;
oCMenu.level[0].arrow=0
oCMenu.level[0].arrowWidth=0
oCMenu.level[0].arrowHeight=0
oCMenu.level[0].align="bottom"
  


//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
oCMenu.level[1]=new cm_makeLevel() //Add this for each new level (adding one to the number)
oCMenu.level[1].width=100
oCMenu.level[1].height=20
oCMenu.level[1].regClass="clLevel1"
oCMenu.level[1].overClass="clLevel1over"
oCMenu.level[1].borderX=1
oCMenu.level[1].borderY=1
oCMenu.level[1].align="right" 
oCMenu.level[1].offsetX=-(oCMenu.level[0].width-2)/2+20 //horizontaler Abstand des Untermen�s zum Hauptmen�
oCMenu.level[1].offsetY=0 // vertikaler Abstant des Untermen�s zum Hauptmen�
oCMenu.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



/******************************************
Menu item creation:
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout) 
*************************************/


///////////////////////////////////////////////////////////// Men�punkt 1 /////////////////////////////////////////////////////////////
//Reihenfolge: topO = Identifikationsname; Home = Name des Men�punktes; home.htm = Link; _self = Fenster; 40 = abweichende Breite 
oCMenu.makeMenu('top0','','Home','index.php?content=home','_self','38')

///////////////////////////////////////////////////////////// Men�punkt 6 + Unterpunkte /////////////////////////////////////////////////////////////
oCMenu.makeMenu('top3','','Unser Haus','index.php?content=rundgang','_self','75')
	oCMenu.makeMenu('sub35','top3','Empfang','index.php?content=empfang','_self','120')
	oCMenu.makeMenu('sub34','top3','Service','index.php?content=unserhaus','_self','120')
	oCMenu.makeMenu('sub31','top3','Appartement','index.php?content=appartement','_self','120')
	oCMenu.makeMenu('sub32','top3','Zimmer','index.php?content=zimmer','_self','120')
	oCMenu.makeMenu('sub33','top3','Fr&uuml;hst&uuml;ck','index.php?content=fruehstueck','_self','120')	
	oCMenu.makeMenu('sub36','top3','Lage','index.php?content=lage','_self','120')	
	
///////////////////////////////////////////////////////////// Men�punkt 4 + Unterpunkte/////////////////////////////////////////////////////////////
oCMenu.makeMenu('top1','','Wohlf&uuml;hlen','index.php?content=wohlfuehlen','_self','75')
	oCMenu.makeMenu('sub11','top1','Therapie','index.php?content=therapie','_self','120')
	oCMenu.makeMenu('sub15','top1','Wellness','index.php?content=wellness','_self','120')
	oCMenu.makeMenu('sub12','top1','Kosmetik','index.php?content=kosmetik','_self','120')
	oCMenu.makeMenu('sub13','top1','Fitness','index.php?content=fitness','_self','120')
	oCMenu.makeMenu('sub14','top1','Thermen','index.php?content=thermen','_self','120')	
	
///////////////////////////////////////////////////////////// Men�punkt 5 /////////////////////////////////////////////////////////////
oCMenu.makeMenu('top2','','Angebote','index.php?content=angebot','_self','65')
	oCMenu.makeMenu('sub20','top2','Appartementpreise','index.php?content=preise','_self','150')	
	oCMenu.makeMenu('sub23','top2','G&auml;stezimmerpreise','index.php?content=gz_preise','_self','150')	
	oCMenu.makeMenu('sub21','top2','Pauschalen','index.php?content=pauschalen','_self','150')
	oCMenu.makeMenu('sub24','top2','Last Minute','index.php?content=lastminute','_self','150')
	

	
///////////////////////////////////////////////////////////// Men�punkt 7 + Unterpunkte /////////////////////////////////////////////////////////////
oCMenu.makeMenu('top4','','Kontakt','index.php?content=kontakt','_self','53')
	oCMenu.makeMenu('sub44','top4','Anschrift','index.php?content=anschrift','_self','120')
	oCMenu.makeMenu('sub40','top4','Anfahrt','index.php?content=anfahrt','_self','120')
	oCMenu.makeMenu('sub42','top4','Anfrage','index.php?content=formular','_self','120')
	oCMenu.makeMenu('sub43','top4','Impressum','index.php?content=impressum','_self','120')
	
oCMenu.makeMenu('top5','','Wissenswertes','index.php?content=wissenswertes','_self','100')
	oCMenu.makeMenu('sub54','top5','Bad F&uuml;ssing','index.php?content=fuessing','_self','120')
	oCMenu.makeMenu('sub50','top5','Umgebung','index.php?content=umgebung','_self','120')
	oCMenu.makeMenu('sub51','top5','Aktuelles','index.php?content=aktuelles','_self','120')
	oCMenu.makeMenu('sub52','top5','Tipps & Tricks','index.php?content=tipps','_self','120')




//Leave this line - it constructs the menu
oCMenu.construct()

