﻿// JScript 文件
function g(p){return document.getElementById(p);}
    //清除浮动显示的内容
function ClearImg()
{
	g("ShowContentTitle").innerHTML = "";
	g("ShowContentImg").src = "/ajax/reading.gif";
	g("showLayers").style.display = "none";
}
    //显示鼠标放上去出现图片的效果
function onmouseshow(evt,wind,a,b,c)
{
             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;}
	
	g("showLayers").style.display = '';
	g("showLayers").style.left = x+"px";
	g("showLayers").style.top = y+"px";
	g("ShowContentTitle").innerHTML =b;
		g("ShowContentImg").src = a;
				g("ShowConfig").innerHTML = c;
	
//	
//	var fh = (
//		function(r){
//			var vback=r.split('|');
//			if(vback[0]=='False')
//			{
//				alert(vback[1]);	
//			}
//			else{
//				g("ShowContentTitle").innerHTML = vback[1];
//				g("ShowContentImg").src = "/"+vback[2];
//				g("ShowConfig").innerHTML = vback[3];
//			}
//		}
//	);
}

