<!--
var frame=530;
var index=0;
var rollin=true;
var leftoffset, rightoffset;
var e=document.getElementById("headlineId");

function next_frame() {
  e.style.visibility="visible";
  frame-=rollin; frame-=rollin; 
  if (frame>5) {
    e.style.left= (frame) + "px";
    setTimeout("next_frame()",25);
  }
  else setTimeout("next_headline()",3500);
}

function next_headline() {
  if(rollin){
    if(index<linktopic.length-1){
      index++;
    }
    else {
	  index=0;
    }
    frame=530;
    itsRollin();
  }
  else setTimeout("next_headline()",500); 
}

function itsRollin(){
  // start rolling headlines
  if(!mie55lt()&&linktopic.length) {
    if(rollin){
      document.getElementById("headlineId").innerHTML=linktopic[index]+" Headline: "+linkname[index]+" - (click here)";
      next_frame();
    }
    else setTimeout("itsRollin()",200);
  }
  else if(mie55lt()){
    document.getElementById("headlineId").innerHTML="Welcome to The Bournville Community Website for the Bournville Village Trust Areas.";
  }  
}

function stopRollin(){
  // stop rolling headlines
  rollin=false;
}
													 
function startRollin(){
  // stop rolling headlines
  rollin=true;
}

function windowOpener(http) {
   var NewWinposX=10;
   var NewWinposY=10;
   httpWindow=window.open(http,'NewWindow',config='height=450,width=630,toolbar=yes,menubar=no,scrollbars=yes,resizable=yes,location=no,directories=no, status=yes')
  httpWindow.focus();
}

function headlineLink(){
  if(!mie55lt()&&linktopic.length) {
    windowOpener(linkurl[index]);
  }
  else if(mie55lt()){
    window.alert("Please update your browser to view\nthe latest community news!!");
  }
  else window.alert("please wait while the news feed loads in!!"); 
}

//-->