

// ### Initializer #################################################################

function HomeInit()
{
  RemoveFooterLastSeparator("snpFooter00");
  RemoveFooterLastSeparator("snpFooter01");

  SetSubContents();
}


// ### Method ######################################################################

function RemoveFooterLastSeparator(footerId)
{
  var snpFooter = document.getElementById(footerId);

  if (snpFooter)
  {
    var spans = snpFooter.getElementsByTagName("span");

    if (spans.length > 0)
    {
      spans[spans.length - 1].style.display = "none";
    }
  }
}

function SetSubContents()
{
  var maxHeight = 0;

  var divSubContent00 = document.getElementById("divSubContent00");
  var divSubContent01 = document.getElementById("divSubContent01");
  var divSubContent02 = document.getElementById("divSubContent02");
  var divSubContent03 = document.getElementById("divSubContent03");

  var divSubContent03Top = document.getElementById("divSubContent03Top");

  for (var i = 0; i < 3; i++)
  {
    eval("maxHeight = (divSubContent0" + i.toString() + ".offsetHeight > maxHeight) ? (divSubContent0" + i.toString() + ".offsetHeight) : (maxHeight);");
  }

  if (divSubContent03.offsetHeight < maxHeight)
  {
    divSubContent03.style.height = maxHeight.toString() + "px";
    divSubContent03Top.style.height = (maxHeight - 178 - 25).toString() + "px";
  }

  if (divSubContent01.offsetHeight < divSubContent03.offsetHeight)
  {
    divSubContent01.style.height = (divSubContent03.offsetHeight - 68).toString() + "px";
  }

  if (divSubContent02.offsetHeight < divSubContent03.offsetHeight)
  {
    divSubContent02.style.height = (divSubContent03.offsetHeight - 68).toString() + "px";
  }
}



