<!--

var countImage;
var imageNumber;
var returnString;
var nav;
var navLast;
var navNext;
var imageArray;
var imageArray = new Array();
imageArray[0] = ["1today.gif", "Party!"]
imageArray[1] = ["aeroplane.gif", "NEOWWWWWWWWNNN!!!"]
imageArray[2] = ["braino.gif", "Not so clever now, are we?"]
imageArray[3] = ["bsod.gif", "Blue brain of death"]
imageArray[4] = ["tequila.gif", "A good night out"]
imageArray[5] = ["drinkbrains.gif", "The healthy alternative"]
imageArray[6] = ["fatso.gif", "Fatso"]
imageArray[7] = ["cones2.gif", "Contraflow madness"]
imageArray[8] = ["hammer.gif", "Giant novelty hammers for sale!"]
imageArray[9] = ["miracle-gro.gif", "Mmmm... dandelion and burdock..."]
imageArray[10] = ["iloveyoumum.gif", "Happy Mother's Day"]
imageArray[11] = ["iq0.gif", "That's you, that is"]
imageArray[12] = ["magnetcow1.gif", "Disappointment..."]
imageArray[13] = ["magnetcow2.gif", "...leads to exaltation"]
imageArray[14] = ["no_surrealism.gif", "But Percival, I was just starting to enjoy myself!"]
imageArray[15] = ["obey.gif", "OBEY!"]
imageArray[16] = ["qed.gif", "You know it makes sense"]
imageArray[17] = ["surprise.gif", "SURPRISE!... bugger"]
imageArray[18] = ["bungee.gif", "Bungeeeeeeeeeeeoooooooowwwww!"]
imageArray[19] = ["trumpetspider.gif", "Dance!"]
imageArray[20] = ["spider2.gif", "Dance some more!"]
imageArray[21] = ["willyshakespeare.gif", "Never eat yellow snow"]
imageArray[22] = ["fido.gif", "Talking dog vs. robot - robot wins"]
imageArray[23] = ["neeeown.gif", "Neeeown!"]
imageArray[24] = ["pnownng.gif", "Pnownng!"]
imageArray[25] = ["writing1.gif", "Writing 1"]
imageArray[26] = ["writing2.gif", "Writing 2"]
imageArray[27] = ["writing3.gif", "Writing 3"]
imageArray[28] = ["writing4.gif", "Writing 4"]
imageArray[29] = ["writing5.gif", "Writing 5"]
imageArray[30] = ["art1.gif", "Art 1"]
imageArray[31] = ["art2.gif", "Art 2"]
imageArray[32] = ["art3.gif", "Art 3"]
imageArray[33] = ["art4.gif", "Art 4"]
imageArray[34] = ["art5.gif", "Art 5"]
imageArray[35] = ["cucumber.gif", "Cucumber"]
imageArray[36] = ["pencil.gif", "Pencil"]
imageArray[37] = ["eatssheep.gif", "Sheep-eater"]
imageArray[38] = ["sausages.gif", "Sausages"]
imageArray[39] = ["greaterthings.gif", "Greater things"]
imageArray[40] = ["getlost.gif", "Get lost"]
imageArray[41] = ["albertsays.gif", "Albert"]
imageArray[42] = ["spacemonkeyscrabble.gif", "Scrabble"]
imageArray[43] = ["tootstrumpet.gif", "Toots Trumpet"]
imageArray[44] = ["octopus.gif", "Octopus"]
imageArray[44] = ["hamtoucher.gif", "Keep reaching for that ham"]
imageArray[45] = ["eatyblob.gif", "Mmmm... tasty."]
imageArray[46] = ["raincloud.gif", "Raindrops keep falling on my head..."]
imageArray[47] = ["pop.gif", "POP!"]
imageArray[48] = ["stickr.gif", "StickR 2.0"]
imageArray[49] = ["shark.gif", "The sneaky little blighter..."]


function startUp() {
countImage = 0;
imageNumber = imageArray.length - 1;
returnImages();
}

function advance(){
countImage++;
returnImages();
}

function retreat(){
countImage--;
returnImages();
}

function createNav(){
createLast();
createNext();
nav = navLast + navNext;
}

function createLast() {
if (countImage == 0) {
navLast = "<img src='si/back-fade.gif' alt='back'/>";
} 
else 
{
navLast = "<img src='si/back.gif' alt='back' onClick='retreat()' style='cursor:hand'/>";
}
}

function createNext() {
if (countImage == imageNumber) {
navNext = "<img src='si/next-fade.gif' alt='next'/>";
} 
else
{
navNext = "<img src='si/next.gif' alt='next' onClick='advance()' style='cursor:hand'/>";
}
}

function getImage() {
imageHold = "<img src='images/" + imageArray[countImage][0] + "' alt='" + imageArray[countImage][1] + "'>"
}

function returnImages() {
getImage();
createNav();
imageHold = nav + "<br/><br/><i>Image " + (countImage + 1) + " of " + (imageNumber + 1) + ": <b>" + imageArray[countImage][1] + "</b></i><br/>" + imageHold + "<br/><br/>" + nav;
document.getElementById("images").innerHTML = imageHold;
}

// -->
