// write me if you have questions: web.master@male.ru

// constants
var initX       = 2; // x-coordinate of top left corner of dropdown menu 
var initY       = 105; // y-coordinate of top left corner of dropdown menu 
var backColor   = '#d7dde5'; // the background color of dropdown menu, set empty '' for transparent
var borderColor = '#000099'; // the color of dropdown menu border
var borderSize  = '1'; // the width of dropdown menu border
var itemHeight  = 20;
var xOverlap    = 5;
var yOverlap    = 5;
//

// Don't change these parameters
var delay        = 500; /////
var menuElement  = new Array ();
var usedWidth    = 0;
var numOfMenus   = 0;
/// ----------------------------

menuContent     = new Array ();

//MENU1 ABOUT THA
menuContent [0] = new Array ( 
-1, // the id of parent menu, -1 if this is a first level menu
-1, // the number of line in parent menu, -1 if this is a first level menu
105, // the width of current menu list 
-1, // x coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent x-coordinate
-1, // y coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent y-coordinate
new Array (
'Board of Directors', 'http://www.tha.com/board.htm',
'Mission and History', 'http://www.tha.com/history.htm',
'THA Divisions', 'http://www.tha.com/divisions.htm',
'THA Staff', 'http://www.tha.com/staff.htm',
'THA Affiliates', 'http://www.tha.com/all_aff/allaff.htm',
'Directions', 'http://www.tha.com/directions.htm',
'Photo Gallery', 'http://www.tha.com/photogallery/index.htm'
));

//MENU1 ABOUT THA - SUBMENU1 THA DIVISIONS
menuContent [6] = new Array ( 
0, // the id of parent menu, -1 if this is a first level menu
2, // the number of line in parent menu, -1 if this is a first level menu
115, // the width of current menu list 
-1, // x coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent x-coordinate
-1, // y coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent y-coordinate
new Array (
'Advocacy', 'http://www.tha.com/advoc.htm',
'Clinical', 'http://www.tha.com/clinical.htm', 
'Communications', 'http://www.tha.com/pr.htm',
'Education', 'http://www.tha.com/educate.htm',
'Home Care Alliance', 'http://www.tha.com/home-health/index.htm',  
'Information Services', 'http://www.tha.com/is.htm', 
'Rural Health Services', 'http://www.tha.com/rural-health/index.htm', 
'THA Solutions Group', 'http://www.tha.com/thasg.htm' 
));

//MENU1 ABOUT THA - SUBMENU2 AFFILIATES
menuContent [7] = new Array ( 
0, // the id of parent menu, -1 if this is a first level menu
4, // the number of line in parent menu, -1 if this is a first level menu
110, // the width of current menu list 
-1, // x coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent x-coordinate
-1, // y coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent y-coordinate
new Array (
'THA Affiliates', 'http://www.tha.com/all_aff/allaff.htm',
'TN Assoc. of Homes and Services for the Aging (TNAHSA)', 'http://www.tha.com/tnahsa/index.htm'
));

//MENU1 ABOUT THA - SUBMENU3 DIRECTIONS
menuContent [8] = new Array ( 
0, // the id of parent menu, -1 if this is a first level menu
5, // the number of line in parent menu, -1 if this is a first level menu
110, // the width of current menu list 
-1, // x coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent x-coordinate
-1, // y coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent y-coordinate
new Array (
'Directions to THA', 'http://www.tha.com/directions.htm',
'Hotels Near THA Headquarters (PDF)', 'http://www.tha.com/hotels.pdf'
));

//MENU2 MEMBERS
menuContent [1] = new Array ( 
-1, 
-1,
110,
-1, // x coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent x-coordinate
-1, // y coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent y-coordinate
new Array (
'THA Membership', 'http://www.tha.com/memdesc.htm',
'Member Hospitals', 'http://www.tha.com/members.htm',
'Home Care Members', 'http://www.tha.com/membhc.htm',
'Members Only', 'http://www.tha.com/members/index.htm'
));

//MENU3 PUBLICATIONS
menuContent [2] = new Array ( 
-1, 
-1,
105,
-1, // x coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent x-coordinate
-1, // y coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent y-coordinate
new Array (
'Executive Report','http://www.tha.com/members/execrep/execrpt.htm', 
'Legislative Bulletin', 'http://www.tha.com/members/legbul/lbhome.htm',
'Federal Update', 'http://www.tha.com/members/legbul/lbhome.htm#fed-upd',
'Friday Report', 'http://www.tha.com/members/friday-report/index.htm',
'Tenn. Hospitals &amp; Health Systems', 'http://www.tha.com/members/tenn-hospitals/index.htm',
'News Digest', 'http://www.tha.com/members/news-digest/index.htm',			
'Financial Focus', 'http://www.tha.com/members/financial-focus/index.htm',
'Rural Matters', 'http://www.tha.com/rural-health/rural-matters.htm'
));

//MENU4 CALENDAR
menuContent [3] = new Array ( 
-1, 
-1, 
96,
-1, // x coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent x-coordinate
-1, // y coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent y-coordinate
new Array (
'Event Calendar', 'http://www.tha.com/calendar.htm',
'Directions to THA', 'http://www.tha.com/directions.htm',
'Hotels Near THA', 'http://www.tha.com/hotels.pdf',
'Health Calendar', 'http://www.tha.com/2004-Health-Calendar.htm'
));

//MENU5 SPECIAL TOPICS
menuContent [4] = new Array ( 
-1, 
-1,
102,
-1, // x coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent x-coordinate
-1, // y coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent y-coordinate
new Array (
'THA Special Topics', 'http://www.tha.com/special-topics/index.htm',
'Disaster Readiness', 'http://www.tha.com/special-topics/disaster/index.htm',
'Federal Issues', 'http://www.tha.com/special-topics/federal-issues/index.htm',
'HIPAA', 'http://www.tha.com/special-topics/hipaa/index.htm',
'Home Health', 'http://www.tha.com/hh-utilization/index.htm',
'Quality/Safety', 'http://www.tha.com/special-topics/quality-safety/index.htm',
'TennCare/State', 'http://www.tha.com/special-topics/tenncare/index.htm',
'Workforce', 'http://www.healthworkforce.org/'
));

//MENU6 SURVEYS
menuContent [5] = new Array ( 
-1, 
-1,
90,
-1, // x coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent x-coordinate
-1, // y coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent y-coordinate
new Array (
'Quarterly Financial', 'http://www.tha.com/quarterly-survey.htm',
'Salary', 'http://www.tha.com/salary/index.htm',
'Rural Hospital', 'http://www.tha.com/rural-survey/index.htm',
'Sanctions Databank', 'http://66.152.1.85/sanctions'
));



