var states = ['mout', 'mover', 'mdown'];
var bgcolors = ['#4682B4', '#6699cc', '#99ccff'];


var MENU_ITEMS = [
	[wrap_parent('Menu Compatibility', 'd'), null, [null, null, 155],
		[wrap_parent('Supported Browsers', 'r'), null, null,
			[wrap_child('Internet Explorer 4.0', 'ie.gif'), null, null],
			[wrap_child('Internet Explorer 4.5', 'ie.gif'), null, null],
			[wrap_child('Internet Explorer 5.0', 'ie.gif'), null, null],
			[wrap_child('Internet Explorer 5.5', 'ie.gif'), null, null],
			[wrap_child('Internet Explorer 6.0', 'ie.gif'), null, null],
			[wrap_child('Netscape 4.7', 'nn4.gif'), null, null],
			[wrap_child('Netscape 4.72', 'nn4.gif'), null, null],
			[wrap_child('Netscape 6/6.0', 'nn6.gif'), null, null],
			[wrap_child('Netscape 6.2', 'nn6.gif'), null, null],
			[wrap_child('Mozilla 0.9.7', 'mozilla.gif'), null, null],
			[wrap_child('Opera 5.02', 'opera.gif'), null, null],
			[wrap_child('Opera 5.12', 'opera.gif'), null, null],
			[wrap_child('Opera 6.0', 'opera.gif'), null, null]
		],
		[wrap_parent('Unsupported Browsers', 'r'), null, null,
			[wrap_child('Lynx'), null, null]
		],
		[wrap_child('Report test results', 'email.gif'), 'http://www.softcomplex.com/support.html', null]
	],
	[wrap_parent('Demos', 'd'), null, [154, null, 65],
		[wrap_child('Alignment &amp; Multimenus'), ['http://www.softcomplex.com/products/tigra_menu_pro/demo/alignment_demo/', null, 'Unlimited number of menus on single page all independently configurable']],
		[wrap_child('Depth'), ['http://www.softcomplex.com/products/tigra_menu_pro/demo/depth_demo/', null, 'Unlimited menu depth with all levels independently configurable']],
		[wrap_child('Geometry'), ['http://www.softcomplex.com/products/tigra_menu_pro/demo/geometry_demo/', null, 'Configurable geometry, makes it possible for items to drop down the way you like it - vertical, horizontal menu, overlapping etc.']],	
		[wrap_child('InnerHTML'), ['http://www.softcomplex.com/products/tigra_menu_pro/demo/innerhtml_demo/', null, 'Any item may contain html (tables, pictures etc.) defined for each state independently']],
		[wrap_child('Targeting'), ['http://www.softcomplex.com/products/tigra_menu_pro/demo/targeting_demo/', null, 'Frames, target windows, and tool tips are supported']],
		[wrap_child('Static positioning'), ['http://www.softcomplex.com/products/tigra_menu_pro/demo/static_positioning_demo/', null, 'Static menu positioning - both vertical and horizontal']]
	],
	[wrap_parent('Support Materials', 'd'), null, [64,,145],
		[wrap_child('Purchase'), 'order.html', null],
		[wrap_child('Documentation'), 'http://www.softcomplex.com/products/tigra_menu_pro/docs/', null],
		[wrap_child('FAQ'), 'http://www.softcomplex.com/products/tigra_menu_pro/docs/faq.html', null],
		[wrap_child('TM Comparison Table'), 'http://www.softcomplex.com/products/tigra_menu/docs/compare_menus.html', null],
		[wrap_child('Terms &amp; Conditions'), 'http://www.softcomplex.com/products/tigra_menu_pro/docs/index.html#terms_cond', null]
	],
	[wrap_parent('Contact', 'd'), null, [144, null, 70],
		[wrap_child('E-mail', 'email.gif'), 'http://www.softcomplex.com/support.html', null],
		[wrap_child('ICQ: 817108', 'icq.gif'), null, null],
		[wrap_child('Y! ID: softcomplex', 'yahoo.gif'), null, null],
		[wrap_child('AIM ID: softcomplex', 'aol.gif'), null, null]
	],
];

function wrap_parent (text, pos, icon) {
	var res = new Array;
	for (var i=0; i<states.length; i++)
		res[i] =  '<table cellpadding="1" cellspacing="0" border="0" bgcolor="#DBEAF5" width="100%"><tr><td><table cellpadding="2" cellspacing="0" border="0" width="100%" height="24" bgcolor="' + bgcolors[i] + '"><tr><td valign="middle" width="100%">&nbsp;' + (icon != null ? '<img src="img/'  + icon + '" height="16">&nbsp;' : '') + '<font face="tahoma, verdana, arial" color="black"><span style="font-size: 13px;">' + text + '</span></font></td><td valign="middle"><img src="img/' + states[i] + '_' + pos + 'arrow.gif" width="12" height="12"></td></tr></table></td></tr></table>';
	return res;
}
function wrap_child (text, icon) {
	var res = new Array;
	for (var i=0; i<states.length; i++)
		res[i] =  '<table cellpadding="0" cellspacing="0" border="0" bgcolor="#DBEAF5" width="100%"><tr><td><table cellpadding="3" cellspacing="1" border="0" width="100%" height="24"><tr><td bgcolor="' + bgcolors[i] + '" style="padding: 3px;" valign="middle">&nbsp;' + (icon != null ? '<img src="img/'  + icon + '" height="16" align="absmiddle">&nbsp;' : '') + '<font face="tahoma, verdana, arial" color="black"><span style="font-size: 12px;">' + text + '</span></font></td></tr></table></td></tr></table>';
	return res;
}

