/*
	*	File:		ecms_config.js
	*	Name:		Expandable/Collapsible Menu System
	*	Date:		2001-10-06

	*	Author:		Ben Boyle
	*	Email:		bboyle@inspire.server101.com

	*	Platform:	all javascript browsers

	Configuration file for dynamic expandable/collapsible menu.
	Remove the // from comments and adjust properties to suit.

	see instructions online:
	http://inspire.server101.com/scripts/ecms/


	Functions to control menu from HTML:
		ECMS_expand_all()		(expand entire menu)
		ECMS_collapse_all()		(collapse entire menu)
		ECMS_expand('name')		(expand named menu folder)
		ECMS_collapse('name')	(collapse named menu folder)
	note: to expand/collapse a named subfolder, its parent must be expanded

	CSS display configuration classes (class names can be customised):
		.bullet		(a menu link that does not contain child items)
		.collapsed	(a menu parent that is closed)
		.expanded	(a menu parent that is open)

	CSS platform dependant styles:
		IE 4/5, N6	(DIV.stylename)
		Netscape 4x	(LAYER.stylename)
		default		(LI.stylename)

	CSS examples:
		DIV.bullet { font-weight: normal; }
		DIV.collapsed { font-weight: bold; }
		DIV.expanded { font-weight: bold; }
		LAYER.bullet { font-weight: normal; }
		LAYER.collapsed { font-weight: bold; }
		LAYER.expanded { font-weight: bold; }
		LI.bullet { font-weight: normal; list-style-type: disc; list-style-image: url(bullet.gif); }
		LI.expanded { font-weight: bold; list-style-type: circle; list-style-image: url(expanded.gif); margin-bottom: 0px; margin-left: 15px; margin-top: 0px; }

*/

/*
	menu classes
	- bullet (menu item)
	- collapsed (collapsed menu item which expands when clicked)
	- expanded (expanded menu item which collapses with clicked)
*/
ECMS_class_bullet = 'bullet';
ECMS_class_collapsed = 'collapsed';
ECMS_class_expanded = 'expanded';

/*
	menu images (not used by default system)
	- bullet (menu item)
	- collapsed (collapsed menu item which expands when clicked)
	- expanded (expanded menu item which collapses with clicked)
*/
ECMS_image_bullet.src = '/global_docs/images/bullet.gif';
ECMS_image_collapsed.src = '/global_docs/images/collapsed.gif';
ECMS_image_expanded.src = '/global_docs/images/expanded.gif';

/*
	menu images ALT text (not used by default system)
	- bullet (menu item)
	- collapsed (collapsed menu item which expands when clicked)
	- expanded (expanded menu item which collapses with clicked)
*/
ECMS_image_bullet.alt = '';
ECMS_image_collapsed.alt = 'menu (show)';
ECMS_image_expanded.alt = 'menu (hide)';

/*
	indent menu items (pixel measurement from left margin)
*/
ECMS_menu_indent = 10;

/*
	height of fully expanded menu for netscape 4 (pixel measurement)
	this is to ensure enough space reserved for the menu
*/
//ECMS_menu_height = 125;

/*
	display link titles in status bar
	- if no title available, will use the name parameter
*/
ECMS_status_display = true;

/*
	repeat links on image/text
	- adds expand link on menus without their own links
	- adds link on bullet points
*/
ECMS_repeat_links = true;

/*
	collapse all other open menu branches when expanding a new branch
	values:	'menu' (collapse only within this menu)
			'all' (collapse all other menus as well)
*/
ECMS_collapse_on_expand = true;

/*
	automatically expand when the mouse is over a menu element
	delay time is in milliseconds (1000ms is 1 second)
	only works for menu folders which have a url specified
*/
ECMS_auto_expand = false;
ECMS_auto_expand_delay = 750;


/*
BUILD THE MENU
ECMS_add_item(level, name, url, target, expanded, title);
	- level:		level of the item (0 is a top level menu choice, 1 under that, 2 under that)
	- name:			text displayed for the item (HTML markup allowed)
	- url:			link for this item
	- target:		target frame for link
	- expanded:		true/false (initial expanded?  false is default)
	- title:		title for link (often appears as a tooltip on the link)
*/

var index = querySt("menu");

if(index == 1) {
ECMS_add_item(0, 'Board Information', '/board/index.jsp?menu=1', '','true');
}
else 
{
ECMS_add_item(0, 'Board Information', '/board/index.jsp?menu=1');
}
ECMS_add_item(1, 'Calendar & Agendas', '/board/agendas.jsp?menu=1');
ECMS_add_item(1, 'Board of Directors List', '/board/list.jsp?menu=1');
ECMS_add_item(1, 'Committees', '/board/committees.jsp?menu=1');
ECMS_add_item(1, 'Board Composition', '/board/composition.jsp?menu=1');
ECMS_add_item(1, 'Rules for Public Comment', '/board/rules.jsp?menu=1');
ECMS_add_item(1, 'By Laws', '/global_docs/forms/allforms/By_Laws.pdf');
ECMS_add_item(1, 'Articles of Incorporation', '/global_docs/forms/allforms/Articles_of_Incorporation.pdf');

if(index == 2) {
ECMS_add_item(0, 'Business Services', '/business/index.jsp?menu=2', '','true');
}
else
{
ECMS_add_item(0, 'Business Services', '/business/index.jsp?menu=2');
}
ECMS_add_item(1, 'Notary', '/business/notary.jsp?menu=2');
ECMS_add_item(1, 'Vending/Food Services', '/business/food.jsp?menu=2');
ECMS_add_item(1, 'Banking', '/business/banking.jsp?menu=2');
ECMS_add_item(1, 'Parking/Transportation', '/business/parking.jsp?menu=2');
ECMS_add_item(1, 'Fitness Center', '/business/fitness.jsp?menu=2');

if(index == 3) {
ECMS_add_item(0, 'Public Information', '/publicinfo/index.jsp?menu=3', '','true');
}
else
{
ECMS_add_item(0, 'Public Information', '/publicinfo/index.jsp?menu=3');
}
ECMS_add_item(1, 'IRS Form 990 Return of Organization Exempt From Income Tax', '/publicinfo/irs.jsp?menu=3');
ECMS_add_item(1, '501 C 3 Exemption Letter', '/global_docs/forms/allforms/IRS501(c)3.pdf');

if(index == 4) {
ECMS_add_item(0, 'Policies & Procedures', '/policies/index.jsp?menu=4', '','true');
}
else
{
ECMS_add_item(0, 'Policies & Procedures', '/policies/index.jsp?menu=4');
}
ECMS_add_item(1, 'Deposit', '/policies/deposit/index.jsp?menu=4');
ECMS_add_item(1, 'Payroll and Personnel', '/policies/payroll/index.jsp?menu=4');
ECMS_add_item(1, 'General Policies', '/policies/general/index.jsp?menu=4');
ECMS_add_item(1, 'Types of UCorp Accounts', '/policies/types/index.jsp?menu=4');
ECMS_add_item(1, 'Restricted Investment Policy', '/policies/restricted/Investment_Policy_Restricted.pdf');
ECMS_add_item(1, 'Unrestricted Investment Policy', '/policies/unrestricted/Investment_Policy_Unrestricted_06132008.pdf');
ECMS_add_item(1, 'Donations', '/policies/donations/index.jsp?menu=4');
ECMS_add_item(1, 'Purchasing', '/policies/purchasing/index.jsp?menu=4');

if(index == 5) {
ECMS_add_item(0, 'On-line Forms', '/forms/index.jsp?menu=5', '','true');
}
else
{
ECMS_add_item(0, 'On-line Forms', '/forms/index.jsp?menu=5');
}
ECMS_add_item(1, 'Employment Packet', '/forms/employment/index.jsp?menu=5');


if(index == 6) {
ECMS_add_item(0, 'Contact Us', '/contact/index.jsp?menu=6', '','true');
}
else
{
ECMS_add_item(0, 'Contact Us', '/contact/index.jsp?menu=6');
}

ECMS_add_item(1, 'Employee Directory', '/contact/employee.jsp?menu=6');
ECMS_add_item(1, 'SFSUFI Employment', '/contact/employment.jsp?menu=6');
ECMS_end_menu();
