function DayOver(c) {
  if (!c) return false;
  c.style.backgroundColor='#ffffff';
  c.style.cursor='pointer';
}

function DayOut(c) {
  if (!c) return false;
  c.style.backgroundColor='#eeeeee';
  c.style.cursor='default';
}

function FlyDay(id,e) {
  MX=e.clientX+GetScrollLeft()+10;
  MY=e.clientY+GetScrollTop()+10;
  f=ID("Fly"+id);
  f.style.display='block';
  f.style.left=MX+"px";
  f.style.top=MY+"px";
}

function FlyClose(id) {
  ID("FlyRate").style.display="none";
}

function GetScrollLeft() {
  if (document.documentElement && document.documentElement.scrollLeft) // IE5/IE6
    return document.documentElement.scrollLeft;
  else if (document.body) // IE6
    return document.body.scrollLeft;
  else // Netscape
    return window.pageXOffset;
}

function GetScrollTop() {
  if (document.documentElement && document.documentElement.scrollTop) // IE5/IE6
    return document.documentElement.scrollTop;
  else if (document.body) // IE6
    return document.body.scrollTop;
  else // Netscape
    return window.pageYOffset;
}

function GetBodyWidth() {
  if (window.innerWidth)
    return window.innerWidth;
  else if (document.body.offsetWidth)
    return document.body.offsetWidth;
  else
    return 600;
}

function GetBodyHeight() {
  if (window.innerHeight)
    return window.innerHeight;
  else if (document.body.offsetHeight)
    return document.body.offsetHeight;
  else
    return 100;
}


