// 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','#69373A','#FFFFFF'), 'http://www.justdirectpromotions.ca/events/index.php', {'tw':'_self'}],
	[wrap('Products','#69373A','#FFFFFF'), null, null,
		[sub_wrap('Silicone Wristbands','#dfabaf','#000000'),'http://www.justdirectpromotions.ca/events/showproduct.php?cat=Events&prodnum=WBAZ-DEBOSSED', {'tw':'_self'}],
		[sub_wrap('Poker Chips','#dfabaf','#000000'),'http://www.justdirectpromotions.ca/events/showproduct.php?cat=Events&prodnum=GAJ-PKCH', {'tw':'_self'}],
		[sub_wrap('Mardi Gras Beads','#dfabaf','#000000'),'http://www.justdirectpromotions.ca/events/showproduct.php?cat=Events&prodnum=BEJ-MARD', {'tw':'_self'}],
		[sub_wrap('Hand Fans','#dfabaf','#000000'),'http://www.justdirectpromotions.ca/events/showproduct.php?cat=Events&prodnum=HFJ-2001', {'tw':'_self'}],
		[sub_wrap('Beach Balls','#dfabaf','#000000'),'http://www.justdirectpromotions.ca/events/showproduct.php?cat=Events&prodnum=PI-9BB', {'tw':'_self'}],
		[sub_wrap('Rain Ponchos','#dfabaf','#000000'),'http://www.justdirectpromotions.ca/events/showproduct.php?cat=Events&prodnum=GJ-800PON', {'tw':'_self'}],
		[sub_wrap('Lip Balm','#dfabaf','#000000'),'http://www.justdirectpromotions.ca/events/showproduct.php?cat=Events&prodnum=LBJ-100', {'tw':'_self'}],
		[sub_wrap('Pocket Tissues','#dfabaf','#000000'),'http://www.justdirectpromotions.ca/events/showproduct.php?cat=Events&prodnum=PCJ-510TIS', {'tw':'_self'}],
		[sub_wrap('Hand Gel','#dfabaf','#000000'),'http://www.justdirectpromotions.ca/events/showproduct.php?cat=Events&prodnum=PC-HANDSAN', {'tw':'_self'}],
		[sub_wrap('Bottled Water','#dfabaf','#000000'),'http://www.justdirectpromotions.ca/events/showproduct.php?cat=Events&prodnum=BWJ-500ML', {'tw':'_self'}],
		[sub_wrap('Foam Cheering Hands','#dfabaf','#000000'),'http://www.justdirectpromotions.ca/events/showproduct.php?cat=Events&prodnum=FW-HA305', {'tw':'_self'}],
		[sub_wrap('Antibacterial Hand Spray','#dfabaf','#000000'),'http://www.justdirectpromotions.ca/events/showproduct.php?cat=Events&prodnum=PCJ-SPRY', {'tw':'_self'}],
		[sub_wrap('Chip Bag Clips','#dfabaf','#000000'),'http://www.justdirectpromotions.ca/events/showproduct.php?cat=Events&prodnum=CHJ-004', {'tw':'_self'}],
		[sub_wrap('Thunderstix','#dfabaf','#000000'),'http://www.justdirectpromotions.ca/events/showproduct.php?cat=Events&prodnum=TSJ-1000', {'tw':'_self'}],
		[sub_wrap('Hand Clappers','#dfabaf','#000000'),'http://www.justdirectpromotions.ca/events/showproduct.php?cat=Events&prodnum=HCJ-100', {'tw':'_self'}],
		[sub_wrap('Frisbee-like Flyers','#dfabaf','#000000'),'http://www.justdirectpromotions.ca/events/showproduct.php?cat=Events&prodnum=FRJ-1000', {'tw':'_self'}],
		[sub_wrap('Tree-in-a-Box','#dfabaf','#000000'),'http://www.justdirectpromotions.ca/events/showproduct.php?cat=Events&prodnum=SPJ-TREE-4CPBOX', {'tw':'_self'}],
		[sub_wrap('Nerf-like Sport Balls','#dfabaf','#000000'),'http://www.justdirectpromotions.ca/events/showproduct.php?cat=Events&prodnum=FW-FFB551', {'tw':'_self'}],
		[sub_wrap('Yo-yos','#dfabaf','#000000'),'http://www.justdirectpromotions.ca/events/showproduct.php?cat=Events&prodnum=YOJ-YOYO', {'tw':'_self'}],
		[sub_wrap('Foam Seat Cushions','#dfabaf','#000000'),'http://www.justdirectpromotions.ca/events/showproduct.php?cat=Events&prodnum=FW-SC1201', {'tw':'_self'}]
	],	
	[wrap('Request A Quote','#69373A','#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','#69373A','#FFFFFF'), null, null,
		[sub_wrap('The Order Process','#dfabaf','#000000'),'order.php', {'tw':'_self'}],
		[sub_wrap('General Info','#dfabaf','#000000'),'info.php', {'tw':'_self'}],
		[sub_wrap('Artwork Guidelines','#dfabaf','#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="#cb8589">' + 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>';
}

