function wrap_root (text)
{
/*normal, hover, click*/
return ['
' + text + '
',
'',
'' + text + '
'
];
}
function wrap_parent (text)
{
/*normal, hover, click*/
return [['' + text + '
'].join(''),
['' + text + '
'].join(''),
['' + text + '
'].join('')
];
}
function wrap_child (text)
{
/*normal, hover, click*/
return [['' + text + '
'].join(''),
['' + text + '
'].join(''),
['' + text + '
'].join('')
];
}
var MENU_POS =[
// Level 0 block configuration
{
// Item's height in pixels
'height' : 35,
// Item's width in pixels
'width' : 90,
// 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' : 90,
'height' : 25,
// Vertical Offset between adjacent levels in pixels
'block_top' : 35,
// 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' : 90
}
//Subling level configurations are inherited from level 2
]
var MENU_ITEMS = [[wrap_root('Home'), 'http://www.digiscrapboutique.com/', {'sw': 70}],[wrap_root('Boutique'), 'http://www.digiscrapboutique.com/boutique', {'sw': 70}],[wrap_root('Subscribe'), 'http://www.digiscrapboutique.com/Membership', {'sw': 70}],[wrap_root('Forum'), 'http://www.digiscrapboutique.com/forum/index.php', {'sw': 70}],[wrap_root('Gallery'), 'http://www.digiscrapboutique.com/gallery/index.php', {'sw': 70}],[wrap_root('ChatRoom'), 'http://www.digiscrapboutique.com/ChatRoom', {'sw': 70}],[wrap_root('Designers'), 'http://www.digiscrapboutique.com/Digiscrap-Designers', {'sw': 70}],[wrap_root('Blog'), 'http://www.digiscrapboutique.com/Blog', {'sw': 70}],[wrap_root('Tutorials'), 'http://www.digiscrapboutique.com/digital-scrapbook-tutorials', {'sw': 70}],[wrap_root('Support'), 'http://www.digiscrapboutique.com/Support', {'sw': 70},[wrap_child('Live Help', 'http://www.digiscrapboutique.com/includes/javascript/hovermenu/pixel.gif width=16', 'http://www.digiscrapboutique.com/includes/javascript/hovermenu/pixel.gif width=16'), 'http://www.digiscrapboutique.com/Live_Help', {}],[wrap_child('Help Desk', 'http://www.digiscrapboutique.com/includes/javascript/hovermenu/pixel.gif width=16', 'http://www.digiscrapboutique.com/includes/javascript/hovermenu/pixel.gif width=16'), 'http://www.digiscrapboutique.com/supportdesk/', {}]],[wrap_root('Topsite'), 'http://www.digiscrapboutique.com/topsite', {}]];
new menu (MENU_ITEMS, MENU_POS);