// JavaScript Document

function linkColor(elem) 
{
	var colorLinks = document.getElementsByTagName(elem);
	var colorNum = 1;
	for (var m = 0; m < colorLinks.length; m ++)
	{
		var clink = colorLinks[m];
		if (colorNum == 1) 
		{
			clink.style.color = "#972326";
			clink.onmouseover = function() {this.style.color = "#a0b739"; }
			clink.onmouseout = function() {this.style.color = "#972326"; }
			colorNum += 1;
		} else if (colorNum == 2)
		{
			clink.style.color = "#cf7d4d";
			clink.onmouseover = function() {this.style.color = "#a0b739"; }
			clink.onmouseout = function() {this.style.color = "#cf7d4d"; }
			colorNum += 1;
		} else if (colorNum == 3)
		{
			clink.style.color = "#cdab37";
			clink.onmouseover = function() {this.style.color = "#a0b739"; }
			clink.onmouseout = function() {this.style.color = "#cdab37"; }
			colorNum = 1;
		} else if (colorNum == 4)
		{
			clink.style.color = "#774f36";
			clink.onmouseover = function() {this.style.color = "#a0b739"; }
			clink.onmouseout = function() {this.style.color = "#774f36"; }
			colorNum = 1;
		} 
	}
}

