adImages = new Array(
	"images/rotate/spld pied.jpg",
	"images/rotate/bronze pied white-eyed cock 1.jpg",
	"images/rotate/bronze pied white-eyed cock 2.jpg",
	"images/rotate/bronze white-eyed cock 2.jpg",
	"images/rotate/cameo blk. shldr. white-eyed cock 2.jpg",
	"images/rotate/charcoal cock.jpg",
	"images/rotate/opal white-eyed cock 2.jpg",
	"images/rotate/purple blk. shldr. silver pied cock 2.jpg",
	"images/rotate/spld silver pied cock 1.jpg",
	"images/rotate/india blue silver pied.jpg",
	"images/rotate/charcoal.jpg",
	"images/rotate/cameo black shoulder.jpg",
	"images/rotate/purple silver pied.jpg",
	"images/rotate/buford bronze.jpg",
	"images/rotate/india blue white eyed.jpg",
	"images/rotate/white.jpg",
	"images/rotate/opal.jpg",
	"images/rotate/spalding pied.jpg",
	"images/rotate/spalding cameo black shoulder silver pied.jpg",
	"images/rotate/spalding jade.jpg",
	"images/rotate/black shoulder silver pied.jpg",
	"images/rotate/peach.jpg");
adALT = new Array(
	"Spalding Pied",
	"Bronze Pied White Eyed Cock",
	"Bronze Pied White Eyed Cock",
	"Bronze White Eyed Cock",
	"Cameo Black Shoulder White Eyed Cock",
	"Charcoal Cock",
	"Opal White Eyed Cock",
	"Purple Black Shoulder Silver Pied Cock",
	"Spalding Silver Pied Cock",
	"India Blue Silver Pied",
	"Charcoal",
	"Cameo Black Shoulder",
	"Purple Silver Pied",
	"Buford Bronze",
	"India Blue White Eyed",
	"White",
	"Opal",
	"Spaling Pied",
	"Spalding Cameo Black Shoulder Silver Pied",
	"Spalding Jade",
	"Black Shoulder Silver Pied",
	"Peach");
	
imgCount = adImages.length;
firstTime = true;

thisAd1=0;
thisAd2=6;
thisAd3=12;
thisAd4=17;

//while loops used to make sure 2 of the the same ad is not displayed at the same time
function rotate(){
	if (document.images) {
	
		if(thisAd1>=6){thisAd1=0;}
		if(thisAd2>=12){thisAd2=6;}
		if(thisAd3>=17){thisAd3=12;}
		if(thisAd4>=21){thisAd4=17;}

		thisAd1++;
		thisAd2++;
		thisAd3++;
		thisAd4++;
		
	}
	document.adBanner1.src=adImages[thisAd1];
	document.adBanner2.src=adImages[thisAd2];
	document.adBanner3.src=adImages[thisAd3];
	document.adBanner4.src=adImages[thisAd4];

	document.adBanner1.alt=adALT[thisAd1];
	document.adBanner2.alt=adALT[thisAd2];
	document.adBanner3.alt=adALT[thisAd3];
	document.adBanner4.alt=adALT[thisAd4];

	setTimeout("rotate()",15*800);
}

