// JavaScript Document

function selected(linkId) {
	var setStyle = document.getElementById(linkId);
	var linePos = linkId.indexOf('_');
	var totalLength = linkId.length;
	var section = linkId.substring(0,linePos);
	
	switch(section) {
		case "about":
			setStyle.style.backgroundColor = "#000000";
			break;
		case "news":
			setStyle.style.backgroundColor = "#000066";
			break;
		case "grassroots":
			setStyle.style.backgroundColor = "#003300";
			break;
		case "action":
			setStyle.style.backgroundColor = "#330000";
			break;
		default:
			setStyle.style.backgroundColor = "#000000";
			break;
	}
}