function leftNav2(currentPage) {
var menuitem = new Array();

// List the link names and the page filenames
// for the PRODUCTS section in the area below. 
// Be sure to include a comma after each item.
// =========================================

// *** BEGIN SECOND SUBSECTION (PRODUCT NAME) *** //


menuitem[0] = new Array();
menuitem[0][0] = new Array("Sage Software","best_overview.html");
menuitem[0][1] = new Array("Abra HRMS","abra_suite.html","Abra HR","abra_hr.html","Abra Payroll","abra_payroll.html","Abra Recruiting Solutions","abra_recruiting.html","Abra Attendance","abra_attendance.html","Abra Train","abra_train.html","Abra OrgPlus","abra_orgplus.html","Abra Alerts","abra_alerts.html","Abra ESS","abra_selfservice.html","Abra Benefits Enroll.","abra_benefits.html","Abra Utilities","abra_utilities.html","Success Stories","abra_success.html");
//menuitem[0][2] = new Array("ACT! by Sage","act.html","ACT!","act_2006.html","ACT! Premium","act_premium.html","ACT! Premium for Web","act_premiumweb.html","Accounting Integration","act_accountingintegration.html","Mobile Solutions","act_mobilesolutions.html","Add-on Solutions","act_addonsolutions.html","Success Stories","act_success.html");
menuitem[0][2] = new Array("Sage Active Planner","best_activeplanner.html","Features and Benefits","best_actvplanbenefits.html","System Requirements","best_actplansysrequir.html","Success Stories","best_success.html");
//menuitem[0][4] = new Array("BusinessWorks","businessworks.html","Features","bworks_features.html","Modules","bworks_modules.html","Success Stories","bworks_success.html");
menuitem[0][3] = new Array("FAS Fixed Assets","fas.html","FAS FirstStep","fas_firststep.html","FAS Asset Accounting","fas_asset.html","FAS Construction Acct.","fas_construction.html","FAS Asset Inventory","fas_assetinv.html","FAS Report Writer","fas_report.html","FAS Solutions Users","fas_users.html","Success Stories","fas_success.html");
menuitem[0][4] = new Array("MAS 500 ERP","mas500.html","Benefits","mas500_benefits.html","Product Offering","mas500_product.html","Financials","mas500_financials.html","Business Intelligence","mas500_busintel.html","Project Accounting","mas500_projacct.html","Distribution","mas500_distribution.html","Manufacturing","mas500_manufacturing.html","CRM","mas500_crm.html","Human Resources","mas500_hr.html","Customization","mas500_customization.html","eBusiness","mas500_ebusiness.html","Industry Solutions","mas500_indsol.html","Document Library","mas500_doclib.html","Success Stories","mas500_success.html");
menuitem[0][5] = new Array("MAS 90 & MAS 200 ERP","mas90.html","Product Offering","mas90_product.html","MAS 90 Features","mas90_features.html","Core Accounting","mas90_core.html","Distribution","mas90_distribution.html","Manufacturing","mas90_manufacturing.html","Business Intel. Tools","mas90_busintel.html","Job Cost & Proj. Mgmt.","mas90_timeproj.html","E-Business","mas90_ebusiness.html","CRM Solutions","mas90_frontoffice.html","HR & Payroll","mas90_hr.html","Extended Solutions","mas90_extended.html","Industry Solutions","mas90_indsol.html","Document Library","mas90_doclib.html","Success Stories","mas90_success.html");
menuitem[0][6] = new Array("SalesLogix CRM","saleslogix.html","SalesLogix Sales","slogix_sales.html","SalesLogix Marketing","slogix_marketing.html","SalesLogix Cust. Serv.","slogix_customerservice.html","SalesLogix Support","slogix_support.html","SalesLogix Mobile Sol.","slogix_mobsol.html","Bus. Alerts & Workflow","slogix_knowledgesync.html","Reporting & Analysis","slogix_pivotreporter.html","New in SalesLogix","slogix_new.html","Document Library","slx_doclib.html","Success Stories","slogix_success.html");
menuitem[0][7] = new Array("Sage CRM Products","sagecrm_overview.html","Sage CRM","sagecrm.html","Sage CRM.com","sagecrm_com.html","Features","sagecrm_features.html","Success Stories","sagecrm_success.html");
menuitem[0][8] = new Array("Sage Time Sheet","sage_timesheet.html","Business Solutions","sage_timesheet_bussolutions.html","Product Information","sage_timesheet_features.html","Success Stories","sage_timesheet_success.html");

menuitem[1] = new Array();
menuitem[1][0] = new Array("SAP","sap_overview.html");
menuitem[1][1] = new Array("SAP Business One","sapbusinessone_overview.html","Benefits","sapbusinessone_benefits.html","Implementation","sapbusinessone_fastimplement.html","Features & Functions","sapbusinessone_keycapabilities.html","Business Administration","sapbusinessone_keycapabilities.html#busadmin","Cust. Relationship Mgmt.","sapbusinessone_keycapabilities.html#custrel","Manufacturing","sapbusinessone_keycapabilities.html#manuf","Reporting","sapbusinessone_reporting.html","Success Stories","sapbusinessone_success.html");

menuitem[2] = new Array();
menuitem[2][0] = new Array("Microsoft Business Solns.","ms_overview.html");
menuitem[2][1] = new Array("Dynamics GP","greatplains.html","Reporting & Analytics","great_reporting.html","Business Portal","great_busportal.html","Customization","great_customization.html","E-Commerce","great_ecommerce.html","Field Service","great_fieldservice.html","Financial Management","great_financial.html","Foundation","great_foundation.html","HR Management","great_hr.html","Manufacturing","great_manufacturing.html","Project Management","great_project.html","Supply Chain Mgmt.","great_supply.html","Success Stories","great_success.html");
// menuitem[2][2] = new Array("Small Business Manager","microsoftsbm.html","E-Commerce","sbm_ecommerce.html","Financial Management","sbm_financial.html","Supply Chain Mgmt.","sbm_supply.html","Success Stories","sbm_success.html");
// menuitem[2][3] = new Array("Microsoft CRM","microsoftcrm.html","Customer Relat. Mgmt.","mcrm_crm.html","CRM Customer Service","mcrm_custserv.html","CRM Sales","mcrm_sales.html","Customization Overview","mcrm_customizationoverview.html","Customization","mcrm_customization.html","Customiz. White Paper","mcrm_customwp.html","Integration","mcrm_integration.html","Integration White Paper","mcrm_integrationwp.html","Success Stories","mcrm_success.html");
// menuitem[2][4] = new Array("Retail Management Sys.","retailms.html","Integrated Card Process.","retailms_icp.html","Retail Mgmt System HQ","retailms_systemhq.html","Retail Mgmt Sys. Store","retailms_systop.html","Success Stories","retailms_success.html");


// menuitem[3] = new Array();
// menuitem[3][0] = new Array("Radio Beacon","radiobeacon_overview.html");
// menuitem[3][1] = new Array("Radio Beacon Features","radio_features.html");
// menuitem[3][2] = new Array("Radio Beacon Modules","radio_modules.html");
// menuitem[3][3] = new Array("Radio Beacon Integr.","radio_integration.html");
// menuitem[3][4] = new Array("Accounting Solutions","radio_accountingsol.html");
// menuitem[3][5] = new Array("Success Stories","radio_success.html");

// menuitem[4] = new Array();
// menuitem[4][0] = new Array("Fusion Retail Solution","fusion_overview.html");
// menuitem[4][1] = new Array("Fusion Single Register","fusion_single.html");
// menuitem[4][2] = new Array("Fusion Small Business Ed.","fusion_smallbus.html");
// menuitem[4][3] = new Array("Fusion Enterprise Ed.","fusion_enterprise.html");
// menuitem[4][4] = new Array("Fusion Feature Lists","fusion_featurelist.html");
// menuitem[4][5] = new Array("Success Stories","fusion_success.html");

//menuitem[3] = new Array();
//menuitem[3][0] = new Array("True Commerce","truecommerce_overview.html");

// menuitem[6] = new Array();
// menuitem[6][0] = new Array("Valogix","valogix_overview.html");






// locate active item or subitem
var x=0; 
var y=0;
var z=0;
var activesub=-1;
for (x=0; x<menuitem.length; x++) { 
for (y=0; y<menuitem[x].length; y++) {
for (z=0; z<menuitem[x][y].length; z++) {	
	if (menuitem[x][y][z] == currentPage) {
		activesub = x;
		activesub2 = y;
	}
}
}
}

 for (x=0; x<menuitem.length; x++) {
 document.write('<td bgcolor=#ffffff><img src="images/nav_div.gif" width="180" height="1"></td></tr><tr>');
 

	if (activesub == x) {
		if (menuitem[x].length < 2) {
			// case 1: active item, no subitems
			//document.write("1");
			document.write('<td bgcolor=#EEF4F7><p class="nav3">&nbsp;&#155; ' + menuitem[x][0][0] + '</a></td></tr><tr>');
		} else if (menuitem[x][0][1] == currentPage) {
			// case 2: active item with inactive subitems
			//document.write("2");
			document.write('<td bgcolor=#EEF4F7><p class="nav3">&nbsp;&#155; ' + menuitem[x][0][0] + '</a></td></tr><tr>');
			document.write('<td bgcolor=#ffffff><img src="images/nav_div.gif" width="180" height="1"></td></tr><tr>');
			for (y=1; y<menuitem[x].length; y++) {
				// render subitems
				if (menuitem[x][y][1] == "TITLE") {
					document.write('<td bgcolor=#EEF4F7><p class="currentnav3title">&nbsp; ' + menuitem[x][y][0] + '</p></td></tr><tr>'); 
				} else {
					document.write('<td bgcolor=#EEF4F7><p class="currentnav3">&nbsp;&nbsp;&nbsp; <a href="' + menuitem[x][y][1] + '" class="navlink3">' + menuitem[x][y][0] + '</a></p></td></tr><tr>'); 
				}
			}
		} else {
			document.write('<td bgcolor=#EEF4F7><p class="currentnav3">&nbsp;&#155; <a href="' + menuitem[x][0][1] + '" class="navlink3a">' + menuitem[x][0][0] + '</a></p></td></tr><tr>');
			for (y=0; y<menuitem[x].length; y++) {
				if (activesub2 == y) {
					if (menuitem[x][y].length < 4) {
					// case 3: active item, active subitem, no sub-subitems
					//document.write("3");
					document.write('<td bgcolor=#EEF4F7><p class="nav3">&nbsp;&#155; ' + menuitem[x][y][0] + '</a></td></tr><tr>');
					} else if (menuitem[x][y][1] == currentPage) {
					// case 4: active item, active subitem, inactive sub-subitems
					//document.write("4");
					document.write('<td bgcolor=#EEF4F7><p class="nav3">&nbsp;&nbsp;&nbsp;<font color=#01628C>&#155;</font> ' + menuitem[x][y][0] + '</a></td></tr><tr>');
					document.write('<td bgcolor=#ffffff><img src="images/nav_div.gif" width="180" height="1"></td></tr><tr>');
						for (z=2; z<menuitem[x][y].length; z+=2) {
						// render sub-subitems
						document.write('<td bgcolor=#F4F8FA><p class="currentnav3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="' + menuitem[x][y][z+1] + '" class="navlink3">' + menuitem[x][y][z] + '</a></p></td></tr><tr>'); 
						}
					
					} else {
					// case 5: active item, inactive subitem, active sub-subitem
					//document.write("5");
					document.write('<td bgcolor=#EEF4F7><p class="currentnav3">&nbsp;&nbsp;&nbsp;&#155; <a href="' + menuitem[x][y][1] + '" class="navlink3">' + menuitem[x][y][0] + '</a></p></td></tr><tr>');
					document.write('<td bgcolor=#ffffff><img src="images/nav_div.gif" width="180" height="1"></td></tr><tr>');
						for (z=2; z<menuitem[x][y].length; z+=2) {
						// render sub-subitems
							if (menuitem[x][y][z+1] != currentPage) {
							document.write('<td bgcolor=#F4F8FA><p class="currentnav3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="' + menuitem[x][y][z+1] + '" class="navlink3">' + menuitem[x][y][z] + '</a></p></td></tr><tr>'); 
							} else {
							document.write('<td bgcolor=#F4F8FA><p class="currentnav3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color=#01628C>&#155;</font> ' + menuitem[x][y][z] + '</p></td></tr><tr>');
							}
						}
					} 
				} else {
					if (y>0) {
						if (menuitem[x][y][1] == "TITLE") {
							document.write('<td bgcolor=#EEF4F7><p class="currentnav3title">&nbsp; ' + menuitem[x][y][0] + '</p></td></tr><tr>'); 
						} else {
							document.write('<td bgcolor=#EEF4F7><p class="currentnav3">&nbsp;&nbsp;&nbsp; <a href="' + menuitem[x][y][1] + '" class="navlink3">' + menuitem[x][y][0] + '</a></p></td></tr><tr>'); 
						}
					}
				}
			}
		}
	} else {
	document.write('<td bgcolor=#E2EDF1><p class="currentnav3">&nbsp;&nbsp; <a href="' + menuitem[x][0][1] + '" class="navlink3a">' + menuitem[x][0][0] + '</a></p></td></tr><tr>');
	}
 }
}
