
var imagesDir = '/images/';


function CreatePageHeader()
{
   BuildTopBar();
   BuildMenuBar();
}

function BuildTopBar()
{
   document.write('<table align="center" valign="top" cellpadding="0" cellspacing="0" width="900" border="0">');
   document.write("<tr><td>");

   AddImageLink("/index.htm", imagesDir + "brown_bar_01.gif", "Return to Home page")

   document.write("</td><td>");

   AddImageLink("/index.htm", imagesDir + "Home1.png", "Home")

   document.write("</td><td>");

   AddImageLink("/careers/careers.html", imagesDir + "Home2.png", "Careers")

   document.write("</td><td>");

   AddImageLink("http://clientweb.vistasg.com/", imagesDir + "Home3.png", "Support")

   document.write("</td></tr></table>");
}

function BuildMenuBar()
{
   var menu;

   BeginMainMenu("900");

   AddImageMenuBarItem("CompanyMenu", imagesDir + "company_blue.gif");
   AddImageMenuBarItem("ProductsMenu", imagesDir + "products_blue.gif");
   AddImageMenuBarItem("ServicesMenu", imagesDir + "services_blue.gif");
   AddImageMenuBarItem("NewsMenu", imagesDir + "news_blue.gif");

   EndMainMenu();

   menu = CreateSubMenu("CompanyMenu", imagesDir + "company_rollover.gif");

   menu.addItem("About Us", "/aboutus/about-us.html");

   menu = CreateSubMenu("ProductsMenu", imagesDir + "products_rollover.gif");

   menu.addItem("netDMS Document Management", "/netdms_index/netdms_index.html");
    menu.addItem("  ~  IDentiHide", "/netdms_index/Identihide/Identihide.html");
	menu.addItem("  ~  eDocket", "/netdms_index/eDocketFL/eDocket.html");
	menu.addItem("  ~  iFile", "/netdms_index/iFile/iFile.html");
    menu.addItem("  ~  eSignatures", "/netdms_index/SignatureSolutions/Signature-Solutions.html");
	menu.addItem("  ~  Workflow", "/netdms_index/workflow/workflow.html");
   
   menu = CreateSubMenu("ServicesMenu", imagesDir + "services_rollover.gif");

   menu.addItem("Implementation", "/implementation/services_implementation.html");
   menu.addItem("Consultation", "/consultation/consultation.html");
   menu.addItem("Training", "/training/training.html");
   menu.addItem("Help Desk", "/helpdesk/helpdesk.html");

   menu = CreateSubMenu("NewsMenu", imagesDir + "news_rollover.gif");

   menu.addItem("Press Releases", "/pressreleases/pressreleases.html");
  
   TransMenu.renderAll();
   TransMenu.initialize();
}

function AddImageLink(destinationUrl, imageUrl, imageAlt)
{
   document.write('<a href="' + destinationUrl + '">');
   document.write('<img src="' + imageUrl + '" alt="' + imageAlt + '" border="0">');
   document.write("</a>");

}
