<!--
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 = "e1.jpg";
imageArray1.src = "e4.jpg";
imageArray2.src = "e7.jpg";
imageArray3.src = "e9.jpg";
imageArray4.src = "e10.jpg";
imageArray5.src = "e17.jpg";
imageArray6.src = "e19.jpg";
imageArray7.src = "e25.jpg";
imageArray8.src = "e29.jpg";
imageArray9.src = "e35.jpg";
imageArray10.src = "e39.jpg";
imageArray11.src = "e40.jpg";
hasLoaded = 1;
checkText(0);
}
function checkText(apoint) {
if(apoint == 0) {document.imageForm.imageText.value = "Welcome to the Perth, Stewart Park Festival. 2 1/2 days of music, entertainment, and fun in the sun.";}
if(apoint == 1) {document.imageForm.imageText.value = "Face painting is available for the kids.";}
if(apoint == 2) {document.imageForm.imageText.value = "Saturday & Sunday mornings from 9 to noon is kids time.";}
if(apoint == 3) {document.imageForm.imageText.value = "There is lots of good food and fun.";}
if(apoint == 4) {document.imageForm.imageText.value = "When the kids needed a little relief from the heat of the day, the Tay river which bisects the Park is here.";}
if(apoint == 5) {document.imageForm.imageText.value = "Of course, don't forget ballons for the little ones.";}
if(apoint == 6) {document.imageForm.imageText.value = "Many enjoyed sitting along the river's bank while the bands played on.";}
if(apoint == 7) {document.imageForm.imageText.value = "Back stage.";}
if(apoint == 8) {document.imageForm.imageText.value = "Subway was there one year giving out FREE subs to those who were hungry. Thanks Subway.";}
if(apoint == 9) {document.imageForm.imageText.value = "The melodic sound radiates outwards in all directions throughout the entire Park.";}
if(apoint == 10) {document.imageForm.imageText.value = "Just kick-back and relax.";}
if(apoint == 11) {document.imageForm.imageText.value = "OOPS!  Better get going, the music's starting......  ";}
}
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);
}
//-->
