<!--

var countImage;
var imageNumber;
var returnString;
var nav;
var navLast;
var navNext;
var imageArray;
var imageArray = new Array();
imageArray[0] = ["42.jpg", "CLUNK, clink, CLUNK, clink, CLUNK, clink..."]
imageArray[1] = ["badflat.gif", "The worst flat in the world"]
imageArray[2] = ["cleangod.jpg", "Cleanliness is next..."]
imageArray[3] = ["communistchess.gif", "Communist chess"]
imageArray[4] = ["crudewax.gif", "Annoyance double whammy!"]
imageArray[5] = ["dailypiffle.gif", "If history went a bit differently..."]
imageArray[6] = ["dancebot.gif", "Boogie on down"]
imageArray[7] = ["dyce.jpg", "DYCE 1.0"]
imageArray[8] = ["emo.gif", "EMO!"]
imageArray[9] = ["fryingpan.gif", "The frying pan of terror"]
imageArray[10] = ["spatula.gif", "The spatula of enlightenment"]
imageArray[11] = ["patriot_banana.jpg", "The banana of patriotism"]
imageArray[12] = ["greg_and_sally.gif", "Greg and Sally"]
imageArray[13] = ["harpoonme.jpg", "Childish pranks"]
imageArray[14] = ["iknewit.jpg", "Bungle, you big gayer!"]
imageArray[15] = ["incredible_orville.jpg", "He can't fly, but he can pack a mean punch"]
imageArray[16] = ["ironlady.jpg", "The Iron Lady"]
imageArray[17] = ["maggiedoom.gif", "Look into the Thatcher"]
imageArray[18] = ["pogothatcher.gif", "Pogo like you've never pogoed before!"]
imageArray[19] = ["monotony_large.gif", "Monotony"]
imageArray[20] = ["pigmilk.gif", "Hasselhoff's amazing pig milk"]
imageArray[21] = ["plain_english_boris_style.gif", "Boris Johnson tries his hand at the Plain English Campaign's game"]
imageArray[22] = ["suneyes.jpg", "When sun gets in my eyes"]
imageArray[23] = ["turbosnail.gif", "Turbosnail!"]
imageArray[24] = ["nonshatner.gif", "Bye-bye, Kirk"]
imageArray[25] = ["playcards.gif", "Play Your Cards Wrong"]
imageArray[26] = ["onthebeach.jpg", "Too hot!"]
imageArray[27] = ["andy_domo.gif", "Andy Domo"]
imageArray[28] = ["baydomo.gif", "Baydomo"]
imageArray[29] = ["illdomo.gif", "Ill Domo"]
imageArray[30] = ["knightdomo.gif", "Knight Domo"]
imageArray[31] = ["robodomo.gif", "Robodomo"]
imageArray[32] = ["real.gif", "It's real!"]
imageArray[33] = ["obeythebob.gif", "Obey the Bob!"]
imageArray[34] = ["kennysarmy.gif", "Kenny Loggins invades"]
imageArray[35] = ["brian_night.gif", "GOODNIGHT, BRIAN!"]
imageArray[36] = ["pantsblue.gif", "Pants!"]
imageArray[37] = ["pantsblue2.gif", "More pants!"]
imageArray[38] = ["pantsblue3.gif", "Yet more pants!"]
imageArray[39] = ["pantsblue4.gif", "Oh no, even more pants!"]
imageArray[40] = ["pantsblue5.gif", "Too many pants for my liking!"]
imageArray[41] = ["hello.gif", "Hello!"]
imageArray[42] = ["perspective.gif", "Trouble with perspective"]
imageArray[43] = ["bus.gif", "How bus numbers work"]
imageArray[44] = ["escher-sketch_small.gif", "Escher-sketch"]
imageArray[45] = ["kase.gif", "The cheese party"]
imageArray[46] = ["obeyme.gif", "Obey the penguin!"]
imageArray[47] = ["pies.gif", "Outdoor reared pork pies"]
imageArray[48] = ["slonky.gif", "BOING!"]
imageArray[49] = ["watched.gif", "Hidden cameras"]
imageArray[50] = ["helpme.gif", "Help me you twat!"]
imageArray[51] = ["glandular.gif", "Fatty fatty fat fat"]
imageArray[52] = ["yomama.gif", "Oh, shut up already"]
imageArray[53] = ["feminine.gif", "Nice tutu"]
imageArray[54] = ["razorflaps.gif", "Blood, gore and a kitchen floor in need of a scrubbing"]
imageArray[55] = ["big_donkey_wang.gif", "That's just... rude!"]
imageArray[56] = ["scat.gif", "Scatalogical anthropomorphic personifications anonymous"]
imageArray[57] = ["ned_001.gif", "No Eyed Deer #1"]
imageArray[58] = ["ned_002.gif", "No Eyed Deer #2"]
imageArray[59] = ["ned_003.gif", "No Eyed Deer #3"]
imageArray[60] = ["ned_004.gif", "No Eyed Deer #4"]
imageArray[61] = ["ned_005.gif", "No Eyed Deer #5"]
imageArray[62] = ["ned_006.gif", "No Eyed Deer #6"]
imageArray[63] = ["ned_007.gif", "No Eyed Deer #7"]
imageArray[64] = ["ned_008.gif", "No Eyed Deer #8"]
imageArray[65] = ["ned_009.gif", "No Eyed Deer #9"]
imageArray[66] = ["ned_010.gif", "No Eyed Deer #10"]
imageArray[67] = ["experiment6/01.gif", "Experiment #6, part 1"]
imageArray[68] = ["experiment6/02.gif", "Experiment #6, part 2"]
imageArray[69] = ["experiment6/03.gif", "Experiment #6, part 3"]
imageArray[70] = ["experiment6/04.gif", "Experiment #6, part 4"]
imageArray[71] = ["experiment6/05.gif", "Experiment #6, part 5"]
imageArray[72] = ["experiment6/06.gif", "Experiment #6, part 6"]
imageArray[73] = ["experiment6/07.gif", "Experiment #6, part 7"]
imageArray[74] = ["experiment6/08.gif", "Experiment #6, part 8"]
imageArray[75] = ["experiment6/09.gif", "Experiment #6, part 9"]
imageArray[76] = ["med0001.gif", "Interesting medical complaints #1"]
imageArray[77] = ["med0002.gif", "Interesting medical complaints #2"]
imageArray[78] = ["med0003.gif", "Interesting medical complaints #3"]
imageArray[79] = ["med0004.gif", "Interesting medical complaints #4"]
imageArray[80] = ["med0005.gif", "Interesting medical complaints #5"]
imageArray[81] = ["med0006.gif", "Interesting medical complaints #6"]
imageArray[82] = ["med0007.gif", "Interesting medical complaints #7"]
imageArray[83] = ["terrance.gif", "Have you met Terrance?"]
imageArray[84] = ["unitedcolors.gif", "United Colors Of America"]
imageArray[85] = ["digitalamerica.gif", "United States Of America, circa 1970"]
imageArray[86] = ["ussi.gif", "United States Of Space Invaders"]
imageArray[87] = ["nodeal.gif", "No deal, Edmonds"]
imageArray[88] = ["sofa_noel.gif", "That's how he gets all the money, that sneaky Edmonds"]
imageArray[89] = ["kelly.gif", "Matthew Kelly and his amazing televisual idea"]
imageArray[90] = ["ribena_again.gif", "Ribena warning!"]
imageArray[91] = ["dancingloo.gif", "Dancing Loo FRENZY!"]
imageArray[92] = ["alien1.gif", "Aliens!"]
imageArray[93] = ["wikicafe.gif", "Wikicafé"]
imageArray[94] = ["fizz.gif", "Bzzt!"]
imageArray[95] = ["britishpeapower.gif", "British Pea Power"]
imageArray[96] = ["lampshade.gif", "How lamps are made"]
imageArray[97] = ["screwed.gif", "Screwed"]
imageArray[98] = ["sharp.gif", "Knives that talk!"]


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;
}

// -->
