// JavaScript Document
function Mausklick (evt) {
  var pos=mouse_pos(evt);
  if (!evt)
    evt = window.event;
  if (document.getElementById) {
    document.getElementById("gif").style.left  = pos.left + "px";
    document.getElementById("gif").style.top = (pos.top+10) + "px";
  } else if (document.all) {
    document.all.gif.style.left = pos.left;
    document.all.gif.style.top = pos.top+10;
  }
}

function mouse_pos(evt)
{
    if(!evt) evt = window.event;
    var pos = { left: evt.clientX, top:evt.clientY };

    var b = (window.document.compatMode && window.document.compatMode == "CSS1Compat") ?
    window.document.documentElement : window.document.body || null;

    if (b)
    {
        pos.left += b.scrollLeft;
        pos.top +=  b.scrollTop;
    }
    return pos;
}


document.onmousemove = Mausklick;

