/*
Simple Image Trail script- By JavaScriptKit.com
Visit http://www.javascriptkit.com for this script and more
This notice must stay intact
*/

var ua = navigator.userAgent.toLowerCase();
var divw=0;
var divh=0;

if (document.getElementById || document.all)
	document.write('<div id="imgtrailer" style="position:absolute;visibility:hidden;"></div>')

function gettrailobject()
	{
	if (document.getElementById)
		return document.getElementById("imgtrailer")
	else if (document.all)
		return document.all.trailimagid
	}

function gettrailobj()
	{
	if (document.getElementById)
		return document.getElementById("imgtrailer").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 trailOff()
	{
	document.onmousemove='';
	gettrailobj().visibility="hidden";
	}

function trailOn(thumbimg,imgtitle,username,imgid,imgsize,credit,level,thw,thh)
	{
	if(ua.indexOf('opera') == -1 && ua.indexOf('safari') == -1)
		{
		gettrailobj().left="-500px";
		divthw = parseInt(thw) + 2;
		gettrailobject().innerHTML = '<div style="background-color: #b2a99d; layer-background-color: #b2a99d; border: 1px none #808080; padding:10px; width:'+divthw+'px;"><div style="background-color: #FFFFFF; layer-background-color: #FFFFFF; border: 1px solid #808080;background-image: url(http://www.go2mpylace.com/picture/lloading.gif);">'+'<img src="'+thumbimg+'" border="0" width="'+thw+'" height="'+thh+'"><div style="font-family: verdana, arial, helvetica, sans-serif; text-decoration: none;  font-size: 10pt;padding:3px">'+imgtitle+'<br>'+(thw>=233?'<nobr>':'')+'&copy; '+username+' | uBoost.net'+(thw>=233?'</nobr>':'')+'<br></div></div><div class=TextWebSiteSmall style="padding:1px;">'+(thw>=233?'<nobr>':'')+'ID: '+imgid+' / Level: '+level+(thw>=233?'</nobr>':'')+'<br>'+imgsize+'</div></div>';
		gettrailobj().visibility="visible";
		divw = parseInt(thw)+25;
		divh = parseInt(thh)+130;
		document.onmousemove=followmouse;
		}
	}

function followmouse(e)
	{
	var docwidth=document.all? truebody().scrollLeft+truebody().clientWidth : pageXOffset+window.innerWidth-15
	var docheight=document.all? Math.min(truebody().scrollHeight, truebody().clientHeight) : Math.min(document.body.offsetHeight, window.innerHeight)
if(typeof e != "undefined")
	{
	if(docwidth < 15+e.pageX+divw)
		xcoord = e.pageX-divw-5;
	else
		xcoord = 15+e.pageX;
	if(docheight < 15+e.pageY+divh)
		ycoord = 15+e.pageY-Math.max(0,(divh + e.pageY - docheight - truebody().scrollTop - 30));
	else
		ycoord = 15+e.pageY;
	}
else if (typeof window.event != "undefined")
	{
	if(docwidth < 15+truebody().scrollLeft+event.clientX+divw)
		xcoord = truebody().scrollLeft-5+event.clientX-divw;
	else
		xcoord = truebody().scrollLeft+15+event.clientX;

	if(docheight < 15+truebody().scrollTop+event.clientY+divh)
		ycoord = 15+truebody().scrollTop+event.clientY-Math.max(0,(divh + event.clientY - docheight - 30));
	else
		ycoord = truebody().scrollTop+15+event.clientY;
	}
	gettrailobj().left=xcoord+"px"
	gettrailobj().top=ycoord+"px"
	}

//<table width="98%"  border="0" cellspacing="0" cellpadding="5">
//    							<tr align="center">
//									<td align="justify">
//								<div style="margin: 2px; height: 80px; overflow: hidden; float: left; height: overflow: hidden; width: 78px;">
//									<center>
//    								<table border="0" cellpadding="5" cellspacing="1" bgcolor="#e5e1de">
//    									<tr>
//    										<td align="center" bgcolor="#FFFFFF"><a href="http://www.dreamstime.com/newspaper-in-briefcase-image18028"><img src="http://thumbs.dreamstime.com/thumbsmall_3/1093120753P3ViWO.jpg" border="0"  onmouseover="trailOn('http://thumbs.dreamstime.com/thumb_3/1093120753P3ViWO.jpg','NEWSPAPER IN BRIEFCASE','Winterberg','18028','Size: 2,592x1,944 pixels (5.0MP)<br>','1 credit','1','300','225');" onmouseout="trailOff();"></a></td>
//										</tr>
//									</table>
//									</center>
//								</div>
//								<div style="margin: 2px; height: 80px; overflow: hidden; float: left; height: overflow: hidden; width: 78px;">
//									<center>
//    								<table border="0" cellpadding="5" cellspacing="1" bgcolor="#e5e1de">
//    									<tr>
//    										<td align="center" bgcolor="#FFFFFF"><a href="http://www.dreamstime.com/newspaper-on-briefcase-image18046"><img src="http://thumbs.dreamstime.com/thumbsmall_3/1093126137255L77.jpg" border="0"  onmouseover="trailOn('http://thumbs.dreamstime.com/thumb_3/1093126137255L77.jpg','NEWSPAPER ON BRIEFCASE','Winterberg','18046','Size: 2,592x1,944 pixels (5.0MP)<br>','1 credit','1','300','225');" onmouseout="trailOff();"></a></td>
//										</tr>
//									</table>
//									</center>
//								</div>

