﻿<!-- configurable script -->
theimage = new Array();


// The dimensions of ALL the images should be the same or some of them may look stretched or reduced in Netscape 4.
// Format: theimage[...]=[image URL, link URL, name/description]
theimage[0]=["http://www.many-miniatures.com/prime/photos/logo_mm.gif", "http://www.many-miniatures.com/prime/divisions.asp", ""];
theimage[1]=["http://www.many-miniatures.com/prime/photos/specials/fb10-06.jpg", "http://www.many-miniatures.com/prime/feature.asp", ""];
theimage[2]=["http://www.many-miniatures.com/prime/inventory/pvc/animals/se07.jpg", "http://www.many-miniatures.com/prime/cat_aquatic.asp", ""];
theimage[3]=["http://www.many-miniatures.com/prime/inventory/pvc/animals/se01.jpg", "http://www.many-miniatures.com/prime/cat_aquatic.asp", ""];
theimage[4]=["http://www.many-miniatures.com/prime/inventory/pvc/animals/wh13.jpg", "http://www.many-miniatures.com/prime/cat_aquatic.asp", ""];
theimage[5]=["http://www.many-miniatures.com/prime/inventory/pvc/animals/sk06.jpg", "http://www.many-miniatures.com/prime/cat_aquatic.asp", ""];
theimage[6]=["http://www.many-miniatures.com/prime/photos/specials/uglyplush_1.jpg", "http://www.many-miniatures.com/prime/sale_ugly.asp", ""];
theimage[7]=["http://www.many-miniatures.com/prime/inventory/pvc/cartoons/ugly01a.jpg", "http://www.many-miniatures.com/prime/sale_ugly.asp", ""];
theimage[8]=["http://www.many-miniatures.com/prime/inventory/pvc/cartoons/ugly02a.jpg", "http://www.many-miniatures.com/prime/sale_ugly.asp", ""];
theimage[9]=["http://www.many-miniatures.com/prime/inventory/pvc/cartoons/ugly03a.jpg", "http://www.many-miniatures.com/prime/sale_ugly.asp", ""];
theimage[10]=["http://www.many-miniatures.com/prime/inventory/pvc/cartoons/ugly04a.jpg", "http://www.many-miniatures.com/prime/sale_ugly.asp", ""];
theimage[11]=["http://www.many-miniatures.com/prime/inventory/pvc/cartoons/ugly05a.jpg", "http://www.many-miniatures.com/prime/sale_ugly.asp", ""];
theimage[12]=["http://www.many-miniatures.com/prime/inventory/pvc/cartoons/ugly06a.jpg", "http://www.many-miniatures.com/prime/sale_ugly.asp", ""];
theimage[13]=["http://www.many-miniatures.com/prime/photos/Wild-Safari_front.jpg", "http://www.many-miniatures.com/prime/cat_wild.asp", ""];
theimage[14]=["http://www.many-miniatures.com/prime/photos/logos/logo_twitter.jpg", "http://www.twitter.com/manyminiatures", ""];

///// Plugin variables

playspeed=3500;// The playspeed determines the delay for the "Play" button in ms
//#####
//key that holds where in the array currently are
i=0;


//###########################################
window.onload=function(){

	//preload images into browser
	preloadSlide();

	//set the first slide
	SetSlide(0);

	//autoplay
	PlaySlide();
}

//###########################################
function SetSlide(num) {
	//too big
	i=num%theimage.length;
	//too small
	if(i<0)i=theimage.length-1;

	//switch the image
	document.images.imgslide.src=theimage[i][0];

}


//###########################################
function PlaySlide() {
	if (!window.playing) {
		PlayingSlide(i+1);
		if(document.slideshow.play){
			document.slideshow.play.value="   Stop   ";
		}
	}
	else {
		playing=clearTimeout(playing);
		if(document.slideshow.play){
			document.slideshow.play.value="   Play   ";
		}
	}
	// if you have to change the image for the "playing" slide
	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];
	}
}


