<!--

var countImage;
var imageNumber;
var returnString;
var nav;
var navLast;
var navNext;
var imageArray;
var imageArray = new Array();
imageArray[0] = ["awt.gif", "Anthony Worrall Thompson"]
imageArray[1] = ["feedme.gif", "John Prescott"]
imageArray[2] = ["gm.gif", "Feed the world - on a carrot"]
imageArray[3] = ["crusts.gif", "Roboduck"]
imageArray[4] = ["brickorgy.gif", "Brick orgy"]
imageArray[5] = ["sendmorewine.gif", "Water, water everywhere..."]
imageArray[6] = ["hamster2.gif", "Superhamster to the rescue!"]
imageArray[7] = ["horsewhores.gif", "Hard of hearing"]
imageArray[8] = ["babybel.gif", "Run, little guy, else the babybel will get you!"]
imageArray[9] = ["edam.gif", "Indiana Jones and the Edam of Doom"]
imageArray[10] = ["damncheese.gif", "Damn you cheeses!"]
imageArray[11] = ["jarre.gif", "Jean Michel Jar"]
imageArray[12] = ["scary.gif", "Eeek!"]
imageArray[13] = ["dancething.gif", "Yes sir, you can boogie"]
imageArray[14] = ["evilcarrot.gif", "DEATH CARROT!"]
imageArray[15] = ["washingmachine.gif", "I, I just took a ride, on a washing machine, now I'm feeling clean..."]
imageArray[16] = ["clown.gif", "Crying inside"]
imageArray[17] = ["sherlock.gif", "Sherlock Holmes and the Case of the Angel Delight of the Gods"]
imageArray[18] = ["damn_your_eyes.gif", "PING!"]
imageArray[19] = ["rikwaller.gif", "Send help!"]
imageArray[20] = ["silkcut.gif", "Veritarse"]
imageArray[21] = ["tastetest.gif", "AINSLEY! He's my hero!"]
imageArray[22] = ["readysteadykill.gif", "Suzie and Percy get their revenge"]
imageArray[23] = ["whalehouse.gif", "Discount Whalehouse"]
imageArray[24] = ["angryrobot.gif", "Angrybot"]
imageArray[25] = ["happyrobot.gif", "Happybot"]
imageArray[26] = ["blueprint1.gif", "The next leader of the Conservatives"]
imageArray[27] = ["spottynose.gif", "Don't call me big nose"]
imageArray[28] = ["linfordelephant.gif", "Don't call me big trunk"]
imageArray[29] = ["lightbulbs.gif", "How many lightbulbs does it take to change a person?"]
imageArray[30] = ["nazitree.gif", "Evil Nazi tree"]
imageArray[31] = ["spannersarnie.gif", "It does exactly what it says"]
imageArray[32] = ["boogieblob.gif", "Dance, blob, dance!"]
imageArray[33] = ["deformedhand.gif", "Fanhandboy to the rescue"]
imageArray[34] = ["error703.gif", "Crash!"]
imageArray[35] = ["error816.gif", "Bang!"]
imageArray[36] = ["error843.gif", "Wallop!"]
imageArray[37] = ["buttockmenace.gif", "FLYING BUTTOCK MENACE!"]
imageArray[38] = ["ehgiraffe.gif", "How to confuse a giraffe"]
imageArray[39] = ["eskimo.gif", "How to kill an eskimo"]
imageArray[40] = ["rarebear.gif", "As rare as a bear in the air"]
imageArray[41] = ["jackinthebox.gif", "Jack in the box"]
imageArray[42] = ["jackinthebox2.gif", "Jack in the box (d.)"]
imageArray[43] = ["tall.gif", "I reiterate: clowns are evil"]
imageArray[44] = ["whales_m4.gif", "Well, how DO you do it?"]


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;
}

// -->
