startList = function() {
if (document.all&&document.getElementById) {
for (j=0; j<2; j++) {

	if(j == 0) {	
		navRoot = document.getElementById("nav");
	}
	else {
		navRoot = document.getElementById("sp_nav");
	}
	for (i=0; i<navRoot.childNodes.length; i++) {
	node = navRoot.childNodes[i];
	if (node.nodeName=="LI") {
	node.onmouseover=function() {
	this.className+=" over";
	  }
	  node.onmouseout=function() {
	  this.className=this.className.replace(" over", "");
	   }
	   }
	  }
}
}
}
window.onload=startList;

function viewToolText(whichTool) {

	//Define rollover text
	var tooltext = new Array(6);
	tooltext[0] = '<h2>What is EarthTrends?</h2><p>EarthTrends is a comprehensive online database, maintained by the World Resources Institute, that focuses on the environmental, social, and economic trends that shape our world.</p>';
	tooltext[1] = '<h2>Searchable Database</h2><p>Explore time series data for more than 500 variables and 220 countries. View your results online or download them for later use.</p>';
	tooltext[2] = '<h2>Maps</h2><p>View hundreds of maps presenting global, regional, and country level environmental information. The maps include descriptive text and analysis, as well as information about how each one was developed.</p>';
	tooltext[3] = '<h2>Country Profiles</h2><p>View charts, graphs, and vital statistics about key variables in each topic area, organized by country.</p>';
	tooltext[4] = '<h2>Features</h2><p>Read articles about the most important conditions and trends in environmental and sustainable development. Features provide strong analytics and policy research in an accessible format.</p>';
	tooltext[5] = '<h2>Data Tables</h2><p>Find tables containing the most vital statistics of each topic area, for over 150 countries.</p>';

	document.getElementById('infobox').innerHTML = tooltext[whichTool];

}