// This script powers the image rotation below the lefthand navigation. It's easy to update if you have added more photos.

NumberOfImagesToRotate = 27; //how many images from the gallery you have

Link = '<a href="http://www.soupshoppe.net/images/gallery/gallery-food-';
FirstPart = '.jpg"><img class="sideimage" src="http://www.soupshoppe.net/images/gallery/thumbs/gallery-food-thumb-';
LastPart = '.jpg" alt="" /></a>';

function printImage() {
	var r = Math.ceil(Math.random() * NumberOfImagesToRotate);
	document.write(Link + r + FirstPart + r + LastPart);
}

// This script powers the image rotation on the main page of the site.

IntroImagesToRotate = 3; //how many images from the gallery you have

IntroFirst = '<img class="intro" src="http://www.soupshoppe.net/images/intro/intro-';
IntroLast = '.jpg" alt="" />';

function printIntroImage() {
	var a = Math.ceil(Math.random() * IntroImagesToRotate);
	document.write(IntroFirst + a + IntroLast);
}