//Scripts ©2001 Charles Houghton-Webb
var SpotArray = new Array(16);BWArray=new Array(8);ColStr=new Array(0,0,0);onoff=1;Cols=0;
//

function plspots(pth){
for(i=0;i<8;i+=1){
	nt=i+97;
	lett=String.fromCharCode(nt);
	pth0 = pth + lett + "0.gif";
	SpotArray[i*2]=new Image();
	SpotArray[i*2+1]=new Image();
	SpotArray[i*2].src=pth0;
	SpotArray[i*2+1].src=pth0;
	}
for(i=5;i<8;i+=1){
	nt=i+97;
	lett=String.fromCharCode(nt);
	pth0=pth + lett + "1.gif";
	SpotArray[i*2]=new Image();
	SpotArray[i*2].src=pth0;
	}
	for(i=0;i<8;i+=1){
		BWArray[i]=new Image();
		pth0=pth + String(i) + ".gif";
		BWArray[i].src=pth0;
	}
}
//
function anim(cnt,state) {
state=Math.round(Math.random());
i=((cnt-1)*2)+state;
thename="spot" + String(cnt);
eval(docstr + thename).src=SpotArray[i].src;
onoff=Math.abs(state-1);
j=cnt-6;
ColStr[j]=onoff;
Cols=ColStr[0]*4+ColStr[1]*2+ColStr[2]*1;
eval(docstr + "bwmusic").src=BWArray[Cols].src;
cnt++;if(cnt==9){cnt=6};
fnct="anim(" + cnt + "," + state + ")";
thetimer=window.setTimeout(fnct,500);
}
//
