/* Copyright (C) 2006-2011 Jan Vorel */
/* 2011.03.01 */

var ctLiteHover_Cur;

function ctLiteHover_Un()
{
  if (ctLiteHover_Cur)
  {
    ctLiteHover_Cur.style.backgroundImage = "";
    ctLiteHover_Cur = null;
  }
}

function ctLiteHover_Do(Element, ImageFile)
{
  if (ctLiteHover_Cur != Element)
  {
    if (ctLiteHover_Cur)
      ctLiteHover_Cur.style.backgroundImage = "";
  }
  ctLiteHover_Cur = Element;
  if (ctLiteHover_Cur)
  {
    ctLiteHover_Cur.style.backgroundImage = "url(" + ImageFile + ")";
    ctLiteHover_Cur.style.cursor = "hand";
  }
}

function ctLiteHover_ChildUn()
{
  ctLiteHover_Un();
}

function ctLiteHover_ChildDo(Element, DepthDiff, ImageFile)
{
  var xLong1;

  for (xLong1 = 0; xLong1 < DepthDiff; ++xLong1)
  {
    if (Element)
      Element= Element.parentNode;
  }
  ctLiteHover_Do(Element, ImageFile);
}

function ctLiteHover_Click(PreUrl)
{
  self.location.href = PreUrl;
  self.location.reload;
}

