/*
	Nav html is written below inside a function called writeNav(). The function just uses javascript to write the html code. 	    This allows me to call the function from every html page. So when making an update to the nav, it only needs to made here, 					    once!
	
	Paramaters - 
	str (String) - Set to "about" to include the "About Pearson" nav node. Otherwise, leave empty (""). 
	levels (Number) - Set to number of levels deep from root. For 1 level, just omit.
*/


function writeNav(str, levels)
{
	if (levels == 2)
	{
		document.write("<ul>");
		document.write("<li><a href=\"..\/..\/k6\/index.html\">Grades K-6<\/a><\/li>");
		document.write("<li><a href=\"..\/..\/68\/index.html\">Grades 6-8<\/a><\/li>");
		document.write("<li><a href=\"..\/..\/912\/index.html\">Grades 9-12<\/a><\/li>");
		document.write("<li><a href=\"..\/..\/eld\/index.html\">ELD<\/a><\/li>");
		if (str == "about")
		{
			document.write("<li><a href=\"..\/..\/pearson\/index.html\">About Pearson<\/a><\/li>");
		}
		else
		{
			document.write("<li><a href=\"..\/..\/spanish\/index.html\">Spanish<\/a><\/li>");
		}
		document.write("<li><a href=\"..\/..\/digital\/index.html\">Digital<\/a><\/li>");
		document.write("<li><a href=\"..\/..\/k12\/index.html\">K-12 Solutions<\/a><\/li>");
		document.write("<\/ul>");
	}
	else
	{
		document.write("<ul>");
		document.write("<li><a href=\"..\/k6\/index.html\">Grades K-6<\/a><\/li>");
		document.write("<li><a href=\"..\/68\/index.html\">Grades 6-8<\/a><\/li>");
		document.write("<li><a href=\"..\/912\/index.html\">Grades 9-12<\/a><\/li>");
		document.write("<li><a href=\"..\/eld\/index.html\">ELD<\/a><\/li>");
		if (str == "about")
		{
			document.write("<li><a href=\"..\/pearson\/index.html\">About Pearson<\/a><\/li>");
		}
		else
		{
			document.write("<li><a href=\"..\/spanish\/index.html\">Spanish<\/a><\/li>");
		}
		document.write("<li><a href=\"..\/digital\/index.html\">Digital<\/a><\/li>");
		document.write("<li><a href=\"..\/k12\/index.html\">K-12 Solutions<\/a><\/li>");
		document.write("<\/ul>");
	}
}
