function wrap_root (text) { /*normal, hover, click*/ return ['
' + text + '<\/div>', '
' + text + '<\/div>', '
' + text + '<\/div>' ]; } function wrap_parent (text) { /*normal, hover, click*/ return [['
' + text + '<\/div>'].join(''), ['
' + text + '<\/div>'].join(''), ['
' + text + '<\/div>'].join('') ]; } function wrap_child (text) { /*normal, hover, click*/ return [['
' + text + '<\/div>'].join(''), ['
' + text + '<\/div>'].join(''), ['
' + text + '<\/div>'].join('') ]; } var MENU_POS =[ // Level 0 block configuration { // Item's height in pixels 'height' : 40, // Item's width in pixels 'width' : 100, // if Block Orientation is vertical 'vertical' : false, // Time Delay in milliseconds before subling block expands // after mouse pointer overs an item 'expd_delay' : 0, // Style class names for the level 'css': { // Block outing table class 'table' : '', // Item outer tag style class for all item states or // classes for [, , ] 'outer' : '', // Item inner tag style class for all item states or // classes for [, , ] 'inner' : '' } }, // Level 1 block configuration { 'width' : 100, 'height' : 28, // Vertical Offset between adjacent levels in pixels 'block_top' : 40, // Horizontal Offset between adjacent levels in pixels 'block_left' : 0, // block behaviour if single frame: // 1 - shift to the edge, 2 - flip relatively to left upper corner 'wise_pos' : 1, 'vertical' : true, // transition effects for the block // [index on expand, duration on expand, index on collapse, duration on collapse] 'transition' : [0, 0.3, 0, 0.3], // Time Delay in milliseconds before menu collapses after mouse // pointer lefts all items 'hide_delay' : 300, 'css' : { 'table' : '', 'outer' : '', 'inner' : '' } }, // Level 2 block configuration { 'block_top' : 0, 'block_left' : 100 } //Subling level configurations are inherited from level 2 ] var MENU_ITEMS = [[wrap_root('Home'), 'http://www.wxchat.com/index.php?categoryid=1', {},[wrap_child('Donate', 'http://www.wxchat.com/includes/javascript/hovermenu/pixel.gif width=16', 'http://www.wxchat.com/includes/javascript/hovermenu/pixel.gif width=16'), 'http://www.wxchat.com/index.php?categoryid=57', {}]],[wrap_root('Forum'), 'http://www.wxchat.com/board/', {}],[wrap_root('Weather'), 'http://www.wxchat.com/board/index.php?showforum=3', {},[wrap_child('Maps+More', 'http://www.wxchat.com/includes/javascript/hovermenu/pixel.gif width=16', 'http://www.wxchat.com/includes/javascript/hovermenu/pixel.gif width=16'), 'http://www.wxchat.com/index.php?categoryid=24', {}],[wrap_child('Upper Air', 'http://www.wxchat.com/includes/javascript/hovermenu/pixel.gif width=16', 'http://www.wxchat.com/includes/javascript/hovermenu/pixel.gif width=16'), 'http://www.wxchat.com/index.php?categoryid=20', {}],[wrap_child('SFC Charts', 'http://www.wxchat.com/includes/javascript/hovermenu/pixel.gif width=16', 'http://www.wxchat.com/includes/javascript/hovermenu/pixel.gif width=16'), 'http://www.wxchat.com/index.php?categoryid=18', {}],[wrap_child('Soundings', 'http://www.wxchat.com/includes/javascript/hovermenu/pixel.gif width=16', 'http://www.wxchat.com/includes/javascript/hovermenu/pixel.gif width=16'), 'http://www.wxchat.com/index.php?categoryid=22', {}],[wrap_child('Text Models', 'http://www.wxchat.com/includes/javascript/hovermenu/pixel.gif width=16', 'http://www.wxchat.com/includes/javascript/hovermenu/pixel.gif width=16'), 'http://www.wxchat.com/index.php?categoryid=19', {}],[wrap_child('Graphic Models', 'http://www.wxchat.com/includes/javascript/hovermenu/pixel.gif width=16', 'http://www.wxchat.com/includes/javascript/hovermenu/pixel.gif width=16'), 'http://www.wxchat.com/index.php?categoryid=17', {}],[wrap_child('US Overview', 'http://www.wxchat.com/includes/javascript/hovermenu/pixel.gif width=16', 'http://www.wxchat.com/includes/javascript/hovermenu/pixel.gif width=16'), 'http://www.wxchat.com/index.php?categoryid=21', {}],[wrap_child('Conv. Tools', 'http://www.wxchat.com/includes/javascript/hovermenu/pixel.gif width=16', 'http://www.wxchat.com/includes/javascript/hovermenu/pixel.gif width=16'), 'http://www.wxchat.com/index.php?categoryid=25', {}]],[wrap_root('Education'), 'http://www.wxchat.com/index.php?categoryid=32', {},[wrap_child('History', 'http://www.wxchat.com/includes/javascript/hovermenu/pixel.gif width=16', 'http://www.wxchat.com/includes/javascript/hovermenu/pixel.gif width=16'), 'http://www.wxchat.com/index.php?categoryid=33', {}]],[wrap_root('INFLOW'), 'http://www.wxchat.com/index.php?categoryid=53', {}],[wrap_root('Non Weather'), 'http://www.wxchat.com/board/index.php?showforum=13', {'sw': 120},[wrap_child('Chatroom', 'http://www.wxchat.com/includes/javascript/hovermenu/pixel.gif width=16', 'http://www.wxchat.com/includes/javascript/hovermenu/pixel.gif width=16'), 'http://www.wxchat.com/index.php?categoryid=46', {}],[wrap_parent('Contests', 'http://www.wxchat.com/includes/javascript/hovermenu/pixel.gif width=16', 'http://www.wxchat.com/includes/javascript/hovermenu/pixel.gif width=16'), 'http://www.wxchat.com/index.php?categoryid=26', {},[wrap_child('Virtual Chase', 'http://www.wxchat.com/includes/javascript/hovermenu/pixel.gif width=16', 'http://www.wxchat.com/includes/javascript/hovermenu/pixel.gif width=16'), 'http://www.wxchat.com/index.php?categoryid=45', {}],[wrap_child('SCC', 'http://www.wxchat.com/includes/javascript/hovermenu/pixel.gif width=16', 'http://www.wxchat.com/includes/javascript/hovermenu/pixel.gif width=16'), 'http://www.wxchat.com/index.php?categoryid=43', {}],[wrap_child('VB Form', 'http://www.wxchat.com/includes/javascript/hovermenu/pixel.gif width=16', 'http://www.wxchat.com/includes/javascript/hovermenu/pixel.gif width=16'), 'http://www.martinsvilleweather.com/contests/vb/2009/entry.html', {'tw': '_blank'}]],[wrap_child('Hangman', 'http://www.wxchat.com/includes/javascript/hovermenu/pixel.gif width=16', 'http://www.wxchat.com/includes/javascript/hovermenu/pixel.gif width=16'), 'http://www.manythings.org/hmf/8960.html', {'tw': '_blank'}],[wrap_child('Image Gallery', 'http://www.wxchat.com/includes/javascript/hovermenu/pixel.gif width=16', 'http://www.wxchat.com/includes/javascript/hovermenu/pixel.gif width=16'), 'http://www.wxchat.com/index.php?categoryid=42', {}]],[wrap_root('Amateur Radio'), 'http://www.wxchat.com/board/index.php?showforum=17', {'sw': 125},[wrap_child('Radio Clubs', 'http://www.wxchat.com/includes/javascript/hovermenu/pixel.gif width=16', 'http://www.wxchat.com/includes/javascript/hovermenu/pixel.gif width=16'), 'http://www.wxchat.com/index.php?categoryid=54', {}]],[wrap_root('Misc'), 'http://www.wxchat.com/index.php?categoryid=47', {'sw': 62},[wrap_child('Affiliates', 'http://www.wxchat.com/includes/javascript/hovermenu/pixel.gif width=16', 'http://www.wxchat.com/includes/javascript/hovermenu/pixel.gif width=16'), 'http://www.wxchat.com/board/index.php?autocom=daffiliates', {}],[wrap_child('Privacy Act', 'http://www.wxchat.com/includes/javascript/hovermenu/pixel.gif width=16', 'http://www.wxchat.com/includes/javascript/hovermenu/pixel.gif width=16'), 'http://www.wxchat.com/index.php?categoryid=16', {}]]]; new menu (MENU_ITEMS, MENU_POS);