/* --- geometry and timing of the menu --- values are the lists with parameters for different menu levels for this menu: [blue_level, green_level, red_level] */ var MENU_POS1 = { // item sizes for different levels of menu 'height': [25, 20, 20], 'width': [99, 130, 150], // øèðèíà ÿ÷ååê // 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': [107, 26, 5], 'block_left': [24, -1, 130], // offsets between items of the same level 'top': [0, 21, 21], 'left': [119, 0, 0], // time in milliseconds before menu is hidden after cursor has gone out // of any items 'hide_delay': [200, 200, 200] }; var MENU_POS2 = { 'height': [25, 20, 20], 'width': [100, 140, 150], // øèðèíà ÿ÷ååê 'block_top': [107, 26, 5], 'block_left': [125, -1, 130], 'top': [0, 21, 21], 'left': [119, 0, 0], 'hide_delay': [200, 200, 200] }; var MENU_POS3 = { 'height': [25, 20, 20], 'width': [130, 170, 150], // øèðèíà ÿ÷ååê 'block_top': [107, 26, 5], 'block_left': [227, -1, 130], 'top': [0, 21, 21], 'left': [119, 0, 0], 'hide_delay': [200, 200, 200] }; var MENU_POS4 = { 'height': [25, 20, 20], 'width': [150, 180, 150], // øèðèíà ÿ÷ååê 'block_top': [107, 26, 5], 'block_left': [359, -1, 130], 'top': [0, 21, 21], 'left': [119, 0, 0], 'hide_delay': [200, 200, 200] }; var MENU_POS5 = { 'height': [25, 20, 20], 'width': [160, 180, 150], // øèðèíà ÿ÷ååê 'block_top': [107, 26, 5], 'block_left': [511, -1, 130], 'top': [0, 21, 21], 'left': [119, 0, 0], 'hide_delay': [200, 200, 200] }; var MENU_POS6 = { 'height': [25, 20, 20], 'width': [80,140, 150], // øèðèíà ÿ÷ååê 'block_top': [107, 26, 5], 'block_left': [673, -1, 130], 'top': [0, 21, 21], 'left': [119, 0, 0], 'hide_delay': [200, 200, 200] }; /* --- 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_STYLES1 = { // õàð-êè ïî óìî÷àíèþ 'onmouseout': [ 'color', ['#777777', '#777777', '#777777'], 'background', ['#E9E9E9', '#DDDDDD', '#E9E9E9'], 'textDecoration', ['none', 'none', 'none'], 'fontWeight', ['normal', 'normal', 'normal'], ], // õàð-êè ïðè íàæàòèè 'onmouseover': [ 'color', ['#FFFFFF', '#FFFFFF', '#FFFFFF'], 'background', ['#3A5EA1', '#3A5EA1', '#3A5EA1'], 'textDecoration', ['none', 'none', 'none'], 'fontWeight', ['normal', 'normal', 'normal'], ], // õàðàêòåðèñòèêè ïðè íàæàòèè 'onmousedown': [ 'color', ['#777777', '#777777', '#777777'], 'background', ['#E9E9E9', '#DDDDDD', '#E9E9E9'], 'textDecoration', ['none', 'none', 'none'], 'fontWeight', ['normal', 'normal', 'normal'], ] };