// JavaScript Document
document.write('<div id="enlarge_images" style="position:absolute;z-index:2"></div>'); 

function show(_this) { 
document.getElementById("enlarge_images").innerHTML = "<img src='" + _this.src + "' width='370' height='370'  >"; 
document.getElementById("enlarge_images").style.border='3px solid #EFEFEF';
document.getElementById("enlarge_images").style.background='#Fcfcfc';
document.getElementById("enlarge_images").style.padding='2PX';

} 
function hide(_this) { 
document.getElementById("enlarge_images").innerHTML = ""; 
document.getElementById("enlarge_images").style.border='0';
document.getElementById("enlarge_images").style.background='none';
document.getElementById("enlarge_images").style.padding='0px'
} 
function move_layer(e){ 

    if (document.layers){
        xCoord = e.x;
        yCoord = e.y;
	}
        else if (document.all){
        xCoord = event.clientX;
        yCoord = event.clientY;
	}
        else if (document.getElementById){
        xCoord = e.clientX;
        yCoord = e.clientY;
	}
	mywinL=xCoord+50;
	mywinH=yCoord;
    mycw=document.documentElement.clientWidth-400;
	mych=document.documentElement.clientHeight;
	lastW=wit();
	lastT=hei();
document.getElementById("enlarge_images").style.left=lastW;
document.getElementById("enlarge_images").style.top=lastT;
} 
document.onmousemove =move_layer;
if(document.captureEvents) {document.captureEvents(Event.MOUSEMOVE);}
function wit()
{
	if(mywinL>mycw)
	{
		return mywinL-520+'px';	
	}
	else if(mywinL<mycw)
	{
		return mywinL+'px';
	}
}
function hei()
{
	endH=document.documentElement.scrollTop+70+'px';
	if(endH>mych)
	{
		newH=document.documentElement.scrollTop;
		return newH;
	}
	else
	{
		return endH;
	}
	
}