﻿function onmouseshow(evt,wind,id,head,bottom)
{
             var  winWidth  =   0 ;
             var  winHeight  =   0 ;
        
               if (window.innerWidth)   {
                winWidth  =  window.innerWidth;
            }   else   if ((document.body)  &&  (document.body.clientWidth))   {
                winWidth  =  document.body.clientWidth;
            } 
 

               if (window.innerHeight)   {
                winHeight  =  window.innerHeight;
            }   else   if ((document.body)  &&  (document.body.clientHeight))   {
                winHeight  =  document.body.clientHeight;
            } 
 
              if (document.documnetElement  &&  document.documnetElement.clientHeight  &&  document.documnetElement.clientWidth)   {
                winWidth  =  document.documnetElement.clientWidth;
                winHeight  =  document.documnetElement.clientHeight;
            } 

	var x=evt.clientX+wind.scrollLeft-10;
	var y=evt.clientY+wind.scrollTop+20;
	
	if ((winWidth-x)<250){x=x-250;}
	
	document.getElementById("showLayers").style.display = '';
	document.getElementById("showLayers").style.left = x+"px";
	document.getElementById("showLayers").style.top = y+"px";
	document.getElementById("showhead").innerHTML=head;
	document.getElementById("ShowContentImg").src=id;
//	document.getElementById("showbottom").innerHTML=bottom;

}

function ClearImg()
{
	document.getElementById("showLayers").style.display = "none";
}

