wmtt = null;
document.onmousemove = updateWMTT;
function updateWMTT(e){
  if (wmtt != null){
    x = (document.all)?window.event.x + wmtt.offsetParent.scrollLeft: e.pageX;
    y = (document.all)?window.event.y + wmtt.offsetParent.scrollTop: e.pageY;
    wmtt.style.left=(x + 20) + "px";
    wmtt.style.top =(y + 20) + "px";
  }
}
function showWMTT(id){
  wmtt = document.getElementById(id);
  wmtt.style.display="block"
  showPic(id);
}
function hideWMTT(){
  wmtt.style.display="none";
}

var xmlHttpObject=false;
if(typeof XMLHttpRequest != 'undefined'){
  xmlHttpObject=new XMLHttpRequest();
}
if(!xmlHttpObject){
  try{
  xmlHttpObject=new ActiveXObject("Msxml2.XMLHTTP");
  }
catch(e){
  try{
    xmlHttpObject=new ActiveXObject("Microsoft.XMLHTTP");
    }
    catch(e){
      xmlHttpObject=null;
    }
  }
}
function showPic(obj){
  id=obj;
  xmlHttpObject.open('get','/show.php?load='+id);
  xmlHttpObject.onreadystatechange = handleContent;
  xmlHttpObject.send(null);
  return false;

}
function handleContent(obj){
  if (xmlHttpObject.readyState == 4){
    document.getElementById(id).innerHTML = xmlHttpObject.responseText;
  }
}
function stopPic(){
  document.getElementById(id).innerHTML = '';
}