// JavaScript Document

<!--
//set image paths
src = [
    "./new-images/image-04.jpg",
    "./new-images/image-02.jpg",
    "./new-images/image-03.jpg",
    "./new-images/image-01.jpg"
]

//set corresponding urls
url = [
"http://doyle.lib.muohio.edu/cdm4/snyder",
"http://doyle.lib.muohio.edu/cdm4/mcguffey",
"http://doyle.lib.muohio.edu/cdm4/westernnews",
]

//duration for each image
duration = 3;

//Please do not edit below
ads=[]; ct=0;
function switchAd() {
var n=(ct+1)%src.length;
if (ads[n] && (ads[n].complete || ads[n].complete==null)) {
document["images"].src = ads[ct=n].src;
}
ads[n=(ct+1)%src.length] = new Image;
ads[n].src = src[n];
setTimeout("switchAd()",duration*1000);
}
function doLink(){
location.href = url[ct];
} onload = function(){
if (document.images)
switchAd();
}
//-->
