// write me if you have questions: web.master@male.ru

// constants
var initX       = 167; // x-coordinate of top left corner of dropdown menu 
var initY       = 65; // y-coordinate of top left corner of dropdown menu 
var backColor   = '#00007b'; // the background color of dropdown menu, set empty '' for transparent
var borderColor = '#ffffff'; // the color of dropdown menu border
var borderSize  = '1'; // the width of dropdown menu border
var itemHeight  = 15;
var xOverlap    = 0;
var yOverlap    = 0;
//

// 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
80, // 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 (
'Mission and History', 'http://www.tha.com/history.htm',
'THA Board', 'http://www.tha.com/board.htm',
'THA Divisions', '#',
'THA Membership Districts', 'http://www.tha.com/tha-membership-districts.htm',
'THA Staff', 'http://www.tha.com/staff.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/communications.htm',
'Education', 'http://www.tha.com/education.htm',
'Finance, Insurance', 'http://www.tha.com/finance.htm',  
'Information Services', 'http://www.tha.com/information-services.htm',
'Legal Services', 'http://www.tha.com/legal.htm',
'Member Services', 'http://www.tha.com/member-services.htm',
'Rural Health Services', 'http://www.tha.com/rural-health/index.htm', 
'THA Solutions Group', 'http://www.tha.com/thasg.htm' 
));

//MENU1 ABOUT THA - SUBMENU3 DIRECTIONS
menuContent [8] = new Array ( 
0, // the id of parent menu, -1 if this is a first level menu
7, // the number of line in parent menu, -1 if this is a first level menu
120, // 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 (		   
'Hotels Near THA Headquarters (PDF)', 'http://www.tha.com/hotels.pdf'
));

//MENU2 MEMBERS
menuContent [1] = new Array ( 
-1, 
-1,
70,
-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 (
'Hospital and Health Systems', 'http://www.tha.com/members.htm',
'Associate Institutional', 'http://www.tha.com/associate-institutional.htm',
'Critical Access Hospitals', 'http://www.tha.com/cah-hospitals.htm',
'Home Care', 'http://www.tha.com/membhc.htm',
'THA Affiliate and Allied Groups', 'http://www.tha.com/all_aff/allaff.htm',
'Members Only Area', 'http://www.tha.com/members/index.htm',
'Membership', 'http://www.tha.com/memdesc.htm'
));

//MENU3 AFFILIATES
menuContent [2] = 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
80, // 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 and Allieds', 'http://www.tha.com/all_aff/allaff.htm',
'TONE', 'http://www.tha.com/all_aff/tone.htm'
));


//MENU3 PUBLICATIONS
menuContent [3] = new Array ( 
-1, 
-1,
85,
-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 Executive Report','http://www.tha.com/members/execrep/execrpt.htm', 
'THA Legislative Bulletin', 'http://www.tha.com/members/legbul/lbhome.htm',
'THA Federal Report', 'http://www.tha.com/members/federal-update/index.htm',
'Tennessee Hospitals &amp; Health Systems Newsletter', 'http://www.tha.com/members/tenn-hospitals/index.htm',
'THA Financial Focus', 'http://www.tha.com/members/financial-focus/index.htm'
));

//MENU4 Education
menuContent [4] = new Array ( 
-1, 
-1, 
65,
-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 Events', 'http://www.tha.com/calendar.htm',
'Directions', 'http://www.tha.com/directions.htm'
));

//MENU5 SPECIAL TOPICS
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 (
'TennCare', 'http://www.tha.com/special-topics/tenncare/index.htm',
'THA Federal Issues', 'http://www.tha.com/special-topics/federal-issues/index.htm',
'THA HIPAA Resources', 'http://www.tha.com/special-topics/hipaa/index.htm',
'THA Clinical Quality/Patient Safety Resources', 'http://www.tha.com/special-topics/quality-safety/index.htm',
'Tennessee Health Planning and CON Resources', 'http://www.tha.com/special-topics/state/index.htm',
'THA Workforce/Staffing Resources', 'http://www.healthworkforce.org/',
'Rural Health', 'http://www.tha.com/rural-health/index.htm',
'Successful Hospital Ideas and Strategies', 'http://www.tha.com/strategies/index.htm',
'THA Council on Diversity', 'http://www.tha.com/diversity/',
'THA Trustee Council', 'http://www.tha.com/hospital-trustees/',
'Disaster Readiness', 'http://www.tha.com/special-topics/disaster/index.htm'
));


//MENU6 SURVEYS
menuContent [7] = new Array ( 
-1, 
-1,
65,
-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 (
'Small Rural Toolbox', 'http://www.tha.com/srt.htm',
'Sanctions Databank', 'http://67.90.152.140'
));

//Addition to menu... "Friends of THA PAC" made 2-26-2010 by Jared Holt
//MENU 8 FRIENDS OF THA PAC
menuContent [8] = 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
100, // 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 (
'About', 'http://www.tha.com/friends/',
'Contribute', '#',
'Campaign Materials *', 'http://www.tha.com/members/pac-campaign-materials/'
));

//Addition to menu... "Friends of THA PAC" made 2-26-2010 by Jared Holt
//SUBMENU 9 WAYS TO CONTRIBUTE
menuContent [9] = new Array ( 
8, // 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
100, // 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 (
'Online', 'https://secure.tha.com/friends/',
'Other ways to Contribute', 'http://www.tha.com/friends/contribution-options.htm'
));

