// items structure
// each item is the array of one or more properties:
// [text, link, settings, subitems ...]
// use the builder to export errors free structure if you experience problems with the syntax

var MENU_ITEMS2 = [
	[wrap('<img src=\'img/icon_home.jpg\' align=\'absmiddle\'> Home','#D502C0','#FFFFFF'), 'index.php', {'tw':'_self'}
	],
	[wrap('<img src=\'img/icon_dollar.jpg\' align=\'absmiddle\'> Pricing','#D502C0','#FFFFFF'), null, null,
		[sub_wrap('Latex Balloons - 1 colour','#C0C338','#000000'),'latex.php', {'tw':'_self'}],
		[sub_wrap('Latex Balloons - Multicolour','#C0C338','#000000'),'multilatex.php', {'tw':'_self'}],
		[sub_wrap('Latex Balloons - No Imprint','#C0C338','#000000'),'blank.php', {'tw':'_self'}],
		[sub_wrap('Adwave Balloons','#C0C338','#000000'),'adwave.php', {'tw':'_self'}],
		[sub_wrap('Microfoil Helium Balloons','#C0C338','#000000'),'microfoil.php', {'tw':'_self'}],
		[sub_wrap('Balloon Accessories','#C0C338','#000000'),'accessories.php', {'tw':'_self'}]
	],
	[wrap('Request A Quote','#D502C0','#FFFFFF'), null, null,
		[pupup('<form name="quote_form" action="mailies2.php" method="get" onSubmit="return validate(this)"><input type="hidden" name="recipient" value="info@justdirectpromotions.ca"><input type="hidden" name="required" value="fullname,phone,email,msg"><input type="hidden" name="redirect" value="thankyou.php"><input type="hidden" name="quote" value="true"><input type="hidden" name="redirect_values" value="quote"><table width="255" height="280" class="tableForm" border="0" align="center"><tr><th colspan="2">Quote Request Form</th></tr><tr><td>Name:</td><td><input type="text" name="fullname"/></td></tr><tr><td>Phone:</td><td><input type="text" name="phone"/></td></tr><tr><td>Email:</td><td><input type="text" name="email"/></td></tr><tr><td colspan="2">Quotation Details:<br><textarea rows="6" cols="28" name="msg"/></textarea></td></tr><tr><th colspan="2" align="right"><input type="Submit" value="    Send    " /></th></tr></table></form>')]
	],
	[wrap('How To Order','#D502C0','#FFFFFF'), null, null,
		[sub_wrap('The Order Process','#C0C338','#000000'),'order.php', {'tw':'_self'}],
		[sub_wrap('General Info','#C0C338','#000000'),'info.php', {'tw':'_self'}],
		[sub_wrap('Artwork Guidelines','#C0C338','#000000'),'guidelines.php', {'tw':'_self'}]
	]
];

function wrap(text, bg_color, fg_color) {
return('<table cellpadding="0" cellspacing="0" style=" border : 1px solid #FFFFFF;" bgcolor="'
+ bg_color + '" width="100%" height="100%"><tr><td valign="middle" align="center" style=" '
+ 'font-family: tahoma, verdana, arial; font-size: 12px; color:'
+ fg_color + '"><b>' + text + '</b></td></tr></table>');
}

function sub_wrap(text, bg_color, fg_color) {
return('<table cellpadding="0" cellspacing="0" style=" border : 1px solid #FFFFFF;" bgcolor="'
+ bg_color + '" width="100%" height="100%"><tr><td valign="middle" align="center" style="'
+ 'font-family: tahoma, verdana, arial; font-size: 11px; color:'
+ fg_color + '"><p onmouseover="style.fontWeight =\'bold\'" onmouseout="style.fontWeight =\'normal\'">' + text + '</p></td></tr></table>');
}

function pupup (text) {
	return '<table width="360" height="390" border="0" cellpadding="0" cellspacing="0"><tr><td rowspan="2"><img src="img/01.gif" width="89" height="170" alt=""></td><td><img src="img/02.gif" width="261" height="14" alt=""></td><td><img src="img/03.gif" width="9" height="14" alt=""></td><td><img src="img/spacer.gif" width="1" height="14" alt=""></td></tr><tr><td width="100%" align="center" valign="center" rowspan="2" bgcolor="#C0C338">' + text + '</td><td rowspan="2"><img src="img/05.gif" width="9" height="358" alt=""></td><td><img src="img/spacer.gif" width="1" height="156" alt=""></td></tr><tr><td><img src="img/06.gif" width="89" height="202" alt=""></td><td><img src="img/spacer.gif" width="1" height="202" alt=""></td></tr><tr><td><img src="img/07.gif" width="89" height="18" alt=""></td><td><img src="img/08.gif" width="261" height="18" alt=""></td><td><img src="img/09.gif" width="9" height="18" alt=""></td><td><img src="img/spacer.gif" width="1" height="18" alt=""></td></tr></table>';
}

