/**
*@author
*weeksie@twelvestone.com
*2-4-2003
*/

//changes CSS properties when the mouse is rolled over an element
function cssRollOver(name,linkName){
	//change elemente background
	document.getElementById(name).style.background = "#666666";
	//change link text color
	document.getElementById(linkName).style.color = "#FFFFFF";
}

//return CSS properties to set colours (this is a bit rigid and should be set dynamically)
function cssRollOut(name,linkName,active){	
	document.getElementById(linkName).style.color = "#FFFFFF";
	if(active == true){
		document.getElementById(name).style.background = "#660000";
	}else{
		document.getElementById(name).style.background = "#CC3300";
	}
}

//called on page load it sets the property "active" for the element
function setActive(name){
	document.getElementById(name).style.background = "#660000";
	document.getElementById(name).active = true;
}