function imgOn(imgName) {
	document [imgName].src = eval((imgName) + "On.src");
}
function imgOff(imgName) {
	document [imgName].src = "off/" + (imgName) + ".gif";
}

function fontSize(sizeSpec) {
	if (document.getElementById) {
		var bodyText = document.getElementById("contentCopy");
		var leftText = document.getElementById("leftColumn");

		var SizeA = document.getElementById("sizeA");
		var SizeB = document.getElementById("sizeB");
		var SizeC = document.getElementById("sizeC");
		var SizeD = document.getElementById("sizeD");
		
		var date = new Date();
		date.setTime(date.getTime()+(30*24*60*60*1000));
		var expires = "; expires="+date.toGMTString();
		
		if (sizeSpec == "smallest") {
			bodyText.style.fontSize = "10px";
			leftText.style.fontSize = "9px";

			SizeA.style.textDecoration = "underline";
			SizeB.style.textDecoration = "none";
			SizeC.style.textDecoration = "none";
			SizeD.style.textDecoration = "none";
			
			document.cookie = "hecsize=smallest; " + expires + "; path=/";
			
		} else if (sizeSpec == "normal") {
			bodyText.style.fontSize = "13px";
			leftText.style.fontSize = "12px";

			SizeA.style.textDecoration = "none";
			SizeB.style.textDecoration = "underline";
			SizeC.style.textDecoration = "none";
			SizeD.style.textDecoration = "none";

			document.cookie = "hecsize=normal; " + expires + "; path=/";
			
		} else if (sizeSpec == "large") {
			bodyText.style.fontSize = "16px";
			leftText.style.fontSize = "14px";

			SizeA.style.textDecoration = "none";
			SizeB.style.textDecoration = "none";
			SizeC.style.textDecoration = "underline";
			SizeD.style.textDecoration = "none";

			document.cookie = "hecsize=large; " + expires + "; path=/";
		
		} else if (sizeSpec == "largest") {
			bodyText.style.fontSize = "18px";
			leftText.style.fontSize = "16px";

			SizeA.style.textDecoration = "none";
			SizeB.style.textDecoration = "none";
			SizeC.style.textDecoration = "none";
			SizeD.style.textDecoration = "underline";

			document.cookie = "hecsize=largest; " + expires + "; path=/";

		}
	}
}


function checkSize() {
	var setIt = false;
	var cookieStuff = document.cookie.split(';');
	for (i = 0; i < cookieStuff.length; i++ ) {
		var eachCookie = cookieStuff[i];
		if ( String(cookieStuff[i]).substring(1,8) == "hecsize" ) {
			fontSize( String(cookieStuff[i]).substring(9,eachCookie.length));
			var setIt = true;
		}
	}
	if (setIt == false) {
		fontSize('normal');
	}
}