function showPhoto() {
	var bgShadow = document.getElementById( "bgShadow" )
	if( !bgShadow ) return

	var PhotoContent = document.getElementById( "PhotoContent" )

	var Container = document.getElementById( "Container" )

	with( bgShadow.style ) {
		if( PhotoContent.offsetWidth > 0 ) {
			width = ( PhotoContent.offsetWidth + 40 ) + "px";
		}
		top = ( Container.offsetTop + 8 ) + "px"
		left = ( Container.offsetWidth / 2 - ( PhotoContent.offsetWidth ) / 2 ) + "px"
		border = "outset 2px #FFFFFF";

		opacity = .0;
		filter = "alpha(opacity=0)";
	}

	bgShadow.opacity = 0;
	setTimeout( "doShowShadow()", 50 );

}

function doShowShadow() {
	var bgShadow = document.getElementById( "bgShadow" )
	if( !bgShadow ) return

	if( bgShadow.opacity < 1 ) {
		bgShadow.opacity += 0.05;
		setTimeout( "doShowShadow()", 50 );
	}

	with( bgShadow.style ) {
		opacity = bgShadow.opacity;
		filter= "alpha(opacity= " + ( bgShadow.opacity * 100 ) + " )";
	}
	
}

function doHideShadow() {
	var bgShadow = document.getElementById( "bgShadow" )
	if( !bgShadow ) return

	if( bgShadow.opacity > 0.05 ) {
		bgShadow.opacity -= 0.05;
		with( bgShadow.style ) {
			opacity = bgShadow.opacity;
			filter= "alpha(opacity= " + ( bgShadow.opacity * 100 ) + " )";
		}
		setTimeout( "doHideShadow()", 50 );
		return;
	}
	
	with( bgShadow.style ) {
		border = "0px";
		top = "0px";
		left = "0px";
		width = "0px";
		display = "block";
	}
	
}

