var currentItem = null;

function sidemenucolor(objStyle, colour, newcolour){
	if(!document.layers){
		if(!currentItem){
			currentItem = new Object();
		}//
		if(currentItem){
			if(currentItem.style){
				//alert(currentItem.style.color);
				if(currentItem != objStyle){
					currentItem.style.color = colour;	
				}//
			}//
			//currentItem.style.color = "#000000";
		}//
		currentItem = objStyle;
		currentItem.style.color = newcolour;
	}//NS 4.9 Nothing to do
}//end function

function mouseovercolor(objStyle, newcolour){
	if(!document.layers){
		var nogo = true;
		if(currentItem){
			if(currentItem.style){
				//alert(currentItem.style.color);
				if(currentItem == objStyle){
					nogo = false;
				}//
			}//
			//currentItem.style.color = "#000000";
		}//
		if(nogo){
			objStyle.style.color = newcolour;
		}
	}//NS 4.9 Nothing to do
}//end function

function mouseoutcolor(objStyle, newcolour){
	if(!document.layers){
		var nogo = true;
		//alert(currentItem);
		//alert(objStyle);
		if(currentItem){
			if(currentItem.style){
				//alert(currentItem.style.color);
				if(currentItem == objStyle){
					nogo = false;
				}//
			}//
			//currentItem.style.color = "#000000";
		}//
		if(nogo){
			objStyle.style.color = newcolour;
		}
	}//NS 4.9 Nothing to do
}//end function


function setoddoneout(oddname, newcolour){
	if(!document.layers){
		var styleObject = null;
		if(document.getElementById){
			if(document.getElementById(oddname)){
				styleObject = 	document.getElementById(oddname);
			}		
		} else if (document.all){
			styleObject = eval('document.all.' + oddname);
		}//
		if(styleObject){
			//alert(styleObject);		
			styleObject.style.color = newcolour;
			currentItem = new Object();
			currentItem = styleObject;
		}	
	}//NS 4.9 Nothing to do
}//end function