/* --- geometry and timing of the menu --- */ var MENU_POS = { // item sizes for different levels of menu 'width': [150, 166, 166, 166], 'height': [20, 20, 20, 20], // menu block offset from the origin: // for root level origin is upper left corner of the page // for other levels origin is upper left corner of parent item 'block_top': [142, 3, 0, 0], 'block_left': [-4, 166, 165, 165], // offsets between items of the same level 'top': [-21, -21, -21, -21], 'left': [0, 0, 0, 0], // time in milliseconds before menu is hidden after cursor has gone out // of any items 'hide_delay': [500, 500, 500, 500] }; /* --- dynamic menu styles --- note: you can add as many style properties as you wish but be not all browsers are able to render them correctly. The only relatively safe properties are 'color' and 'background'. */ var MENU_STYLES = { // default item state when it is visible but doesn't have mouse over 'onmouseout': [ 'color', ['#000000', '#004990', '#004990', '#004990'], 'background', ['transparent', '#F1C696', '#F1C696', '#F1C696'], 'height', ['20px','20px','20px','20px'] ], // state when item has mouse over it 'onmouseover': [ 'color', ['#000000', '#FFFFFF', '#FFFFFF', '#FFFFFF'], 'background', ['transparent', '#F1C696', '#F1C696', '#F1C696'], 'height', ['20px','20px','20px','20px'] ], 'onmousedown': [ 'color', ['#000000', '#004990', '#004990', '#004990'], 'background', ['transparent', '#FFFFFF', '#FFFFFF', '#FFFFFF'], 'height', ['20px','20px','20px','20px'] ] };