// JavaScript Document

function do_header_html(pagetitle)
{
 var headerstr = '<div id="top"><ul><li><a href="http://www.eslick.co.za/" class="backtofoxit">Homepage</a></li>';
    headerstr  += '<li style="text-align:right;"><a href="http://www.eslick.co.za/subscribe.html">';
	headerstr += '<img src="images/newsletter_signup.gif" class="newsletter_signup" /></a></li></ul></div>';	
	headerstr += '<div id="header"><div id="headerLeft"><img src="images/logo.gif" class="logo" /></div>';
	
	//headerstr += '<div id="headerLeft"><img src="images/logo.gif" class="logo" /><span class="hidden_">_______</span><a href="order.html"><img src="images/buynownarrow.gif" class="logo" /></a></div>';
	
	
    var navarray = new Array();
	navarray[0] = new Array("Home","index.html");
	navarray[1] = new Array("Overview","overview.html","Key Features","overview.html","Specification","over_specification.html","Limited Warranty","over_warranty.html","EULA","over_eula.html");
	navarray[2] = new Array("Gallery","gallery.html");
	navarray[3] = new Array("Support","support.html","Overview","support.html","User Guide","guide.html","FAQ","faqs.html","Shipping & Delivery","shipping.html","Free eBooks Download","download.html","eSlick Policies","returns.html","Firmware Update","update.html","Get License Key","getkey.html","Instructional Videos","videos.html","Forum","http://forums.foxitsoftware.com/forumdisplay.php?f=16");
	navarray[4] = new Array("Reviews","press_previews.html","Press Previews","press_previews.html","Customer Reviews","reviews.html");
    navarray[5] = new Array("Order","order.html");
	
	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 += '<a href="order.html"><img src="images/buynownarrow.gif" class="logo" /></a>';
	headerstr += '</ul>';
	headerstr += '</div></div>';
	  
	if(navigator.appName == "Microsoft Internet Explorer")
	{	page_header.innerHTML = headerstr;
	}
	else
	{ document.write(headerstr);
	}	
 
}

function do_overview_html()
{
	
 var overviewstr = '';
     overviewstr +='<img src="images/overview_title.gif" />';
	 overviewstr += '<h2 style="font-size:15px;">"Be eSlick and take all your documents everywhere you go!"</h2>';
     overviewstr += '<p class="overviewTxt1">Introductory Price: <span class="Price">R2999.00 incl VAT</span><br /><br />';
	 overviewstr += 'Plus: R 65.00 to courier to your door (anywhere in South Africa)</p>';
overviewstr += '<p class="overviewTxt2">*(The image is for reference only, and may differ from actual product. e.g. in South Africa, we just provide the black model)</p>';
 	if(navigator.appName == "Microsoft Internet Explorer")
	{ overview.innerHTML = overviewstr;
	}
	else
	{ document.write(overviewstr);
	}
 
}

function do_footer_html()
{
	var footerstr = '<div id="local"><span><a href="index.html" class="home">Home</a></span> / About</div>'; 
	footerstr += '<p class="footertxt"><a href="http://www.eslick.co.za/privacy.html">Privacy</a> | &copy;2009 Foxit Software Company,LLC.All Rights Reserved.<br />Customer Call Centre (Johannesburg, South Africa) : +27 11 781 5671 </p>';

	footerstr += '<!--Google Analytics Start--><script type="text/javascript">var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");document.write(unescape("%3Cscript src=\'" + gaJsHost + "google-analytics.com/ga.js\' type=\'text/javascript\'%3E%3C/script%3E"));</script><script type="text/javascript">try {var pageTracker = _gat._getTracker("UA-15726653-1");pageTracker._trackPageview();} catch(err) {}</script><!--Google Analytics End-->';
	
	if(navigator.appName == "Microsoft Internet Explorer")
	{
		footer.innerHTML = footerstr;
	}
	else
	{ document.write(footerstr);
	}
}
