/* *****************************************************************************
 * MenuContent.js
 * Client-side JavaScript for DHTML Menu System - Content File
 *
 * Description: This file contains the arrays of information that define the
 *   content and layout of DHTML menus.  It is designed to be editable for site
 *   updates.  This file accompanies MenuScripts.js.
 *
 * Author: Stephen Kratowicz, OakTree.com
 *
 * ****************************************************************************/

/* *****************************************************************************
 * Preload Menu Images
 * ****************************************************************************/

/*var img_about_on = new Image();
img_about_on.src = '/images/topnav_about_on.gif';
var img_about_off = new Image();
img_about_off.src = '/images/topnav_about.gif';

var img_services_on = new Image();
img_services_on.src = '/images/topnav_services_on.gif';
var img_services_off = new Image();
img_services_off.src = '/images/topnav_services_off.gif';

var img_divisions_on = new Image();
img_divisions_on.src = '/images/topnav_divisions_on.gif';
var img_divisions_off = new Image();
img_divisions_off.src = '/images/topnav_divisions_off.gif';

var img_news_on = new Image();
img_news_on.src = '/images/topnav_news_on.gif';
var img_news_off = new Image();
img_news_off.src = '/images/topnav_news_off.gif';*/


//preload images for navigation


var section = sectionName;

var btn_patient_information_off = new Image();
btn_patient_information_off = '/' + section + '/images/btn_patient_information.gif';
var btn_patient_information_f2 = new Image();
btn_patient_information_f2 = '/' + section + '/images/btn_patient_information_f2.gif';

var btn_clinical_information_off = new Image();
btn_clinical_information_off = '/' + section + '/images/btn_clinical_information.gif';
var btn_clinical_information_f2 = new Image();
btn_clinical_information_f2 = '/' + section + '/images/btn_clinical_information_f2.gif';

var btn_program_development_off = new Image();
btn_program_development_off = '/' + section + '/images/btn_program_development.gif';
var btn_program_development_f2 = new Image();
btn_program_development_f2 = '/' + section + '/images/btn_program_development_f2.gif';

var btn_neurocom_international_off = new Image();
btn_neurocom_international_off = '/' + section + '/images/btn_neurocom_international.gif';
var btn_neurocom_international_f2 = new Image();
btn_neurocom_international_f2 = '/' + section + '/images/btn_neurocom_international_f2.gif';

var btn_seminars_off = new Image();
btn_seminars_off = '/' + section + '/images/btn_seminars.gif';
var btn_seminars_f2 = new Image();
btn_seminars_f2 = '/' + section + '/images/btn_seminars_f2.gif';





//stop preloadin' images


/* *****************************************************************************
 * Object Definitions (DO NOT EDIT)
 * ****************************************************************************/
var home = false;
var TopMenu = new Object();


//all of these arrays are symettrical - they set up buttons names (so we can leave the current section's button 'on' when hideMenu() runs) and and color variables to change the background colors of the dropdown depending on which section you are in - they do these by matching them against the sectionName variable embedded in each page and seeing if that aligns with the section name of the same position in the sections array.  Hacked this in after the fact...

var sections = ['patient_info','clinical_info','program','neurocom', 'seminars']; 
var sectionButtons = ['btn_patient_information','btn_clinical_information','btn_program_development','btn_neurocom_international', 'btn_seminars']; 
var bgcolors = ['#D1BCDF','#B9C1E2','#D7DDB5','#AAD3E3','#C5AEC6']
var bgcolorons = ['#6F3591','#2D3A99','#738940','#44789F','#9B2CA2']

var whichSection = sectionName;

function findButton () {

for (i=0;i<sections.length;i++) {
	if (sections[i] == whichSection) {
	var button = sectionButtons[i];
	return button;
	}
}

}

for (i=0;i<sections.length;i++) {
	if (sections[i] == whichSection) {
	var bgcolor = bgcolors[i];
	var bgcoloron = bgcolorons[i];
	}
}

/* *****************************************************************************
 * Top-level Menu Parameters
 * ****************************************************************************/
 
//set universal top coordinate for nav by id'ing the top side of the #globalNav div in the template
var globalY = globalNav.offsetTop + 25;

 
TopMenu.ContainerName = 'HorizontalLayer'		// Name of Containing Layer
TopMenu.AlwaysVisible = false;							// Is Menu Always Visible?
TopMenu.IsHorizontal = false; 								// Is Menu Horizontal?
TopMenu.DefaultWidth = 153;									// Default Menu Item Width
TopMenu.DefaultHeight = 20;									// Default Menu Item Height
TopMenu.PaddingTop = 3;											// Top Padding of Text
TopMenu.PaddingLeft = 3;											// Left Padding of Text
TopMenu.FontFamily = 'Verdana,Arial, Sans-serif';		// Font Family
TopMenu.FontSize = 11;												// Font Size (Points)
TopMenu.NS4FontSize = 8;										// Font Size for NS4 (Points)
TopMenu.FontWeight = 'normal';								// Font Weight (normal or bold)
TopMenu.TextDecoration = 'none';						// CSS Attribute Text-decoration
TopMenu.FontColor = '#000000';							// Text Color
TopMenu.FontColorOn =	'#ffffff';						// Highlighted Text Color
TopMenu.BgColor = bgcolor;								// Background Color
TopMenu.BgColorOn = bgcoloron;							// Highlighted Background Color
TopMenu.BorderWidth = 0;										// Border Width (in pixels)
TopMenu.BorderColor = '#ffffff';						// Border Color
TopMenu.SeparatorWidth = 1;									// Separator Width (in pixels)
TopMenu.SeparatorColor = '#ffffff';					// Separator Color
TopMenu.NS4AdjustmentLeft = -1;
TopMenu.NS4AdjustmentTop = -1;

/* *****************************************************************************
 * Top-level Menu Content
 * ****************************************************************************/
 
 // NOTE: WHEN ADDING OR DELETING ITEMS IN THE FOLLOWING ARRAYS, REMEMBER THAT THE FINAL LINE ITEM IN EACH ARRAY SHOULD *NOT* END WITH A COMMA.  ALL THE OTHER LINES *SHOULD* END WITH A COMMA

var aryMenu1 = [
	[
		0,															// X Position
		globalY,																// Y Position
		153,																// Item Width
		0,																// Item Height (can override below)
		'btn_patient_information',										// Name of Image to swap on rollover
		btn_patient_information_off,		// Off State Image URL
		btn_patient_information_f2 // On State Image URL
	],
	[
		[' Balance in Daily Life', '/patient_info/dailyLife.aspx', 0],		// Display Text, Link, Height (0 to use default)
		[' How You Control Your Balance', '/patient_info/balanceControl.aspx', 32],
		[' Headed For a Fall?', '/patient_info/fall.aspx', 0],
		[' Minimize Your Risk of Falling', '/patient_info/prevent.aspx', 32],
		[' Dizziness and Vertigo', '/patient_info/dizziness.aspx', 0],
		[' Testing Balance Disorders', '/patient_info/testing.aspx', 0],
		[' Additional Resources', '/patient_info/resources.aspx', 0],
		[' Getting Help/Find a Specialist','/patient_info/BalanceSpecialistsList.aspx', 32],
		[' Balance Self Test', '/patient_info/printout.aspx', 0]
	]
];

var aryMenu2 = [
	[
		156,															// X Position
		globalY,																// Y Position
		153,																// Item Width
		0,																// Item Height (can override below)
		'btn_clinical_information',										// Name of Image to swap on rollover
		btn_clinical_information_off,		// Off State Image URL
		btn_clinical_information_f2 // On State Image URL
	],
	[
		[' The Balance Control System', '/clinical_info/BalanceControl.aspx', 32],		// Display Text, Link, Height (0 to use default)
		[' Prevalence/Patient Populations', '/clinical_info/prevalence/index.aspx', 32],
		[' Assessment &amp; Treatment', '/clinical_info/assess_treat/index.aspx', 0],
		[' New Clinical Studies/Publications', '/clinical_info/studies/index.aspx', 32],
		[' Library &amp; References', '/clinical_info/library/index.aspx', 0],
		[' Computerized Dynamic Posturography', '/program/role/cdp/index.aspx', 32]
	]
];

var aryMenu3 = [
	[
		311,															// X Position
		globalY,																// Y Position
		152,																// Item Width
		0,																// Item Height (can override below)
		'btn_program_development',										// Name of Image to swap on rollover
		btn_program_development_off,		// Off State Image URL
		btn_program_development_f2 // On State Image URL
	],
	[
		[' Effective Patient Management', '/program/management/index.aspx', 32],
		[' The Role of Technology', '/program/role/index.aspx', 0],
		[' Computerized Dynamic Posturography', '/program/role/cdp/index.aspx', 32],		// Display Text, Link, Height (0 to use default)
		[' Balance Program Models', '/program/models/index.aspx', 0],
		[' Evaluating Your Practice', '/program/evaluating/index.aspx', 0],
		[' Marketing Your Balance Program', '/program/marketing/index.aspx', 32]
	]
];

var aryMenu4 = [
	[
		468,															// X Position
		globalY,																// Y Position
		154,																// Item Width
		0,																// Item Height (can override below)
		'btn_neurocom_international',										// Name of Image to swap on rollover
		btn_neurocom_international_off,		// Off State Image URL
		btn_neurocom_international_f2 // On State Image URL
	],
	[
		[' About NeuroCom', '/neurocom/about/index.aspx', 0],
		[' NeuroCom Protocols', '/neurocom/protocols/index.aspx', 0],
		[' NeuroCom Products', '/neurocom/products/index.aspx', 0],
		[' Contact NeuroCom', '/neurocom/contact/index.aspx', 0],
		[' What\'s New', '/neurocom/whats_new/index.aspx', 0]		// Display Text, Link, Height (0 to use default)
	]
];

var aryMenu5 = [
	[
		624,															// X Position
		globalY,																// Y Position
		156,																// Item Width
		0,																// Item Height (can override below)
		'btn_seminars',										// Name of Image to swap on rollover
		btn_seminars_off,		// Off State Image URL
		btn_seminars_f2 // On State Image URL
	],
	[
		[' Exploring Opportunities in Balance', '/seminars/exploring/index.aspx', 32],
		[' Clinical Integration Seminar', '/seminars/cis/index.aspx', 32],		// Display Text, Link, Height (0 to use default)
		[' Conferences &amp; Seminars United States', '/seminars/ConferencesList.aspx?id=USA', 32],
		[' Conferences &amp; Seminars International', '/seminars/ConferencesList.aspx', 32]
	]
];
