
playspeed=6500;
i=0;
window.onload=function(){
	SetSlide(0);
	PlaySlide();
	PreloadSlide();
}
function SetSlide(num) {
	i=num%theimage.length;
	if(i<0)i=theimage.length-1;
	document.images.imgslide.src=theimage[i][0];
	document.getElementById('slidebox').innerHTML=theimage[i][2];
document.getElementById('slidecount').innerHTML= "<b>"+(i+1)+"</b>/<b>"+theimage.length+"</b>";
}
function PlaySlide() {
	if (!window.playing) {
		PlayingSlide(i+1);
		if(document.slideshow.play){
		}
	}
	if(document.images.imgPlay){
		setTimeout('document.images.imgPlay.src="'+imgStop+'"',1);
		imgStop=document.images.imgPlay.src
	}
}
function PlayingSlide(num) {
	playing=setTimeout('PlayingSlide(i+1);SetSlide(i+1);', playspeed);
}
function PreloadSlide() {
	for(k=0;k<theimage.length;k++) {
		theimage[k][0]=new Image().src=theimage[k][0];
	}
}
