var howOften = 8; //number often in seconds to rotate
var current = 0; //start the counter at 0
var ns6 = document.getElementById&&!document.all; //detect netscape 6

// place your images, text, etc in the array elements here
var items = new Array();
items[0]="<a href='#'><img alt='School House American ' src='http://www.shopschoolhouse.com/images/american.jpg' height='309' width='732' border='0' /></a>"; //a linked image
items[1]="<a href='#'><img alt='School House Collegiate' src='http://www.shopschoolhouse.com/images/collegiate.jpg' height='309' width='732' border='0' /></a>"; //a linked image
items[2]="<a href='#'><img alt='School House Craftsmanship' src='http://www.shopschoolhouse.com/images/craftsmanship.jpg' height='309' width='732' border='0' /></a>"; //a linked image


function rotater() {
    document.getElementById("placeholder").innerHTML = items[current];
    current = (current==items.length-1) ? 0 : current + 1;
    setTimeout("rotater()",howOften*1000);
}

function rotater() {
    if(document.layers) {
        document.placeholderlayer.document.write(items[current]);
        document.placeholderlayer.document.close();
    }
    if(ns6)document.getElementById("placeholderdiv").innerHTML=items[current]
        if(document.all)
            placeholderdiv.innerHTML=items[current];

    current = (current==items.length-1) ? 0 : current + 1; //increment or reset
    setTimeout("rotater()",howOften*1000);
}
window.onload=rotater;

