var w=1

var h=1


if (document.getElementById || document.all)

document.write('<div id="trailimageid" style="position:absolute;visibility:hidden;left:0px;top:-1000px;width:1px;height:1px;border:1px solid #888888;background:#DDDDDD;z-index:100;"><img id="ttimg" onmouseover="showtrail(this.src);" onmouseout="hidetrail();" /></div>')



function gettrailobj()

{

if (document.getElementById) return document.getElementById("trailimageid").style

else if (document.all) return document.all.trailimagid.style
}



function truebody()

{
return (!window.opera && document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}



function hidetrail()
{
gettrailobj().visibility="hidden"
}





function showtrail(file)
{

    if(navigator.userAgent.toLowerCase().indexOf('opera') == -1 && navigator.userAgent.toLowerCase().indexOf('safari') == -1)

    {

	img = new Image();
	img.src = file;
	w=img.width; 
	h=img.height;
	
	amplada=(screen.width/2)-(w/2);
	alcada=(screen.height/2)-(h/2);
	
	gettrailobj().width=w+"px"

	gettrailobj().height=h+"px"



	gettrailobj().left=amplada+"px"

	gettrailobj().top=alcada+"px"
	

		
	document.getElementById('ttimg').src=file

	gettrailobj().visibility="visible"

    }

}








