/**
 * @author peter watson 888 / Dragonfish
 */

var howOften =6; //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]="<div class='testigreeting'>Hi</div>"+"<div class='testitext'>Wow I won a choccie fountain! There's my diet gone out the window hahaha.Couldn't believe i got an email from Sparkling to say I won a choccie fountain. Never won anything in my life before, what a nice surprise. It's my daughter's birthday soon and she has always wanted a chocolate fountain, thanks sparkling you've saved me some money.</div><div class='testiperson'>Janie</div><div class='testipic'><img src='images/testi/02.jpg' alt='Janie' title='Janie' /></div>";
    items[1]="<div class='testigreeting'>Hi</div>"+"<div class='testitext'>Thank you very much I was so pleased when I got your email I have never been a lucky person hope that means my luck is changing then.Thank you again Sparkling Bingo.</div><div class='testiperson'>Rosalina</div><div class='testipic'><img src='images/testi/05.jpg' alt='Rosalina' title='Rosalina' /></div>";
	items[2]="<div class='testigreeting'>Hi</div>"+"<div class='testitext'>I forgot all about the game and I went on to Sparkling Bingo and asked every 1 who had won the no 1 would say then a cm said it was me but I thought she was joking so I went on games played and it said my name I didn't think that it was me I only had 2 tickets my kidz are going to be so happy when it come thanks to Sparkling Bingo.</div><div class='testiperson'>Jane</div><div class='testipic'><img src='images/testi/06.jpg' alt='Jane' title='Jane' /></div>";
	items[3]="<div class='testigreeting'>Hi</div>"+"<div class='testitext'>I joined here as the chat is very friendly and chances of winning are so good. I would recommend Sparkling Bingo to all my family members who play elsewhere. Thank you Sparkling! Well done</div><div class='testiperson'>Lorraine</div><div class='testipic'><img src='images/testi/07.jpg' alt='Lorraine' title='Lorraine' /></div>";
function rotater() {
    if(document.layers) {
		document.removeChild(placeholderlayer);
        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;
