	var c_history = 1;
	var c_solutions = 2;
	var c_philosophy = 3;
	var c_art = 4;
	var c_health = 5;
	var c_business = 6;
	var c_portfolio = 7;

	// this function actually just swaps the image in the submenu to be the
	// highlighted version, will probably redo this setup later
	function output(page, level, level2)
	{
		if (page > 0 && page <= 3)
			OutputCompanySubMenu(page, "../../");
		else if (page > 3)
		{
			var ActivateSubSubLinks = false;

			switch(level){
				case 2:
					PathPrefix = "../";
					break;
				case 3:
					PathPrefix = "../../";
					break;
				default:
					PathPrefix = "../../../";
					ActivateSubSubLinks = true; // if on say shortspan, then can click art_ent
			}

			OutputPortfolioSubMenu(page, PathPrefix, ActivateSubSubLinks);
		}
	}

	////////////////////////////////////////////////////////////
	function OutputCompanySubMenu(in_CurrentPage, in_PathPrefix)
	{
		d = document;
		d.write('<table width="192" border="0" cellspacing="0" cellpadding="0" height="50">'+
      			'<tr valign="top"><td colspan="2" height="15">');
		// history
		if (in_CurrentPage == c_history)
			d.write('<img name="Image2" border="0" src="'+in_PathPrefix+'nav2/comp_on3.gif" '+
							'width="122" height="15"></td></tr><tr><td width="27"></td><td width="165" '+
							'valign="top" height="11"><img name="Image61" border="0" '+
							'src="'+in_PathPrefix+'nav2/comp_subs/his_o.gif" width="93" height="11">');
		else
			d.write('<a href="'+in_PathPrefix+'company/history/index.shtml" '+
				'onMouseOut="MM_swapImgRestore()" '+
				'onMouseOver="MM_swapImage(\'Image2\',\'\',\''+in_PathPrefix+'nav2/comp_on3.gif\',1)">'+
				'<img name="Image2" border="0" src="'+in_PathPrefix+'nav2/comp_on3.gif" width="122" '+
				'height="15"></a></td></tr><tr><td width="27"></td><td width="165" valign="top" '+
				'height="11"><a href="'+in_PathPrefix+'company/history/index.shtml" '+
				'onMouseOut="MM_swapImgRestore()" '+
				'onMouseOver="MM_swapImage(\'Image61\',\'\',\''+in_PathPrefix+
				'nav2/comp_subs/his_o1.gif\',1)"><img name="Image61" border="0" '+
				'src="'+in_PathPrefix+'nav2/comp_subs/his_d.gif" width="93" height="11"></a>');

		d.write('</td></tr><tr><td width="27"></td><td width="165" valign="top" height="12">');

		// solutions
		if (in_CurrentPage == c_solutions)
			d.write('<img name="Image71" border="0" '+
							'src="'+in_PathPrefix+'nav2/comp_subs/sol_o.gif" width="93" height="12">');
		else
			d.write('<a href="'+in_PathPrefix+'company/solutions/index.shtml" '+
							'onMouseOut="MM_swapImgRestore()" '+
							'onMouseOver="MM_swapImage(\'Image71\',\'\',\''+in_PathPrefix+
							'nav2/comp_subs/sol_o1.gif\',1)"><img name="Image71" border="0" '+
							'src="'+in_PathPrefix+'nav2/comp_subs/sol_d.gif" width="93" height="12"></a>');

		d.write('</td></tr><tr><td width="27"></td><td width="165" valign="top" height="12">');

		// philosophy
		if (in_CurrentPage == c_philosophy)
			d.write('<img name="Image81" border="0" '+
				'src="'+in_PathPrefix+'nav2/comp_subs/phil_o.gif" width="93" height="12">');
		else
			d.write('<a href="'+in_PathPrefix+'company/philosophy/index.shtml" '+
				'onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image81\',\'\',\''+in_PathPrefix+
				'nav2/comp_subs/phil_o1.gif\',1)"><img name="Image81" border="0" '+
				'src="'+in_PathPrefix+'nav2/comp_subs/phil_d.gif" width="93" height="12"></a>');
            
		d.write('</td></tr></table>');
	}

	////////////////////////////////////////////////////////////
	function OutputPortfolioSubMenu(in_CurrentPage, in_PathPrefix, in_ActivateSubSubLinks)
	{
		d = document;

		d.write('<table width="192" border="0" cellspacing="0" cellpadding="0" height="50">'+
			'<tr valign="top"><td colspan="2" height="16">');

		// portfolio
		if (in_CurrentPage == c_portfolio)
			d.write('<img name="Image3" border="0" src="'+in_PathPrefix+
				'nav2/port_on3.gif" width="147" height="16">');
		else
			d.write('<a href="'+in_PathPrefix+
				'portfolio/portfolio.html" onMouseOut="MM_swapImgRestore()" '+
				'onMouseOver="MM_swapImage(\'Image3\',\'\',\''+in_PathPrefix+
				'nav2/port_on3.gif\',1)"><img name="Image3" border="0" src="'+in_PathPrefix+
				'nav2/port_on3.gif" width="147" height="16"></a>');

		document.write('</td></tr><tr><td width="27"></td><td width="165" valign="top" height="12">');

		// art
		if (in_CurrentPage == c_art)
		{
			if (in_ActivateSubSubLinks)
				d.write('<a href="'+in_PathPrefix+'portfolio/art_enter/index.html">'+
 								'<img name="Image6" border="0" '+
								'src="'+in_PathPrefix+'nav2/port_subs/art_o2.gif" width="119" height="12"></a>');
			else
				d.write('<img name="Image6" border="0" '+
								'src="'+in_PathPrefix+'nav2/port_subs/art_o2.gif" width="119" height="12">');
		}
		else
			d.write('<a href="'+in_PathPrefix+'portfolio/art_enter/index.html"'+
 							'onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image6\',\'\',\''+
							in_PathPrefix+'nav2/port_subs/art_o.gif\',1)"><img name="Image6" border="0" '+
							'src="'+in_PathPrefix+'nav2/port_subs/art_d.gif" width="119" height="12"></a>');

		d.write('</td></tr><tr><td width="27"></td><td width="165" valign="top" height="11">');

		// health
		if (in_CurrentPage == c_health)
		{
			if (in_ActivateSubSubLinks)
				d.write('<a href="'+in_PathPrefix+'portfolio/health_edu/index.html">'+ 		
								'<img name="Image7" border="0" '+
								'src="'+in_PathPrefix+'nav2/port_subs/health_o2.gif" width="119" height="11"></a>');
			else
				d.write('<img name="Image7" border="0" '+
								'src="'+in_PathPrefix+'nav2/port_subs/health_o2.gif" width="119" height="11">');
		}
		else
			d.write('<a href="'+in_PathPrefix+'portfolio/health_edu/index.html"'+ 		
							'onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image7\',\'\',\''+
							in_PathPrefix+'nav2/port_subs/health_o.gif\',1)"><img name="Image7" border="0" '+
							'src="'+in_PathPrefix+'nav2/port_subs/health_d.gif" width="119" height="11"></a>');

		d.write('</td></tr><tr><td width="27"></td><td width="165" valign="top" height="12">');

		// business
		if (in_CurrentPage == c_business)
		{ 
			if (in_ActivateSubSubLinks)
				d.write('<a href="'+in_PathPrefix+'portfolio/bus/index.html">'+ 		 
								'<img name="Image8" border="0" '+
								'src="'+in_PathPrefix+'nav2/port_subs/bus_o2.gif" width="119" height="12"></a>');		
			else
				d.write('<img name="Image8" border="0" '+
								'src="'+in_PathPrefix+'nav2/port_subs/bus_o2.gif" width="119" height="12">');
		}
		else
			d.write('<a href="'+in_PathPrefix+'portfolio/bus/index.html"'+ 		 
							'onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image8\',\'\',\''+
							in_PathPrefix+'nav2/port_subs/bus_o.gif\',1)"><img name="Image8" border="0" '+
							'src="'+in_PathPrefix+'nav2/port_subs/bus_d.gif" width="119" height="12"></a>');

		d.write('</td></tr></table>');
	}

	// remove the reference to this function in the future
	function setVisibility(visibility_status)
	{
		//visibility_status legend:  0 = both hidden, 1 = d2 hidden, 2 = d1 hidden
	}