var memLink = "http://www.chanfire.intranets.com/login.asp?link=";
var rootPath = "";
var subRootPath = "";

if (docPath=="site.html" || parentPath=="root") {
	var rootPath = "safety/";
	var subRootPath = "safety/";
	var subsubRootPath="safety/";
}

if (parentPath=="law" || parentPath=="fire") {
	rootPath = "../";
	subRootPath = "../";
}
document.write("&nbsp;<a href='" + rootPath + "law.html' class='innerLink'>")
if (docPath=="law.html") {
	document.write ("<strong>Law Enforcement</strong></a>")
} else {
	document.write("Law Enforcement</a>")
}
if (parentPath=="law" || docPath=="law.html" || docPath=="site.html") {
	document.write ("<br>&nbsp;&nbsp;&nbsp;<a href='" + subRootPath + "law/calert.html' class='innerLink'>")
	if (docPath=="calert.html") {
		document.write ("<strong>Crime Alerts</strong></a>")
	} else {
		document.write ("Crime Alerts</a>")
	}
	document.write("<br>&nbsp;&nbsp;&nbsp;<a href='" + subRootPath + "law/cstat.html' class='innerLink'>")
	if (docPath=="cstat.html") {
		document.write ("<strong>Crime Statistics</strong></a>")
	} else {
		document.write ("Crime Statistics</a>")
	}
}
document.write("<br>&nbsp;<a href='" + rootPath + "fire.html' class='innerLink'>")
if (docPath=="fire.html") {
	document.write ("<strong>Fire Department</strong></a>")
} else {
	document.write ("Fire Department</a>")
}	
if (parentPath=="fire" || docPath=="fire.html" || docPath=="site.html") {
	document.write ("<br>&nbsp;&nbsp;&nbsp;<a href='" + subRootPath + "fire/fchief.html' class='innerLink'>")
	if (docPath=="fchief.html") {
		document.write ("<strong>Chief's Welcome</strong></a>")
	} else {
		document.write ("Chief's Welcome</a>")
	}
	document.write("<br>&nbsp;&nbsp;&nbsp;<a href='" + subRootPath + "fire/fstaff.html' class='innerLink'>")
	if (docPath=="fstaff.html") {
		document.write ("<strong>Fire Staff</strong></a>")
	} else {
		document.write ("Fire Staff</a>")
	}
	document.write("<br>&nbsp;&nbsp;&nbsp;<a href='" + subRootPath + "fire/fcalls.html' class='innerLink'>")
	if (docPath=="fcalls.html") {
		document.write ("<strong>Recent Calls</strong></a>")
	} else {
		document.write ("Recent Calls</a>")
	}
	document.write("<br>&nbsp;&nbsp;&nbsp;<a href='" + subRootPath + "fire/fequip.html' class='innerLink'>")
	if (docPath=="fequip.html") {
		document.write ("<strong>Fire Equipment</strong></a>")
	} else {
		document.write ("Fire Equipment</a>")
	}
	document.write("<br>&nbsp;&nbsp;&nbsp;<a href='" + subRootPath + "fire/ftrain.html' class='innerLink'>")
	if (docPath=="ftrain.html") {
		document.write ("<strong>Fire Training</strong></a>")
	} else {
		document.write ("Fire Training</a>")
	}
	document.write("<br>&nbsp;&nbsp;&nbsp;<a href='" + subRootPath + "fire/fprev.html' class='innerLink'>")
	if (docPath=="fprev.html") {
		document.write ("<strong>Fire Policies</strong></a>")
	} else {
		document.write ("Fire Policies</a>")
	}
	document.write("<br>&nbsp;&nbsp;&nbsp;<a href='" + subRootPath + "fire/fprev.html' class='innerLink'>")
	if (docPath=="fprev.html") {
		document.write ("<strong>Fire Prevention</strong></a>")
	} else {
		document.write ("Fire Prevention</a>")
	}
	document.write("<br>&nbsp;&nbsp;&nbsp;<a href='" + subRootPath + "fire/femp.html' class='innerLink'>")
	if (docPath=="femp.html") {
		document.write ("<strong>Employment</strong></a>")
	} else {
		document.write ("Employment</a>")
	}
	document.write("<br>&nbsp;&nbsp;&nbsp;<a href='" + subRootPath + "fire/sog.html' class='innerLink'>")
	if (docPath=="sog.html") {
		document.write ("<strong>SOGs</strong></a>")
	} else {
		document.write ("SOGs</a>")
	}
	document.write("<br>&nbsp;&nbsp;&nbsp;<a href='" + memLink + "' class='innerLink'>")
		document.write ("Members Only</a>")
}
document.write("<br>&nbsp;<a href='" + rootPath + "crimepre.html' class='innerLink'>")
if (docPath=="crimepre.html") {
	document.write ("<strong>Crime Prevention</strong></a>")
} else {
	document.write ("Crime Prevention</a>")
}
document.write("<br>&nbsp;<a href='" + rootPath + "programs.html' class='innerLink'>")
if (docPath=="programs.html") {
	document.write ("<strong>Programs</strong></a>")
} else {
	document.write ("Programs</a>")
}
document.write("<br>&nbsp;<a href='" + rootPath + "animalcontrol.html' class='innerLink'>")
if (docPath=="animalcontrol.html") {
	document.write ("<strong>Animal Control</strong></a>")
} else {
	document.write ("Animal Control</a>")
}
