function addBottomNavigationBar(currentPageTitle)
{
	//Adds the bottom navigation bar to the web page
	document.write("<br></br>");
	
	//Add a line
	document.write("<hr class=\"hww_line\"/>");
	
	//Create links for all pages except the current page
	var links = defineLinks();
	
	//Iterate through every defined link
	for(i=0;i<links.length;i++)
	{
		//if the current page title is home, then show web pages in frame
		if( links[i] == 'Home' && currentPageTitle != 'Home' )
		{
				document.write("<a href=\"index.html\" target=\"_top\" class=\"bottom_link\">" + links[i] + "</a>");				
		}
		else
		{	
			//if this is the current page, then show the link as inactive link
			if( currentPageTitle == links[i])
			{
				//Show link as inactive link
				document.write("<span class=\"inactive_bottom_link\">" + links[i] + "</span>");
				
				//Update the position of links in the menu frame
				parent.menu_frame.markAllElementsAsNotCurrent();
				parent.menu_frame.markElementAsCurrent( links[i] );
			}
			else
			{		
				//if this is not the page, then create a link for the page at the bottom
				document.write("<a href=\"" + links[i].toLowerCase() + ".html\" target=\"display\" class=\"bottom_link\">" + links[i] + "</a>");			
			}
		}
		
		//if this link is not the last link, then write a space and a vertical bar
		if(i != links.length-1)
		{
			document.write("&nbsp;|&nbsp;");
		}
	}
	
	document.write("<br></br><span class=\"paragraph_text\">&#169; Hercules Worldwide 2004.  All rights reserved</span>");
}

function defineLinks()
{
	var links = new Array(8);
	links[0] = "Home";
	links[1] = "Features";
	links[2] = "Documentation";
	links[3] = "Download";	
	links[4] = "License and credits";	
	links[5] = "Enhancements";	
	links[6] = "Road Map";	
	links[7] = "Contact us";	
	
	return links;
}
	
	

