<!--
////////////////////////////
/// 显示tips开始
document.write(
"<div id=\"tooltip\" style=\"font-family:宋体;font-size:12px;position:absolute;visibility:hidden;padding:3px;border:1px solid #C0C0C0;background-color:#FFFFE7; height:auto;left:77px;top:10px;z-index:10;opacity: 0.8;\"></div>");

var tempElement=document.getElementById("tooltip");

var is_IE=(typeof(window.attachEvent)!="undefined");
var is_Moz=(typeof(window.addEventListener)!="undefined");

function initElement(obj)
{
 var temp=obj.getElementsByTagName("a");
 if(temp==null)return;
 for(var i=0;i<temp.length;i++)
 {
  if(temp[i].getAttribute("hint")==null||temp[i].getAttribute("hint")=="")continue;
  if(is_IE)
  {
   temp[i].detachEvent("onmousemove",showtip)
   temp[i].detachEvent("onmouseover",showtip)
   temp[i].detachEvent("onmouseout",hidetip)
  /////////////
   temp[i].attachEvent("onmousemove",showtip)
   temp[i].attachEvent("onmouseover",showtip)
   temp[i].attachEvent("onmouseout",hidetip)
  }
  if(is_Moz)
  {
   temp[i].removeEventListener("mousemove",showtip,true)
   temp[i].removeEventListener("mouseover",showtip,true)
   temp[i].removeEventListener("mouseout",hidetip,true)
   /////////////
   temp[i].addEventListener("mousemove",showtip,true)
   temp[i].addEventListener("mouseover",showtip,true)
   temp[i].addEventListener("mouseout",hidetip,true)
  }
 }
}
/////////////////
function showtip(oEventParam)  //显示链接的说明
{
var tipsText="";
if(is_IE)
   tipsText=oEventParam.srcElement.getAttribute("hint");
if(is_Moz)
   tipsText=oEventParam.target.getAttribute("hint"); // mozilla
if(tipsText==null||tipsText=="")
   return false;
  if (tempElement) //&&document.readyState=="complete")//针对IE
  {
  //显示跑马灯,内容就是提示框的内容
  tempElement.innerHTML="<div vAlign=center>"+tipsText+"</div>";
  }
  offerX=document.body.scrollLeft;
  offerY=document.body.scrollTop;
  tempElement.style.left=oEventParam.clientX+offerX+"px";
  tempElement.style.top=oEventParam.clientY+offerY+100+tempElement.clientHeight/2+"px";
  tempElement.zIndex=100;
/*

  if (oEventParam.clientX>200)
  {
     tempElement.style.pixelLeft=300;
     tempElement.style.pixelTop=oEventParam.clientY+ document.body.scrollTop-tempElement.clientHeight/2;
  }
*/
  tempElement.style.visibility="visible";
}

function hidetip()  //隐藏链接的说明
{
   var tempElement=document.getElementById("tooltip");
   if (tempElement)
      tempElement.style.visibility="hidden";
}
// 显示tips 结束
//-->
