// Operations Popup menu links 
// This Javascript holds the links for pop_menu.js 
// which creates Manuals of links for the 4 departments
// Created April 16, 2009 by William Blandy
//   Last updated May 15, 2009 by William Blandy

function popup(divname,menutype) {



// ^^^^^^^^^^^^^^^^^^^^^^^^^ Explanation for adding links ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
//                                                                                          ^
// Note: links must be placed in order from left to right and top to bottom                 ^ 
// left-1, right-1, left-2, right-2, left-3, right-3, left-4, right-4, left-5, right-5      ^
// You can fit 5 (or if needed 6 max) links per side. Max is 12 links per page              ^
// Margins: The left margin should be staggered from 24px to 20 px.
//                                                                                          ^
// Positioning and linkset numbers                                                          ^
// 	showmenu(event,linkset[111], '300px', '400px'                                          ^
//	The linkset number represents, as follows:                                              ^
//			First 1 represents the menutype: 1 - aux, 2 - boat, 3 - misc 4 - non                 ^
//			Second 1 represents side of page: 1 - left, 2 - right                            ^
//			Third 1 represents entry number: 1 - 6                                         ^
//                                                                                          ^
// 	The '300px' is the width of the pop-up entry.  This can be any size but make sure that  ^
//	the size does not cause problems with overlaps on the page. Test before finalizing.     ^
//                                                                                          ^
//	The '400px' tells the script how far to the left to place the page. As a general rule,  ^
//  the position will be: '400px' for "regs", '500px' for "train", and '60px' for "prog".   ^
//  These numbers position the pop-ups without overlapping the books or going off the page. ^
//	As with the width of the pop-up, if you want to change this parameter you should test   ^
//  before finalizing.                                                                      ^
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

//******************************** Calendar Calendar Calendar Calendar  *************************
if (divname == "index") {
	document.write ("\n<div id=\"cnav\">\n");
	document.write (" <ul class=\"level1\">\n");
	if (menutype == "cal") {
		// *** First Level Heading ***	
		document.write("<li class=\"first\"><a href=\"calendar.html\" title=\"Click for Division 5 Calendar\">Division 5 Calendar</a></li>");			
		document.write("<li><a href=\"#\"");
		document.write(" onMouseover=\"showmenu(event,linkset[2], '350px', '275px', '180px')\"");
		document.write(" onMouseout=\"delayhidemenu()\" title=\"April - June 2009 Calendar\"");
		document.write(">2Q2009</a></li>");			
		document.write("<li><a href=\"#\"");
		document.write(" onMouseover=\"showmenu(event,linkset[3], '350px', '275px', '180px')\"");
		document.write(" onMouseout=\"delayhidemenu()\" title=\"July - September 2009 Calendar\"");
		document.write(">3Q2009</a></li> ");			
		document.write("<li class=\"last\"><a href=\"#\"");
		document.write(" onMouseover=\"showmenu(event,linkset[4], '350px', '275px', '180px')\"");
		document.write(" onMouseout=\"delayhidemenu()\" title=\"October - December 2009 Calendar\"");
		document.write(">4Q2009</a></li>");	

		// Close first level ul
		document.write("</ul></div>");
		
  
	} // end 

} // end 
} //end Function Popup