
var isecs=12
var tmr

function fCountDown()
{
 var m

 isecs=isecs-1
 if(isecs<0)
 {
  fStop();
  return false;
 }
 if(isecs==1)fFade()
 
 if(document.all!=null)
 {
  m=document.all["countdown"]
  m.innerText = isecs
 }
 else
 {
  if (document.getElementById) 
  {
   m=document.getElementById("countdown")
   m.innerHTML = isecs
  }
 }

 tmr=setTimeout("fCountDown()",1000);

}

function fFade()
{
 var m

 if(document.all!=null)
 {
  m=document.all["msg"]
  m.style.backgroundColor="#FFFFFF"
  m.style.color="#CCCCCC"
  m.style.borderColor="#CCCCCC"
 }
 else
 {
  if (document.getElementById) 
  {
   m=document.getElementById("msg")
   m.style.backgroundColor="#FFFFFF"
   m.style.color="#CCCCCC"
   m.style.borderColor="#CCCCCC"
  }
 }
}

function fStop()
{
 clearTimeout(tmr)

 var m
 if(document.all!=null)
 {
  m=document.all["msg"]
  m.style.visibility="hidden"
 }
 else
 {
  if (document.getElementById) 
  {
   m=document.getElementById("msg")
   m.style.visibility="hidden"
  }
 }
 document.onmousemove=null
}


function fMove(evnt)
{
 var e = evnt || window.event;
 var m

 if(document.all!=null)
 {
  m=document.all["msg"]
  m.style.pixelLeft = e.x + document.body.scrollLeft + 20
  m.style.pixelTop = e.y + document.body.scrollTop - 25
  m.style.visibility="visible"
 }
 else
 {
  if (document.getElementById) 
  {
   m=document.getElementById("msg")
   m.style.left=e.pageX + 20
   m.style.top=e.pageY - 25
   m.style.visibility="visible"
  }
 }
}

document.onmousemove=fMove
fCountDown()
