var howOften = 10; //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='/page/listowel/' ><img alt='Listowel' src='/images/rotater/listowel1.jpg' height='291' width='458' border='0' /></a>"; //a linked image
	items[1]="<a href='/page/simcoe/'><img alt='Simcoe' src='/images/rotater/simcoe1.jpg' height='291' width='458' border='0' /></a>"; //a linked image
    items[2]="<a href='/page/simcoe/'><img alt='Simcoe' src='/images/rotater/simcoe2.jpg' height='291' width='458' border='0' /></a>"; //a linked image
    items[3]="<a href='/page/woodstock/'><img alt='Woodstock' src='/images/rotater/woodstock1.jpg' height='291' width='458' border='0' /></a>"; //a linked image
	items[4]="<a href='/page/woodstock/'><img alt='Woodstock' src='/images/rotater/woodstock2.jpg' height='291' width='458' border='0' /></a>"; //a linked image	
		items[5]="<a href='/page/stratford/'><img alt='Stratford' src='/images/rotater/stratford1.jpg' height='291' width='458' border='0' /></a>"; //a linked image
	items[6]="<a href='/page/london/'><img alt='London' src='/images/rotater/london1.jpg' height='291' width='458' border='0' /></a>"; //a linked image
	items[7]="<a href='/page/london/'><img alt='London' src='/images/rotater/london2.jpg' height='291' width='458' border='0' /></a>"; //a linked image
	items[8]="<a href='/page/stthomas/'><img alt='St. Thomas' src='/images/rotater/stthomas1.jpg' height='291' width='458' border='0' /></a>"; //a linked image
	items[9]="<a href='/page/haonver/'><img alt='Hanover' src='/images/rotater/hanover1.jpg' height='291' width='458' 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;

