// 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','#036a7d','#FFFFFF'), 'http://www.justdirectpromotions.ca/magnets/', {'tw':'_self'}],
	[wrap('Magnet Categories','#036a7d','#FFFFFF'), null, null,
		[sub_wrap('Business Card Magnets','#77c3d2','#000000'),'http://www.justdirectpromotions.ca/magnets/showproduct.php?cat=Magnets&prodnum=MBC-1000', {'tw':'_self'}],
		[sub_wrap('Basic Stock Shapes','#77c3d2','#000000'),'http://www.justdirectpromotions.ca/magnets/showproduct.php?cat=Magnets&prodnum=MGRE-1771', {'tw':'_self'}],
		[sub_wrap('Calendars','#77c3d2','#000000'),'http://www.justdirectpromotions.ca/magnets/showproduct.php?cat=Magnets&prodnum=MCA-1400', {'tw':'_self'}],
		[sub_wrap('Custom Shapes','#77c3d2','#000000'),'http://www.justdirectpromotions.ca/magnets/showproduct.php?cat=Magnets&prodnum=MGJ-CUSTOM', {'tw':'_self'}],
		[sub_wrap('Memo Boards','#77c3d2','#000000'),'http://www.justdirectpromotions.ca/magnets/showproduct.php?cat=Magnets&prodnum=MMB-2300', {'tw':'_self'}],
		[sub_wrap('Photo Frame Magnets','#77c3d2','#000000'),'http://www.justdirectpromotions.ca/magnets/showproduct.php?cat=Magnets&prodnum=MGPH-1209', {'tw':'_self'}],
		[sub_wrap('Vehicle Magnets','#77c3d2','#000000'),'http://www.justdirectpromotions.ca/magnets/showproduct.php?cat=Magnets&prodnum=MGVE-1000', {'tw':'_self'}],
		[sub_wrap('Rulers & Puzzles','#77c3d2','#000000'),'http://www.justdirectpromotions.ca/magnets/showproduct.php?cat=Magnets&prodnum=MGRU-1194', {'tw':'_self'}],
		[sub_wrap('Transporation','#77c3d2','#000000'),'http://www.justdirectpromotions.ca/magnets/showproduct.php?cat=Magnets&prodnum=MGTN-4158', {'tw':'_self'}],
		[sub_wrap('Commerce','#77c3d2','#000000'),'http://www.justdirectpromotions.ca/magnets/showproduct.php?cat=Magnets&prodnum=MGCO-5258', {'tw':'_self'}],
		[sub_wrap('Health & Dental','#77c3d2','#000000'),'http://www.justdirectpromotions.ca/magnets/showproduct.php?cat=Magnets&prodnum=MGHE-4160', {'tw':'_self'}],
		[sub_wrap('House & Phone','#77c3d2','#000000'),'http://www.justdirectpromotions.ca/magnets/showproduct.php?cat=Magnets&prodnum=MGHP-4142', {'tw':'_self'}],
		[sub_wrap('Food & Pet','#77c3d2','#000000'),'http://www.justdirectpromotions.ca/magnets/showproduct.php?cat=Magnets&prodnum=MGFP-4122', {'tw':'_self'}]
	],
	[wrap('Request A Quote','#036a7d','#FFFFFF'), null, null,
		[pupup('<form name="quote_form" action="mailies2.php" method="get" onSubmit="return validate(this)"><input type="hidden" name="recipient" value="info@justdirect.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','#036a7d','#FFFFFF'), null, null,
		[sub_wrap('The Order Process','#77c3d2','#000000'),'order.php', {'tw':'_self'}],
		[sub_wrap('General Info','#77c3d2','#000000'),'info.php', {'tw':'_self'}],
		[sub_wrap('Artwork Guidelines','#77c3d2','#000000'),'guidelines.php', {'tw':'_self'}],
		[sub_wrap('Artwork Templates','#77c3d2','#000000'),'templates.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="#77c3d2">' + 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>';
}

