var MENU_POS=[
// Level 0 block configuration
{
	// Item's width in pixels
	'width'      : 100,
	// Item's height in pixels
  'height'     : 18,
  // if Block Orientation is vertical
	'vertical'   : false,
	// Block outing table parameters:
	// [cellpadding, cellspacing, border]
	'table'      : [0, 1, 0],
  // Style class names for the level
	'css' : {
		// Block outing table class
		'table' : 'm0table',
		// Item inner tag style class for all item states or
		// classes for [<default state>, <hovered state>, <clicked state>]
		'inner' : 'm0inner',
		// Item outer tag style class for all item states or
		// classes for [<default state>, <hovered state>, <clicked state>]
		'outer' : ['m0mouto', 'm0movero', 'm0mdowno']
	}
},
// Level 1 block configuration
{
	// Item's width in pixels
	'width'      : 100,
	// Vertical Offset between adjacent levels in pixels
	'block_top'  : 20,
  // if Block Orientation is vertical
	'vertical'   : true,
  // Block outing table parameters:
  // [cellpadding, cellspacing, border]
  'table'      : [0, 1, 0],
  //'block_left'  : -1,
	// block behaviour if single frame:	
	// 1 - shift to the edge, 2 - flip relatively to left upper corner
	'wise_pos'   : 1,
  // Style class names for the level
	'css' : {
		'table' : 'm1table',
		'inner' : 'm0inner',
		'outer' : ['m0mouto', 'm0movero', 'm0mdowno']
	}
},
// Level 2 block configuration is inherited from level 1
{
  // Vertical Offset between adjacent levels in pixels
  'block_top'  : 0,
  // Vertical Offset between adjacent levels in pixels
  'block_left'  : 100
}
]


function wrap_parent (text) {
	return [
	['<table cellpadding=0 cellspacing=0 border=0><tr><td><img src="/tew/_webparts/pixel.gif" width=16></td><td align=\'center\' nowrap width=100%>', text, '</td><td><img src="/tew/_webparts/pixel.gif" width=16></td></tr></table>'].join(''),
	['<table cellpadding=0 cellspacing=0 border=0><tr><td><img src="/tew/_webparts/pixel.gif" width=16></td><td align=\'center\' nowrap width=100%>', text, '</td><td><img src="/tew/_webparts/pixel.gif" width=16></td></tr></table>'].join(''),
	['<table cellpadding=0 cellspacing=0 border=0><tr><td><img src="/tew/_webparts/pixel.gif" width=16></td><td align=\'center\' nowrap width=100%>', text, '</td><td><img src="/tew/_webparts/pixel.gif" width=16></td></tr></table>'].join('')
	];
}


function wrap_child (text) {
	return [
	['<table cellpadding=0 cellspacing=0 border=0><tr><td>&nbsp;&nbsp;&nbsp;</td><td width="100%">' , text , '</td></tr></table>'].join(''),
	['<table cellpadding=0 cellspacing=0 border=0><tr><td>&nbsp;&nbsp;&nbsp;</td><td width="100%">' , text , '</td></tr></table>'].join(''),
	['<table cellpadding=0 cellspacing=0 border=0><tr><td>&nbsp;&nbsp;&nbsp;</td><td width="100%">' , text , '</td></tr></table>'].join('')
	];
}