
var MENU_POS_13 = MENU_POS_8 = MENU_POS_5 = MENU_POS_9 = MENU_POS_6 = MENU_POS_7 = MENU_POS_4 = MENU_POS_2 = MENU_POS_3 = [
// Level 0 block configuration
{
	// Item's height in pixels
	'height'     : 6,
	// Item's width in pixels
	'width'      : 46,
	// if Block Orientation is vertical
	'vertical'   : false,


	// Time Delay in milliseconds before subling block expands
	// after mouse pointer overs an item
	'hide_delay': 100,
	'expd_delay': 100,
	// Style class names for the level
	'css': {
		// Block outing table class
		'table' : '',
		// Item outer tag style class for all item states or
		// classes for [<default state>, <hovered state>, <clicked state>]
		'outer' : ['rootlevel','rootlevel','rootlevel'],
		// Item inner tag style class for all item states or
		// classes for [<default state>, <hovered state>, <clicked state>]
		'inner' : ['rootlevel','rootlevel','rootlevel']
	}
},
// Level 1 block configuration
{
	// Item's width in pixels
	'width': 164,
	// Item's height in pixels
	'height': 16,
	// Vertical Offset between adjacent levels in pixels
	'block_top'  : 5,
	// 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' : [ 'progid:DXImageTransform.Microsoft.Wipe(GradientSize=1.0,wipeStyle=1,motion=forward,enabled=0,Duration=1)'],

	// level shadow scope settings
	'shadow' : {
	// horisontal offset of the shadow in pixels
	'offX' : 4,
	// vertical offset of the shadow in pixels
	'offY' : 2,
	// color of the shadow
	'color' : '#777777'
	},

	//filter alpha
	'opacity' : 90,

	// Style class names for the level
	'css' : {
		'outer' : ['', ''],
		'inner' : ['m0l1iout', 'm0l1iover']
	}
},
// Level 2 block configuration
{
	'block_top': 5,
	'block_left': 150,
	'css': {
		'outer': ['', ''],
		'inner': ['m0l2iout', 'm0l2iover']
	}
}
	//Subling level configurations are inherited from level 2
]

function wrap_arrow (file, hasChild, end_child, pageid) {
		var res=[];
		for (var i=0; i<3; i++) {	
			imgsrc = "/_aux/tigra_navi_"+i+"/"+file;
			if(hasChild && !end_child) {	
			res[i]= '<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td colspan="2" class="line_'+ i +'"><img src="/s.gif"></td></tr><tr><td class="m0l1_'+ i +'" width="150" height="14"><span class="m0l1iout"><img name=t_menu_'+i+'_'+pageid+' src="'+imgsrc+'" height="14" width="150"></span></td><td align="right" class="m0l1_'+ i +'"><img src="/www/_js/tigra-gold/icons/arr.gif"></td></tr></table>'
			}
			else if (hasChild && end_child){
			res[i]= '<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td colspan="2" class="line_'+ i +'"><img src="/s.gif"></td></tr><tr><td class="m0l1_'+ i +'" width="150" height="14"><span class="m0l1iout"><img name=t_menu_'+i+'_'+pageid+' src="'+imgsrc+'" height="14" width="150"></span></td><td align="right"><img src="/www/_js/tigra-gold/icons/corner_a_'+ i +'.gif"></td></tr></table>';
			}
			else if (!hasChild && end_child){
			res[i]= '<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td colspan="2" class="line_'+ i +'"><img 	src="/s.gif"></td></tr><tr><td class="m0l1_'+ i +'" width="150" height="14"><span class="m0l1iout"><img  name=t_menu_'+i+'_'+pageid+' src="'+imgsrc+'" height="14" width="150"></span></td><td align="right"><img src="/www/_js/tigra-gold/icons/corner_'+ i +'.gif"></td></tr></table>';
			}
			else{
			res[i]= '<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td colspan="2" class="line_'+ i +'"><img src="/s.gif"></td></tr><tr><td class="m0l1_'+ i +'" width="150" height="14"><span class="m0l1iout"><img name=t_menu_'+i+'_'+pageid+' src="'+imgsrc+'" height="14" width="150"></span></td><td align="right" class="m0l1_'+ i +'"><img src="/s.gif" hspace="3"></td></tr></table>';
			}
		}
		return res;
}
