// This line tricks editor into syntax coloring for javascript
//<script>

// the total number of menuItems
nummenuItems = 7;

// at rest color for menuItems
loColor = "#FFFFFF";
// hilite color for menuItems
hiColor = "#FFFFFF";

// at rest color for text
loText = "#669900";
// hilite color for text
hiText = "#669900";

// parameters for menu item text
basefontFamily 	= "font-family: Arial, Verdana, Helvetica, sans-serif; ";
basefontSize	= "font-size: 11px; ";
basefontWeight	= "font-weight: normal; ";

// parameters for subitem text
subfontFamily 	= "font-family: Arial, Verdana, Helvetica, sans-serif; ";
subfontSize		= "font-size: 11px; ";
subfontWeight	= "font-weight: normal; ";

// padding between items
vPad = "6px";
subvPad = "3px";
hPad = "0px";

// sets the position for base menu
theLeft = 10;
theTop = 95;

// determines width of parent & sub menu divs - effectively sets width for all menu items
theWidth = 125;
subWidth = 195;

// this is ignored as we let the number of items determine height
theHeight = 138;

// sets left offset for all submenus (this is added to baseMenu's left to get position)
subLeftOffset = (theWidth*1);

// sets the estimated height of menu items, determines vertical offsets for submenus
// need to swap these based on Mac/pc
subTopOffset = 28;	//mac
subTopShift = 57;	//mac
if (navigator.platform == "MacPPC") {
	subTopOffset = subTopOffset;	//mac
	subTopShift = subTopShift;	//mac
} else {
	subTopOffset = (subTopOffset+2);	//pc
	subTopShift = (subTopShift-2);	//pc
}

// defines the bottom border for menu items
theBorder = "1px none #000000";

// the z-index for the popup menuItems: this should put popups above all other items
theZindex = 100;

// the css selector for menu text
menuItemStyle = "menuitemtext";

// menu semaphore
timerID = 0;

// delay that menus stay visible after rollout in milliseconds
wipeDelay = 100;

// indent image
theIndent = "<img src='images/spacer.gif' width='10' height='8'>";

// initialize base menu arrays
baseMenu = new Array;
menuItems = new Array;
// set values for
baseMenu[1]  = buildArray("hom",	"home.php",        "rt_base.php",   	"home"			);
baseMenu[2]  = buildArray("abo",	"about.php",       	"rt_base.php",    	"about us"		);
baseMenu[3]  = buildArray("hur",	"hurley.php",      	"rt_base.php",    	"hurley school"	);
baseMenu[4]  = buildArray("art",	"news.php",    	"rt_base.php",    	"news"		);
baseMenu[5]  = buildArray("can",	"candidates.php",  	"rt_base.php",    	"candidates"	);
baseMenu[6]  = buildArray("get",	"get_involved.php",	"rt_base.php",    	"get involved"	);
baseMenu[7]  = buildArray("don",	"donate.php",	"rt_base.php",    	"donate"	);
baseMenu[8]  = buildArray("thk",	"thanks.php",	"rt_base.php",    	"thank you"	);
baseMenu[9]  = buildArray("cal",	"events.php",		"rt_base.php",    	"calendar"	);
//baseMenu[9]  = buildArray("bul",	"bulletin.php",    	"rt_bulletin.php",	"bulletin board");
baseMenu[10]  = buildArray("faq",	"faq.php",         	"rt_base.php",    	"faq"			);
baseMenu[11]  = buildArray("wsh",	"wishlist.php",   "rt_base.php",    	"wish list"			);
baseMenu[12] = buildArray("con",		"contact.php",     	"rt_base.php",    	"contact"		);
//baseMenu[12]  = buildArray("pho",	"photos.php",      	"rt_base.php",    	"photos"		);
//baseMenu[13] = buildArray("tha",	"thank.php",       	"rt_base.php",    	"thank you"		);

// initialize the appropriate number of menuItems
function initMenuItems() {
	for (i=1;i<(baseMenu.length+1);i++) {
		menuItems[i] = new Array();
	}
}

// function to build individual menu items
function buildArray(theName, theMidURL, theRtURL, theTitle) {
	theItem = new Array();
	theItem[1] = theTitle;
	theItem[2] = theMidURL;
	theItem[3] = theRtURL;
	theItem[4] = theName;
	return theItem;
}

// initialize the menuItems array
initMenuItems();

// now we can load the specific info for individual menu positions
// submenu 1 (home button so we can ignore it)
//menuItems[1][1] = buildArray("holder","holder","holder","holder");
menuItems[1][1] = buildArray("#","holder","holder","holder");
/*
// second submenu - Company
menuItems[2][1] = buildArray("Who We Are","company.html");
menuItems[2][2] = buildArray("","#");
menuItems[2][3] = buildArray(theIndent + "Management Team","company_mgmt.html");
menuItems[2][4] = buildArray(theIndent + "Investors","company_investors.html");
menuItems[2][5] = buildArray(theIndent + "Board of Directors","company_directors.html");
menuItems[2][6] = buildArray(theIndent + "Medical Advisory Board","company_medadv.html");
menuItems[2][7] = buildArray(theIndent + "Careers at PatientKeeper","careers.html");

// third submenu - Products
menuItems[3][1] = buildArray("PatientKeeper Products","products.html");
menuItems[3][2] = buildArray("","#");
menuItems[3][3] = buildArray("PatientKeeper Enterprise","products_enterprise.html");
menuItems[3][4] = buildArray(theIndent + "Charge Capture Application Suite","cc.html");
menuItems[3][5] = buildArray(theIndent + "Clinical Application Suite","ca.html");
menuItems[3][6] = buildArray("","#");
menuItems[3][7] = buildArray("Infrastructure","developer.html");
menuItems[3][8] = buildArray(theIndent + "Mobilizer Server","products_mobserv.html");
menuItems[3][9] = buildArray(theIndent + "Software Development Kits","products_sdk.html");
menuItems[3][10] = buildArray("","#");
menuItems[3][11] = buildArray("PatientKeeper Personal","products_personal.html");

// fourth submenu
//menuItems[4][2] = buildArray("Customers","success.html");

// fifth submenu - news
menuItems[5][1] = buildArray("PatientKeeper News","news.html");
menuItems[5][2] = buildArray("","#");
menuItems[5][3] = buildArray(theIndent + "Press Releases","news_pr.html");
menuItems[5][4] = buildArray(theIndent + "In The News","news_inthe.html");
menuItems[5][5] = buildArray(theIndent + "Events","news_events.html");
//menuItems[5][4] = buildArray("White Papers","news.html");


// sixth submenu - developer
menuItems[6][1] = buildArray("Infrastructure","developer.html");
menuItems[6][2] = buildArray("","#");
menuItems[6][3] = buildArray(theIndent + "Mobilizer Server","developer_mobserv.html");
menuItems[6][4] = buildArray(theIndent + "Software Development Kits","developer_sdk.html");

// seventh submenu - support
menuItems[7][1] = buildArray("PatientKeeper Support","support.html");
menuItems[7][2] = buildArray("","#");
menuItems[7][3] = buildArray(theIndent + "PatientKeeper Enterprise Support","support_enterprise.html");
//menuItems[7][2] = buildArray(theIndent + "FAQs","support.html");
//menuItems[7][3] = buildArray(theIndent + "Downloads","support.html");
//menuItems[7][4] = buildArray(theIndent + "Email Support","support.html");
menuItems[7][4] = buildArray(theIndent + "PatientKeeper Personal Support","support_personal.html");
//menuItems[7][7] = buildArray(theIndent + "FAQs","support.html");
//menuItems[7][8] = buildArray(theIndent + "Downloads","support.html");
//menuItems[7][9] = buildArray(theIndent + "Email Support","support.html");

// eigth submenu
//menuItems[8][1] = buildArray("Site Map","contact_sitemap.html");
menuItems[8][1] = buildArray("Contact PatientKeeper","contact.html");
menuItems[8][2] = buildArray("","#");
menuItems[8][3] = buildArray(theIndent + "Request Information","contact_form.html");
menuItems[8][4] = buildArray(theIndent + "Directions","contact_directions.html");

// ninth submenu
//menuItems[9][1] = buildArray("Company 2","company/2.html");
*/

/*
// automatic build function for testing (disabled now)
for (i=1;i<(baseMenu.length+1);i++) {
	menuItems[i] = new Array();
	//for (j=1;j<4;j++) {
	//	menuItems[i][j] = buildArray("item "+i+":"+j,j+".html");
	//}
	menuItems[i][1] = buildArray("item "+i+":1","1.html");
}*/




// array of names for clinical app menu so I can just call position instead of getting name wrong
CAappItems = new Array();
CAappItems[1]  = "patlist";
CAappItems[2]  = "lab";
CAappItems[3]  = "med";
CAappItems[4]  = "prob";
CAappItems[5]  = "patsum";
CAappItems[6]  = "allergies";
CAappItems[7]  = "test";
CAappItems[8]  = "patinfo";
CAappItems[9]  = "order";
CAappItems[10] = "clinical";
CAappItems[11] = "vitals";
CAappItems[12] = "alerts";

// array of names for chargecapture app menu so I can just call position instead of getting name wrong
CCappItems = new Array();
CCappItems[1]  = "patlist";
CCappItems[2]  = "chargekeeper";
CCappItems[3]  = "patinfo";
CCappItems[4]  = "prob";
CCappItems[5]  = "alerts";
