//MENU OPTIONS

	// the number you pass to initLeft doesn't matter since it will get
	// changed onactivate
	
	//ypSlideOutMenu("id", "dir", left, top, width, height, parentid, degrade, debug)
	
	//set the height argument to the corresponding number of pixels from the chart below
	//number of items - hieght of menu
	/*
	1 => 24
	2 => 42
	3 => 60
	4 => 78
	5 => 96
	6 => 114
	7 => 132
	8 => 150
	9 => 168
	10 => 186
	11 => 204
	12 => 222
	13 => 240
	14 => 258
	15 => 276
	16 => 294
	17 => 312
	18 => 330
	19 => 348
	20 => 366
	*/
	//padding and other css fun is in /includes/nav/nav_styles.css - don't mess with this unless you know what you are doing.
	
function get_dropdown_height(num_links) {
	//height = (link_height + padding-top + padding-bottom + 3) * number_of_links + (border-top + border-bottom)
	var height;
	height = (11 + 2 + 2 + 3) * num_links + (5 + 1);
	
	return height;
}

//find menu heights
//var x = 1;

//while(x <= 50) {
	//document.write(x + ' => ' + get_dropdown_height(x) + '<br>');
	//x++;
//}408 440 472 



var dist_from_top = 115;	
var menu_width = 135;	

var menus = [
	new ypSlideOutMenu("toolbox", "right", 0, dist_from_top, 250, 550), //toolbox (0)
	new ypSlideOutMenu("home", "down", 0, dist_from_top, menu_width, 0), //home (0)
	new ypSlideOutMenu("programs", "down", 408, dist_from_top, menu_width, get_dropdown_height(8)), //programs (7)
	new ypSlideOutMenu("merchandise", "down", 440, dist_from_top, menu_width, 258, get_dropdown_height(13)), //merchandise (13)
	new ypSlideOutMenu("systemblue", "down", 472, dist_from_top, menu_width, get_dropdown_height(6)), //programs (7)
	new ypSlideOutMenu("alumni", "down", 504, dist_from_top, menu_width, get_dropdown_height(7)), //alumni (4)
	new ypSlideOutMenu("media", "down", 536, dist_from_top, menu_width, get_dropdown_height(6)), //media (7)
	new ypSlideOutMenu("support", "down", 568, dist_from_top, menu_width, get_dropdown_height(7)), //support (4)
	new ypSlideOutMenu("about", "down", 600, dist_from_top, menu_width, get_dropdown_height(10)), //about (9)
	new ypSlideOutMenu("forums", "down", 632, dist_from_top, menu_width, get_dropdown_height(7)) //forums (5)
]

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='';");
}

ypSlideOutMenu.writeCSS();
