function ViewImage(img,titulo)
{
	   document.getElementById('view_image').style.display		= '';
	   document.getElementById('view_image_src').src			= img;
	   document.getElementById('view_image_tit').innerHTML		= titulo;
	   document.getElementById('sombra_fundo').style.display	= '';
	   arrangeLayer();
	   ArrumaSombra();
}

function ArrumaSombra()
{
    if(navigator.appName == "Netscape")
    {
    	var de = document.documentElement;
	    var w = self.innerWidth || (de&&de.clientWidth) || document.body.clientWidth;
	    var h = self.innerHeight || (de&&de.clientHeight) || document.body.clientHeight;

	    if (window.innerHeight && window.scrollMaxY)
	    {
	    	yScroll = window.innerHeight + window.scrollMaxY;
	    }
	    else if (document.body.scrollHeight > document.body.offsetHeight)
	    {   // all but Explorer Mac
	    	yScroll = document.body.scrollHeight;
	    }
	    else
	    {   // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari
	    	yScroll = document.body.offsetHeight;
	    }

	    if(yScroll) { document.getElementById('sombra_fundo').style.height = yScroll+"px"; }
	}
	else
	{
		var valy;

		if(window.innerHeight && window.scrollMaxY)
		{
			yScroll = window.innerHeight + window.scrollMaxY;
		}
		else (document.body.scrollHeight > document.body.offsetHeight)
		{
			// all but Explorer Mac
			yScroll = document.body.scrollHeight + document.body.scrollMaxY;
		}

		if(yScroll) { document.getElementById('sombra_fundo').style.height = yScroll+"px"; }
	}
}