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

// constants
var initX       = 145; // x-coordinate of top left corner of dropdown menu 
var initY       = 140; // y-coordinate of top left corner of dropdown menu 
var backColor   = '#F8FCFF'; // the background color of dropdown menu, set empty '' for transparent
var borderColor = 'blue'; // the color of dropdown menu border
var borderSize  = '1'; // the width of dropdown menu border
var itemHeight  = 20;
var xOverlap    = 5;
var yOverlap    = 10;
//

// Don't change these parameters
var delay        = 500; /////
var menuElement  = new Array ();
var usedWidth    = 0;
var numOfMenus   = 0;
/// ----------------------------

menuContent     = new Array ();

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
147, // 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 (
'active birth', 'http://www.activebirthcentre.com/pb/activebirth.shtml',
'water birth', 'http://www.activebirthcentre.com/pb/waterbirth.shtml',
'pregnancy', ' http://www.activebirthcentre.com/pb/pregnancy.shtml',
'preparing for labour', ' http://www.activebirthcentre.com/pb/preparingforlabour.shtml',
'classes and teachers', ' http://www.activebirthcentre.com/pb/classesandteachers.shtml'
));

menuContent [1] = new Array ( 
-1, 
-1,
147,
-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 (
'pool hire', 'http://www.activebirthcentre.com/bp/poolhire.shtml',
'pool sales', 'http://www.activebirthcentre.com/bp/poolsales.shtml',
'water birth', ' http://www.activebirthcentre.com/pb/waterbirth.shtml'
));

menuContent [2] = new Array ( 
-1, 
-1,
147,
-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 (
'baby care', 'http://www.activebirthcentre.com/mb/babycare.shtml',
'mother care', 'http://www.activebirthcentre.com/mb/mothercare.shtml',
'family life', 'http://www.activebirthcentre.com/mb/familylife.shtml',
'classes and teachers', 'http://www.activebirthcentre.com/mb/classesandteachers.shtml'
));