// JavaScript Document
function getInternetExplorerVersion()
// Returns the version of Internet Explorer or a -1
// (indicating the use of another browser).
{
  var rv = -1; // Return value assumes failure.
  if (navigator.appName == 'Microsoft Internet Explorer')
  {
    var ua = navigator.userAgent;
    var re  = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
    if (re.exec(ua) != null)
      rv = parseFloat( RegExp.$1 );
  }
  return rv;
}

function mousepop(id)
{
  var ver = getInternetExplorerVersion();

  if (ver == 8.0)   {
var mousn = document.getElementById(id);
mousn.style.height = "70px";
mousn.style.visibility = "visible";
mousn.style.bottom = "0px";
  }  else  {
  var mouse = document.getElementById(id);
  var high = 1;
  var bott = 35;
  mouse.style.visibility = "visible";

  function frame() {
    high++  // update parameters 
    mouse.style.height = high + 'px' // show frame 
    if (high == 70)  // check finish condition
      clearInterval(time)
	};
  function frame2() {
  	bott--
	mouse.style.bottom = bott + 'px'
	if (bott == 0)
	  clearInterval(time2)
	};

  var time = setInterval(frame, 4); // draw every 10ms
  var time2 = setInterval(frame2, 8);
 } }

function mousegone(id) {
var mousn = document.getElementById(id);
mousn.style.height = "1px";
mousn.style.visibility = "hidden";
mousn.style.bottom = "35px";
}
