/***********************/
/*  fxMenu TEMPLATE 1  */
/***********************/



var fxMenuTemplate1=[
// Level 0 block configuration
{
	'width'      : 160,
	'height'     : 20,
	'vertical'   : true,
	'wise_pos'   : 1,
	'table'      : [0, 0, 0],
	'hide_delay' : 300,
	'expd_delay' : 300,
	'css' : {
		'table' : 'fxmenu1-table',
		'inner' : ['fxmenu1-out-i','fxmenu1-over-i','fxmenu1-down-i'],
		'outer' : ['fxmenu1-out','fxmenu1-over','fxmenu1-down']
	}
},
// Level 1 block configuration
{
	'block_top'  : 2,
	'block_left' : 163,
	'width'			 : 180,
	'height'     : 20,
	'vertical'   : true,
	'zcss' : {
		'table' : 'fxmenu1a-table',
		'inner' : ['fxmenu1a-out-i','fxmenu1a-over-i','fxmenu1a-down-i'],
		'outer' : ['fxmenu1a-out','fxmenu1a-over','fxmenu1a-down']
	}
}
// Rest level configurations are inherited from level 1
];




var fxMenuTemplate2=[
// Level 0 block configuration
{
	'width'      : 180,
	'height'     : 25,
	'vertical'   : true,
	'wise_pos'   : 1,
	'table'      : [0, 0, 0],
	'hide_delay' : 300,
	'expd_delay' : 300,
	'css' : {
		'table' : 'fxmenu2table',
		'inner' : ['fxmenu2out-i', 'fxmenu2over-i', 'fxmenu2down-i'],
		'outer' : ['fxmenu2out', 'fxmenu2over', 'fxmenu2down']
	}
},
// Level 1 block configuration
{
	'block_top'  : 0,
	'block_left' : 181,
	'vertical'   : true
}
// Rest level configurations are inherited from level 1
];




var fxMenuTemplate3 = [
// Level 0 block configuration
{
	'width'      : 90,
	'height'     : 23,
	'vertical'   : false,
	'table'      : [0, 0, 0],
	'expd_delay' : 30,
	'hide_delay' : 300,
	'css' : {'table' : 'mtable','outer' : 'mouter','inner' : 'minner'}
},
// Level 1 block configuration
{
	'width'      : 88,
	'block_top'  : 24,
	'block_left' : 0,
	'wise_pos'   : 2,
	'vertical'   : true,
	'transition' : [ 'progid:DXImageTransform.Microsoft.Wipe(GradientSize=1.0,wipeStyle=1,motion=forward,enabled=0,Duration=.2)'],
	'shadow' : {'offX' : 4,'offY' : 3,'color' : '#777777'},
	'opacity' : 100,
	'css' : {'table' : 'm1table2','outer' : ['m1out2', 'm1over2', 'm1over2'],'inner' : 'minner2'}
},
// Level 2 block configuration
{
	'width'      : 100,
	'block_top'  : 11,
	'block_left' : 100
},
{
	'block_left' : 195
}
	//rest level configurations are inherited from level 3
];

function fxmenu3wrap1 (strstrCaption) {
	var res=[];
	var pattern = new RegExp (' ', 'gi') ;
	var strCaption = strstrCaption.replace(pattern, '&nbsp;') ;
	for (var i=0; i<3; i++)
		res[i]=['<table cellpadding="0" cellspacing="0" border="0"><tr><td><img src="' + fxmenu3imagepath +'',
			(i?2:1),'_l.gif" width="8" height="23" border="0"></td><td background="' + fxmenu3imagepath + '',
			(i?2:1),'_m.gif" style="font-face: tahoma, verdana, arial; font-size: 11px; font-weight: bold; color: #105D94" width="100%">',strCaption,'</td><td><img src="' + fxmenu3imagepath + '',
			(i?2:1),'_r.gif" width="8" height="23" border="0"></td></tr></table>'
		].join('');
	return res;
};





var fxMenuTemplate5 =[
// Level 0 block configuration
{
	'height'     : 21,
	'width'      : 100,
	'vertical'   : false,
	'expd_delay' : 30,
	'table'      : [0, 1, 0],
	'css': {'table' : 'm5wrapper','outer' : ['m5outer','',''],'inner' : ''}
},
// Level 1 block configuration
{
	'width'      : 98,
	'height'     : 24,
	'block_top'  : 22,
	'block_left' : 0,
	'table'      : [0, 0, 0],
	'wise_pos'   : 2,
	'vertical'   : true,
	'transition' : [0, 0.3, 0, 0.3],
	'hide_delay' : 300,
	'css' : {'table' : 'm5table','outer' : '','inner' : ''}
},
// Level 2 block configuration
{
	'block_top'  : 0,
	'block_left' : 99
}
	//Subling level configurations are inherited from level 2
];



function fxmenu5wrapparent (strText,icon) {
	var pattern = new RegExp (' ', 'gi') ;
	var strCaption = strText.replace(pattern, '&nbsp;') ;
	return [['<table cellpadding=1 cellspacing=0 border=0 width=100%><tr><td bgcolor=#EFEDDE><img height=16 src=', icon !='' ? fxmenu5imagepath + icon: fxmenu5imagepath + 'pixel.gif width=16', ' hspace=3></td><td width=100%><table cellpadding=1 cellspacing=0 border=0 width=100% height=22><tr><td class=m5a0>&nbsp; ', strCaption, '</td></tr></table></td><td><img src=testfiles/m5-images/arr.gif width=4 height=7 align="middle" align=absmiddle hspace=3></td></tr></table>'].join(''),
	['<table cellpadding=1 cellspacing=0 border=0 width=100% bgcolor=#93A070><tr><td><table cellpadding=1 cellspacing=0 border=0 width=100% height=22 bgcolor=#CED1C3><tr><td><img height=16 src=', icon !='' ? fxmenu5imagepath + icon: fxmenu5imagepath + 'pixel.gif width=16', ' hspace=3></td><td width=100% class=m5a0>&nbsp; ', strCaption, '</td><td><img src=testfiles/m5-images/arr.gif width=4 height=7 align="middle" align=absmiddle hspace=3></td></tr></table></td></tr></table>'].join(''),
	['<table cellpadding=1 cellspacing=0 border=0 width=100% bgcolor=#93A070><tr><td><table cellpadding=1 cellspacing=0 border=0 width=100% height=22 bgcolor=#CED1C3><tr><td><img height=16 src=', icon !='' ? fxmenu5imagepath + icon: fxmenu5imagepath + 'pixel.gif width=16', ' hspace=3></td><td width=100% class=m5a0>&nbsp; ', strCaption, '</td><td><img src=testfiles/m5-images/arr.gif width=4 height=7 align="middle" align=absmiddle hspace=3></td></tr></table></td></tr></table>'].join('')
	];
}

function fxmenu5wrapchild (strText,icon) {
	var pattern = new RegExp (' ', 'gi') ;
	var strCaption = strText.replace(pattern, '&nbsp;') ;
	return [['<table cellpadding=1 cellspacing=0 border=0 width=100%><tr><td bgcolor=#EFEDDE><img height=16 src=', icon !='' ? fxmenu5imagepath + icon: fxmenu5imagepath + 'pixel.gif width=15', ' hspace=3></td><td width=100%><table cellpadding=1 cellspacing=0 border=0 width=100% height=22><tr><td class=m5a0>&nbsp; ', strCaption, '</td></tr></table></td></tr></table>'].join(''),
	['<table cellpadding=1 cellspacing=0 border=0 width=100% bgcolor=#93A070><tr><td><table cellpadding=1 cellspacing=0 border=0 width=100% height=22 bgcolor=#CED1C3><tr><td><img height=16 src=', icon !='' ? fxmenu5imagepath + icon: fxmenu5imagepath + 'pixel.gif width=16', ' hspace=3></td><td width=99% class=m5a0>&nbsp; ', strCaption, '</td></tr></table></td></tr></table>'].join(''),
	['<table cellpadding=1 cellspacing=0 border=0 width=100% bgcolor=#93A070><tr><td><table cellpadding=1 cellspacing=0 border=0 width=100% height=22 bgcolor=#CED1C3><tr><td><img height=16 src=', icon !='' ? fxmenu5imagepath + icon: fxmenu5imagepath + 'pixel.gif width=16', ' hspace=3></td><td width=99% class=m5a0>&nbsp; ', strCaption, '</td></tr></table></td></tr></table>'].join('')
	];
}

function fxmenu5wraproot (strText,icon) {
	var pattern = new RegExp (' ', 'gi') ;
	var strCaption = strText.replace(pattern, '&nbsp;') ;
	return [
	'<table cellpadding=1 cellspacing=0 border=0 width=100%><tr><td><table cellpadding=0 cellspacing=0 border=0 width=100% height=21><tr><td width=100% class=m5a0 align="center">&nbsp; ' + strCaption + ' &nbsp;</td></tr></table></td></tr></table>',
	'<table cellpadding=1 cellspacing=0 border=0 width=100% bgcolor=#93A070><tr><td><table cellpadding=0 cellspacing=0 border=0 width=100% height=21><tr><td width=100% class=m5a1 align="center">&nbsp; ' + strCaption + ' &nbsp;</td></tr></table></td></tr></table>',
	'<table cellpadding=1 cellspacing=0 border=0 width=100% bgcolor=#93A070><tr><td><table cellpadding=0 cellspacing=0 border=0 width=100% height=21><tr><td width=100% class=m5a1 align="center">&nbsp; ' + strCaption + ' &nbsp;</td></tr></table></td></tr></table>'
	];
}

function fxmenupopup (text,path) {
	var tempimagepath = path ;
	return '<table border=0 cellpadding=0 cellspacing=0><tr><td><img border=0 src="' + tempimagepath + '01.gif" width=9 height=11></td><td background="' + tempimagepath + '02.gif"><img border=0 src="' + tempimagepath + 'pixel.gif" width=261 height=11></td><td colspan=2 rowspan=2 valign="top"><img border=0 src="' + tempimagepath + '03.gif" width=89 height=167></td><td><img border=0 src="' + tempimagepath + 'pixel.gif" width=1 height=11></td></tr><tr><td rowspan=2 background="' + tempimagepath + '04.gif"><img border=0 src="' + tempimagepath + 'pixel.gif" width=9 height=200></td><td rowspan="2" bgcolor="#339933" valign="top" style="font-decoration: none;">'
		+ text + '</td><td><img border=0 src="' + tempimagepath + 'pixel.gif" width=1 height=156></td></tr><tr><td background="' + tempimagepath + '05.gif"><img border=0 src="' + tempimagepath + 'pixel.gif" width=13 height=200></td><td rowspan="2"><img border=0 src="' + tempimagepath + 'pixel.gif" width=76 height=200></td><td><img border=0 src="' + tempimagepath + 'pixel.gif" width=1 height=200></td></tr><tr><td><img border=0 src="' + tempimagepath + '06.gif" width=9 height=17></td><td background="' + tempimagepath + '07.gif"><img border=0 src="' + tempimagepath + 'pixel.gif" width=1 height=17></td><td><img border=0 src="' + tempimagepath + '08.gif" width=13 height=17></td><td><img border=0 src="' + tempimagepath + 'pixel.gif" width=1 height=17></td></tr></table>';
}


function fxmenupopup2 (text,path) {
	var tempimagepath = path ;
	return '<table border=0 cellpadding=0 cellspacing=0><tr><td><img border=0 src="' + tempimagepath + '03.gif" width=89 height=167></td><td background="' + tempimagepath + '02.gif"><img border=0 src="' + tempimagepath + 'pixel.gif" width=261 height=11></td><td colspan=2 rowspan=2 valign="top"><img border=0 src="' + tempimagepath + '01.gif" width=9 height=11></td><td><img border=0 src="' + tempimagepath + 'pixel.gif" width=1 height=11></td></tr><tr><td rowspan=2 background="' + tempimagepath + '04.gif"><img border=0 src="' + tempimagepath + 'pixel.gif" width=9 height=200></td><td rowspan="2" bgcolor="#339933" valign="top" style="font-decoration: none;">'
		+ text + '</td><td><img border=0 src="' + tempimagepath + 'pixel.gif" width=1 height=156></td></tr><tr><td background="' + tempimagepath + '05.gif"><img border=0 src="' + tempimagepath + 'pixel.gif" width=13 height=200></td><td rowspan="2"><img border=0 src="' + tempimagepath + 'pixel.gif" width=76 height=200></td><td><img border=0 src="' + tempimagepath + 'pixel.gif" width=1 height=200></td></tr><tr><td><img border=0 src="' + tempimagepath + '06.gif" width=9 height=17></td><td background="' + tempimagepath + '07.gif"><img border=0 src="' + tempimagepath + 'pixel.gif" width=1 height=17></td><td><img border=0 src="' + tempimagepath + '08.gif" width=13 height=17></td><td><img border=0 src="' + tempimagepath + 'pixel.gif" width=1 height=17></td></tr></table>';
}
