var CurrentMsg = 'hello ';                    
function update(msg) {                           
var pad_str="";                           
n = msg.length;                           
if(n<29) {                                   
pad = (30-n)/2;                                   
for(var i=0; i<pad; i++) {                                           
pad_str+=" ";                        
   }                        
}                          
CurrentMsg = pad_str + msg;                           
document.cover_message.field.value = CurrentMsg;
clearTimeout(timer);                           
timer = setTimeout("idleMsg()",3000);        
}                           
function MakeArray(n) {                           
this.length=n;                           
for(var i = 1; i<= n; i++) {                                   
this[i] = "";                
}                           
return(this);        
}               
var index = 1;           
var notice_num = 6;                   
var notices = new MakeArray(notice_num);   
notices[1] = "Welcome to Sudbury Taylor Rental"; 
notices[2] = "Serving You For Over 40 Years!"; 
notices[3] = "Planning a Children's Birthday Party?";        
notices[4] = "We rent Moonwalks, Cotton Candy..."; 
notices[5] = "...Popcorn, Sno Kone Machines..."; 
notices[6] = "Child's Tables, Chairs & Much More"; 
var timer = setTimeout('idleMsg()',22500);                   
function nochange() {                           
document.cover_message.field.value = CurrentMsg;     
}                   
function idleMsg() {                           
update(notices[index++]);                           
if(index>notice_num) { 
index=1; 
	}
}	  


