<!--

  var TABLE_START = "<table border=\"0\" cellpadding=\"1\" cellspacing=\"0\">";
  var TABLE_END = "</table>";
  
	// object to encapsulate the link and accosiated text
	function MenuItem(text, url)
	{
  		this.text = text;
  		this.url = url;		
	}

	// HTML for an active menu link
	function activeMenuHtml(num, text, link)
	{
  		var html = "";
  		
  		html += "<tr>";
  		html += "<td align='right' height='20'><a href='";		
  		html += link;		
  		html += "' class='leftNavLink' onmouseover=\"swap('leftNav";				
  		html += num;		
  		html += "','leftNav_on');window.status='";
  		html += text;	
  		html += "';return true;\" onmouseout=\"swap('leftNav";						
  		html += num;						
  		html += "','leftNav_off');\">";				
  		html += text;			
  		html += "</a></td>"		
  		html += "</tr>";
  		
  		return html;
	}
	
	// HTML for the current pages link
	function selectedMenuHtml(num, text, link)
	{		
  		var html = "";
  
  		html += "<tr>";
  		html += "<td align='right'><a href='";		
  		html += link;		
  		html += "' class='leftNavLinkOn' onmouseover=\"window.status='";
  		html += text;
  		html += "';return true;\"";	
  		html +=	">";		
  		html += text;		
  		html += "</a></td>";
  		html += "</tr>";
  			
  		return html;
	}
  
  
  // <td height="20"><img border="0" src="images/pixel.gif" width="8" height="10" name="leftMenu8"></td>

	// HTML for an active menu indicator
	function activeMenuIndicatorHtml(num)
	{
  		var html = "";
  		
  		html += "<tr>";
  		html += "<td height=\"20\"><img border=\"0\" src=\"images/pixel.gif\" width=\"8\" height=\"10\" name=\"leftNav";		
  		html += num;		
  		html += "\"></td>";	
  		html += "</tr>";
  		
  		return html;
	}
  
	// HTML for an selected menu indicator
	function selectedMenuIndicatorHtml()
	{
  		var html = "";
  		
  		html += "<tr>";
  		html += "<td height=\"20\"><img border=\"0\" src=\"images/buttons/leftMenuSelected.gif\" width=\"8\" height=\"10\"/></td>";
  		html += "</tr>";
  		
  		return html;
	}  
    
	// using the page name we check the URL to see if it is the current page
	function isCurrentPage(page)
	{
  		var currentPageUrl = document.location.toString();
  
  		if( currentPageUrl.indexOf( page ) != -1)
  		{			
          return true;
  		}
  		return false;
	}

	// constructs the menu HTML
	function makeMenu()
	{		
  		var html = "";
  		var menuObj;
  		for(i=0; i < menu.length; i++)
  		{			
    			menuObj = menu[i];
    
    			if( isCurrentPage( menuObj.url ) )
    			{    
    				  html += selectedMenuHtml(i, menuObj.text, menuObj.url);		
    			}
    			else
    			{
    				  html += activeMenuHtml(i, menuObj.text, menuObj.url);		
    			}
  		}      
      return TABLE_START + html + TABLE_END;
	}
  
	// constructs the menu HTML
	function makeMenuIndicator()
	{		
  		var html = "";
  		var menuObj;
  		for(i=0; i < menu.length; i++)
  		{			
    			menuObj = menu[i];
    
    			if( isCurrentPage( menuObj.url ) )
    			{    
    				  html += selectedMenuIndicatorHtml();		
    			}
    			else
    			{
    				  html += activeMenuIndicatorHtml(i);		
    			}
  		}
  		return TABLE_START + html + TABLE_END;
	}  
//-->
