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' : 34, // 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' : 34, // Vertical Offset between adjacent levels in pixels 'block_top' : 34, // 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' : 'border', 'outer' : '', 'inner' : '' } }, // Level 2 block configuration { 'block_top' : -1, 'block_left' : 99 } //Subling level configurations are inherited from level 2 ] var MENU_ITEMS = [[wrap_root('Home'), 'http://www.thelittlephotoshop.co.uk/home?s=86a0ed0ee371280cc91f8ba907ed4577', {'sw': 45}],[wrap_root('Blog'), 'http://www.thelittlephotoshop.co.uk/blog?s=86a0ed0ee371280cc91f8ba907ed4577', {'sw': 45}],[wrap_root('Photoshop 101'), 'http://www.thelittlephotoshop.co.uk/archive?s=86a0ed0ee371280cc91f8ba907ed4577', {}],[wrap_root('Video Library'), 'http://www.thelittlephotoshop.co.uk/videos?s=86a0ed0ee371280cc91f8ba907ed4577', {}],[wrap_root('Gallery'), 'http://www.thelittlephotoshop.co.uk/gallery?s=86a0ed0ee371280cc91f8ba907ed4577', {'sw': 65}],[wrap_root('Forums'), 'http://www.thelittlephotoshop.co.uk/forum', {'sw': 65}],[wrap_root('Contact Us'), 'http://www.thelittlephotoshop.co.uk/Contact?s=86a0ed0ee371280cc91f8ba907ed4577', {},[wrap_child('Site Map', 'http://www.thelittlephotoshop.co.uk/includes/javascript/hovermenu/pixel.gif width=16', 'http://www.thelittlephotoshop.co.uk/includes/javascript/hovermenu/pixel.gif width=16'), 'http://www.thelittlephotoshop.co.uk/site_map?s=86a0ed0ee371280cc91f8ba907ed4577', {}]]]; new menu (MENU_ITEMS, MENU_POS);