function wrap_root (text) { /*normal, hover, click*/ return ['
  ' + text + '  
', '
  ' + text + '  
', '
  ' + text + '  
' ]; } function wrap_parent (text, icon, hovericon) { /*normal, hover, click*/ return [['
  ' + text + '  
'].join(''), ['
  ' + text + '  
'].join(''), ['
  ' + text + '  
'].join('') ]; } function wrap_child (text, icon, hovericon) { /*normal, hover, click*/ return [['
  ' + text + '  
'].join(''), ['
  ' + text + '  
'].join(''), ['
  ' + text + '  
'].join('') ]; } var MENU_POS =[ // Level 0 block configuration { // Item's height in pixels 'height' : 25, // 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' : 75, 'height' : 20, // Vertical Offset between adjacent levels in pixels 'block_top' : 25, // 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' : false, // 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' : 20, 'block_left' : 0 } //Subling level configurations are inherited from level 2 ] var MENU_ITEMS = [[wrap_root('Custom Saab'), 'http://www.customsaab.com/', {}],[wrap_root('Custom Saab Forum'), 'http://www.customsaab.com/forum/index.php', {},[wrap_child('Forum Registration', 'http://www.customsaab.com/includes/javascript/hovermenu/pixel.gif width=16', 'http://www.customsaab.com/includes/javascript/hovermenu/pixel.gif width=16'), 'http://www.customsaab.com/join_custom_saab', {}],[wrap_child('Latest Forum Posts', 'http://www.customsaab.com/includes/javascript/hovermenu/pixel.gif width=16', 'http://www.customsaab.com/includes/javascript/hovermenu/pixel.gif width=16'), 'http://www.customsaab.com/latest_forum_posts', {}]],[wrap_root('Custom Saab Shop'), 'http://www.customsaab.com/smartperformance/index.php', {'tw': '_blank'}],[wrap_root('Custom Saab Articles'), 'http://www.customsaab.com/Custum_Saab_Articles', {},[wrap_child('Saab General Articles', 'http://www.customsaab.com/includes/javascript/hovermenu/pixel.gif width=16', 'http://www.customsaab.com/includes/javascript/hovermenu/pixel.gif width=16'), 'http://www.customsaab.com/Custom_Saab_General__Articles', {}],[wrap_child('NG900 & OG9-3 Articles', 'http://www.customsaab.com/includes/javascript/hovermenu/pixel.gif width=16', 'http://www.customsaab.com/includes/javascript/hovermenu/pixel.gif width=16'), 'http://www.customsaab.com/Custom_Saab_NG900_OG9-3_Performance_Articles', {}]],[wrap_root('Article Search'), 'http://www.customsaab.com/Custom_Saab_Article_Search', {'tw': '"_blank"'}],[wrap_root('Saab Gallery'), 'http://www.customsaab.com/Saab_Gallery', {}],[wrap_root('Useful Links'), 'http://www.customsaab.com/Custom_Saab_Useful_Links', {'sw': 70}]]; new menu (MENU_ITEMS, MENU_POS);