<!--
var point = 0;
var oldPoint = 0;
var numImages = 11;
var hasLoaded = 0;
function loadImages() {
dotArray0 = new Image();
dotArray1 = new Image();
dotArray2 = new Image();
dotArray3 = new Image();
dotArray4 = new Image();
dotArray5 = new Image();
dotArray6 = new Image();
dotArray7 = new Image();
dotArray8 = new Image();
dotArray9 = new Image();
dotArray10 = new Image();
dotArray11 = new Image();	
dotArray0.src = "indicatedDot.gif";
dotArray1.src = "blankDot.gif";
dotArray2.src = "blankDot.gif";
dotArray3.src = "blankDot.gif";
dotArray4.src = "blankDot.gif";
dotArray5.src = "blankDot.gif";
dotArray6.src = "blankDot.gif";
dotArray7.src = "blankDot.gif";
dotArray8.src = "blankDot.gif";
dotArray9.src = "blankDot.gif";
dotArray10.src = "blankDot.gif";
dotArray11.src = "blankDot.gif";
imageArray0 = new Image();
imageArray1 = new Image();
imageArray2 = new Image();
imageArray3 = new Image();
imageArray4 = new Image();
imageArray5 = new Image();
imageArray6 = new Image();
imageArray7 = new Image();
imageArray8 = new Image();
imageArray9 = new Image();
imageArray10 = new Image();
imageArray11 = new Image();
imageArray0.src = "fe1.jpg";
imageArray1.src = "fe2.jpg";
imageArray2.src = "fe5.jpg";
imageArray3.src = "fe7.jpg";
imageArray4.src = "fe9.jpg";
imageArray5.src = "fe11.jpg";
imageArray6.src = "fe14.jpg";
imageArray7.src = "fe22.jpg";
imageArray8.src = "fe23.jpg";
imageArray9.src = "fe26.jpg";
imageArray10.src = "fe32.jpg";
imageArray11.src = "fe39.jpg";
hasLoaded = 1;
checkText(0);
}
function checkText(apoint) {
if(apoint == 0) {document.imageForm.imageText.value = "Welcome to the Annual Perth Garlic Festival.";}
if(apoint == 1) {document.imageForm.imageText.value = "At only $5.00 per Adult ... and children are Free, it's a great experience.";}
if(apoint == 2) {document.imageForm.imageText.value = "Talks on garlic are given all day long by various experts in their fields.";}
if(apoint == 3) {document.imageForm.imageText.value = "Brading garlic is part of the educational talks and plently is available for sale.";}
if(apoint == 4) {document.imageForm.imageText.value = "Many vendors are offering preserves with garlic in them. um um good";}
if(apoint == 5) {document.imageForm.imageText.value = "One of the major festival draws is the many cooking demonstrations in the air-conditioned hall.";}
if(apoint == 6) {document.imageForm.imageText.value = "Thanks to the folks in the information booth, everyone can find what they are looking for.";}
if(apoint == 7) {document.imageForm.imageText.value = "It's always nice to have some of the local entertainment playing in the background.";}
if(apoint == 8) {document.imageForm.imageText.value = "The crowd is equally heavy both days of the Festival.";}
if(apoint == 9) {document.imageForm.imageText.value = "The Commerce Building is great to get in out of the sun and explore some of the vendor booths.";}
if(apoint == 10) {document.imageForm.imageText.value = "Honey-Garlic Ribs anyone?";}
if(apoint == 11) {document.imageForm.imageText.value = "Crafts galore.";}
}
function moveDot(indexNum) {
if (hasLoaded == 1) {
theOldLocation = new Image();
theOldLocation = eval("dotArray"+oldPoint);
theOldLocation.src = "blankDot.gif";
theNewLocation = new Image();
theNewLocation = eval("dotArray"+point);
theNewLocation.src = "indicatedDot.gif";
document.dotImage0.src = dotArray0.src;
document.dotImage1.src = dotArray1.src;
document.dotImage2.src = dotArray2.src;
document.dotImage3.src = dotArray3.src;
document.dotImage4.src = dotArray4.src;
document.dotImage5.src = dotArray5.src;
document.dotImage6.src = dotArray6.src;
document.dotImage7.src = dotArray7.src;
document.dotImage8.src = dotArray8.src;
document.dotImage9.src = dotArray9.src;
document.dotImage10.src = dotArray10.src;
document.dotImage11.src = dotArray11.src;
}
}
function changeImage(num) {
if (hasLoaded == 1) {
oldPoint = point;
if((point != numImages) && (num == 1)) { //move one forward
point += num;
var image = eval ("imageArray"+point+".src");
document.mainImage.src = image;
}
else if((point == numImages) && (num == 1)) { //wrap forward from ending to beginning
point = 0;
var image = eval ("imageArray"+point+".src");
document.mainImage.src = image;
}
else if((point != 0) && (num == -1)) { //move one backward
point += num;
var image = eval ("imageArray"+point+".src");
document.mainImage.src = image;
}
else if((point == 0) && (num == -1)) { //wrap backward from beginning to ending
point = numImages;
var image = eval ("imageArray"+point+".src");
document.mainImage.src = image;
}
moveDot(point);
checkText(point);
}
}
function setPoint(picNum) {
oldPoint = point;
point = picNum;
var image = eval ("imageArray"+point+".src");
document.mainImage.src = image;
checkText(point);
}
//-->
