var outMsg = "";
var i = 0;
var lineNo = 1;
var timerDM=null;
var msg = " ";
function araVob() {
}
var ScreenLine = new araVob();



ScreenLine[2]  = "Friday, March 27th: The Parents' Association is holding an Auction and Greek Dinner at SSS starting at 7 pm.\f";

ScreenLine[1]  = "The March-April issue of the parents' Association Newsletter is online. Read the articles by various contributors. Important information.\f";

ScreenLine[3]  = "Thursday April 9th - First day of Spring vacation.\f";

ScreenLine[4]  = "Wednesday April 22 to Saturday April 25 - Drama Production.\f";


var msgNum = 1;          
var msgCnt = 4;         
var typeSpeed = 30;       
var pageLen =5;        
var delay=typeSpeed;
var r = 0;
var cr="\r\n"
if ("3" <=navigator.appVersion.charAt(0)) { 
  var cr="\n"
}
for (x = 1; x<=(msgCnt); x++) {  
  ScreenLine[x] = ScreenLine[x] + cr;
}
msg = ScreenLine[1];

function DisplayMsg() {  
  if (msg.length <= i || msg.charAt(i) == "\f") {
    r=i;
    i=0;
    ChangeMsg();
}  
outMsg = outMsg + msg.charAt(i);
i++;   
if (msg.charAt(i) == "\f" || (lineNo == pageLen && i==msg.length)) {    
  delay = 4000; }  
else {  
if (msg.charAt(i) == cr && msg != " "+cr) {    
  delay = 2000; }  
else {    
  delay = typeSpeed; }   
}  
self.document.forms[0].elements[0].value=outMsg;  
timerDM = setTimeout("DisplayMsg()",delay);
}

function ChangeMsg() { 
  msgNum++;
   if (msgCnt < msgNum) {
   msgNum = 1;
} 
lineNo++;
if (pageLen < lineNo || msg.charAt(r) == "\f") {  
  outMsg=ScreenLine[msgNum].charAt(i);
  i++;
  lineNo = 1;
}  
msg = ScreenLine[msgNum];
}

function quitDisplay() {
  self.document.forms[0].elements[0].value = "Loading NEWS ...";
}
// -->