function toggleLayer(layerID)
{
	obj = document.getElementById(layerID);
	if (obj.style.display == 'none')
		obj.style.display = "";
	else
		obj.style.display = "none";
}	

function MakePopup(url, width, height)
{
window.open(url ,"_blank","toolbar=yes, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, copyhistory=yes, width="+width+", height=" + height)
}

function newsticker()
{
  // next character of current item
  if (i < newslist[count][0].length - 1)
  {
    i++;
    temp1 = newslist[count][0];
    temp1 = temp1.split('');
    current = current + temp1[i];
    temp2 = newslist[count][1];
    news.innerHTML = "<a href='" + temp2 + "' class='news'>" + current + "</a>";
    setTimeout('newsticker()', 45)
    return;
  }
  // new item
  i = -1; current = "";
  if (count<newslist.length-1)
    count++;
  else
    count = 0;
  setTimeout('newsticker()', 4000)
}