var IE = document.all?true:false;
if (!IE) document.captureEvents(Event.MOUSEMOVE);
var tempX = 0;
var tempY = 0;
function getMouseX(e)
{
 if (IE)
 {
 tempX = event.clientX + document.body.scrollLeft
 }
 else
 {
 tempX = e.pageX
 } 
 if (tempX < 0)
 {
  tempX = 0
 }
 return tempX
}
function getMouseY(e)
{
 if (IE)
 {
 tempY = event.clientY + document.body.scrollTop
 }
 else
 {
 tempY = e.pageY
 } 
 if (tempY < 0)
 {
  tempY = 0
 }
 return tempY
}
function input_focus(the_input)
{
 the_input.style.backgroundColor = "#C0C0FF";
 the_input.style.color = "#0000FF";
 the_input.style.fontWeight = "bold";
}
function input_blur(the_input)
{
 the_input.style.backgroundColor = "#F0F0FF";
 the_input.style.color = "#000066";
 the_input.style.fontWeight = "normal";
}
function titler()
{
  if (!document.all&&!document.getElementById)
    return;
  window.status = "MaidCare.com";
  setTimeout("titler()",0);
}
function ShowTip(the_div_name)
{
 var adjustX  = 0;
 var pop_width = parseInt(document.getElementById(the_div_name).style.width);
 var pop_top  = getMouseY();
 var pop_left = getMouseX();
 if (pop_left>pop_width)
 {
  adjustX = ((pop_width-(pop_width%2))/2);
 }
 pop_left = Math.abs(pop_left - adjustX);
 document.getElementById(the_div_name).style.top = pop_top;
 document.getElementById(the_div_name).style.left = pop_left;
 document.getElementById(the_div_name).style.visibility = 'visible';
}
function HideTip(the_div_name)
{
 document.getElementById(the_div_name).style.visibility = 'hidden';
}
function HideTip(the_div_name)
{
 document.getElementById(the_div_name).style.visibility = 'hidden';
}
function ShowMenu(the_div_name)
{
 var pop_top  = getMouseY() - 12;
 var pop_left = getMouseX() - 12;
 document.getElementById(the_div_name).style.top = pop_top;
 document.getElementById(the_div_name).style.left = pop_left;
 document.getElementById(the_div_name).style.visibility = 'visible';
}
function HideMenu(the_div_name)
{
 document.getElementById(the_div_name).style.visibility = 'hidden';
}

window.onload = titler;

