function makeNews(c,l,f)
{
      this.copy = c;
      this.link = l;
      this.follow = f;
      this.write = writeNews;
}

function writeNews()
{
      var str = '';
      str += this.copy + '<br><br>';
      str +=  '<a style="color:white" href="' + this.link + '">' + 
         this.follow + '</a>';
      return str;
}

var newsArray = new Array();
newsArray[0] = new makeNews(
 "<b>AAR Directive C-10390 :</b><br>"+
 "Effective January 1, 2008, use of the "+
 "AAR Data Exchange System as the method "+
 "of invoicing for repairs will become mandatory.",
 'solutions.htm',
 'The RAS Solution').write();
 
newsArray[1] = new makeNews(
 "<b>Advanced Technology Safety Initiative (ATSI) :</b><br>"+
 "Expanded implementation and usage of the Equipment "+
 "Health Management System (EHMS) industry system "+
 "is planned in 2008.",
 'solutions.htm',
 'The RAS Solution').write();
 
 newsArray[2] = new makeNews(
 "<b>Registration & Regulatory Compliance :</b><br>"+
 "The Umler committee is overseeing a multi-year redesign "+
 "to expand accessibility and improve the overall "+
 "data accuracy of the 50-year old Umler system. "+
 "The re-designed system is called the Umler "+
 "Equipment Management Information System (EMIS).",
 'solutions.htm',
 'The RAS Solution').write();
 
 
var nIndex = 0;
var timerID = null;
   
function rotateNews(){
  var len = newsArray.length;
  if(nIndex >= len)
      nIndex = 0;
      document.getElementById('stories').innerHTML = 
         newsArray[nIndex];
      nIndex++;
      timerID = setTimeout('rotateNews()',6000);
}
  function pauseNews() {
      if (timerID != null) {
         clearTimeout(timerID);
         timerID = null;
      }
   }
   
   function playNews() {
      if (timerID == null) {
         timerID = setTimeout('rotateNews()', 1000);
      }
   }



