// items structure
// each item is the array of one or more properties:
// [text, link, settings, subitems ...]
// this sample structure demonstrates the use of HTML inside the menu items as well as wrapper functions

var MENU_ITEMS3 = [
	['Quick Jump', null, null,
		[pupup('<form action="http://www.sxg.com.au/index.php" method="GET"><table class="tableForm"><tr><th colspan="2">Quick Register</th></tr><tr><td>Jump#</td><td><input type="Text" name="jump" size="6" /></td></tr><tr><th colspan="2" align="right"><input type="hidden" name="ind" value="tournies"><input type="hidden" name="op" value="ShowAll"><input type="Submit" value="Jump" /></th></tr></table></form><table class="tableForm"><tr><td><a href="http://www.sxg.com.au/index.php?pid=19"><span style="color:yellow;font-weight:bold">register / rules</span></a></td></tr></table>')],
	],
	['HDCP Calculator', null, null,
		[pupup('<iframe src="http://www.sxg.com.au/formbox.php?calculator" style="width:240px; height:150px;"></iframe>'), 'http://www.sxg.com.au'],
	],
	['Guild Match', null, null,
		[pupup('<iframe src="http://www.sxg.com.au/formbox.php?guildmatch" style="width:240px; height:150px;"></iframe>'), 'http://www.sxg.com.au'],
	]
];


//	This simple function is a wrapper. It puts html around provided text.
//	You can write your own wrappers for higher efficiency and better code maintanability
function pupup (text) {
	return '<table border=0 cellpadding=0 cellspacing=0><tr><td><img border=0 src="http://www.sxg.com.au/menu2/img/01.gif" width=9 height=11></td><td background="http://www.sxg.com.au/menu2/img/02.gif"><img border=0 src="http://www.sxg.com.au/menu2/img/pixel.gif" width=261 height=11></td><td colspan=2 rowspan=2 valign="top"><img border=0 src="http://www.sxg.com.au/menu2/img/03.gif" width=89 height=167></td><td><img border=0 src="http://www.sxg.com.au/menu2/img/pixel.gif" width=1 height=11></td></tr><tr><td rowspan=2 background="http://www.sxg.com.au/menu2/img/04.gif"><img border=0 src="http://www.sxg.com.au/menu2/img/pixel.gif" width=9 height=100></td><td rowspan="2" bgcolor="#339933" valign="top" style="text-align:center;padding:10px;">'
		+ text + '</td><td><img border=0 src="http://www.sxg.com.au/menu2/img/pixel.gif" width=1 height=156></td></tr><tr><td background="http://www.sxg.com.au/menu2/img/05.gif"><img border=0 src="http://www.sxg.com.au/menu2/img/pixel.gif" width=13 height=20></td><td rowspan="2"><img border=0 src="http://www.sxg.com.au/menu2/img/pixel.gif" width=76 height=20></td><td><img border=0 src="http://www.sxg.com.au/menu2/img/pixel.gif" width=1 height=20></td></tr><tr><td><img border=0 src="http://www.sxg.com.au/menu2/img/06.gif" width=9 height=17></td><td background="http://www.sxg.com.au/menu2/img/07.gif"><img border=0 src="http://www.sxg.com.au/menu2/img/pixel.gif" width=1 height=17></td><td><img border=0 src="http://www.sxg.com.au/menu2/img/08.gif" width=13 height=17></td><td><img border=0 src="http://www.sxg.com.au/menu2/img/pixel.gif" width=1 height=17></td></tr></table>';
}
