var currentItem = 0;
function newsItem(item)
{
    if (currentItem != item)
    {
        var el;
        el = document.getElementById("Scrolling_News_Item" + currentItem);
        if (el)
        {
            el.style.display = "none";
        }

        el = document.getElementById("Scrolling_News_Item" + item);
        if (el)
        {
            el.style.display = "";
        }
        currentItem = item;
    }
}
var currentIndicesItem = 0;
function indicesItem(item)
{
    if (currentIndicesItem != item)
    {
        var el;
        el = document.getElementById("Scrolling_Indices_Item" + currentIndicesItem);
        if (el)
        {
            el.style.display = "none";
        }

        el = document.getElementById("Scrolling_Indices_Item" + item);
        if (el)
        {
            el.style.display = "";
        }
        currentIndicesItem = item;
    }
}
/*
body.onload = function {
var random = Math.floor(Math.random()*5) + 1;
newsItem(random);
}

function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}
*/