// JavaScript Document
// 本文档由常州万兆网络科技有限公司编写，时间：2007年08月1日
//****************鼠标提示 开始*****************
var tPopWait=50;	//停留tWait豪秒后显示提示
var tPopShow=6000;	//显示tShow豪秒后关闭提示
var showPopStep=20;
var popOpacity=85;
var sPop=null;curShow=null;tFadeOut=null;tFadeIn=null;tFadeWaiting=null;

function showPopupText()
{

  var o=event.srcElement;
  MouseX=event.x;
  MouseY=event.y;
  if(o.alt!=null && o.alt!="") { o.dypop=o.alt;o.alt=""; }
  if(o.dypop!=sPop && o.dypop!="")
  {
    sPop=o.dypop;
    clearTimeout(curShow);
    clearTimeout(tFadeOut);
    clearTimeout(tFadeIn);
    clearTimeout(tFadeWaiting);  
    if(sPop==null || sPop=="")
    {
      div_poplayer.innerHTML="";
      div_poplayer.style.filter="Alpha()";
      div_poplayer.filters.Alpha.opacity=0;
    }
    else
    {
      if(o.dyclass!=null) { popStyle=o.dyclass; }
      else { popStyle="div_pop"; }
      curShow=setTimeout("showIt()",tPopWait);
    }
  }
}

function showIt()
{
  div_poplayer.className=popStyle;
  div_poplayer.innerHTML=sPop;
  popWidth=div_poplayer.clientWidth;
  popHeight=div_poplayer.clientHeight;
  if(MouseX+12+popWidth>document.body.clientWidth) { popLeftAdjust=-popWidth-24; }
  else { popLeftAdjust=0; }
  if(MouseY+12+popHeight>document.body.clientHeight) { popTopAdjust=-popHeight-24; }
  else { popTopAdjust=0; }
  div_poplayer.style.left=MouseX+12+document.body.scrollLeft+popLeftAdjust;
  div_poplayer.style.top=MouseY+12+document.body.scrollTop+popTopAdjust;
  div_poplayer.style.filter="Alpha(Opacity=0)";
  fadeOut();
}

function fadeOut(){
  if(div_poplayer.filters.Alpha.opacity<popOpacity)
  {
    div_poplayer.filters.Alpha.opacity+=showPopStep;
    tFadeOut=setTimeout("fadeOut()",1);
  }
  else
  {
    div_poplayer.filters.Alpha.opacity=popOpacity;
    tFadeWaiting=setTimeout("fadeIn()",tPopShow);
  }
}

function fadeIn()
{
  if(div_poplayer.filters.Alpha.opacity>0)
  {
    div_poplayer.filters.Alpha.opacity-=1;
    tFadeIn=setTimeout("fadeIn()",1);
  }
}
document.write("<div id='div_poplayer' style='position:absolute;z-index:1000;FILTER: Alpha(Opacity=0);' class='div_pop'></div>");
document.write("<STYLE>.div_pop {BORDER-RIGHT: #666666 1px solid; PADDING-RIGHT: 4px; BORDER-TOP: #666666 1px solid; PADDING-LEFT: 4px; FILTER: Alpha(Opacity=50); PADDING-BOTTOM: 2px; BORDER-LEFT: #666666 1px solid; COLOR: #000000; PADDING-TOP: 2px; BORDER-BOTTOM: #666666 1px solid; HEIGHT: 20px; width=250px;BACKGROUND-COLOR: #ffffe1; FONT-WEIGHT: bold; font-size: 12px}</STYLE>")
document.onmouseover=showPopupText;
//****************鼠标提示 结束*****************