
function do_nav_html(pagetitle) {
	
	var testarray = new Array();
	testarray[0] = new Array("Solutions","http://www.foxitsoftware.com/solutions/", "Overview", "http://www.foxitsoftware.com/solutions/", "Mobile", "http://www.foxitsoftware.com/solutions/mobile.htm", "Developer", "http://www.foxitsoftware.com/solutions/developer.htm", "Co-Branding", "http://www.foxitsoftware.com/solutions/cobranding.htm", "Customization", "http://www.foxitsoftware.com/solutions/customization.htm","Accessibility", "http://www.foxitsoftware.com/solutions/accessibility/index.html");
    testarray[1] = new Array("Products", "http://www.foxitsoftware.com/products/", "Products Home", "http://www.foxitsoftware.com/products/", "Foxit Reader for Windows", "http://www.foxitsoftware.com/pdf/rd_intro.php", "Foxit Reader for Windows Mobile", "http://www.foxitsoftware.com/pdf/mobile/winmobile.htm", "Foxit Reader for Symbian UIQ 3.X","http://www.foxitsoftware.com/pdf/symbian/","Foxit Reader for Embedded Linux", "http://www.foxitsoftware.com/pdf/mobile/embeddedlinux.htm", "Foxit Reader for Desktop Linux", "http://www.foxitsoftware.com/pdf/desklinux/", "Foxit Reader for U3", "http://www.foxitsoftware.com/pdf/u3/", "Foxit PDF Creator", "http://www.foxitsoftware.com/pdf/creator/", "Foxit PDF Editor", "http://www.foxitsoftware.com/pdf/pe_intro.php", "Foxit PDF IFilter", "http://www.foxitsoftware.com/pdf/ifilter/", "Foxit PDF Page Organizer", "http://www.foxitsoftware.com/pdf/po_intro.php", "Foxit Reader SDK (DLL)", "http://www.foxitsoftware.com/pdf/sdk/dll/", "Foxit Reader SDK (ActiveX)", "http://www.foxitsoftware.com/pdf/sdk/activex/", "Foxit Embedded PDF SDK", "http://www.foxitsoftware.com/pdf/sdk/embedded/", "Remote Access Tools", "http://www.foxitsoftware.com/products/index.html#remoteaccess");
    testarray[2] = new Array("Downloads", "http://www.foxitsoftware.com/downloads/", "Downloads", "http://www.foxitsoftware.com/downloads/");
    testarray[3] = new Array("Purchase", "http://www.foxitsoftware.com/purchase/", "Overview", "http://www.foxitsoftware.com/purchase/", "Price", "http://www.foxitsoftware.com/purchase/pricing.htm", "Order Online", "https://www.foxitsoftware.com/secure/order.php", "Retrieve License Key", "http://www.foxitsoftware.com/purchase/RetrieveKey.php", "Find a Reseller", "http://www.foxitsoftware.com/purchase/distributors.htm", "Become a Reseller", "http://www.foxitsoftware.com/purchase/reseller.htm");
    testarray[4] = new Array("Support", "http://www.foxitsoftware.com/support/", "Support Home", "http://www.foxitsoftware.com/support/","Instructional Videos", "http://www.foxitsoftware.com/support/inst_videos.html", "Technical FAQ", "http://www.foxitsoftware.com/support/techsupport/", "Sales FAQ", "http://www.foxitsoftware.com/support/custsupport/", "User Manuals", "http://www.foxitsoftware.com/support/usermanuals/", "Support Ticket", "http://www.foxitsoftware.com/support/ticket/", "Forum", "http://www.foxitsoftware.com/bbs/");
    testarray[5] = new Array("Company", "http://www.foxitsoftware.com/company/profile.htm", "Profile", "http://www.foxitsoftware.com/company/profile.htm", "History", "http://www.foxitsoftware.com/company/history.htm","Brochure","http://www.foxitsoftware.com/company/brochure.htm", "Location", "http://www.foxitsoftware.com/company/location.htm", "Contact", "http://www.foxitsoftware.com/company/contact.htm", "Jobs", "http://www.foxitsoftware.com/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/privacy.htm' class='footterm'>Privacy</a>";
	footer_str += "| &copy;2008 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/images/bbb.gif\" width=67 height=89 /></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='http://www.foxitsoftware.com/'><img src='http://www.foxitsoftware.com/img/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='/bbs/'>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><a target=_blank href='https://www.mcafeesecure.com/RatingVerify?ref=www.foxitsoftware.com'>";
	header_str += "<img width=115 height=30 border=0 src='//images.scanalert.com/meter/www.foxitsoftware.com/32.gif' alt='McAfee Secure sites help keep you safe from identity theft, credit card fraud, spyware, spam, viruses and online scams' oncontextmenu=\"alert('Copying Prohibited by Law - McAfee Secure is a Trademark of McAfee, Inc.'); return false;\"><img name='' src='' width=12 height=1 alt='' /></a></td></tr></table>";
	if (navigator.appName=='Microsoft Internet Explorer') 
	{
       pageHeader.innerHTML=header_str;
	} else {
       document.write(header_str);
	}
}
