/*
File:			cdw_dropdowndata.js
Author:			Corti Designworks LLC
Use:			TischlerBise Site 
Purpose:	`	Holds the data values for the top horizontal drop down menu.
				Relies on code in cdw_dropdownsrc.js.  
				Note that this has only been tested at a 2 levels deep hierarchy.

datetime: 20050307.15:30
				
Mods:		
*/


// Declare common variables
var menu_items 	= new Array();		/*  An array of menu objects.  
										Each object holds properties controlling one menu item or entry.
										*/
var tempM							= "";
var tempO							= "";
var cdw_totalmenuitems_count 		= -1;	// must be -1
var cdw_topmenu_count				= 0;	// must be 0
var cdw_submenu_count 				= 0;	// must be 0

/*	--------	Function definitions ------------ */
function newTopItemInit(){
	cdw_totalmenuitems_count 				= cdw_totalmenuitems_count + 1;
	cdw_submenu_count 						= 0;
	menu_items[cdw_totalmenuitems_count]	= new Object();
	tempM 									= menu_items[cdw_totalmenuitems_count];
}

function newSubItemInit(){
	cdw_totalmenuitems_count 				= cdw_totalmenuitems_count + 1;
	cdw_submenu_count 						= cdw_submenu_count + 1;
	menu_items[cdw_totalmenuitems_count]	= new Object();
	tempM									= menu_items[cdw_totalmenuitems_count];
}

function newTopItemInitA(){
	cdw_totalmenuitems_count 				= cdw_totalmenuitems_count + 1;
	cdw_submenu_count 						= 0;
}
function newTopItemInitB(){
	tempM 									= menu_items[cdw_totalmenuitems_count];
	tempM.name								= 'Top' + cdw_topmenu_count;
	tempM.parent							= '';
}

function newSubItemInitA(){
	cdw_totalmenuitems_count 				= cdw_totalmenuitems_count + 1;
	cdw_submenu_count 						= cdw_submenu_count + 1;
}

function newSubItemInitB(){
	tempM									= menu_items[cdw_totalmenuitems_count];
	menu_items[cdw_totalmenuitems_count].name		= 'Sub' + cdw_topmenu_count + '-' + cdw_submenu_count;
	menu_items[cdw_totalmenuitems_count].parent		= 'Top' + cdw_topmenu_count;
	// tempM.name								= 'Sub' + cdw_topmenu_count + '-' + cdw_submenu_count;
	// tempM.parent							= 'Top' + cdw_topmenu_count;
}

function makeMenuEntry()  {  // 
	/* purpose:		wrapper on oCMenu.makeMenu() to allow for more maintainable
					menu data through object naming
	*/
	oCMenu.makeMenu(this.name, this.parent, this.text, this.link, this.target, this.width, this.height, this.img1, this.img2, this.bgcoloroff, this.bgcoloron, this.textcolor, this.hovercolor, this.onclick, this.onmouseover, this.onmouseout);
}

/*  Test and Guideline Data, using menu object parameters
	samples use text for menu values, use of images will require testing
	these values (e.g. for textcolor) override defaults set in dropdownsrc.js
	(e.g. oCMenu.level[0].textcolor='#cccccc')

	menu_items[0]	= new Object();
	tempM			= menu_items[0];
		tempM.make			= makeMenuEntry;	// only valid value
		tempM.name			= 'Top1';			// html name of this div area
		tempM.parent		= '';				// html name of parent div area (if there is one)
		tempM.text			= CenterNS('First top item','108'); 	// opt: CenterNS(title,width)
		tempM.link			= './top1-page.html';					// HREF of link
		tempM.target		= '';									// if there is an in-page target
		tempM.width			= '108';			// menu entry display width
		tempM.height		= '20';				// menu entry display height
		tempM.img1			= '';
		tempM.img2			= '';
		tempM.bgcoloroff	= '';
		tempM.bgcoloron		= '';
		tempM.textcolor		= '#666666';		// color of text
		tempM.hovercolor	= '';
		tempM.onclick		= '';
		tempM.onmouseover	= 'status="top1-page";';
		tempM.onmouseout	= 'status="";';


	menu_items[1]	= new Object();
	tempM			= menu_items[1];
		tempM.make			= makeMenuEntry;
		tempM.name			= 'Sub1-1';
		tempM.parent		= 'Top1';
		tempM.text			= 'First sub menu entry';
		tempM.link			= './sub1-1-page.html';
		tempM.target		= '';
		tempM.width			= '130';
		tempM.height		= '20';
		tempM.img1			= '';
		tempM.img2			= '';
		tempM.bgcoloroff	= '';
		tempM.bgcoloron		= '';
		tempM.textcolor		= '';
		tempM.hovercolor	= '';
		tempM.onclick		= '';
		tempM.onmouseover	= 'status="sub1-1-page";';
		tempM.onmouseout	= 'status="";';

		
	menu_items[2]	= new Object();
	tempM			= menu_items[2];
		tempM.make			= makeMenuEntry;
		tempM.name			= 'Sub1-2';
		tempM.parent		= 'Top1';
		tempM.text			= 'Second sub menu entry';
		tempM.link			= './sub1-2-page.html';
		tempM.target		= '';
		tempM.width			= '130';
		tempM.height		= '20';
		tempM.img1			= '';
		tempM.img2			= '';
		tempM.bgcoloroff	= '';
		tempM.bgcoloron		= '';
		tempM.textcolor		= '';
		tempM.hovercolor	= '';
		tempM.onclick		= '';
		tempM.onmouseover	= 'status="sub1-2-page";';
		tempM.onmouseout	= 'status="";';

	Alternate Test data - using literal parameters
 	note that the "cm_makeMenu" function in src performs oCMenu.makeMenu

oCMenu.makeMenu('Top1','',CenterNS('First top item','108'),'./top1-page.html','','108','20','','','','','#666666','','','status="top1-page";','status="";');

 oCMenu.makeMenu('Sub1-1','Top1','First sub menu entry',"./sub1-1-page.html",'','130','20','','','','','','','','status="sub1-1-page";','status="";');

 oCMenu.makeMenu('Sub1-2','Top1',"'Second sub menu entry","./sub1-2-page.html",'','130','20','','','','','','','','status="sub1-2-page";','status="";'); 
*/

/************* BEGIN Menu data section - edit for menu updates ******************************************
	
Editing guidelines:
1. 	The "tempM.link" property, page URL names MUST have "./" in front of it,
    OR this script will FAIL
*/


   // -----------------------
   // ----- top menu 1 ------
   // -----------------------
newTopItemInit()
		tempM.make			= makeMenuEntry;
		tempM.name			= 'Top1';
		tempM.parent		= '';
		tempM.text			= 'Home';
		tempM.link			= oCDW_pagestate.tbserver_prefix + 'index' + oCDW_pagestate.extname;
		tempM.target		= '';
		tempM.width			= '62';
		tempM.height		= '';
		tempM.img1			= '';
		tempM.img2			= '';
		tempM.bgcoloroff	= '';
		tempM.bgcoloron		= '';
		tempM.textcolor		= '';
		tempM.hovercolor	= '';
		tempM.onclick		= '';
		tempM.onmouseover	= 'status="Home";';
		tempM.onmouseout	= 'status="";';



   // -----------------------
   // ----- top menu 2 ------
   // -----------------------
// newTopItemInitA(); menu_items[cdw_totalmenuitems_count]	= new Object(); newTopItemInitB();
newTopItemInit()
var sWidthSub2	= '130';
		tempM.make			= makeMenuEntry;
		tempM.name			= 'Top2';
		tempM.parent		= '';
		 
		tempM.text			= 'Staff'; 
		tempM.link			= oCDW_pagestate.tbserver_prefix + 'staff' + oCDW_pagestate.extname;
		tempM.target		= '';
		tempM.width			= '62';
		tempM.height		= '';
		tempM.img1			= '';
		tempM.img2			= '';
		tempM.bgcoloroff	= '';
		tempM.bgcoloron		= '';
		tempM.textcolor		= '';
		tempM.hovercolor	= '#ffffff';
		tempM.onclick		= '';
		tempM.onmouseover	= 'status="staff";';
		tempM.onmouseout	= 'status="";';


   // -----------------------
   // ----- top menu 3 ------
   // -----------------------
newTopItemInit()
var sWidthSub3	= '200';
		tempM.make			= makeMenuEntry;
		tempM.name			= 'Top3';
		tempM.parent		= '';
		tempM.text			= 'Professional Services';
		tempM.link			= '';             // previously: './servicesintro' + oCDW_pagestate.extname;
		tempM.target		= '';
		tempM.width			= '130';
		tempM.height		= '';
		tempM.img1			= '';
		tempM.img2			= '';
		tempM.bgcoloroff	= '';
		tempM.bgcoloron		= '';
		tempM.textcolor		= '';
		tempM.hovercolor	= '#ffffff';
		tempM.onclick		= '';
		tempM.onmouseover	= 'status="Professional Services";';
		tempM.onmouseout	= 'status="";';
	
		newSubItemInit()
		tempM.make			= makeMenuEntry;
		tempM.name			= 'Sub3-1'; + cdw_submenu_count;
		tempM.parent		= 'Top3';
		tempM.text			= 'Fiscal Impact Analyses';
		tempM.link			= oCDW_pagestate.tbserver_prefix + 'fiscalimpact' + oCDW_pagestate.extname;
		tempM.target		= '';
		tempM.width			= sWidthSub3;
		tempM.height		= '';
		tempM.img1			= '';
		tempM.img2			= '';
		tempM.bgcoloroff	= '';
		tempM.bgcoloron		= '';
		tempM.textcolor		= '';
		tempM.hovercolor	= '';
		tempM.onclick		= '';
		tempM.onmouseover	= 'status="Fiscal Impact Analyses";';
		tempM.onmouseout	= 'status="";';

		
		
newSubItemInit()
		tempM.make			= makeMenuEntry;
		tempM.name			= 'Sub3-2' + cdw_submenu_count;
		tempM.parent		= 'Top3';
		tempM.text			= ' > Growth Alternatives Analyses';
		tempM.link			= oCDW_pagestate.tbserver_prefix + 'growthalternatives' + oCDW_pagestate.extname;
		tempM.target		= '';
		tempM.width			= sWidthSub3;
		tempM.height		= '';
		tempM.img1			= '';
		tempM.img2			= '';
		tempM.bgcoloroff	= '';
		tempM.bgcoloron		= '';
		tempM.textcolor		= '';
		tempM.hovercolor	= '';
		tempM.onclick		= '';
		tempM.onmouseover	= 'status=" > GGrowth Alternatives Analyses";';
		tempM.onmouseout	= 'status="";';
		
newSubItemInit()
		tempM.make			= makeMenuEntry;
		tempM.name			= 'Sub3-3' + cdw_submenu_count;
		tempM.parent		= 'Top3';
		tempM.text			= ' > Development Proposals';
		tempM.link			= oCDW_pagestate.tbserver_prefix + 'developmentproposals1' + oCDW_pagestate.extname;
		tempM.target		= '';
		tempM.width			= sWidthSub3;
		tempM.height		= '';
		tempM.img1			= '';
		tempM.img2			= '';
		tempM.bgcoloroff	= '';
		tempM.bgcoloron		= '';
		tempM.textcolor		= '';
		tempM.hovercolor	= '';
		tempM.onclick		= '';
		tempM.onmouseover	= 'status=" > Development Proposals";';
		tempM.onmouseout	= 'status="";';
		
newSubItemInit()
		tempM.make			= makeMenuEntry;
		tempM.name			= 'Sub3-4' + cdw_submenu_count;
		tempM.parent		= 'Top3';
		tempM.text			= ' > Annexation Proposals';
		tempM.link			= oCDW_pagestate.tbserver_prefix + 'annexationproposals' + oCDW_pagestate.extname;
		tempM.target		= '';
		tempM.width			= sWidthSub3;
		tempM.height		= '';
		tempM.img1			= '';
		tempM.img2			= '';
		tempM.bgcoloroff	= '';
		tempM.bgcoloron		= '';
		tempM.textcolor		= '';
		tempM.hovercolor	= '';
		tempM.onclick		= '';
		tempM.onmouseover	= 'status=" > Annexation Proposals ";';
		tempM.onmouseout	= 'status="";';
		
newSubItemInit()
		tempM.make			= makeMenuEntry;
		tempM.name			= 'Sub3-5' + cdw_submenu_count;
		tempM.parent		= 'Top3';
		tempM.text			= ' > Fiscal Equity Studies';
		tempM.link			= oCDW_pagestate.tbserver_prefix + 'fiscalequitystudies' + oCDW_pagestate.extname;
		tempM.target		= '';
		tempM.width			= sWidthSub3;
		tempM.height		= '';
		tempM.img1			= '';
		tempM.img2			= '';
		tempM.bgcoloroff	= '';
		tempM.bgcoloron		= '';
		tempM.textcolor		= '';
		tempM.hovercolor	= '';
		tempM.onclick		= '';
		tempM.onmouseover	= 'status=" > Fiscal Equity Studies";';
		tempM.onmouseout	= 'status="";';
	
		
newSubItemInit()
		tempM.make			= makeMenuEntry;
		tempM.name			= 'Sub3-6' + cdw_submenu_count;
		tempM.parent		= 'Top3';
		tempM.text			= 'Impact Fees';
		tempM.link			= oCDW_pagestate.tbserver_prefix + 'impactfees' + oCDW_pagestate.extname;
		tempM.target		= '';
		tempM.width			= sWidthSub3;
		tempM.height		= '';
		tempM.img1			= '';
		tempM.img2			= '';
		tempM.bgcoloroff	= '';
		tempM.bgcoloron		= '';
		tempM.textcolor		= '';
		tempM.hovercolor	= '';
		tempM.onclick		= '';
		tempM.onmouseover	= 'status="Impact Fees";';
		tempM.onmouseout	= 'status="";';

newSubItemInit()
		tempM.make			= makeMenuEntry;
		tempM.name			= 'Sub3-6' + cdw_submenu_count;
		tempM.parent		= 'Top3';
		tempM.text			= 'Utility Rate Studies';
		tempM.link			= oCDW_pagestate.tbserver_prefix + 'utilityrate' + oCDW_pagestate.extname;
		tempM.target		= '';
		tempM.width			= sWidthSub3;
		tempM.height		= '';
		tempM.img1			= '';
		tempM.img2			= '';
		tempM.bgcoloroff	= '';
		tempM.bgcoloron		= '';
		tempM.textcolor		= '';
		tempM.hovercolor	= '';
		tempM.onclick		= '';
		tempM.onmouseover	= 'status="Utility Rate Studies";';
		tempM.onmouseout	= 'status="";';	
				
newSubItemInit()
		tempM.make			= makeMenuEntry;
		tempM.name			= 'Sub3-7' + cdw_submenu_count;
		tempM.parent		= 'Top3';
		tempM.text			= 'Infrastructure financing Studies';
		tempM.link			= oCDW_pagestate.tbserver_prefix + 'revenuestrategies' + oCDW_pagestate.extname;
		tempM.target		= '';
		tempM.width			= sWidthSub3;
		tempM.height		= '';
		tempM.img1			= '';
		tempM.img2			= '';
		tempM.bgcoloroff	= '';
		tempM.bgcoloron		= '';
		tempM.textcolor		= '';
		tempM.hovercolor	= '';
		tempM.onclick		= '';
		tempM.onmouseover	= 'status="Infrastructure financing Studies";';
		tempM.onmouseout	= 'status="";';

newSubItemInit()
		tempM.make			= makeMenuEntry;
		tempM.name			= 'Sub3-7' + cdw_submenu_count;
		tempM.parent		= 'Top3';
		tempM.text			= 'User Fee/Cost of Service Studies';
		tempM.link			= oCDW_pagestate.tbserver_prefix + 'userfee' + oCDW_pagestate.extname;
		tempM.target		= '';
		tempM.width			= sWidthSub3;
		tempM.height		= '';
		tempM.img1			= '';
		tempM.img2			= '';
		tempM.bgcoloroff	= '';
		tempM.bgcoloron		= '';
		tempM.textcolor		= '';
		tempM.hovercolor	= '';
		tempM.onclick		= '';
		tempM.onmouseover	= 'status="User Fee/Cost of Service Studies";';
		tempM.onmouseout	= 'status="";';		
		
newSubItemInit()
		tempM.make			= makeMenuEntry;
		tempM.name			= 'Sub3-7' + cdw_submenu_count;
		tempM.parent		= 'Top3';
		tempM.text			= 'Cost Allocation Plans';
		tempM.link			= oCDW_pagestate.tbserver_prefix + 'costallocation' + oCDW_pagestate.extname;
		tempM.target		= '';
		tempM.width			= sWidthSub3;
		tempM.height		= '';
		tempM.img1			= '';
		tempM.img2			= '';
		tempM.bgcoloroff	= '';
		tempM.bgcoloron		= '';
		tempM.textcolor		= '';
		tempM.hovercolor	= '';
		tempM.onclick		= '';
		tempM.onmouseover	= 'status="Infrastructure financing Studies";';
		tempM.onmouseout	= 'status="";';
		
newSubItemInit()
		tempM.make			= makeMenuEntry;
		tempM.name			= 'Sub3-8' + cdw_submenu_count;
		tempM.parent		= 'Top3';
		tempM.text			= 'Capital Improvement Plans';
		tempM.link			= oCDW_pagestate.tbserver_prefix + 'capitalimprovement' + oCDW_pagestate.extname;
		tempM.target		= '';
		tempM.width			= sWidthSub3;
		tempM.height		= '';
		tempM.img1			= '';
		tempM.img2			= '';
		tempM.bgcoloroff	= '';
		tempM.bgcoloron		= '';
		tempM.textcolor		= '';
		tempM.hovercolor	= '';
		tempM.onclick		= '';
		tempM.onmouseover	= 'status="Capital Improvement Plans";';
		tempM.onmouseout	= 'status="";';		

newSubItemInit()
		tempM.make			= makeMenuEntry;
		tempM.name			= 'Sub3-9' + cdw_submenu_count;
		tempM.parent		= 'Top3';
		tempM.text			= 'Economic Impact and Market Analyses';
		tempM.link			= oCDW_pagestate.tbserver_prefix + 'economicimpact' + oCDW_pagestate.extname;
		tempM.target		= '';
		tempM.width			= sWidthSub3;
		tempM.height		= '';
		tempM.img1			= '';
		tempM.img2			= '';
		tempM.bgcoloroff	= '';
		tempM.bgcoloron		= '';
		tempM.textcolor		= '';
		tempM.hovercolor	= '';
		tempM.onclick		= '';
		tempM.onmouseover	= 'status="Economic Impact and Market Analyses";';
		tempM.onmouseout	= 'status="";';				
	
newSubItemInit()
		tempM.make			= makeMenuEntry;
		tempM.name			= 'Sub3-10' + cdw_submenu_count;
		tempM.parent		= 'Top3';
		tempM.text			= 'Fiscal Software';
		tempM.link			= oCDW_pagestate.tbserver_prefix + 'fiscalsoftware' + oCDW_pagestate.extname;
		tempM.target		= '';
		tempM.width			= sWidthSub3;
		tempM.height		= '';
		tempM.img1			= '';
		tempM.img2			= '';
		tempM.bgcoloroff	= '';
		tempM.bgcoloron		= '';
		tempM.textcolor		= '';
		tempM.hovercolor	= '';
		tempM.onclick		= '';
		tempM.onmouseover	= 'status="Fiscal Software";';
		tempM.onmouseout	= 'status="";';		
		
			// -----------------------
   // ----- top menu 4 ------
   // -----------------------
newTopItemInit()
var sWidthSub4	= '200';
		tempM.make			= makeMenuEntry;
		tempM.name			= 'Top4';
		tempM.parent		= '';
		tempM.text			= 'Newsletters'; 
		tempM.link			= oCDW_pagestate.tbserver_prefix + 'newsletteroderform' + oCDW_pagestate.extname;
		tempM.target		= '';
		tempM.width			= '90';
		tempM.height		= '';
		tempM.img1			= '';
		tempM.img2			= '';
		tempM.bgcoloroff	= '';
		tempM.bgcoloron		= '';
		tempM.textcolor		= '';
		tempM.hovercolor	= '';
		tempM.onclick		= '';
		tempM.onmouseover	= 'status="Newsletters";';
		tempM.onmouseout	= 'status="";';

			// -----------------------
   // ----- top menu 5 ------
   // -----------------------
newTopItemInit()
var sWidthSub4	= '200';
		tempM.make			= makeMenuEntry;
		tempM.name			= 'Top5';
		tempM.parent		= '';
		tempM.text			= 'Publications'; 
		tempM.link			= oCDW_pagestate.tbserver_prefix + 'publicationorderform' + oCDW_pagestate.extname;
		tempM.target		= '';
		tempM.width			= '90';
		tempM.height		= '';
		tempM.img1			= '';
		tempM.img2			= '';
		tempM.bgcoloroff	= '';
		tempM.bgcoloron		= '';
		tempM.textcolor		= '';
		tempM.hovercolor	= '';
		tempM.onclick		= '';
		tempM.onmouseover	= 'status="Publications";';
		tempM.onmouseout	= 'status="";';
		
		
		
		 // -----------------------
   // ----- top menu 6 ------
   // -----------------------

newTopItemInit()
var sWidthSub5	= '130';
		tempM.make			= makeMenuEntry;
		tempM.name			= 'Top6';
		tempM.parent		= '';
		tempM.text			= 'Contact Us'; 
		tempM.link			= oCDW_pagestate.tbserver_prefix + 'contactus' + oCDW_pagestate.extname;
		tempM.target		= '';
		tempM.width			= '90';
		tempM.height		= '';
		tempM.img1			= '';
		tempM.img2			= '';
		tempM.bgcoloroff	= '';
		tempM.bgcoloron		= '';
		tempM.textcolor		= '';
		tempM.hovercolor	= '';
		tempM.onclick		= '';
		tempM.onmouseover	= 'status="contactus";';
		tempM.onmouseout	= 'status="";';


		 // -----------------------
   // ----- spacers ------
   // -----------------------

newTopItemInit()
var sWidthSub6	= '130';
		tempM.make			= makeMenuEntry;
		tempM.name			= 'Top7';
		tempM.parent		= '';
		tempM.text			= ''; 
	//	tempM.link			= oCDW_pagestate.tbserver_prefix + 'contactus' + oCDW_pagestate.extname;
		tempM.target		= '';
		tempM.width			= '85';
		tempM.height		= '';
		tempM.img1			= '';
		tempM.img2			= '';
		tempM.bgcoloroff	= '';
		tempM.bgcoloron		= '';
		tempM.textcolor		= '';
		tempM.hovercolor	= '';
		tempM.onclick		= '';
		tempM.onmouseover	= 'status="";';
		tempM.onmouseout	= 'status="";';
		
		
		
/********************  END Menu data section ***********************************/