
var lastimage;
function DOMSelectImage( i )
{
	if ( i == lastimage )
		return;

	if ( !GetElement( 'link' + i ) )
		return;
		
	GetElement( 'image' + i ).style.display = '';
	GetElement( 'link' + i ).style.color = 'yellow';
	//GetElement( 'link' + i ).style.fontWeight = 'bolder';
	GetElement( 'cell' + i ).style.background = 'black';
	
	if ( lastimage >= 0 )
	{
		GetElement( 'image' + lastimage ).style.display = 'none';
		GetElement( 'link' + lastimage ).style.color = 'black';
		//GetElement( 'link' + lastimage ).style.fontWeight = '';
		GetElement( 'cell' + lastimage ).style.background = '';
	}
	lastimage = i;
}