// Note that these functions use a cellId parameter and not event.srcElement to work
// around a bug in the event system in Safari and Konqueror.

var oldBackgroundColor;
var currentCellId;

function highlight(cellId) {

	if ( cellId != currentCellId ) {
	
		cell = document.getElementById(cellId);
		
		oldBackgroundColor = cell.style.backgroundColor;
	
		cell.style.backgroundColor = '#0050A2';

		oldBackgroundImage = cell.style.backgroundImage;
		
		cell.style.backgroundImage = "url('/images/gradients/navigation_light.png')";

	}
		
}
	
function unhighlight(cellId) {

	if ( cellId != currentCellId ) {
	
		cell = document.getElementById(cellId);
	
		cell.style.backgroundColor = oldBackgroundColor;
		
		cell.style.backgroundImage = oldBackgroundImage;
	
	}

}
	
function highlightSubsite() {
	
	if ( 'subsite' != currentCellId ) {

		subsiteCell = document.getElementById('subsite');
	
		subsiteCell.style.background = '#8e99d7';

	}	

}
	
function unhighlightSubsite() {

	if ( 'subsite' != currentCellId ) {
	
		subsiteCell = document.getElementById('subsite');
	
		subsiteCell.style.background = '#6e79b7';
	
	}

}

function underline(cellId,colour) {
/*
	if ( colour != '' ) {

		cell = document.getElementById(cellId);

		cell.style.background = '3px solid '+colour;

	}

	currentCellId = cellId;
*/
}
