var dom = (document.getElementById) ? true : false;
var moz = (dom && (navigator.appName=="Netscape")) ? true : false;

// Mozilla
function moveHintsN(e)
{
  xoff = window.pageXOffset + e.clientX - 200;
  document.getElementById('hints').style.left = xoff + "px";
  document.getElementById('hints').style.top = window.pageYOffset + e.clientY + 10 + "px";
  document.getElementById('hints').style.visibility = "visible";
}

function hideHintsN(e)
{
  document.onmousemove = null;
  document.onmouseout = null;
    document.getElementById('hints').style.visibility = "hidden";
}

// IE
function moveHints()
{
  if (moz) return;
    xoff = 0;
    yoff = 0;
  xoff += window.event.clientX + document.documentElement.scrollLeft - 200;
  yoff += window.event.clientY + document.documentElement.scrollTop + 10;
  document.getElementById('hints').style.left = xoff;
  document.getElementById('hints').style.top = yoff;
}

function hideHints()
{
  if (moz) return;
  document.getElementById('hints').style.visibility = "hidden";
}

function showHints(text)
{
  if (text == "") return;
  document.getElementById('hints').innerHTML = text;

  if (moz)
    { // for Mozilla
    document.onmousemove = moveHintsN;
    document.onmouseout = hideHintsN;
    return;
  }
    else
    { // for IE & Opera
    moveHints();
    document.getElementById('hints').style.visibility = "visible";
    }
}


// Mozilla
function moveHintsN1(e)
{
  xoff = window.pageXOffset + e.clientX - 200;
  document.getElementById('hints_verif').style.left = xoff + "px";
  document.getElementById('hints_verif').style.top = window.pageYOffset + e.clientY + 10 + "px";
  document.getElementById('hints_verif').style.visibility = "visible";
}

function hideHintsN1(e)
{
  document.onmousemove = null;
  document.onmouseout = null;
    document.getElementById('hints_verif').style.visibility = "hidden";
}

// IE
function moveHints1()
{
  if (moz) return;
    xoff = 0;
    yoff = 0;
  xoff += window.event.clientX + document.documentElement.scrollLeft - 200;
  yoff += window.event.clientY + document.documentElement.scrollTop + 10;
  document.getElementById('hints_verif').style.left = xoff;
  document.getElementById('hints_verif').style.top = yoff;
}

function hideHints1()
{
  if (moz) return;
  document.getElementById('hints_verif').style.visibility = "hidden";
}

function showHints1()
{
  if (moz)
    { // for Mozilla
    document.onmousemove = moveHintsN1;
    document.onmouseout = hideHintsN1;
    return;
  }
    else
    { // for IE & Opera
    moveHints1();
    document.getElementById('hints_verif').style.visibility = "visible";
    }
}


function view_full_list(id)
{
   id1 = "a" + id;
   el = document.getElementById(id);
   el1 = document.getElementById(id1);
   el.style.display = 'block';
   el1.style.display = 'none';
}
function hide_full_list(id)
{
   id1 = "a" + id;
   el = document.getElementById(id);
   el1 = document.getElementById(id1);
   el.style.display = 'none';
   el1.style.display = 'block';
}