var rootPath = "";
var subRootPath = "";
var subsubRootPath = "";

if (docPath=="site.html" || parentPath=="root") {
	var rootPath = "comm/";
	var subRootPath = "comm/";
	var subsubRootPath="comm/";
}

if (parentPath=="about" || parentPath=="res") {
	rootPath = "../";
	subRootPath = "../";
	subsubRootPath = "";
}
if (parentPath=="history") {
	rootPath = "../../";
	subRootPath = "../../";
	subsubRootPath = "../";
}
document.write("&nbsp;<a href='" + rootPath + "about.html' class='innerLink'>")
if (docPath=="about.html") {
	document.write ("<strong>About Chanhassen</strong></a>")
} else {
	document.write("About Chanhassen</a>")
}
if (parentPath=="about" || docPath=="about.html" || parentPath=="history" || docPath=="site.html") {
	document.write("<br>&nbsp;&nbsp;&nbsp;<a href='" + subRootPath + "about/history.html' class='innerLink'>")
	if (docPath=="history.html") {
		document.write ("<strong>History</strong></a>")
	} else {
		document.write ("Our History</a>")
	}
		if (parentPath=="history" || docPath=="history.html" || docPath=="site.html") {
		document.write("<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href='" + subsubRootPath + "history/buybook.html' class='innerLink'>")
		if (docPath=="buybook.html") {
			document.write ("<strong>History Book</strong></a>")
		} else {
			document.write ("History Book</a>")
		}
		document.write ("<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href='" + subsubRootPath + "history/quilt.html' class='innerLink'>")
		if (docPath=="quilt.html") {
			document.write ("<strong>Centennial Quilt</strong></a>")
		} else {
			document.write ("Centennial Quilt</a>")
		}
	}
	document.write ("<br>&nbsp;&nbsp;&nbsp;<a href='" + subRootPath + "about/bus.html' class='innerLink'>")
	if (docPath=="bus.html") {
		document.write ("<strong>Bus Service</strong></a>")
	} else {
		document.write ("Bus Service</a>")
	}
	document.write ("<br>&nbsp;&nbsp;&nbsp;<a href='" + subRootPath + "about/demo.html' class='innerLink'>")
	if (docPath=="demo.html") {
		document.write ("<strong>Demographics</strong></a>")
	} else {
		document.write ("Demographics</a>")
	}

}
document.write("<br>&nbsp;<a href='" + rootPath + "links.html' class='innerLink'>")
if (docPath=="links.html") {
	document.write ("<strong>Community Links</strong></a>")
} else {
	document.write ("Community Links</a>")
}
document.write("<br>&nbsp;<a href='" + rootPath + "res.html' class='innerLink'>")
if (docPath=="res.html") {
	document.write ("<strong>Resident Info</strong></a>")
} else {
	document.write ("Resident Info</a>")
}	
if (parentPath=="res" || docPath=="res.html" || docPath=="site.html") {
	document.write("<br>&nbsp;&nbsp;&nbsp;<a href='" + subRootPath + "res/animal.html' class='innerLink'>")
	if (docPath=="animal.html") {
		document.write ("<strong>Animal Licenses</strong></a>")
	} else {
		document.write ("Animal Licenses</a>")
	}
	document.write ("<br>&nbsp;&nbsp;&nbsp;<a href='" + subRootPath + "res/apart.html' class='innerLink'>")
	if (docPath=="apart.html") {
		document.write ("<strong>Apartment Info</strong></a>")
	} else {
		document.write ("Apartment Info</a>")
	}
	document.write("<br>&nbsp;&nbsp;&nbsp;<a href='" + subRootPath + "res/elect.html' class='innerLink'>")
	if (docPath=="elect.html") {
		document.write ("<strong>Elected Officials</strong></a>")
	} else {
		document.write ("Elected Officals</a>")
	}
	document.write("<br>&nbsp;&nbsp;&nbsp;<a href='" + subRootPath + "res/garbage.html' class='innerLink'>")
	if (docPath=="garbage.html") {
		document.write ("<strong>Garbage Haulers</strong></a>")
	} else {
		document.write ("Garbage Haulers</a>")
	}
	document.write("<br>&nbsp;&nbsp;&nbsp;<a href='" + subRootPath + "res/homecred.html' class='innerLink'>")
	if (docPath=="homecred.html") {
		document.write ("<strong>Homestead Credit</strong></a>")
	} else {
		document.write ("Homestead Credit</a>")
	}
	document.write("<br>&nbsp;&nbsp;&nbsp;<a href='" + subRootPath + "http://www.co.carver.mn.us/departments/prts/chan.asp' class='innerLink'>")
	if (docPath=="driver.html") {
		document.write ("<strong>License Center</strong></a>")
	} else {
		document.write ("License Center</a>")
}
	document.write("<br>&nbsp;&nbsp;&nbsp;<a href='" + subRootPath + "../serv/nresourc/recyc.html' class='innerLink'>")
	if (docPath=="recyc.html") {
		document.write ("<strong>Recycling</strong></a>")
	} else {
		document.write ("Recycling</a>")
	}
document.write("<br>&nbsp;&nbsp;&nbsp;<a href='" + subRootPath + "res/residentguide.pdf' class='innerLink'>")
	if (docPath=="residentguide.pdf") {
		document.write ("<strong>Resident Guide</strong></a>")
	} else {
		document.write ("Resident Guide</a>")
	}
	document.write("<br>&nbsp;&nbsp;&nbsp;<a href='" + subRootPath + "res/schools.html' class='innerLink'>")
	if (docPath=="schools.html") {
		document.write ("<strong>Schools</strong></a>")
	} else {
		document.write ("Schools</a>")
	}
document.write("<br>&nbsp;&nbsp;&nbsp;<a href='" + subRootPath + "res/seniorhousing.html' class='innerLink'>")
	if (docPath=="seniorhousing.html") {
		document.write ("<strong>Senior Housing</strong></a>")
	} else {
		document.write ("Senior Housing</a>")
	}
	
	document.write("<br>&nbsp;&nbsp;&nbsp;<a href='" + subRootPath + "res/utility.html' class='innerLink'>")
	if (docPath=="utility.html") {
		document.write ("<strong>Utility Companies</strong></a>")
	} else {
		document.write ("Utility Companies</a>")
	}
		
	document.write("<br>&nbsp;&nbsp;&nbsp;<a href='" + subRootPath + "../serv/engineer/waterres.html' class='innerLink'>")
	if (docPath=="waterres.html") {
		document.write ("<strong>Water Restrictions</strong></a>")
	} else {
		document.write ("Water Restrictions</a>")
	}
		
	document.write("<br>&nbsp;&nbsp;&nbsp;<a href='" + subRootPath + "../serv/pw/wparking.html' class='innerLink'>")
	if (docPath=="wparking.html") {
		document.write ("<strong>Winter Parking Rules</strong></a>")
	} else {
		document.write ("Winter Parking Rules</a>")
	}
}
document.write("<br>&nbsp;<a href='" + rootPath + "visitor.html' class='innerLink'>")
if (docPath=="visitor.html") {
	document.write ("<strong>Visitor Info</strong></a>")
} else {
	document.write ("Visitor Info</a>")
}
document.write("<br>&nbsp;<a href='" + rootPath + "connect.html' class='innerLink'>")
if (docPath=="connect.html") {
	document.write ("<strong>Newsletter</strong></a>")
} else {
	document.write ("Newsletter</a>")
}
document.write("<br>&nbsp;<a href='" + rootPath + "library.html' class='innerLink'>")
if (docPath=="library.html") {
	document.write ("<strong>Library</strong></a>")
} else {
	document.write ("Library</a>")
}