var myJerky = new Array();
myJerky[1] = new Image();
myJerky[2] = new Image();
myJerky[3] = new Image();
myJerky[4] = new Image();
myJerky[5] = new Image();

myJerky[1].src = "./pics/regulars.jpg";
myJerky[2].src = "./pics/spicys.jpg";
myJerky[3].src = "./pics/hots.jpg";
myJerky[4].src = "./pics/oltimes.jpg";
myJerky[5].src = "./pics/porks.jpg";

var process = new Array();
process[1] = new Image();
process[2] = new Image();
process[3] = new Image();
process[4] = new Image();
process[5] = new Image();
process[6] = new Image();
process[7] = new Image();
process[8] = new Image();
process[9] = new Image();
process[10] = new Image();

process[1].src = "./pics/marinate1sm1.jpg";
process[2].src = "./pics/refrigerate1sm1.jpg";
process[3].src = "./pics/laying outsm.jpg";
process[4].src = "./pics/racksm.jpg";
process[5].src = "./pics/in the driersm.jpg";
process[6].src = "./pics/dried racks1sm.jpg";
process[7].src = "./pics/jerkysm.jpg";
process[8].src = "./pics/storedsm.jpg";
process[9].src = "./pics/sealed1sm.jpg";
process[10].src = "./pics/mail outsm.jpg";

var Captions = new Array();
Captions[1] = "We start with the leanest cuts of beef (TOP ROUNDS), which are guaranteed to be up to 97% fat free. We then ";
Captions[1] += "trim and inspect each round before slicing them into strips.";
Captions[2] = "These strips of pure beef are then placed into our secret blend of spices and herbs and returned to the ";
Captions[2] += "refrigerator to marinate for at least 24 hrs.";
Captions[3] = "After marinating, our beef strips are drained, and placed on stainless steel racks.";
Captions[4] = "The drier racks before any meat has been placed in them.";
Captions[5] = "The strips are then placed into stainless steel dryers where it is air dried and the temperature is closely ";
Captions[5] += "monitored to insure that any bacteria, which could possibly be present, would be killed.";
Captions[6] = "After a certain amount of time the jerky is finished.";
Captions[7] = "Here is the jerky fresh out of the drier.";
Captions[8] = "After drying our jerky it is placed into containers and allowed to cool before being packaged for shipment.";
Captions[9] = "The jerky is sealed into bags for freshness.";
Captions[10] = "The jerky is ready to be shipped wherever the post office will go.";

var speed = new Array();
speed[1] = 2500;
speed[2] = 2500;
speed[3] = 2500;
speed[4] = 2500;
speed[5] = 2500;
speed[6] = 2500;

var slide = 0;
var totalslide = myJerky.length - 1;
var timer = " ";

function startBanner()
{
	slide = 0;
	showSlide();
}
	
function showSlide()
{
	if (document.images){
		if (document.JerkySlides.complete) {
			slide ++;
			(slide > totalslide) ? slide = 1 : slide = slide;
			document.JerkySlides.src = myJerky[slide].src;
		}
		timer = setTimeout("showSlide()", speed[slide]);
	}
}

var slidenumber = 2;
var total = process.length - 1;

function Slides(direction)
{
	if (direction ==  "next")
	{
		(slidenumber == total) ? slidenumber = 1 : slidenumber++;
	}else{
		(slidenumber == 1) ? slidenumber = total : slidenumber--;
	}
	if (document.images) {
		document.slidecontrols.seetheshow.src = process[slidenumber].src; //enter the caption later
		document.slidecontrols.descriptions.value = Captions[slidenumber];
	}
}	
	