// Navigation Handler


var curURL = document.location.href;

var navLinks = new Array (
"Home", "index.html",
"About", "about.html",
"FAQs", "faqs.html",
"Contact", "contact.html",
"Codes", "codes.html",
"Links", "links.html",
"Employment", "employment.html",
"Feedback", "feedback.html");

// Write Navigation
function writeNav(){
	
var output = "";

output += "<table width='115' cellpadding='0' cellspacing='0'>";
		
		for (x=0; x < navLinks.length; x+=2){
		
			var curURL2 = curURL.split(navLinks[x + 1]);
			
			
			output += "<tr><td>";

			if (curURL2.length < 2){
				output += "<a href='" + navLinks[x + 1] + "' onMouseOver=\"mouseOver('" + navLinks[x] + "');\" onMouseOut=\"mouseOut('" + navLinks[x] + "');\">";
				output += "<img src='images/nav/btn_" + navLinks[x] + "_off.gif' border='0' name=" + navLinks[x] + ">";
				output += "</a>";
			}else{
				output += "<img src='images/nav/btn_" + navLinks[x] + "_on.gif' border='0' name=" + navLinks[x] + ">";
			}
			
			output += "</td></tr>";
		}
		
output += "<tr><td><img src='images/nav/nav_cap.gif' border=0></td></tr>";
output += "</table><br><table width='115'><tr><Td class='textSmall'><strong>TEL:</strong> (404) 361-3387<br><strong>FAX:</strong> (770) 454-0145<br><br><strong>Office Hours</strong><br>Mon - Fri: 8am-5pm<br>Saturday: 8am-12pm<br><br><strong>Address</strong><br>2446 Forest Parkway<br>Ellenwood, GA 30294</TD></tr></table>";





return output;
}


// Write Footer Navigation
function writeFooterNav(){
	
var output = "";

output += "<table border=0 cellpadding=0 cellspacing=0>";
output += "<tr><td class='text2'>&nbsp;&nbsp;";

		for (x=0; x < navLinks.length; x+=2){
		
		var curURL2 = curURL.split(navLinks[x + 1]);
		
		
			if (curURL2.length < 2){
			output += "<a class='footerlink' href='" + navLinks[x + 1] + "'>";
			output += navLinks[x];
			output += "</a> &nbsp;|&nbsp;";
			}else{
			output += "<span class='textBold'>" + navLinks[x] + "</span>&nbsp;|&nbsp;";
			}
		}
		
output += "</td></tr>";
output += "</table>"

return output;
}

function mouseOver(whichnav){
	document[whichnav].src = "images/nav/btn_" + whichnav + "_over.gif";
}

function mouseOut(whichnav){
	document[whichnav].src = "images/nav/btn_" + whichnav + "_off.gif";
}