
/********************************************************/
/*                BEGIN MENU CONFIGURATION              */
/********************************************************/

/*
	Option to have top row items created programmatically.
	By setting this to false you can attach the menu items manually
	in the HTML by defining onmouseover events like so:
	<a href="link" onmouseover="popUp(0);"></a>
	Please supply the index of the topmenu item you wish to popup.
*/
var GENERATE_TOP_MENU = false;

/*
	image displayed for top row menu
*/
var TOP_MENU_IMG = "images/open.gif";

/*
	image displayed when an item has subitems
*/
var MENU_IMG = "images/closed.gif";

/*
	logo to place left to menu. Set to false if you do not
	wish to include it
*/
var TOP_MENU_LOGO = false;

/*
	width of menus in pixels
*/
var MENU_WIDTH = 180;

/*
	height of menu items in pixels
*/
var MENU_HEIGHT = 15;

/*
	number of pixels entire menu starts from left
*/
var MENU_OFFSET_X = 277;

/*
	number of pixels entire menu starts from top
*/
var MENU_OFFSET_Y = 430;

/*
	number of pixels submenu pops up relative to its "parent" menu.
	A positive number will offset the menu to the right, a negative number 
	to the left.
*/
var POPUP_OFFSET_X = 0;

/*
	number of pixels submenu pops up relative to its "parent" menu.
	A positive number will offset the menu up, a negative number down.
*/
var POPUP_OFFSET_Y = -10;

/*
	color of the border around the menuitems
*/
var BORDERCOLOR = '#000000';

/*
	width of border in pixels around the menuitems
*/
var BORDERWIDTH = 0;

/*
	default background color of menuitems. 
*/
var BGCOLOR = '#AEA080';

/*
	background color of menuitem when user has the mouse "over" the 
	item.
*/
var BGCOLOR_MOUSEOVER = '#D7CDB8';

/*
	default font color of menu item. Please note that this item 
	also needs to be set through the stylesheet on top of the page
	identified by "link".
*/
var FONT_COLOR = '#FFFFFF';

/* 
	font color of menu item when user has the mouse "over" the item. 
	Please note that this item also needs to be set through the 
	stylesheet on top of the page identified by "linkover".
*/
var FONT_COLOR_MOUSEOVER = '#FFFFFF';

/*
	background color of the topmenu
*/
var TOPMENU_BGCOLOR = '#333399';

/*
	height of the topmenu in pixels.
*/
var TOPMENU_HEIGHT = 40;

/*
	delay in milliseconds for menuitems to disappear when mouse has 
	moved off any menuitem. This is particularly useful for easier 
	navigation.
*/
var FADE_DELAY = 300;

/********************************************************/
/*                END MENU CONFIGURATION                */
/********************************************************/


/********************************************************/
/*                BEGIN DATA TREE CONFIGURATION         */
/********************************************************/

// create tree of objects holding all menu items
function buildMenu() {
	// topmenu is array of menuItems
	var topmenu = new Array();
	
	var patients = new menuItem("Patients","#","_self");
		patients.addSubItem(new menuItem("Jodi Norton","jodi.asp","_self"));
		patients.addSubItem(new menuItem("Linda Hudson-Smith","linda.asp","_self"));
		patients.addSubItem(new menuItem("John Garcia","john.asp","_self"));

	var clinicians = new menuItem("Clinicians","#","_self");
		clinicians.addSubItem(new menuItem("Dr. Evelyn Hess","hess.asp","_self"));
		clinicians.addSubItem(new menuItem("Dr. Violeta Rus","rus.asp","_self"));

	var scientists = new menuItem("Scientists","#","_self");
		scientists.addSubItem(new menuItem("AutoImmunity Primer","autoprimer.asp","_self"));
		scientists.addSubItem(new menuItem("Dr. Gregory Dennis","dennis.asp","_self"));

	var multimedia = new menuItem("Multimedia","#","_self");
		multimedia.addSubItem(new menuItem("CityDance Ensemble","dancecity.asp","_self"));
		multimedia.addSubItem(new menuItem("LFA Video","lfaintro.asp","_self"));

	var community = new menuItem("Community","#","_self");
		community.addSubItem(new menuItem("CAC Home","communityaction.asp","_self"));
		community.addSubItem(new menuItem("Women's Hlth Rsrch Coalition","womenscoalintro.asp","_self"));
		community.addSubItem(new menuItem("Medications","medications.asp","_self"));
		community.addSubItem(new menuItem("Lupus Research Institute","lriintro.asp","_self"));
		community.addSubItem(new menuItem("Lupus Foundation of America","lfaintro.asp","_self"));
		community.addSubItem(new menuItem("L.I.F.E.","lifeintro.asp","_self"));
		community.addSubItem(new menuItem("Clinical Trials","clinicalintro.asp","_self"));
		community.addSubItem(new menuItem("CityDance","dancecity.asp","_self"));

	// Specify width of top menu items here
	patients.setWidth(60);
	topmenu[0] = patients;
	
	clinicians.setWidth(70);
	topmenu[1] = clinicians;
	
	scientists.setWidth(60);
	topmenu[2] = scientists;

	multimedia.setWidth(75);
	topmenu[3] = multimedia;

	community.setWidth(60);
	topmenu[4] = community;

	return topmenu;
}

/********************************************************/
/*                END DATA TREE CONFIGURATION           */
/********************************************************/

// write menu after browser is done loading.
window.onload = new function() { document.write(init()); }

