// JavaScript Document
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='Lighthouse Family Centre' src='images/banner1.jpg' height='300' width='490' border='0' /></a>"; //a linked image
    items[1]="<a href='#'><img alt='Lighthouse Family Centre' src='images/banner2.jpg' height='300' width='490' border='0' /></a>"; //a linked image
    items[2]="<a href='#'><img alt='Lighthouse Family Centre' src='images/banner3.jpg' height='300' width='490' border='0' /></a>"; //a linked image
    items[3]="<a href='#'><img alt='Lighthouse Family Centre' src='images/banner4.jpg' height='300' width='490' border='0' /></a>"; //a linked image
    items[4]="<a href='#'><img alt='Lighthouse Family Centre' src='images/banner5.jpg' height='300' width='490' border='0' /></a>"; //a linked image
    items[5]="<a href='#'><img alt='Lighthouse Family Centre' src='images/banner6.jpg' height='300' width='490' border='0' /></a>"; //a linked image
	items[6]="<a href='#'><img alt='Lighthouse Family Centre' src='images/banner7.jpg' height='300' width='490' border='0' /></a>"; //a linked image
    items[7]="<a href='#'><img alt='Lighthouse Family Centre' src='images/banner8.jpg' height='300' width='490' border='0' /></a>"; //a linked image
    items[8]="<a href='#'><img alt='Lighthouse Family Centre' src='images/banner9.jpg' height='300' width='490' border='0' /></a>"; //a linked image
    items[9]="<a href='#'><img alt='Lighthouse Family Centre' src='images/banner10.jpg' height='300' width='490' border='0' /></a>"; //a linked image
    items[10]="<a href='#'><img alt='Lighthouse Family Centre' src='images/banner11.jpg' height='300' width='490' border='0' /></a>"; //a linked image
    items[11]="<a href='#'><img alt='Lighthouse Family Centre' src='images/banner12.jpg' height='300' width='490' 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;
//-->

