// constants var initX = 1; // x-coordinate of top left corner of dropdown menu var initY = 1; // y-coordinate of top left corner of dropdown menu var backColor = ''; // the background color of dropdown menu, set empty '' for transparent var borderColor = '#FFFFFF'; // the color of dropdown menu border var borderSize = '0'; // the width of dropdown menu border var itemHeight = 10; var xOverlap = 5; var yOverlap = 10; // 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 130, // 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 ( )); menuContent [1] = 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 130, // 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 ( )); 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 130, // 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 ( 'Latest news', '/index.php?id=3', 'Upcoming Events', '/index.php?id=4', 'Links', '/index.php?id=12' )); menuContent [3] = 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 130, // 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 ( )); menuContent [4] = 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 130, // 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 ( )); menuContent [5] = 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 130, // 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 ( )); menuContent [6] = 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 130, // 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 ( 'Sales Engineer/Account Manager', '/index.php?id=17' ));