

var maxNum = 45;

name_array = new Array(maxNum);
width_array = new Array(maxNum);
height_array = new Array(maxNum);
prov_array = new Array(maxNum);
head_array = new Array(maxNum);
desc_array = new Array(maxNum);

//My Pictures

name_array[1] = "cuthbertson";
width_array[1] = "599";
height_array[1] = "383";
prov_array[1] = "Chris Watson";
head_array[1] = "Mr Cuthbertson";
desc_array[1] = "Mr Cuthbertson, \"Cuthy\". Only the greatest Physics teacher this side of the chicken factory.";
name_array[2] = "science4";
width_array[2] = "594";
height_array[2] = "391";
prov_array[2] = "Chris Watson";
head_array[2] = "The Science Four";
desc_array[2] = "These are the people who I used to take science with, here we all are sitting in the S7, home of the Physics teacher, Mr Cuthbertson. They are, from left to right: Nick Forrington, Chris Watson (me), Paul Bolton and Graham Render.";
name_array[3] = "fewphysics";
width_array[3] = "601";
height_array[3] = "398";
prov_array[3] = "Chris Watson";
head_array[3] = "A Few People in S7";
desc_array[3] = "Here are a few people that I know. For names see below.</p><table border=\"0\"cellspacing=\"0\" cellpadding=\"0\"><tr><td align=\"left\" valign=\"top\"><img src=\"img/locate/fewphysics.jpg\" width=\"371\" height=\"167\" border=\"1\"></td><td align=\"left\" valign=\"top\"><p class=\"tlw_locate_text\"><span class=\"tlw_locate_number\">1</span> Steven Fox<span class=\"tlw_locate_number\"><br>2</span> Paul Bolton<span class=\"tlw_locate_number\"><br>3</span> Phil Cutler<span class=\"tlw_locate_number\"><br>4</span> Chris Watson<span class=\"tlw_locate_number\"><br>5</span> Vicki Deakin<br><span class=\"tlw_locate_number\">6</span> Graham Render<br><span class=\"tlw_locate_number\">7</span> Antony Devita<br><span class=\"tlw_locate_number\">8</span> Lizzie Couling<br><span class=\"tlw_locate_number\">9</span> Nick F<br><span class=\"tlw_locate_number\">10</span> Gemma Barstow </p></td></tr></table><br>";
name_array[4] = "sheshavingnoneofit";
width_array[4] = "395";
height_array[4] = "600";
prov_array[4] = "Chris Watson";
head_array[4] = "She's having none of it";
desc_array[4] = "Methinks someone doesn't like the person behind the camera here.";
name_array[5] = "physicsgroup" ;
width_array[5] = "989" ;
height_array[5] = "393" ;
prov_array[5] = "Chris Watson" ;
head_array[5] = "Physics Group" ;
desc_array[5] = "The entire Physics Class, or it would've been if whoever took this photo had aimed slighly better, instead there's <i>most</i> of the class and a nice table over to the right. Maybe the table was a better choice anyway." ;
name_array[6] = "lawteysnipple" ;
width_array[6] = "702" ;
height_array[6] = "391" ;
prov_array[6] = "Chris Watson" ;
head_array[6] = "Lawtey's Nipple" ;
desc_array[6] = "Chris Lawtey shows off his nipple, he must be proud, while Chris Collier points at the camera. If you look closely you can see a Rory watching the proceedings in the background. This was taken in T2 during what was widely believed to be the last ever Electronics Products lesson at Thomas Sumpter." ;
name_array[7] = "deeksandkenrummy" ;
width_array[7] = "697" ;
height_array[7] = "381" ;
prov_array[7] = "Chris Watson" ;
head_array[7] = "Deeks, Ken and I playing Rummy" ;
desc_array[7] = "As the last day loomed ever closer, we continued our rummy game. Here Deeksy is overcome with emotion as he takes a card from the pile as Ken looks on suitably enthralled. The cards are placed on the ProgramFiles.com blue thing, it's great. Unfortunately for Deeks the hand placed face down nearest the camera proved to be the winning hand, they were both blissfully unaware of this as this picture was taken. In case you're wondering, yes, they are PG tips cards." ;
name_array[8] = "rummyfarshot" ;
width_array[8] = "992" ;
height_array[8] = "389" ;
prov_array[8] = "Chris Watson" ;
head_array[8] = "Rummy Far Shot" ;
desc_array[8] = "A far shot of the rummy game, this time with Mark Godley on the left and some other people whose names I don't know." ;
name_array[9] = "chunganddanny" ;
width_array[9] = "692" ;
height_array[9] = "376" ;
prov_array[9] = "Chris Watson" ;
head_array[9] = "Chung and Danny" ;
desc_array[9] = "" ;
name_array[10] = "chemgroup" ;
width_array[10] = "693" ;
height_array[10] = "392" ;
prov_array[10] = "Chris Watson" ;
head_array[10] = "Chemistry Group" ;
desc_array[10] = "A very dark picture of the entire chemistry group, apart from Bickley. He prefered to take the pictures." ;
name_array[11] = "antony" ;
width_array[11] = "697" ;
height_array[11] = "394" ;
prov_array[11] = "Chris Watson" ;
head_array[11] = "Antony Devita" ;
desc_array[11] = "It's Antony. Nigh on twelve years I've known him" ;
name_array[12] = "myneck" ;
width_array[12] = "392" ;
height_array[12] = "701" ;
prov_array[12] = "Chris Watson" ;
head_array[12] = "My Neck" ;
desc_array[12] = "I believe this is my neck and shoulders. And I think there's a silhouette of Vicki in the background. I really must commend Paul on his excellent camera work." ;
name_array[13] = "blurredmess" ;
width_array[13] = "687" ;
height_array[13] = "373" ;
prov_array[13] = "Chris Watson" ;
head_array[13] = "Blurred Mess" ;
desc_array[13] = "This is a blurred mess, again I think this is Paul's handiwork, very good isn't it?" ;
name_array[14] = "meandnick" ;
width_array[14] = "703" ;
height_array[14] = "387" ;
prov_array[14] = "Chris Watson" ;
head_array[14] = "Me and Nick" ;
desc_array[14] = "Me, on the left. Nick, on the right. Yep." ;
name_array[15] = "steveandlizzie" ;
width_array[15] = "601" ;
height_array[15] = "392" ;
prov_array[15] = "Chris Watson" ;
head_array[15] = "Steve and Lizzie" ;
desc_array[15] = "Steve is engrossed in Pokémon, Lizzie is smiling I believe. I think Paul took this one too, and you can actually make out who's on it." ;
name_array[16] = "bickley" ;
width_array[16] = "366" ;
height_array[16] = "568" ;
prov_array[16] = "Chris Watson" ;
head_array[16] = "Bickley" ;
desc_array[16] = "A lonesome Bickely engaged in writting in someone's book I think." ;
name_array[17] = "glenn" ;
width_array[17] = "562" ;
height_array[17] = "361" ;
prov_array[17] = "Chris Watson" ;
head_array[17] = "Glenn" ;
desc_array[17] = "Glenn Robinson, a cheeky chappy." ;
name_array[18] = "allanandjasper" ;
width_array[18] = "664" ;
height_array[18] = "362" ;
prov_array[18] = "Chris Watson" ;
head_array[18] = "Allan and Jasper" ;
desc_array[18] = "It's Allan Marchant. There's also a Jasper Van Us looking a little bemused. And on the right there's even Mark." ;
name_array[19] = "allananddave" ;
width_array[19] = "671" ;
height_array[19] = "376" ;
prov_array[19] = "Chris Watson" ;
head_array[19] = "Allan and Dave" ;
desc_array[19] = "It's Allan again, this time he's joined by Dave Foster. Nice smiles. And that Mark is smirking now too." ;
name_array[20] = "chrisanddave" ;
width_array[20] = "664" ;
height_array[20] = "373" ;
prov_array[20] = "Chris Watson" ;
head_array[20] = "Chris and Dave" ;
desc_array[20] = "It's Dave, and me. Thanks Jasper." ;
name_array[21] = "mrsfoster" ;
width_array[21] = "659" ;
height_array[21] = "371" ;
prov_array[21] = "Chris Watson" ;
head_array[21] = "Mrs Foster" ;
desc_array[21] = "Mrs Foster, form teacher of five years. S8 has been our home for the long stretch at Thomas Sumpter. And Carrie Kelsey's the one on the right." ;
name_array[22] = "someform" ;
width_array[22] = "673" ;
height_array[22] = "372" ;
prov_array[22] = "Chris Watson" ;
head_array[22] = "Some Of My Form - 11A" ;
desc_array[22] = "From left to right: Chris Gibala, someone's arm, a bit of someone's face, Leanne Hall's back, Rachel Kiddle, Jamie Hickabottom, Laura Jones." ;
name_array[23] = "mathsrummy" ;
width_array[23] = "560" ;
height_array[23] = "363" ;
prov_array[23] = "Chris Watson" ;
head_array[23] = "Maths Rummy" ;
desc_array[23] = "Here we are playing rummy again. This time during Maths. That's me closest, Sam Boulby on the left, the back on Ken Baker's head behind that. Tim Bateson in the centre, Nick's head peeking out, and Pete \"Head Case\" Sims on the right." ;
name_array[24] = "meandneil" ;
width_array[24] = "674" ;
height_array[24] = "366" ;
prov_array[24] = "Chris Watson" ;
head_array[24] = "Me and Neil" ;
desc_array[24] = "That's me on the left, and that's Neil Mounsey on the right. And Sam's hand." ;

//Collier's Pictures

name_array[25] = "leeringpaul" ;
width_array[25] = "367" ;
height_array[25] = "585" ;
prov_array[25] = "Chris Collier" ;
head_array[25] = "A Leering Paul Bolton" ;
desc_array[25] = "With a somewhat peculiar expression on his face Paul Bolton appears to be staggering towards the camera, perhaps he is concerned about how the developed photograph will depict him." ;
name_array[26] = "11p" ;
width_array[26] = "588" ;
height_array[26] = "392" ;
prov_array[26] = "Chris Collier" ;
head_array[26] = "11P" ;
desc_array[26] = "The form of 11P 2000, from left to right: Micheal Wilkins, Vaughn Colebrooke, Matthew Fawcett, Kurtis Fitter, Lee Jones, Paul Spencer, Chris Collier, Michelle Akaster, Carl Gac, Susan Sale, Emily Butterfield, Laura Othen, Chris Buckley, Samanatha Jatilaka, David Lings, Nichola Akaster, Haley Stones, Louise Seely, Carol Marsh." ;
name_array[27] = "alone" ;
width_array[27] = "588" ;
height_array[27] = "387" ;
prov_array[27] = "Chris Collier" ;
head_array[27] = "Paul Bolton All Alone" ;
desc_array[27] = "Paul Bolton wanders around on his own." ;
name_array[28] = "burnsie" ;
width_array[28] = "578" ;
height_array[28] = "375" ;
prov_array[28] = "Chris Collier" ;
head_array[28] = "The Swings" ;
desc_array[28] = "The identity of the fellow in the red coat is unknown, but it's Erika Watson with him. It's James Burns on the left on the bench. The person above the person sat on the right of the bench I think is Daniel Graves. Under the umbrella are Robbie Gray and Alice Holder." ;
name_array[29] = "chess" ;
width_array[29] = "592" ;
height_array[29] = "385" ;
prov_array[29] = "Chris Collier" ;
head_array[29] = "Chess" ;
desc_array[29] = "Chess in S6, oh what fun. Or at least that what's Sam Boulby, Louise Seely and Ken Baker think. And maybe the back of Joanna Hockey's head does too." ;
name_array[30] = "dumbanddumber" ;
width_array[30] = "579" ;
height_array[30] = "379" ;
prov_array[30] = "Chris Collier" ;
head_array[30] = "Dumb and Dumber" ;
desc_array[30] = "Joanne Rammage and Leanne Hall." ;
name_array[31] = "e8" ;
width_array[31] = "587" ;
height_array[31] = "392" ;
prov_array[31] = "Chris Collier" ;
head_array[31] = "E8" ;
desc_array[31] = "Some chumps in E8, they are from left to right: Heather Campbell, Emily Davies, Neil Mounsey, Eleanor Brown, Vicki Burton, Robbie Gray, Chris Hind, Carl Gac, Chris Collier, David Gough, Gemma Barstow." ;
name_array[32] = "e82" ;
width_array[32] = "588" ;
height_array[32] = "392" ;
prov_array[32] = "Chris Collier" ;
head_array[32] = "E8 - More Posing" ;
desc_array[32] = "Eleanor Brown, Vicki Burton, Chris Hind, Chris Collier, Gemma Barstow, Sam Boulby." ;
name_array[33] = "e83" ;
width_array[33] = "593" ;
height_array[33] = "380" ;
prov_array[33] = "Chris Collier" ;
head_array[33] = "11KF - All Of Us" ;
desc_array[33] = "11KF, this is an English class, the last time it was together, the date: May 19th 2000, the people (from left to right): Chris Watson, Robbie Gray, Ken Baker, Alice Holder, Emily Butterfield, Jo Hockey, Sam Boulby, John Goulthorpe (at back), Leanne Hall, Gemma Bartsow, Chloë Dakin, David Gough (sprawled), Louise Seely, Tim Bateson, Carl Gac, Sam Jayatilika, Neil Mounsey, Mr. Francis, Chris Hind, Chris Collier, Erika Watson, Vicki Burton, Andrew Hornsby, Weedy (Adam Wilson), Heather Cambell, Joanne Dixon, Eleanor Brown, Darren Glenn, Emily Davies, Andrea Paderson, Bethan White." ;
name_array[34] = "fire" ;
width_array[34] = "588" ;
height_array[34] = "382" ;
prov_array[34] = "Chris Collier" ;
head_array[34] = "Fire" ;
desc_array[34] = "Two people playing \"Ignite The Gas Tap\". They are  Tim Bateson (sporting a drawn on bra) and Robbie Gray." ;
name_array[35] = "gac" ;
width_array[35] = "591" ;
height_array[35] = "394" ;
prov_array[35] = "Chris Collier" ;
head_array[35] = "Gac" ;
desc_array[35] = "The man they call Gac (Carl Gac). And Chris Collier\'s feet." ;
name_array[36] = "john" ;
width_array[36] = "385" ;
height_array[36] = "588" ;
prov_array[36] = "Chris Collier" ;
head_array[36] = "Two Thumbs Fresh" ;
desc_array[36] = "John Gouldthorpe (with thumbs), Louise Seely, and Carl Gac." ;
name_array[37] = "kimcolliervicki" ;
width_array[37] = "592" ;
height_array[37] = "392" ;
prov_array[37] = "Chris Collier" ;
head_array[37] = "Two Lovely Ladies And A Spiky Haired Monstrosity" ;
desc_array[37] = "On the left: Kim Leong. On the right: Vicki Burton. Draped over them like a large scarf trying to cover as much flesh as it can, but with people: Chris Collier." ;
name_array[38] = "lawtey" ;
width_array[38] = "584" ;
height_array[38] = "395" ;
prov_array[38] = "Chris Collier" ;
head_array[38] = "Lawtey With A Big Red Hooter" ;
desc_array[38] = "It's Chris Lawtey, with a big red nose." ;
name_array[39] = "louiseandgardner" ;
width_array[39] = "581" ;
height_array[39] = "376" ;
prov_array[39] = "Chris Collier" ;
head_array[39] = "Louise Seely and Andrew Gardner" ;
desc_array[39] = "Louise Seely and Andrew Gardner." ;
name_array[40] = "louiseolly" ;
width_array[40] = "588" ;
height_array[40] = "384" ;
prov_array[40] = "Chris Collier" ;
head_array[40] = "Louise Seely and Olly Heron" ;
desc_array[40] = "Louise Seely and Olly Heron." ;
name_array[41] = "louther" ;
width_array[41] = "387" ;
height_array[41] = "587" ;
prov_array[41] = "Chris Collier" ;
head_array[41] = "Fell Off" ;
desc_array[41] = "Tim Brown blocks the view of David Louther sitting on the floor." ;
name_array[42] = "physics" ;
width_array[42] = "588" ;
height_array[42] = "387" ;
prov_array[42] = "Chris Collier" ;
head_array[42] = "Collier's Physics Class" ;
desc_array[42] = "Weedy, Jason Smith, Darren Glenn, Andrew Flemming, Chris Collier, James Burns, Tim Bateson, Sam Boulby, Sam Hanley, Joanna Hockey, Peter Sims, Robbie Gray, Ken Baker, Louise Seely, Chris Buckley, Sam Jayatilika." ;
name_array[43] = "samandtheweed" ;
width_array[43] = "584" ;
height_array[43] = "381" ;
prov_array[43] = "Chris Collier" ;
head_array[43] = "Sam And The Weed" ;
desc_array[43] = "Two fellows. Adam Wilson and Sam. Between them in the bacground is Bethan White, on the right of the photo, showing the side ofher head is Gemma Barstow." ;
name_array[44] = "scarywillow" ;
width_array[44] = "589" ;
height_array[44] = "386" ;
prov_array[44] = "Chris Collier" ;
head_array[44] = "Scary Willow" ;
desc_array[44] = "Vicki Burton." ;
name_array[45] = "sick" ;
width_array[45] = "579" ;
height_array[45] = "396" ;
prov_array[45] = "Chris Collier" ;
head_array[45] = "Sick" ;
desc_array[45] = "Vicki Lees in orange being sick." ;


var tar = location.search;
if(bignose=="picture"){takeIndex()};
tar = tar.replace("?","");

function takeIndex()
{
if(tar==""){document.location.href="index.html"};
}

var picID;
/* not required anymore
if(tar=="1"){picID=1};
if(tar=="2"){picID=2};
if(tar=="3"){picID=3};
if(tar=="4"){picID=4};
if(tar=="5"){picID=5};
if(tar=="6"){picID=6};
if(tar=="7"){picID=7};
if(tar=="8"){picID=8};
if(tar=="10"){picID=10};
if(tar=="11"){picID=11};*/

picID = new Number(tar);


if(picID>maxNum){document.location.href="index.html"};

//document.write("picID is of type: " + typeof picID + ", and has a value of: " + picID);

var path = "img/full/";
var tpath = "img/thumb/";
//var p = pathToImage ;
var htmlExt = ".html";


function getImage()
{
document.write('<table border=\"1\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\" bordercolor=\"#999999\"><tr><td><img src=\"' + path + name_array[picID] + '.jpg\" width=\"' + width_array[picID] + '\" height=\"' + height_array[picID] + '\"></td></tr></table>');
}

function putHead()
{
document.write(head_array[picID])
}

/*function proImage()
{
document.images["picture"].src = "img/full/" + "cuthbertson" + ".jpg";
}*/

//function getWidth()
//{
//document.write(pic_width[picID]);
//}

//function getHeight()
//{
//document.write(pic_height[picID]);
//}

function imPro()
{
document.write(prov_array[picID]);
}



//var rabbit = p + pic_name[picID]+ ".jpg";
//document.images["picture"].src = rabbit;

function prenext(tree)
{
var mush;
var theText;
//if(tree==1){theText="&laquo; Previous"}
//if(tree==2){theText="Next &raquo;"};

//var loo = picID + mush;
//var donkey;
//if(loo=0){donkey="index.html"}
//else{donkey=name_array[loo]+htmlExt}

//var beforeLink = "<a href=\"";
//var middleLink = "\" ";
//var afterLink = "</a>";
//var chuck = ">"
//var seeEss = " class=\"tlwpn\" ";
//document.write(loo);
//document.write(beforeLink + name_array[picID-1] + htmlExt + middleLink + seeEss + chuck + theText + afterLink);
}

var beforeLink = "<a href=\"";
var middleLink = "\" ";
var afterLink = "</a>";
var chuck = ">"
var seeEss = " class=\"tlwpn\" ";

function next()
{
theText="Next &raquo;";
craby= "picture.html?";

var cat = location.search;
cat = cat.replace("?","");

/* not needed
var coffin;
if(cat=="1"){coffin=2};
if(cat=="2"){coffin=3};
if(cat=="3"){coffin=4};
if(cat=="4"){coffin=5};
if(cat=="5"){coffin=5};
if(cat=="6"){coffin=6};
if(cat=="7"){coffin=7};
if(cat=="8"){coffin=8};
if(cat=="10"){coffin=11};
if(cat=="11"){coffin=12};*/

var carrot = picID + 1;
if(carrot>maxNum){craby="index.html",carrot=""};

//maxBum = picID + 1;
//fishy = maxBum - picID;
//fishy = maxBum;
//fishy = ;
//fishy = ;
document.write(beforeLink + craby + carrot + middleLink + seeEss + chuck + theText + afterLink);
}

function pre()
{
theText="&laquo; Previous";
fish = picID-1;
if(picID-1==0){crab="index.html",fish=""}
else{crab="picture.html?"}
document.write(beforeLink + crab + fish + middleLink + seeEss + chuck + theText + afterLink);
}


function getDesc()
{
var opPar = "<p class=\"most\">";
var cloPar = "</p>";
document.write(opPar + desc_array[picID] + cloPar);
}

/*
var newtr = '<tr align=\"center\">';
var badger = 0;
var startd = '<td width=\"33%\">';
var endtd = '</td>';
var longjump;

function writeThumbNailTable()
{
document.write('<table border=\"1\" cellspacing=\"0\" cellpadding=\"3\" class=\"tlw_thumb_tab\" align=\"center\" bordercolor=\"#999999\">');
contTab();
}

function contTab()
{
document.write(newtr);
daCell();
}

function daCell()
{
badger = badger + 1;
if(badger>maxNum){checkBadger()}else{writeThumb()};
}


function checkBadger()
{
if(badger == 3 , 6 , 9 , 12 , 15 , 18 , 21 , 24 , 27 , 30 , 33 , 36 , 39 , 42 , 45 , 48 , 51 , 54 , 57 , 60 , 63 , 66 , 69 , 72 , 75 , 78 , 81 , 84 , 87 , 90 , 93 , 96 , 99){longjump=1}else{longjump=2};
//var tickle = badger / 3;
if(longjump==1){fillIn()};
}

function fillIn()
{
document.write(startd + '&nbsp' + endtd);
if(badger!=maxNum){checkbadger()}else{finTab()};
}

function writeThumb()
{
document.write(startd + '<a href=\"picture.html?' + badger + '\" <img src=\"' + tpath + name_array[badger] + '.jpg\" width=\"140\" height=\"110\" alt=\"' + head_array[badger] + '\" border=\"0\"</a>' + endtd)
}

function finTab()
{
document.write(endtd + endtr + '</table>');
}
*/

/*
var manyLeft;
var curNum = 0;

function writHolTab()
{
document.write('<table border=\"1\" cellspacing=\"0\" cellpadding=\"3\" class=\"tlw_thumb_tab\" align=\"center\" bordercolor=\"#999999\">');
var manyLeft = 0;
honkey();
}

function honkey()
{
if(manyLeft<=3){writTr()}
else{endIt()};
}

function writTr()
{
document.write('<tr align=\"center\">');
writTd();
}

function writTd()
{
document.write('<td width=\"33%\">');
curNum = curNum + 1;
document.write('<a href=\"picture.html?' + curNum + '\"</a>' + '<img src=\"' + tpath + name_array[curNum] + '.jpg\"' + 'width=\"140\" height=\"110\" alt=\"' + head_array[curNum] + '\"' + 'border=\"0\"</a>');
document.write('</td>');
manyLeft = manyleft + 1;
honkey();
}

function endIt()
{
document.write('</tr></table>');
}
*/

var curNum = 0;
lurNum = 0;
function like_thumb()
{
curNum = curNum + 1;
var fruit = '<a href=\"picture.html?' + curNum + '\">' + '<img src=\"' + tpath + name_array[curNum] + '.jpg\" width=\"140\" height=\"110\" alt=\"' + head_array[curNum] + '\" title=\"' + head_array[curNum] + '\" border=\"0\"></a>';
if(curNum>maxNum){fruit=""};
//if(curNum==1){alert(fruit);};
document.write(fruit);
}

function like_unNam()
{
lurNum = lurNum + 1;
var cabbage = head_array[lurNum];
if(lurNum>maxNum){cabbage=""};
document.write(cabbage);
}
