/* This code is Copyright (c) 1996 Nick Heinle and Athenia Associates, 
 * all rights reserved. In order to receive the right to license this 
 * code for use on your site the original code must be copied from the
 * Web site webreference.com/javascript/. License is granted to user to 
 * reuse this code on their own Web site if and only if this entire copyright
 * notice is included. Code written by Nick Heinle of webreference.com.
 */


delay = 3000;
imgNumber = 1;
totalimgNumber = 5;
anim = new Array();


/* IMPORTANT - ENTER THE DATE THE NEWS ITEMS WERE UPDATED.
 * THIS DATE ALSO MUST BE ENTERED AS THE SUFFIX FOR THE NEWS IMAGES  
 * FOLDER NAME, WHICH FORCES THE BROWSER TO LOAD THE LATEST VERSION 
 * OF THE NEWS HEADLINE IMAGES 
 */
dateUpdated = 71707;


links = new Array();
for(i=1; i<=totalimgNumber; i++) {
links[i] = "news"+i+".html"
}


for (i = 0; i < totalimgNumber; i++) {
v = i+1;
anim[v] = new Image (291, 20);
anim[v].src = 'images/news_' + dateUpdated + '/news' + v + '.gif';
} 


function Switch() {                
document.newstext.src = anim[imgNumber].src;
imgNumber++;
        if(imgNumber > totalimgNumber) imgNumber = 1;
}


function changeURL() {
linkNumber = imgNumber - 1;
if(linkNumber<1) linkNumber = totalimgNumber;
document.location.href = links[linkNumber];
}
                
function animate() {
Switch();
setTimeout("animate()", delay);
}
//-->