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:10px solid #000000;background:#DDDDDD;z-index:5"><img id="ttimg" src="img/s.gif" /></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(){
	document.onmousemove="";
	document.getElementById("ttimg").src="/img/s.gif";gettrailobj().visibility="hidden";gettrailobj().left=-1000;gettrailobj().top=0
	}

function showtrail(c,a,b)
{
	if(navigator.userAgent.toLowerCase().indexOf("opera")==-1){w=c;h=a;document.getElementById("ttimg").src=b;document.onmousemove=followmouse;gettrailobj().visibility="visible";gettrailobj().width=w+"px";gettrailobj().height=h+"px"}
	}

function followmouse(f)
{
	if(navigator.userAgent.toLowerCase().indexOf("opera")==-1){
var b=10;
var a=100;
if(typeof f!="undefined"){b+=f.pageX;a+=f.pageY}
else{
	if(typeof window.event!="undefined"){b+=truebody().scrollLeft+event.clientX;a+=truebody().scrollTop+event.clientY}
	}
	var d=document.all?truebody().scrollLeft+truebody().clientWidth:pageXOffset+window.innerWidth-15;
	var c=document.all?Math.max(truebody().scrollHeight,truebody().clientHeight):Math.max(document.body.offsetHeight,window.innerHeight);if(b+w+3>d){b=b-w-(20*2)}if(a-truebody().scrollTop+h>truebody().clientHeight){a=a-h-20}gettrailobj().left=b+"px";gettrailobj().top=a+"px"}
	}
	;
