function menu()
{	var url = "http://www.onsiteworkshops.com/";
	//var url = "http://onsiteworkshops.hcents.com/";
	document.writeln("<table border=0 width='819px' cellspacing=0 cellpadding=0 height='29px' bgcolor='#E2D3B4'>");
	document.writeln("	<tr><td><img width='33px' height='29px' src='images/spacer.gif' border=0></td>");
	document.write  ("		<td width='85px'  align='center'><a href='"+url+"' ");
	document.writeln("			style='text-decoration: none; font:700 10px Arial; color:#000000;'>Home</a></td>");
	document.write  ("		<td width='60px'  align='center'><a href='"+url+"news.cgi' ");
	document.writeln("			style='text-decoration: none; font:700 10px Arial; color:#000000;'>News</a></td>");
	document.write  ("		<td width='89px'  align='center'><a href='"+url+"programs.htm' ");
	document.writeln("			style='text-decoration: none; font:700 10px Arial; color:#000000;'>Programs</a></td>");
	document.write  ("		<td width='68px'  align='center'><a href='"+url+"faq.cgi' ");
	document.writeln("			style='text-decoration: none; font:700 10px Arial; color:#000000;'>FAQs</a></td>");
	document.write  ("		<td width='81px'  align='center'><a href='"+url+"facilities.htm' ");
	document.writeln("			style='text-decoration: none; font:700 10px Arial; color:#000000;'>Campus</a></td>");
	document.write  ("		<td width='63px'  align='center'><a href='"+url+"faculty.cgi' ");
	document.writeln("			style='text-decoration: none; font:700 10px Arial; color:#000000;'>Staff</a></td>");
	document.write  ("		<td width='73px'  align='center'><a href='"+url+"store.cgi' ");
	document.writeln("			style='text-decoration: none; font:700 10px Arial; color:#000000;'>Online<br>Store</a></td>");
	document.write  ("		<td width='81px'  align='center'><a href='"+url+"email.cgi' ");
	document.writeln("			style='text-decoration: none; font:700 10px Arial; color:#000000;'>E-Mail<br>Updates</a></td>");
	document.write  ("		<td width='93px'  align='center'><a href='"+url+"comments.cgi' ");
	document.writeln("			style='text-decoration: none; font:700 10px Arial; color:#000000;'>Guests<br>Comments</a></td>");
	document.write  ("		<td width='60px'  align='center'><a href='"+url+"contact.htm' ");
	document.writeln("			style='text-decoration: none; font:700 10px Arial; color:#000000;'>Contact</a></td>");
	document.write  ("		<td width='70px'  align='center'><a href='"+url+"resources.htm' ");
	document.writeln("			style='text-decoration: none; font:700 10px Arial; color:#000000;'>Resources</a></td>");
	document.writeln("		<td><img width='33px' height='29px' src='images/spacer.gif' border=0></td></tr>");
	document.writeln("</table>");
}


function right_ads(useads)
{	document.writeln("<table border=0 width='220px' cellpadding=0 cellspacing=0>");

	document.write  ("	<tr><td align='center' style='padding:10px 0px;'><a href='2009Catalog.pdf'>");
	document.writeln("<img src='images/catalog_programs.jpg' border=0></a></td></tr>");

	if (ItemCount > 3)
	{	// This is the random ad generator
		usedads = new Array(-1, -1, -1);
		// first, get random numbers
		for (i=0; i<3; i++)
		{	testnum = Math.floor((Math.random() * ItemCount));
			usedads[i] = testnum;
		}
		// go through and handle same numbers
		{	match = 0;
			for (i=0; i<3; i++)
			{	for (j=0; j<3; j++)
				{	if (i != j)
					{	if (usedads[i] == usedads[j])
							{ usedads[j]++; }
						if (usedads[j] == ItemCount)
							{ usedads = 0; }
					}
				}
			}
		} while (match == 1);
		// print the ads
		for (i=0; i<3; i++)
			{ get_right_ads(usedads[i]); }
	} else {
		// No random ads
		for (i=0; i<ItemCount; i++)
			{ get_right_ads(i); }
	}
	document.writeln("</table>");
}

