
function do_nav_html(pagetitle) {
	
	var testarray = new Array();
	testarray[0] = new Array("Solutions","/solutions/", "Overview", "/solutions/", "Mobile", "/solutions/mobile.htm", "Developer", "/solutions/developer.htm", "Co-Branding", "/solutions/cobranding.htm", "Customization", "/solutions/customization.htm","Accessibility", "/solutions/accessibility/index.html");
    testarray[1] = new Array("Products", "/products/", "Products Home", "/products/", "Foxit Reader for Windows", "/pdf/rd_intro.php", "Foxit Reader for Windows Mobile", "/pdf/mobile/winmobile.htm", "Foxit Reader for Symbian UIQ 3.X","/pdf/symbian/","Foxit Reader for Embedded Linux", "/pdf/mobile/embeddedlinux.htm", "Foxit Reader for Desktop Linux", "/pdf/desklinux/", "Foxit Reader for U3", "/pdf/u3/", "Foxit PDF Creator", "/pdf/creator/", "Foxit PDF Editor", "/pdf/pe_intro.php", "Foxit PDF IFilter", "/pdf/ifilter/", "Foxit PDF Page Organizer", "/pdf/po_intro.php", "Foxit Reader SDK (DLL)", "/pdf/sdk/dll/", "Foxit Reader SDK (ActiveX)", "/pdf/sdk/activex/", "Foxit Embedded PDF SDK", "/pdf/sdk/embedded/", "Remote Access Tools", "/products/index.html#remoteaccess");
    testarray[2] = new Array("Downloads", "/downloads/", "Downloads", "/downloads/");
    testarray[3] = new Array("Purchase", "/purchase/", "Overview", "/purchase/", "Price", "/purchase/pricing.htm", "Order Online", "https://www.foxitsoftware.com/secure/order.php", "Retrieve License Key", "/purchase/RetrieveKey.php", "Find a Reseller", "/purchase/distributors.htm", "Become a Reseller", "/purchase/reseller.htm");
    testarray[4] = new Array("Support", "/support/", "Support Home", "/support/","Instructional Videos", "/support/inst_videos.html", "Technical FAQ", "/support/techsupport/", "Sales FAQ", "/support/custsupport/", "User Manuals", "/support/usermanuals/", "Support Ticket", "/support/ticket/", "Forum", "/bbs/");
    testarray[5] = new Array("Company", "/company/profile.htm", "Profile", "/company/profile.htm", "History", "/company/history.htm","Brochure","/company/brochure.htm", "Location", "/company/location.htm", "Contact", "/company/contact.htm", "Jobs", "/company/jobs.htm");

	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>";
	//document.write (HTMLCode); 
	if (navigator.appName=='Microsoft Internet Explorer') 
	{
       pageHeaderNav.innerHTML=HTMLCode;
	} else {
       document.write (HTMLCode)
	}
}

//footer info of all webpages
function do_footer_html() {
    var footer_str = "";
	footer_str += "<br /><table width=78% border=0><tr><td height=72><a href='http://www.foxitsoftware.com/privacy.htm' class='footterm'>Privacy</a>";
	footer_str += "| &copy;2009 Foxit Software Company, LLC. All rights reserved.<p style='color:#FF6600'><strong>";
	footer_str += "Contact Us: 1-866-MYFOXIT or 1-866-6936948</strong></p>";
	footer_str += "</td><td><a href='http://www.bbbonline.org/cks.asp?id=1080411164040567' onclick=\"window.open(this.href);return false\"><img src=\"http://www.foxitsoftware.com/img/extra/bbb_logo.jpg\" width=55 height=83 /></a></td></tr></table>";
	if (navigator.appName=='Microsoft Internet Explorer') 
	{
       footer.innerHTML=footer_str;
	} else {
       document.write(footer_str);
	}
}

function do_header_html() {
    var header_str = "";
	header_str += "<table width='100%' border=0 cellspacing=0 cellpadding=0><tr><td width='50%' height=70 rowspan=2>";
	header_str += "<a href='/'><img src='/images/foxit_logo.gif' width=141 height=45 alt='Foxit Software' /></a></td>";
    header_str += "<td height=20 align=right id=topnav><a href='http://www.foxitsoftware.com/support/techsupport/'>FAQ</a>|<a href='http://bbs.foxitsoftware.com/'>Communities</a>|<a href='http://www.foxitsoftware.com/company/contact.htm'>Contact</a></td></tr>";
	header_str += "<tr><td height=40 align=right valign=top></td></tr></table>";
	if (navigator.appName=='Microsoft Internet Explorer') 
	{
       pageHeader.innerHTML=header_str;
	} else {
       document.write(header_str);
	}
}