// Größen- und Positionsangaben
var width = 150;
var height = 19;

var pos_1 = 220;
var pos_2 = 324;
var pos_3 = 427;
var pos_4 = 543;
var pos_5 = 625;
var pos_6 = 746;

var top_1 = 115;
var top_2 = 133;
var top_3 = 152;
var top_4 = 171;
var top_5 = 190;
var top_6 = 209;
var top_7 = 228;
var top_8 = 247;
var top_9 = 266;

// Parameter: Menu, Direction, Left, Top, Width, Height, Parent
var menus = 
[
	new slideOutMenu("menu1", "down", pos_1, top_1, width, height * 9, null),
	new slideOutMenu("menu10", "right", pos_1 + width, top_6, width, height * 4 + 1, "menu1"),
	new slideOutMenu("menu2", "down", pos_2, top_1, width, height * 4, null),
	new slideOutMenu("menu3", "down", pos_3, top_1, width, height * 9, null),
	new slideOutMenu("menu30", "right", pos_3 + width, top_5, width, height * 2 + 1, "menu3"),
	new slideOutMenu("menu4", "down", pos_4, top_1, width, height * 9, null),
	new slideOutMenu("menu40", "right", pos_4 + width, top_5, width, height * 4 + 1, "menu4"),
	new slideOutMenu("menu5", "down", pos_5, top_1, width, height * 8, null),
	new slideOutMenu("menu50", "right", pos_5 + width, top_2, width, height * 3 + 1, "menu5"),
	new slideOutMenu("menu51", "right", pos_5 + width, top_5, width, height * 5 + 1, "menu5"),
	new slideOutMenu("menu6", "down", pos_6, top_1, width, height * 7, null)
]

document.write("<style type=\"text/css\">" + slideOutMenu.styleMod + "</style>");

for (var i = 0; i < menus.length; i++)
{
	menus[i].onactivate = new Function("document.getElementById('act"+ i +"').className='active';");
	menus[i].ondeactivate = new Function("document.getElementById('act"+ i +"').className='';");
}