maxContents = 5;
contents = new Array;
dataFile = new Array;
contents[1] = "Introduction";		dataFile[1] = "malawi.html";
contents[2] = "News Headlines";	dataFile[2] = "news.html";
contents[3] = "Brief History";	dataFile[3] = "nyasa.html";
contents[4] = "Demographics";		dataFile[4] = "malawi1.html";
contents[5] = "Geography";		dataFile[5] = "malawi2.html";

maxHealth = 4;
healthContents = new Array;
healthFile = new Array;
healthContents[1] = "Introduction";			healthFile[1] = "health.html";
healthContents[2] = "General Statistics";		healthFile[2] = "health1.html";
healthContents[3] = "Population Statistics";	healthFile[3] = "population.html";
healthContents[4] = "Common Diseases";		healthFile[4] = "disease.html";


function myLink(linkText,linkFile) { return "<a href='" + linkFile + "'>" + linkText + "</a>"; }

function oldNS()
{
	tempString = navigator.userAgent;
	mozVersion = 5;
	iMoz = tempString.indexOf("Mozilla");
	if(iMoz>-1) { mozVersion = parseInt(tempString.substring(iMoz + 8, iMoz + 9)); }
	return ((tempString.indexOf("Netscape") > -1) && (mozVersion < 5));
}


var contentsArray = new Array;
HTMLString = "<font size=-1><h2>About Malawi</h2><ul type='disc'>";
for(i=0; i<maxContents; i++) { HTMLString += "<li>" + myLink(contents[i+1],dataFile[i+1]); }
HTMLString += "</ul><p>";
HTMLString += "<h2>Malawi Health Care</h2><ul type='disc'>";
for(i=0; i<maxHealth; i++) { HTMLString += "<li>" + myLink(healthContents[i+1],healthFile[i+1]); }
HTMLString += "</ul></font>";

if(oldNS())
{
	HTMLString = "<p><layer left=3 top=150 z-index=0 width=200 name='mainLayer'>" + HTMLString + "</layer><layer left=205 top=150>";
}
else
{
	HTMLString = "<p><table cellpadding=4 cellspacing=0 border=0 width=100%><tr valign='top'><td class=leftT width=200>" + HTMLString + "</td><td style='padding-left: 0.75em; padding-right: 0.75em'>";
}

document.writeln(HTMLString);
