// JavaScript Document
Xoffset= 12;
Yoffset= 10;
var isNS4=document.layers?true:false;
var isIE=document.all?true:false;
var isNS6=!isIE&&document.getElementById?true:false;
var old=!isNS4&&!isNS6&&!isIE;

var skn;
function initThis()
{
  if(isNS4)skn=document.d11;
  if(isIE)skn=document.all.d11.style;
  if(isNS6)skn=document.getElementById("d11").style;
}

var x;
var y;
function get_mouse(e)
{
  x=(isNS4||isNS6)?e.pageX:event.clientX+document.body.scrollLeft;
  y=(isNS4||isNS6)?e.pageY:event.clientY+document.body.scrollLeft;
  if(isIE&&navigator.appVersion.indexOf("MSIE 4")==-1)
	  y+=document.body.scrollTop;

  if(((isNS4 || isNS6) && x > window.innerWidth - 300) || (isIE && document.body.offsetWidth && x > document.body.offsetWidth - 300))
    skn.left=x+Xoffset - 300;
  else
    skn.left=x+Xoffset;
  skn.top=y+Yoffset;
}

function removeBox()
{
  if(!old)
    skn.visibility="hidden";
}

function popup(text)
{
  var content="<TABLE BORDER=1 WIDTH=300 BORDERCOLOR=black CELLPADDING=2 CELLSPACING=0 "+"BGCOLOR=#FFFFCC><TR><TD ALIGN=center><FONT COLOR=black SIZE=2>"+text+"</FONT></TD></TR></TABLE>";
  if(old)
    return;

	if(isNS4)
	{
	  skn.document.open();
	  skn.document.write(content);
	  skn.document.close();
	  skn.visibility="visible";
	}
	if(isNS6)
	{
	  document.getElementById("d11").style.position="absolute";
    document.getElementById("d11").style.left=x;
	  document.getElementById("d11").style.top=y;
	  document.getElementById("d11").innerHTML=content;
	  skn.visibility="visible";
	}
	if(isIE)
	{
	  document.all("d11").innerHTML=content;
	  skn.visibility="visible";
	}
}

if(isNS4)
  document.captureEvents(Event.MOUSEMOVE);
if(isNS6)
  document.addEventListener("mousemove", get_mouse, true);
if(isNS4||isIE)
  document.onmousemove=get_mouse;

initThis();
