var MENU_POS=[
// Level 0 block configuration
{
	// Item's height in pixels
	'height'     : 16,
	// Item's width in pixels
	'width'      : 116,
	// if Block Orientation is vertical
	'vertical'   : true,
	// Block outing table parameters:
	// [cellpadding, cellspacing, border]
	'table'      : [0, 0, 0],
	// Time Delay in milliseconds before subling block expands
	// after mouse pointer overs an item
	'expd_delay' : 100
},
// Level 1 block configuration
{
	'width'      : 150,
	// Vertical Offset between adjacent levels in pixels
	'block_top'  : 0,
	// if negative, forces the block to expand leftward
	'left'        : 1,
	// Horizontal Offset between adjacent levels in pixels
	'block_left' : 120,
	// block behaviour if single frame:
	// 1 - shift to the edge, 2 - flip relatively to left upper corner
	'wise_pos'   : 1,
	'vertical'   : true,
	// Time Delay in milliseconds before menu collapses after mouse
	// pointer lefts all items
	'hide_delay' : 100,
	// transition effects the for the block 
	// [index on expand, duration on expand, index on collapse, duration on collapse]
//	'transition' : [0, 0.4],
	// Style class names for the level
	'css' : {
		// Block outing table class
		'table' : 'mtable',
		// Item inner tag style class for all item states or
		// classes for [<default state>, <hovered state>, <clicked state>]
		 'inner' : 'minner',
		// Item outer tag style class for all item states or
		// classes for [<default state>, <hovered state>, <clicked state>]
		'outer' : 'mouter'
	}
},
// Level 2 block configuration
{
	'block_top'  : 0,
	'block_left' : 150
}
//Subling level configurations are inherited from level 2
]

function root (text, arrow) {

	var res=[];

	if ( arrow == true )
		for (var i=0; i<3; i++)
			res[i]='<table cellspacing="0" cellpadding="0" border="0" align="right"><tr valign="top"><td align="right" class="r' + i + '">' + text + '</td><td><img src="/images/arrow_white.gif" width="10" height="13"></td></tr></table>'
	else
		for (var i=0; i<3; i++)
			res[i]='<table cellspacing="0" cellpadding="0" border="0" align="right"><tr valign="top"><td align="right" class="r' + i + '">' + text + '</td><td width="10">&nbsp;</td></tr></table>'

	return res;

}

function child (text, arrow) {

	var res=[];

	if ( arrow == true )
		for (var i=0; i<3; i++)
			res[i]='<table cellpadding="1" cellspacing="0" border="0" width="100%"><tr><td class="c' + i + '"><table cellspacing="0" cellpadding="0" border="0" width="100%"><tr valign="top"><td width="5">&nbsp;</td><td class="c' + i + '">' + text + '</td><td align="right"><img src="/images/arrow_white.gif" width="10" height="13">&nbsp;</td></tr></table></td></tr></table>'
	else
		for (var i=0; i<3; i++)
			res[i]='<table cellpadding="1" cellspacing="0" border="0" width="100%"><tr><td class="c' + i + '" ><table cellspacing="0" cellpadding="0" border="0" width="100%"><tr valign="top"><td width="5">&nbsp;</td><td class="c' + i + '">' + text + '</td></tr></table></td></tr></table>'

	return res;
}
