menunum=0;
menus=new Array();
_d=document;

function addmenu()
{
menunum++;
menus[menunum]=menu;
}

function dumpmenus()
{
mt="<script language=javascript>";
for(a=1;a<menus.length;a++)
{ mt+=" menu"+a+"=menus["+a+"];" }
mt+="<\/script>";
_d.write(mt);
}

//effect = "Fade(duration=0.5);Alpha(style=0,opacity=100);Shadow(color='#777777', Direction=135, Strength=5)";
v1 = navigator.appVersion;
v2 = "MSIE 5";
if (v1.indexOf(v2) == 1)
{
effect = "Fade(duration=0.1)";
}
else
{
effect = "Pixelate(size=5,duration=0.5);Alpha(style=0,opacity=100)";
}


timegap=1000;		// The time delay for menus to remain visible
followspeed=300;	// Follow Scrolling speed
followrate=10;		// Follow Scrolling Rate
suboffset_top=0;	// Sub menu offset Top position 
suboffset_left=-2;	// Sub menu offset Left position
closeOnClick = true;

style1=[			// style1 Unternehmen
"FFFFFF",			// Mouse Off Font Color
"E35F41",			// Mouse Off Background Color
"000000",			// Mouse On Font Color
"E29270",			// Mouse On Background Color
"333333",			// Menu Border Color 
10,					// Font Size in pixels
"normal",			// Font Style (italic or normal)
"normal",			// Font Weight (bold or normal)
"Verdana, Arial",	// Font Name
4,					// Menu Item Padding
"../pix/right.gif",		// Sub Menu Image (Leave this blank if not needed)
1,					// 3D Border & Separator bar
"EE9050",			// 3D High Color
"990000",			// 3D Low Color
"",			// Current Page Item Font Color (leave this blank to disable)
"",				// Current Page Item Background Color (leave this blank to disable)
"",		// Top Bar image (Leave this blank to disable)"../javascript/button.gif"
"ffffff",			// Menu Header Font Color (Leave blank if headers are not needed)
"000099",			// Menu Header Background Color (Leave blank if headers are not needed)
"333333",			// Menu Item Separator Color
];


// HAUPTMENÜ

style9=[			// style9 Hauptmenu
"FFFFFF",			// Mouse Off Font Color
"",				// 336699 // Mouse Off Background Color
"BBBBBB",			// Mouse On Font Color
"",				// 99BBDD // Mouse On Background Color
"FFFFFF",			// Menu Border Color 
12,					// Font Size in pixels
"normal",			// Font Style (italic or normal)
"bold",				// Font Weight (bold or normal)
"Arial,Helvetica,sans-serif; letter-spacing:1px",	// Font Name
2,					// Menu Item Padding
"../pix/right.gif",		// Sub Menu Image (Leave this blank if not needed)
,					// 3D Border & Separator bar
"66ffff",			// 3D High Color
"000099",			// 3D Low Color
"",					// Current Page Item Font Color (leave this blank to disable)
"",					// Current Page Item Background Color (leave this blank to disable)
"",					// javascript/down.gif // Top Bar image (Leave this blank to disable)"../javascript/button.gif"
"ffffff",			// Menu Header Font Color (Leave blank if headers are not needed)
"000099",			// Menu Header Background Color (Leave blank if headers are not needed)
"CCCCCC",			// Menu Item Separator Color
];

addmenu(menu=[		// This is the array that contains your menu properties and details
"mainmenu",			// Menu Name - This is needed in order for the menu to be called
100,				// Menu Top - The Top position of the menu in pixels 115
,					// Menu Left - The Left position of the menu in pixels 14
140,				// Breite der einzelnen Hauptmenüpunkte
0,					// Menu Border Width 
"center",			// Screen Position - here you can use "center;left;right;middle;top;bottom" or a combination of "center:middle"
style9,				// Properties Array - this is set higher up, as above
1,					// Always Visible - allows the menu item to be visible at all time (1=on/0=off)
"left",				// Alignment - sets the menu elements text alignment, values valid here are: left, right or center
effect,				// Filter - Text variable for setting transitional effects on menu activation - see above for more info
,					// Follow Scrolling - Tells the menu item to follow the user down the screen (visible at all times) (1=on/0=off)
1, 					// wagerecht senkrecht Horizontal Menu - Tells the menu to become horizontal instead of top to bottom style (1=on/0=off)
,					// Keep Alive - Keeps the menu visible until the user moves over another menu or clicks elsewhere on the page (1=on/0=off)
,					// Position of TOP sub image left:center:right Bild
,					// Set the Overall Width of Horizontal Menu to 100% and height to the specified amount (Leave blank to disable)
,					// Right To Left - Used in Hebrew for example. (1=on/0=off)
0,					// Open the Menus OnClick - leave blank for OnMouseover (1=on/0=off)
,					// ID of the div you want to hide on MouseOver (useful for hiding form elements)
"../pix/navi-on.png",					// Background image for menu when BGColor set to transparent.
,					// Scrollable Menu
,					// Reserved for future use
,"&nbsp;&nbsp;&nbsp;&nbsp; Startseite ","index.php",,"Startseite",0
,"&nbsp;&nbsp;&nbsp;&nbsp; Unternehmen ","show-menu=unternehmen",,"",0 // Text, Menüfuntion, ?, Statustext, Separator zum nächsten Menü
,"&nbsp;&nbsp;&nbsp;&nbsp; Produkte ","show-menu=produkte",,"",0
,"&nbsp;&nbsp;&nbsp;&nbsp; Informationen ","show-menu=informationen",,"",0
,"&nbsp;&nbsp;&nbsp;&nbsp; Downloads ","show-menu=downloads",,"",0
])




// 1. Menü
	addmenu(menu=["unternehmen",
	,,140,1,"",style1,,"left",effect,,,,,,,,,,,,
	  ,"Unser Unternehmen","unser-unternehmen.php",,"Unser Unternehmen",1
      ,"Newsarchiv","news.php",,"Newsarchiv",1
      ,"Partner","partner.php",,"Partner",1
	])
	
	


// 2. Menü
	addmenu(menu=["produkte",
	,,140,1,"",style1,,"left",effect,,,,,,,,,,,,
	  ,"Leisten","show-menu=leisten",,,1// Text, Link, ?, Statustext
      ,"Einlagenformen","produkte-einlagenformen.php",,"Einlagenformen",1
      ,"Schuhspanner","produkte-schuhspanner.php",,"Schuhspanner",1
      ,"Holzsohlen","produkte-holzsohlen.php",,"Holzsohlen",1
      ,"Umrissfolien","produkte-umrissfolien.php",,"Umrissfolien",1
      ,"Schablonen","produkte-schablonen.php",,"Schablonen",1
	  ,"Stiefelbl&ouml;cke","produkte-stiefelbloecke.php",,"Stiefelblöcke",1
	])
		// Submenü
		addmenu(menu=["leisten",
		,,140,1,"",style1,,"left",effect,,,,,,,,,,,,
            ,"nach Katalog","produkte-leisten-nach-katalog.php",,"nach Katalog",1
            ,"nach Trittspur","produkte-leisten-nach-trittspur.php",,"nach Trittspur",1
            ,"individuell","produkte-leisten-individuell.php",,"individuell",1
            ,"nach CAD-Modell","produkte-leisten-cad.php",,"nach CAD-Modell",1
		])



// 3. Menü
	addmenu(menu=["informationen",
	,,140,1,"",style1,,"left",effect,,,,,,,,,,,,
      ,"Unser Katalog","info-katalog.php",,"Unser Katalog",1
      ,"Materialien","show-menu=materialien",,,1
      ,"Vom Stamm zum fertigen Leisten","info-baumstamm-leisten.php",,"Vom Baumstamm zum Leisten",1
      ,"Weitentabellen","show-menu=tabellen",,,1
      ,"Weitere Informationen","info-weitere.php",,"Weitere Informationen",1
	])


		// Submenü
		addmenu(menu=["tabellen",
		,,140,1,"",style1,,"left",effect,,,,,,,,,,,,
            ,"Gr&ouml;ße in Stich","info-tabellen-stich.php",,"Gr&ouml;ße in Stich",1
            ,"Gr&ouml;ße in cm","info-tabellen-cm.php",,"Gr&ouml;ße in cm",1
            ,"Gr&ouml;ße in size","info-tabellen-size.php",,"Gr&ouml;ße in size",1
		])


		// Submenü
		addmenu(menu=["materialien",
		,,140,1,"",style1,,"left",effect,,,,,,,,,,,,
            ,"Holzart Buche","info-holzart-buche.php",,"Holzart Buche",1
            ,"Holzart Erle","info-holzart-erle.php",,"Holzart Erle",1
            ,"Holzart Pappel","info-holzart-pappel.php",,"Holzart Pappel",1						
            ,"Naturwachs","info-naturwachs.php",,"Naturwachs",1
		])



// 4. Menü	
	addmenu(menu=["downloads",
	,,140,1,"",style1,,"left",effect,,,,,,,,,,,,
      ,"Formulare &amp; Tabellen","downloads-datenblaetter.php",,"Formulare &amp; Tabellen",1
      ,"Demo zur individuellen Leistenherstellung","downloads-demo-individuelle-leistenherstellung.php",,"Demo zur individuellen Leistenherstellung",1
      ,"Demo CAD-Leisten","downloads-demo-cad-leisten.php",,"Demo CAD-Leisten",1
	])

dumpmenus();
