var menus =
[
	//new ypSlideOutMenu("Container ID", "Direction of the animation (Down, Up, Left, Right)", 
	//'Position from Left', 'Position from Top', 'SubMenu Width', 'SubMenu Hight', 'Position from Left of Menu Link')
	
	new ypSlideOutMenu("submenu1", "down", 'auto', 150, 200, 87, -8),
	new ypSlideOutMenu("submenu2", "down", 'auto', 150, 200, 206, -5),
	new ypSlideOutMenu("submenu3", "down", 'auto', 150, 200, 62, -6),
	new ypSlideOutMenu("submenu4", "down", 'auto', 150, 250, 62, -110)
]

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

ypSlideOutMenu.writeCSS();
