﻿var MENU_ITEMS0 = [
	[wrap_root0(''), 'index.php', {'sw':35, 'tt':'Home'}],
	[wrap_root1(''), null, {'sw':35, 'tt':'About'},
		[wrap_item('Conference Overview'), 'conference-overview.php', null],
		[wrap_item('Conference Location'), 'conference-location.php', null],
		[wrap_item('Sponsorship Opportunities'), 'sponsorship.php', null],
		[wrap_item('Sponsors'), 'sponsors.php', null],
		[wrap_item('Special Announcements'), 'special-announcements.php', null],
		[wrap_item('Contact Us'), 'contact-us.php', null]
		
	],
	[wrap_root2(''), null, {'sw':35, 'tt':'Programme'},
		[wrap_item('Adults'), 'adults.php', null],
		[wrap_item('Youths'), 'youths.php', null],
		[wrap_item('Accompanying Persons'), 'accompanying-persons.php', null]
	],
	[wrap_root3(''), 'speakers.php', {'sw':35, 'tt':'Speakers'}],
	[wrap_root4(''), 'where-to-stay.php', {'sw':35, 'tt':'Where to Stay'}],
	[wrap_root5(''), 'getting-there.php', {'sw':35, 'tt':'Getting There'}],
	[wrap_root6(''), 'links.php', {'sw':35, 'tt':'Links'}],
	[wrap_root7(''), 'rego.php', {'sw':35, 'tt':'Registration'}]
]

l0 = new Image(); l0.src = "gfx/btn-about_0.gif";
l1 = new Image(); l1.src = "gfx/btn-about_1.gif";
l2 = new Image(); l2.src = "gfx/btn-about_2.gif";


function wrap_root0 (text) {
	var res=[];for (var i=0; i<3; i++)
		res[i]='<table border=0 cellspacing=0 cellpadding=0 width=37 height=35><tr><td valign=bottom align=right height=35 width=35><img src=gfx/btn-home_' + i + '.gif width=35 height=35 border="0"></td></tr></table>'
	return res;
}

function wrap_root1 (text) {
	var res=[];for (var i=0; i<3; i++)
		res[i]='<table border=0 cellspacing=0 cellpadding=0 width=37 height=35><tr><td valign=bottom align=right height=35 width=2><img src=gfx/menu-divide.gif width=2 height=35 border="0"></td><td valign=bottom align=right height=35 width=35><img src=gfx/btn-about_' + i + '.gif width=35 height=35 border="0"></td></tr></table>'
	return res;
}

function wrap_root2 (text) {
	var res=[];for (var i=0; i<3; i++)
		res[i]='<table border=0 cellspacing=0 cellpadding=0 width=37 height=35><tr><td valign=bottom align=right height=35 width=2><img src=gfx/menu-divide.gif width=2 height=35 border="0"></td><td valign=bottom align=right height=35 width=35><img src=gfx/btn-programme_' + i + '.gif width=35 height=35 border="0"></td></tr></table>'
	return res;
}

function wrap_root3 (text) {
	var res=[];for (var i=0; i<3; i++)
		res[i]='<table border=0 cellspacing=0 cellpadding=0 width=37 height=35><tr><td valign=bottom align=right height=35 width=2><img src=gfx/menu-divide.gif width=2 height=35 border="0"></td><td valign=bottom align=right height=35 width=35><img src=gfx/btn-speakers_' + i + '.gif width=35 height=35 border="0"></td></tr></table>'
	return res;
}

function wrap_root4 (text) {
	var res=[];for (var i=0; i<3; i++)
		res[i]='<table border=0 cellspacing=0 cellpadding=0 width=37 height=35><tr><td valign=bottom align=right height=35 width=2><img src=gfx/menu-divide.gif width=2 height=35 border="0"></td><td valign=bottom align=right height=35 width=35><img src=gfx/btn-where-to-stay_' + i + '.gif width=35 height=35 border="0"></td></tr></table>'
	return res;
}

function wrap_root5 (text) {
	var res=[];for (var i=0; i<3; i++)
		res[i]='<table border=0 cellspacing=0 cellpadding=0 width=37 height=35><tr><td valign=bottom align=right height=35 width=2><img src=gfx/menu-divide.gif width=2 height=35 border="0"></td><td valign=bottom align=right height=35 width=35><img src=gfx/btn-getting-there_' + i + '.gif width=35 height=35 border="0"></td></tr></table>'
	return res;
}

function wrap_root6 (text) {
	var res=[];for (var i=0; i<3; i++)
		res[i]='<table border=0 cellspacing=0 cellpadding=0 width=37 height=35><tr><td valign=bottom align=right height=35 width=2><img src=gfx/menu-divide.gif width=2 height=35 border="0"></td><td valign=bottom align=right height=35 width=35><img src=gfx/btn-links_' + i + '.gif width=35 height=35 border="0"></td></tr></table>'
	return res;
}

function wrap_root7 (text) {
	var res=[];for (var i=0; i<3; i++)
		res[i]='<table border=0 cellspacing=0 cellpadding=0 width=37 height=35><tr><td valign=bottom align=right height=35 width=2><img src=gfx/menu-divide.gif width=2 height=35 border="0"></td><td valign=bottom align=right height=35 width=35><img src=gfx/btn-rego_' + i + '.gif width=35 height=35 border="0"></td></tr></table>'
	return res;
}

function wrap_item (text, icon) {
	return [['<table cellpadding="0" cellspacing="0" border="0" bgcolor="003E5D" width=150><tr><td></td><td class="menutext" width="100%">',text,'</td><td></td></tr></table>'].join(''),
			['<table cellpadding="0" cellspacing="0" border="0" bgcolor="003E5D" width=150><tr><td></td><td class="menutextover" width="100%">',text,'</td><td></td></tr></table>'].join(''),
			['<table cellpadding="0" cellspacing="0" border="0" bgcolor="003E5D" width=150><tr><td></td><td class="menutext" width="100%">',text,'</td><td></td></tr></table>'].join('')];
}