var MENU1_POS = [
// Level 0 block configuration
{
	// Item's height in pixels
	'height'     : 23,
	// if Block Orientation is vertical
	'vertical'   : false,
	// Block outing table parameters:
	// [cellpadding, cellspacing, border]
	'table'      : [0, 0, 0],
	// Time Delay in milliseconds before o_block block expands
	// after mouse pointer overs an item
	'expd_delay' : 100,
	// Time Delay in milliseconds before menu collapses after mouse
	// pointer lefts all items
	'hide_delay' : 100,
	// Style class names for the level
	'css' : {
		// Block outing table class
		'table' : 'mtable',
		// Item outer tag style class for all item states or
		// classes for [<default state>, <hovered state>, <clicked state>]
		'outer' : ['moouter', 'moover', 'moclick'],

		// Item inner tag style class for all item states or
		// classes for [<default state>, <hovered state>, <clicked state>]
		'inner' : ['miouter', 'miover', 'miclick']
	},
	'pixel':'/Menu/menu_files/pixel.gif'

},
// Level 1 block configuration
{
	'width'      : 95,
	'height'     : 32,
	'vertical'   : false,
	'transition' : [ 'progid:DXImageTransform.Microsoft.Wipe(GradientSize=1.0,wipeStyle=1,motion=forward,enabled=0,Duration=.25)'],
	// Style class names for the level
	'css' : {
		// Block outing table class
		'table' : 'm1table2',
		// Item outer tag style class for all item states or
		// classes for [<default state>, <hovered state>, <clicked state>]
		'outer' : ['m1out2', 'm1over2', 'm1over2'],
		// Item inner tag style class for all item states or
		// classes for [<default state>, <hovered state>, <clicked state>]
		'inner' : ['m1inner2', 'm1iover2', 'm1iover2']
	}
}
]

var MENU1_ITEMS =[
	[wrap_tab('Home'), relpath + '', {'sw':48}],
	[wrap_tab('Our Products'), relpath + 'Products/FAB/', {'sw':90, 'bl':-23},
		['save2learn',  'http://www.save2learn.co.nz', {'bw':200, 'tw':'_blank'}],
		['<nobr />Funeral Cover',  relpath + 'Products/FAB/'],
		['<nobr />Life Cover',  relpath + 'Products/IAB/'],
		['<nobr />Health Cover',  relpath + 'Products/AHC'],
	],
	[wrap_tab('Our Benefits'), relpath + 'Benefits/Accident.aspx', {'sw':85, 'bl':-110},
		['Insurance',  relpath + 'Benefits/Accident.aspx'],
		['Awards&nbsp;&nbsp;&nbsp;&nbsp;',  relpath + 'Benefits/Scholarships.aspx'],
		['<nobr />Benevolent Fund',  relpath + 'Benefits/Benevolent.aspx'],
		['Discounts',  relpath + 'Benefits/MemberDiscounts.aspx'],
		['<nobr />Credit Union',  relpath + 'CreditUnion/'],
		['<nobr />Fraternal',  relpath + 'Fraternal/Default.aspx'],
	],
	//[wrap_tab('About Us'), relpath + 'AboutUs', {'sw':67}],
	[wrap_tab('About Us'), relpath + 'AboutUs/', { 'sw': 67, 'bl': -170},
		['<nobr />Our Organisation&nbsp;&nbsp;&nbsp;', relpath + 'AboutUs/'],
		['News & Events', relpath + 'News/'],
	],
	[wrap_tab('Contact Us'), relpath + 'Contact', {'sw':77}],
	[wrap_tab('Downloads'), relpath + 'Downloads/', {'sw':77}],
	[wrap_tab('Holiday Accommodation'), relpath + 'Holiday/', {'sw':153}]
];

function wrap_tab (text) {
	var res=[];
	var num2, num1, colour;
	if (section == text)
	{
	    num2=2;
	    num1=2;
	    colour='ffffff';
	}
	else
	{
	    num2=2;
	    num1=1;
	}
	for (var i=0; i<3; i++)
		res[i]=['<table cellpadding="0" cellspacing="0" border="0"><tr><td><img src="/menu/img/tab',
			(i?num2:num1),'_l.gif" width="8" height="23" border="0"></td><td background="/menu/img/tab',
			(i?num2:num1),'_m.gif" width="100%" style="color: #', colour, ';">',text,'</td><td><img src="/menu/img/tab',
			(i?num2:num1),'_r.gif" width="8" height="23" border="0"></td></tr></table>'
		].join('');
	return res;
}

function rollOver(imgName, imgSource)
{
	document.images[imgName].src = eval(imgSource + ".src");
}
