var documentBody = "";
function showLarge( img )
{
	
	oRoot = document.getElementById( 'mainblock' );
	if( oRoot == null )
		return false;
	
	oContainer = document.createElement( "div" );
	oContainer.setAttribute( 'id', 'largeImage' );
	oContainer.style.width = "100%";
	oContainer.style.height = "100%";
	oContainer.style.backgroundColor = document.body.style.backgroundColor;
	oContainer.style.border = "0px solid white";

	sTable  = "<table width=\"100%\" height=\"100%\">";
	sTable += "  <tr>";
	sTable += "    <td width=\"100%\" height=\"100%\" align=\"center\" valign=\"middle\">";
	sTable += "      <img src=\"" + img + "\" border=\"0\" style=\"cursor: pointer\" onclick=\"trashLarge()\" />";
	sTable += "    </td>";
	sTable += "  </tr>";
	sTable += "</table>";

	oContainer.innerHTML = sTable;
	document.body.appendChild( oContainer );
/*	
	var container = document.createElement( 'TABLE' );
	container.setAttribute( 'style', 'width: 100%; height: 100%; background-color: #FFFFFF; border: 0px;' );

	var tr = document.createElement( 'TR' );
	
	var td = document.createElement( 'TD' );
	td.setAttribute( 'style', 'width: 100%; height: 100%; background-color: #FFFFFF; text-align: center; vertical-align: center;' );

	document.body.appendChild( container );
	container.appendChild( tr );
	tr.appendChild( td );
	td.innerHTML = '<img src="' + img + '" style="cursor: pointer" onclick="trashLarge()" />';
*/
	oRoot.style.display = 'none';
}
function trashLarge()
{
	sLoc = document.location;
	document.location = sLoc;
	/*oRoot = document.getElementById( 'mainblock' );
	if( oRoot == null )
		return false;

	oElement = document.getElementById( 'largeImage' );
	oElement.style.display = "none";
	oElement.parentNode.removeChild( oElement );

	oRoot.style.display = 'block';*/
}
