/* Documentation & heavy modification by Steven Levithan (slevithan@netdes.com) */
var rootPath = "";
var menuPath = "includes/menu/";

function init(currMenuSet){
//Main Menu items:

////menu[x]////
//Brief description of parameters, from 1st to last:
//1.set size(px),2."orientation(horizonal/vertical)",3.left(px),4.top(px),5.submenu hor offset,6.submenu ver offset,
//   7."default color",8."hover color",9."font(s)",10.font size(pt),11."text style(bold italic underline)",12."hover text style",
//   13."text color",14."hover text color",15.border(px),16."border color",17.text margin(px),18."dropdown image/char/ascii(no quotes)",
//   19.bool dropdown onClick,20.bool cell divider like border,21.bool top level menu,22.bool use IE transition,
//   23.transition num(0-23),24.bool shadow,25.shad hor distance(px),26.shad ver distance(px),27."shad color"
menus[0] = new menu(49, "horizontal", 2, 50, 0, 0, "white", "#E8E8E8", "Arial,Helvetica,sans-serif", 9, "",
	"", "#6A6A6A", "#5B83D4", 0, "#CCCCCC", 0, "", false, false, true, true, 18, false, 0, 0, "#B7CFF8");

////menu[x].addItem()////
//Brief description of parameters, from 1st to last:
//1."href",2."target('NEWWIN'for'_blank')",3.set size(px),4."alignment(center/left/right)",5."text/image",6.submenu num/0

var imgVal = new Array(9);	//[0] through [8], 0 not used
var menuSet = new Array ("", "Our Story", "Our Customers", "Solutions", "Industry", "Strategic Alliances", "Press Kit", "Careers", "Contact Us");
//Assign '3' to imgVal[i] value if (currMenuSet==menuSet[i]), else assign '1'.
for (i=1; i<=8; i++){
	imgVal[i] = (currMenuSet==menuSet[i]) ? 3 : 1;
}

var menuItemHlink = new Array ("", "rightchoice.php", "profiles.php", "netdesign.php", "commercial.php", "partners.php", "presskit.php", "careers.php", "contact.php");	//value [0] not used.
var menuItemWidth = new Array ("", 90, 113, 83, 93, 133, 93, 75, 96);	//value [0] not used.
var menuItemSubMenuNum = new Array ("", 1, 2, 3, 4, 5, 6, 0, 0);		//value [0] not used.

for (i=1; i<=8; i++){
	menus[0].addItem(menuItemHlink[i], "", menuItemWidth[i], "center",
		("rollover:"+menuPath+"images/m"+imgVal[i]+"_"+i+".gif:"+menuPath+"images/m2_"+i+".gif"),
		menuItemSubMenuNum[i]);
}


////menu[x].floatMenu()////
//Brief description of parameters, from 1st to last:
//1.base screen width(px),2.base screen height(px),3.(not sure),4.position method(0=horizontal/1=vertical/2=both)
menus[0].floatMenu(800, 600, 10, 0);


//Sub Menu for 1st Main Menu Item ("Our Story"):
menus[1] = new menu(110, "vertical", 0, 0, -5, -5, "white", "#E8E8E8", "Arial,Helvetica", 8, "", 
	"", "#6A6A6A", "#5B83D4", 1, "#CCCCCC", 4, "", false, false, false, false, 0, true, 3, 3, "#B7CFF8");
menus[1].addItem(rootPath+'rightchoice.php', "", 22, "left", "The Right Choice", 0);
menus[1].addItem(rootPath+'capabilities.php', "", 22, "left", "Our Capabilities", 0);

//Sub Menu for 2nd Main Menu Item ("Our Customers"):
menus[2] = new menu(155, "vertical", 0, 0, -5, -5, "white", "#E8E8E8", "Arial,Helvetica", 8, "", 
	"", "#6A6A6A", "#5B83D4", 1, "#CCCCCC", 4, "", false, false, false, false, 0, true, 3, 3, "#B7CFF8");
menus[2].addItem(rootPath+'profiles.php', "", 22, "left", "Customer Profiles", 0);
menus[2].addItem(rootPath+'testimonials.php', "", 22, "left", "Customer Testimonials", 0);

//Sub Menu for 3rd Main Menu Item ("Solutions"):
menus[3] = new menu(155, "vertical", 0, 0, -5, -5, "white", "#E8E8E8", "Arial,Helvetica", 8, "", 
	"", "#6A6A6A", "#5B83D4", 1, "#CCCCCC", 4, "", false, false, false, false, 0, true, 3, 3, "#B7CFF8");
menus[3].addItem(rootPath+'netdesign.php', "", 22, "left", "Network Design &amp; Integration", 0);
menus[3].addItem(rootPath+'appdev.php', "", 35, "left", "Software Applications Development", 0);
menus[3].addItem(rootPath+'infoassur.php', "", 22, "left", "Information Assurance", 0);

//Sub Menu for 4th Main Menu Item ("Industry"):
menus[4] = new menu(105, "vertical", 0, 0, -5, -5, "white", "#E8E8E8", "Arial,Helvetica", 8, "", 
	"", "#6A6A6A", "#5B83D4", 1, "#CCCCCC", 4, "", false, false, false, false, 0, true, 3, 3, "#B7CFF8");
menus[4].addItem(rootPath+'commercial.php', "", 22, "left", "Commercial", 0);
menus[4].addItem(rootPath+'gov.php', "", 22, "left", "Government", 0);

//Sub Menu for 5th Main Menu Item ("Strategic Alliances"):
menus[5] = new menu(133, "vertical", 0, 0, -5, -5, "white", "#E8E8E8", "Arial,Helvetica", 8, "", 
	"", "#6A6A6A", "#5B83D4", 1, "#CCCCCC", 4, "", false, false, false, false, 0, true, 3, 3, "#B7CFF8");
menus[5].addItem(rootPath+'partners.php', "", 22, "left", "Industry Partners", 0);
menus[5].addItem(rootPath+'certs.php', "", 22, "left", "Certifications", 0);

//Sub Menu for 6th Main Menu Item ("Press Kit"):
menus[6] = new menu(105, "vertical", 0, 0, -5, -5, "white", "#E8E8E8", "Arial,Helvetica", 8, "", 
	"", "#6A6A6A", "#5B83D4", 1, "#CCCCCC", 4, "", false, false, false, false, 0, true, 3, 3, "#B7CFF8");
menus[6].addItem(rootPath+'news.php', "", 22, "left", "News", 0);



//7th Main Menu Item ("Careers"):
menus[7] = new menu(105, "vertical", 0, 0, -5, -5, "white", "#E8E8E8", "Arial,Helvetica", 8, "", 
	"", "#6A6A6A", "#5B83D4", 1, "#CCCCCC", 4, "", false, false, false, false, 0, true, 3, 3, "#B7CFF8");

//8th Main Menu Item ("Contact Us"):
menus[8] = new menu(105, "vertical", 0, 0, -5, -5, "white", "#E8E8E8", "Arial,Helvetica", 8, "", 
	"", "#6A6A6A", "#5B83D4", 1, "#CCCCCC", 4, "", false, false, false, false, 0, true, 3, 3, "#B7CFF8");

} //OUTER CLOSING BRACKET.