// JavaScript Document
<script language="JavaScript" type="text/javascript">
/*<![CDATA[*/

function Preview(img,x,y){
if (!img.preview){
img.preview=zxcES('IMG',{position:'absolute',zIndex:'101'},document.body);
img.preview.src=img.src;
img.preview.onmouseout=function(){ zxcES(this,{visibility:'hidden'}); }
}
zxcES(img.preview,{visibility:'hidden'});
if (x){
x+=zxcPos(img)[0];
x=Math.min(Math.max(x,5),zxcWWHS()[2]+zxcWWHS()[0]-img.preview.width-5);
y+=zxcPos(img)[1];
y=Math.min(Math.max(y,zxcWWHS()[3]+5),zxcWWHS()[3]+zxcWWHS()[1]-img.preview.height-5);
zxcES(img.preview,{visibility:'visible',left:x+'px',top:y+'px'});
}
}

function zxcES(zxcele,zxcstyle,zxcp,zxctxt){
if (typeof(zxcele)=='string') zxcele=document.createElement(zxcele);
for (key in zxcstyle) zxcele.style[key]=zxcstyle[key];
if (zxcp) zxcp.appendChild(zxcele);
if (zxctxt) zxcele.appendChild(document.createTextNode(zxctxt));
return zxcele;
}

function zxcPos(zxcobj){
zxclft=zxcobj.offsetLeft;
zxctop=zxcobj.offsetTop;
while(zxcobj.offsetParent!=null){
zxcpar=zxcobj.offsetParent;
zxclft+=zxcpar.offsetLeft;
zxctop+=zxcpar.offsetTop;
zxcobj=zxcpar;
}
return [zxclft,zxctop];
}

function zxcWWHS(){
if (window.innerHeight) return [window.innerWidth-10,window.innerHeight-10,window.pageXOffset,window.pageYOffset];
else if (document.documentElement.clientHeight) return [document.documentElement.clientWidth-10,document.documentElement.clientHeight-10,document.documentElement.scrollLeft,document.documentElement.scrollTop];
return [document.body.clientWidth,document.body.clientHeight,document.body.scrollLeft,document.body.scrollTo p];
}
/*]]>*/
</script>