/*
	*	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/bullet1.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, 'Online Application', '/students/studentsapplication/index.jsp?menumessage=1&menu=1', '','true');
}
else 
{
ECMS_add_item(0, 'Online Application', '/students/studentsapplication/index.jsp?menumessage=1&menu=1');
}
ECMS_add_item(1, 'Students Direct Deposit', 'https://ids.sfsu.edu/fabsweb/students/index.jsp', '_new');
ECMS_add_item(1, 'Financial Aid Statements', 'https://ids.sfsu.edu/fabsweb/students/index.jsp', '_new');
ECMS_add_item(1, 'Deduct Outstanding Charges', 'https://ids.sfsu.edu/fabsweb/students/index.jsp', '_new');
ECMS_add_item(1, 'OneCard Agreement', 'https://ids.sfsu.edu/fabsweb/students/index.jsp', '_new');
ECMS_add_item(1, 'OneCard Replacement Request', 'https://ids.sfsu.edu/fabsweb/students/index.jsp', '_new');
ECMS_add_item(1, 'OneCard Refund Request', 'https://ids.sfsu.edu/fabsweb/students/index.jsp', '_new');
ECMS_add_item(1, 'OneCard BayBuck$ for Books', 'https://ids.sfsu.edu/fabsweb/students/index.jsp', '_new');

ECMS_add_item(0, 'Fee Schedule & Payments', 'http://www.sfsu.edu/~bursar/student/fees/fee_info.html', '_new');
ECMS_add_item(0, 'Web Payment', 'https://www.eposasp.com/ebpp/validate.aspx?customer=68', '_new');
ECMS_add_item(0, 'Refunds', 'http://www.sfsu.edu/~bursar/student/refund/refund_guidelines.html', '_new');
ECMS_add_item(0, 'Financial Aid  Disbursements', 'http://www.sfsu.edu/~bursar/student/finaid/finaid_info.html', '_new');
ECMS_add_item(0, 'PAC Info', '/students/pacinfo/index.jsp?menumessage=1');
ECMS_add_item(0, 'One Card Office', '/generalinformation/departments/onecard/index.jsp?menu=3');
ECMS_add_item(0, 'Bursars Office', 'http://www.sfsu.edu/~bursar/', '_new');

ECMS_end_menu();
