
	    function DisplayImage(e,imgPath, imgWidth, imgHeight)
	    {
            // posx, posy cursor position
	        var posx = 0;
	        var posy = 0;
	        if (!e) var e = window.event;
	        if (e.pageX || e.pageY) 	{
		        posx = e.pageX;
		        posy = e.pageY;
	        }
	        else if (e.clientX || e.clientY) 	{
		        posx = e.clientX + document.body.scrollLeft
			        + document.documentElement.scrollLeft;
		        posy = e.clientY + document.body.scrollTop
			        + document.documentElement.scrollTop;
	        }
	      	var myImg = document.getElementById("imgPlaceholder");
	        myImg.src = imgPath;
	        myImg.width = imgWidth;
	        myImg.Height = imgHeight;

	       // calculate top offset for the lightbox and display 
		    var arrayPageScroll = getPageScroll();
		    var arrayPageSize = getPageSize();
		    
		     if (posx > (arrayPageSize[2]/2))
		        myImg.style.left = (posx - 50 - imgWidth) + "px";
		    else
		        myImg.style.left = (posx + 50) + "px";
		    
		    if (posy > (arrayPageSize[3] / 2))
		        myImg.style.top = ( posy - 50 - imgHeight) + "px";
		    else
		        myImg.style.top = (posy + 50) + "px";
	    }
	    function EndDisplay()
	    {
	       var myImg = document.getElementById("imgPlaceholder");
	       myImg.style.top = "-1000px";
	       myImg.src = '';
	    }
	    


