function postNews() 

{

  aLI=document.getElementById('news').getElementsByTagName('li');

  for(var i=0; i<aLI.length; i++)  {

    aLI[i].style.display="none";

    aLI[i].getElementsByTagName('p')[0];

}

  

rotate(aLI.length-1);

};



var aLI=[];

var timerRUN=null;

var Speed=8000; // lengthen or shorten time as desired



function rotate(idx)

{

  aLI[idx].style.display="none";

  idx=(idx<aLI.length-1)? ++idx : 0;

  aLI[idx].style.display="block";

  timerRUN=setTimeout('rotate('+idx+')', Speed);

}



function inView()

{

  var newsItem=0;

  for(var i=0; i<aLI.length; i++) 

{

    if(aLI[i].style.display=="block") {newsItem= i;}

  }

  return newsItem;

}





function addLoadEvent(func)

{

  var oldonload = window.onload;

  if (typeof window.onload != 'function') 

{

    window.onload = func;

  } else {

    window.onload = function() {

      if (oldonload) {

        oldonload();

      }

      func();

    }

  }

}



addLoadEvent(function() 

{



postNews();

});



