function postNews() {
  aLI=document.getElementById('blurb').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; // change as required

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;
//}


// Multiple onload function created by: Simon Willison
// http://simonwillison.net/2004/May/26/addLoadEvent/
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();
});


///////////////////////////////////For Rotate second////////////////


function postNews1() {
  aLI1=document.getElementById('blub').getElementsByTagName('li');
  for(var i=0; i<aLI1.length; i++)  {
    aLI1[i].style.display="none";
    aLI1[i].getElementsByTagName('p')[0];
  }
  rotate1(aLI1.length-1);
};



var aLI1=[];
var timerRUN1=null;
var Speed1=8000; // change as required

function rotate1(idx1) {
  aLI1[idx1].style.display="none";
  idx1=(idx1<aLI1.length-1)? ++idx1 : 0;
  aLI1[idx1].style.display="block";
  timerRUN1=setTimeout('rotate1('+idx1+')', Speed1);
}


function addLoadEvent1(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}


addLoadEvent1(function() {
  postNews1();
});


