﻿// JavaScript Document

function do_header_html(pagetitle)
{
 var headerstr = '<div id="top"><ul><li><a href="http://www.foxitsoftware.com/" class="backtofoxit">Back to Foxit Homepage</a></li>';
		headerstr += '</ul></div>';	
		headerstr += '<div id="header"><div id="headerLeft"><img src="/ebook/images/logo.gif" class="logo" /></div>';
		var navarray = new Array();
		//navarray.push(new Array("Home","/ebook/"));
		//navarray.push(new Array("Overview","/ebook/overview.html","Key Features","/ebook/overview.html","Specification","/ebook/over_specification.html","Accessories","/ebook/accessories.html","Limited Warranty","/ebook/over_warranty.html","EULA","/ebook/over_eula.html"));
		//navarray.push(new Array("Gallery","/ebook/gallery.html"));
		navarray.push(new Array("Support","/ebook/support.html","Overview","/ebook/support.html","User Guide","/ebook/guide.html","FAQ","/ebook/faqs.html","Shipping & Delivery","/ebook/shipping.html","Free eBooks Download","/ebook/download.html","eSlick Policies","/ebook/returns.html","GPL","/ebook/gpl.html","Firmware Update","/ebook/update.html","Instructional Videos","/ebook/videos.html","Forum","http://forums.foxitsoftware.com/forumdisplay.php?f=16"));
		//navarray.push(new Array("Order","/ebook/order.html"));
		//navarray.push(new Array("Reviews","/ebook/press_previews.html","Press Previews","/ebook/press_previews.html","Customer Reviews","/ebook/reviews.html"));
		navarray.push(new Array("Register","/ebook/register.php","Login","/ebook/login.php","Get License Key","/ebook/getkey.php","Reseller","/ebook/register_reseller.php"));
	
	headerstr += '<div id="headerRight">';
	headerstr += '<ul>';
	for(var i = 0; i < navarray.length; i++)
	{
		if(navarray[i][0] == pagetitle)
        headerstr += '<li><a class="index" href="' + navarray[i][1] + '" >' +navarray[i][0] +'</a>';
		else
			headerstr += '<li><a href="'+ navarray[i][1] + '" >' + navarray[i][0] + '</a>';
		if(navarray[i].length > 2)
		{
			headerstr += '<ul>';
			for(var j = 2; j < navarray[i].length; j+=2)
			{
				headerstr += '<li><a href="' +navarray[i][j+1]+ '" >'+navarray[i][j] + '</a></li>';
			}
			headerstr += '</ul>';
		}
		headerstr += '</li>';
	}
	headerstr += '</ul>';
	headerstr += '</div></div>';
	  
	if(navigator.appName == "Micorsoft Internet Explorer")
	{	page_header.innerHTML = headerstr;
	}
	else
	{ document.write(headerstr);
	}	
 
}

function do_overview_html()
{
	
 var overviewstr = '';
     //overviewstr +='<img src="/ebook/images/overview_title.gif" />';
	 //overviewstr += '<h2 style="font-size:17px;margin-top:10px;">"Be eSlick and take all your documents everywhere you go!"</h2>';
     //overviewstr += '<div style="margin-top:18px; width:200px;height:15px;"></div><p class="overviewTxt1" style="color:#ffffff">MSRP: <span class="Price" style="font-size:20px; font-weight:bold;">$199</span> including Synthetic Leather Jacket, 20 English classic books,<br /> 2GB card, PDF Creator (no taxes and shipping fee included). <br /><a href="http://www.foxitsoftware.com/ebook/shiplist.html" style="color:#E77816;" target="_blank">Click here</a> for more shipping countries information.<br /><br /><div style="padding-left:310px;"><a href="https://www.foxitsoftware.com/secure/selectprod.php?action=add&prodID=63"><img border="0" src="/ebook/images/order_botton.gif" /></a></div><br /></p>';
	 //overviewstr += '<p style="color:#606060; font-size:12px;">*(The image is for reference only. Please take the item you get as the standard.)</p> ';
	 //overviewstr += '<span style="color:#E07616">Note: For Israeli customers, please go to Foxit formal exclusive reseller YAMI Computer Technology <a href="http://www.ebookshop.co.il/shop/" style="color:#fff">online store</a> to purchase eSlick.</span></p>';
//overviewstr += '<p class="overviewTxt2">*(The image is for reference only. Please take the item you get as the standard.)</p>';
//overviewstr += '<p class="overviewTxt1">Note:<br /> 1.<a href="/ebook/update.html" style="color:#fff;">Foxit eSlick 2.0.1 Build 0205 Firmware Update is Now Available</a>.<span style="color:red;"><em>New</em></span><br />2.<a href="http://www.eslickbooks.com" target="_blank" style="color:#fff;">eSlickbooks.com - Your source for thousands of electronic book titles!</a>.<span style="color:red;"><em>New</em></span></p>';
 	if(navigator.appName == "Micorsoft Internet Explorer")
	{ overview.innerHTML = overviewstr;
	}
	else
	{ document.write(overviewstr);
	}
 
}

function do_footer_html()
{
	var footerstr = '<div id="local"><span><a href="/ebook/index.html" class="home">Home</a></span> / About</div>'; 
	footerstr += '<p class="footertxt"><a href="http://www.foxitsoftware.com/privacy.htm">Privacy</a> | &copy;2010 Foxit Corporation. All Rights Reserved.<br />CALL US TOLL FREE AT:1-866-MYFOXIT or 1-866-693-6948</p>';
	if(navigator.appName == "Micorsoft Internet Explorer")
	{
		footer.innerHTML = footerstr;
	}
	else
	{ document.write(footerstr);
	}
}

