//* Build Path on page for navigation
//* Copyright 2002, Alaska Communications Systems, Inc

function buildPath() {
	var strHomePath = "<a class=\"buildpath\" target=\"_top\" href=\"http://www.acsalaska.com/index.asp\">Home</a>";
	var strPath		= "";
	
	if (document.getElementById){
		if (document.getElementById("Home") && document.getElementById("HomeLink")) {
			strHomePath = "<a class=\"buildpath\" target=\"_top\" href=\"http://www.acsalaska.com" + document.getElementById("HomeLink").content + "\">" + document.getElementById("Home").content + "</a>";
		}
		if (document.getElementById("LevelOne") && document.getElementById("LevelOneLink")) {
			strPath = ">> <a class=\"buildpath\" target=\"_top\" href=\"http://www.acsalaska.com" + document.getElementById("LevelOneLink").content + "\">" + document.getElementById("LevelOne").content + "</a>";
		}
		if (document.getElementById("LevelTwo") && document.getElementById("LevelTwoLink")) {
			strPath += ">> <a class=\"buildpath\" target=\"_top\" href=\"http://www.acsalaska.com" + document.getElementById("LevelTwoLink").content + "\">" + document.getElementById("LevelTwo").content + "</a>";
		}
		if (document.getElementById("LevelThree") && document.getElementById("LevelThreeLink")) {
			strPath += ">> <a class=\"buildpath\" target=\"_top\" href=\"http://www.acsalaska.com" + document.getElementById("LevelThreeLink").content + "\">" + document.getElementById("LevelThree").content + "</a>";
		}
		if (document.getElementById("LevelFour") && document.getElementById("LevelFourLink")) {
			strPath += ">> <a class=\"buildpath\" target=\"_top\" href=\"http://www.acsalaska.com" + document.getElementById("LevelFourLink").content + "\">" + document.getElementById("LevelFour").content + "</a>";
		}
		if (document.getElementById("LevelFive") && document.getElementById("LevelFiveLink")) {
			strPath += ">> <a class=\"buildpath\" target=\"_top\" href=\"http://www.acsalaska.com" + document.getElementById("LevelFiveLink").content + "\">" + document.getElementById("LevelFive").content + "</a>";
		}
	}
	else if (document.all) {
		if (document.all.Home && document.all.HomeLink) {
			strHomePath = "<a class=\"buildpath\" target=\"_top\" href=\"http://www.acsalaska.com" + document.all.HomeLink.content + "\">" + document.all.Home.content + "</a>";
		}
		if (document.all.LevelOne && document.all.LevelOneLink) {
			strPath = ">> <a class=\"buildpath\" target=\"_top\" href=\"http://www.acsalaska.com" + document.all.LevelOneLink.content + "\">" + document.all.LevelOne.content + "</a>";
		}
		if (document.all.LevelTwo && document.all.LevelTwoLink) {
			strPath += ">> <a class=\"buildpath\" target=\"_top\" href=\"http://www.acsalaska.com" + document.all.LevelTwoLink.content + "\">" + document.all.LevelTwo.content + "</a>";
		}
		if (document.all.LevelThree && document.all.LevelThreeLink) {
			strPath += ">> <a class=\"buildpath\" target=\"_top\" href=\"http://www.acsalaska.com" + document.all.LevelThreeLink.content + "\">" + document.all.LevelThree.content + "</a>";
		}
		if (document.all.LevelFour && document.all.LevelFourLink) {
			strPath += ">> <a class=\"buildpath\" target=\"_top\" href=\"http://www.acsalaska.com" + document.all.LevelFourLink.content + "\">" + document.all.LevelFour.content + "</a>";
		}
		if (document.all.LevelFive && document.all.LevelFiveLink) {
			strPath += ">> <a class=\"buildpath\" target=\"_top\" href=\"http://www.acsalaska.com" + document.all.LevelFiveLink.content + "\">" + document.all.LevelFive.content + "</a>";
		}
	}
	else {
		
	}
	strPath = strHomePath + strPath + " >> <span class=\"buildpath\">" + window.document.title + "</span>";

	return strPath;
}