function do_nav_html(pagetitle) {
	var DOCROOT = "/";
	
	var testarray = new Array();
	testarray[0] = new Array("Company", DOCROOT+"company/whoweare.php", "Who We Are", DOCROOT+"company/whoweare.php", "News", DOCROOT+"news/", "Contact Us", DOCROOT+"company/contactus.php");
	testarray[1] = new Array("Products", DOCROOT+"products/", "EDI/Translation Software", DOCROOT+"products/cat_editrans.php", "Database Software", DOCROOT+"products/cat_database.php", "Security Software", DOCROOT+"products/cat_security.php", "Utilities", DOCROOT+"products/cat_utilities.php");
	testarray[2] = new Array("Software Support", DOCROOT+"support/", "Documentation", DOCROOT+"support/");
	testarray[3] = new Array("Online Store", "http://buy.dsrglobal.com/");
	var HTMLCode = "";
	HTMLCode += "<ul class=\"contain\">";
	for (i=0; i<testarray.length; i++)
	{  
	   if (testarray[i][0] == pagetitle) 
	   {
	       if (testarray[i][0] == 'Products')
	       {
               HTMLCode += "<li class=\"active\"><a href=\"" + testarray[i][1] + "\" class=\"toppernav\">" + testarray[i][0] + "</a><ul class=\"products\">";
	       } else {
		       HTMLCode += "<li class=\"active\"><a href=\"" + testarray[i][1] + "\" class=\"toppernav\">" + testarray[i][0] + "</a><ul>";
           }

	   } else {
		   if (testarray[i][0] == 'Products')
		   {	
	           HTMLCode += "<li class=\"top\"><a href=\"" + testarray[i][1] + "\">" + testarray[i][0] + "</a><ul class=\"products\">";
		   } else {
               HTMLCode += "<li class=\"top\"><a href=\"" + testarray[i][1] + "\">" + testarray[i][0] + "</a><ul>";
		   }

	   }

	   for (j=1; j<testarray[i].length/2; j++)
	   {
		  HTMLCode += "<li class=\"\"><a href=\"" + testarray[i][2*j+1] + "\">" + testarray[i][2*j] + "</a></li>";
	   }
	   HTMLCode += "</ul></li>";
	}
	HTMLCode += "</ul>";
	if (navigator.appName=='Microsoft Internet Explorer') 
	{
       pageHeaderNav.innerHTML=HTMLCode;
	} else {
       document.write (HTMLCode)
	}
}