/* By Steven Levithan (slevithan@netdes.com) */
var menuPath = "includes/menu/";

function initSubNav(currMenuSet, currSetPage){

var menuLink = new Array();
var menuSet = new Array();
var menuTop = 160;
var menuHeight = 28;
switch (currMenuSet){
case "About":
	
	menuSet[0]="About";		menuLink[0]="about.php";
	menuSet[1]="NDi Officers";		menuLink[1]="ndiofficers.php";
	menuSet[2]="Our Capabilities";		menuLink[2]="capabilities.php";
	break;
case "Our Customers":
	menuSet[0]="Customer Profiles";		menuLink[0]="profiles.php";
	menuSet[1]="Customer Testimonials";	menuLink[1]="testimonials.php";
	break;
case "Solutions":
	menuHeight = 38;
	menuSet[0]="Network Design & Integration";		menuLink[0]="netdesign.php";
	menuSet[1]="Software Applications Development";	menuLink[1]="appdev.php";
	menuSet[2]="Information Assurance";				menuLink[2]="infoassur.php";
	break;
case "Industry":
	menuSet[0]="Commercial";			menuLink[0]="commercial.php";
	menuSet[1]="Government";			menuLink[1]="gov.php";
	break;
case "Strategic Alliances":
	menuSet[0]="Industry Partners";		menuLink[0]="partners.php";
	menuSet[1]="Certifications";		menuLink[1]="certs.php";
	break;
case "Press Kit":
	menuSet[0]="Press Kit";				menuLink[0]="presskit.php";
	menuSet[1]="News";		menuLink[1]="news.php";
	
	break;
case "Careers":
	menuSet[0]="Careers";				menuLink[0]="#";
	break;
case "Contact Us":
	menuSet[0]="Contact Us";			menuLink[0]="#";
	break;
case "Site Information":
	menuTop = 176;
	menuSet[0]="Sitemap";				menuLink[0]="sitemap.php";
	menuSet[1]="Copyright Notice";		menuLink[1]="copyright.php";
	menuSet[2]="Terms of Use";			menuLink[2]="terms.php";
	menuSet[3]="Privacy Policy";		menuLink[3]="privacy.php";
	break;
case "Intranets":
	menuTop = 176;
	menuSet[0]="Sample CustomerNet";	menuLink[0]="customernet.php";
	menuSet[1]="Employee Intranet";		menuLink[1]="https://owa.intermedia.net/Login.aspx";
	break;
default:
	return;
}


//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[] starts with 9 because 0-8 used by main menu system in config.js
menus[9] = new menu(152, "vertical", 12, menuTop, 0, 0, "#E5EEFD", "#CEDEFA", "Arial,Helvetica,sans-serif", 8.5, "",
	"", "#6A6A6A", "#5B83D4", 1, "#B7CFF8", 6, "", false, false, true, false, 18, true, 0, 0, "#666666");

////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

for (i=0; i<menuSet.length; i++){
	if (menuSet[i] == currSetPage)	menus[9].addItem(menuLink[i], "", menuHeight, "left", '<span class="thispage" style="display:block">'+menuSet[i]+'</span>', 0);
	else 							menus[9].addItem(menuLink[i], "", menuHeight, "left", menuSet[i], 0);
}

////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[9].floatMenu(800, 600, 10, 0);


} //OUTER CLOSING BRACKET.
