// JScript source code
var gCollDEhighlighted = new Array();
function ResetItems()
{
	try	{
			for ( var lCnt = 0; lCnt < gCollDEhighlighted.length; lCnt++ )
			{
				ToggleDE( gCollDEhighlighted[ lCnt ] );
			}
			gCollDEhighlighted = new Array();
		}
	catch( err )
			{
			
			}
}
function Highlight( iDE )
{
	try	{
			ResetItems();
			if ( iDE.tagName == "TD" )
			{

						ToggleDE( iDE.firstChild.firstChild );
						gCollDEhighlighted[ gCollDEhighlighted.length ] = iDE.firstChild.firstChild;
			}
					
			
			
			else
			{
				var lStrProfile = iDE.getAttribute( "Profile" );
				var lCollDEimg = document.getElementById( "ItemCell" ).getElementsByTagName( "DIV" );
				ToggleDE( iDE );
				gCollDEhighlighted[ gCollDEhighlighted.length ] = iDE;
				for ( var lCnt = 0; lCnt < lCollDEimg.length; lCnt++ )
				{
					if ( lCollDEimg[ lCnt ].getAttribute( "Profile" ) == lStrProfile )
					{
						ToggleDE( lCollDEimg[ lCnt ].firstChild );
						gCollDEhighlighted[ gCollDEhighlighted.length ] = lCollDEimg[ lCnt ].firstChild;
					}
				}
			}
	}
	catch( err )
			{
			
			}
}
function ToggleDE( iDE )
{
	try	{
			if ( iDE.tagName == "TABLE" )
			{
				if ( ! ( iDE.bgColor == '#fce7a6' ) )
				{
					iDE.bgColor = '#fce7a6';
				}
				else
				{
					iDE.bgColor = '#ebebeb';
				}
			}
			else
			{
				if ( ! ( iDE.parentElement.parentElement.className == 'ProfileImageAct' ) )
				{
					iDE.parentElement.parentElement.className = 'ProfileImageAct';
				}
				else
				{
					iDE.parentElement.parentElement.className = '';
				}
			}
	
		}
	catch( err )
			{
			
			}
}
