window.thumbnails = new Object();
												thumbnails[4752268] = new thumbnail(4752268,'','Kundalini  2008<br>\r\nPoster paint on paper','DSC_8137_thumb.jpg',100, 100,1,'							photo_4752268.html');
												thumbnails[4756227] = new thumbnail(4756227,'','','DSCN27691_thumb.jpg',93, 100,1,'							photo_4756227.html');
												thumbnails[818015] = new thumbnail(818015,'63117','St Anne\'s College, Oxford','St Annes 1_thumb.jpg',130, 167,1,'							photo_818015.html');
												thumbnails[818053] = new thumbnail(818053,'63117','Heron Tower, Bishopsgate<br>\r\n','Heron Tower 3_thumb.jpg',130, 86,1,'							photo_818053.html');
												thumbnails[818068] = new thumbnail(818068,'63117','Davies Street <br>\r\nPenthouse Interiors','Davies St 6 copy_thumb.jpg',130, 125,1,'							photo_818068.html');
												thumbnails[818084] = new thumbnail(818084,'63117','Davies St Interior Feature','Davies St 3_thumb.jpg',130, 104,1,'							photo_818084.html');
												thumbnails[818092] = new thumbnail(818092,'63117','Davies St Penthouse','Davies St 4_thumb.jpg',130, 104,1,'							photo_818092.html');
												thumbnails[818098] = new thumbnail(818098,'63117','St Annes Reception','St Annes 4_thumb.jpg',130, 102,1,'							photo_818098.html');
												thumbnails[4737707] = new thumbnail(4737707,'271800','Thomas Larcher<br>\r\nQueen Elizabeth Hall','DSC_09371_thumb.jpg',100, 100,1,'							photo_4737707.html');
												thumbnails[4738063] = new thumbnail(4738063,'271800','Heiner Goebbels<br>\r\nSongs of Wars I have Seen','DSC_13121_thumb.jpg',100, 100,1,'							photo_4738063.html');
												thumbnails[4738065] = new thumbnail(4738065,'271800','Sian Edwards<br>\r\nwith London Sinfonitta','DSC_13361_thumb.jpg',100, 100,1,'							photo_4738065.html');
												thumbnails[4738066] = new thumbnail(4738066,'271800','Sian Edwards','DSC_1337_thumb.jpg',100, 100,1,'							photo_4738066.html');
												thumbnails[4738067] = new thumbnail(4738067,'271800','Piere Andre Valade and Michael Jarrell','DSC_15561_thumb.jpg',100, 100,1,'							photo_4738067.html');
												thumbnails[4738069] = new thumbnail(4738069,'271800','','DSC_15791_thumb.jpg',100, 100,1,'							photo_4738069.html');
												thumbnails[4738072] = new thumbnail(4738072,'271800','Sarah Nicholls performing at<br>\r\nQueen Elizabeth Hall','DSC_22251_thumb.jpg',100, 100,1,'							photo_4738072.html');
												thumbnails[4738073] = new thumbnail(4738073,'271800','BBC Singers at<br>\r\nCentral Methodist Hall','DSC_73801_thumb.jpg',100, 100,1,'							photo_4738073.html');
												thumbnails[4738080] = new thumbnail(4738080,'271800','Tim Exile<br>\r\nElectronic Artist','DSC_75451_thumb.jpg',100, 100,1,'							photo_4738080.html');
												thumbnails[4738083] = new thumbnail(4738083,'271800','Janine Rostron<br>\r\nPlanningtorock','DSC_76441_thumb.jpg',100, 100,1,'							photo_4738083.html');
												thumbnails[4738086] = new thumbnail(4738086,'271800','London Sinfonietta Website','Picture_21_thumb.jpg',100, 100,1,'							photo_4738086.html');
												thumbnails[4738101] = new thumbnail(4738101,'63435','David and Dri Tibet Wedding','261_thumb.jpg',100, 100,1,'							photo_4738101.html');
												thumbnails[4738103] = new thumbnail(4738103,'63435','Bubbles','CNV000151_thumb.jpg',100, 100,1,'							photo_4738103.html');
												thumbnails[4738106] = new thumbnail(4738106,'63435','Wedding Preparations','DSC_50671_thumb.jpg',100, 100,1,'							photo_4738106.html');
												thumbnails[4738109] = new thumbnail(4738109,'63435','Hackney Wedding','DSC_51191_thumb.jpg',100, 100,1,'							photo_4738109.html');
												thumbnails[4738112] = new thumbnail(4738112,'63435','Civil Partnership','DSC_52021_thumb.jpg',100, 100,1,'							photo_4738112.html');
												thumbnails[4738114] = new thumbnail(4738114,'63435','Happy Couple<br>\r\nHackney Town Hall','DSC_52851_thumb.jpg',100, 100,1,'							photo_4738114.html');
												thumbnails[4738116] = new thumbnail(4738116,'63435','Wedding Group','DSC_52921_thumb.jpg',100, 100,1,'							photo_4738116.html');
												thumbnails[4738117] = new thumbnail(4738117,'63435','On the Bus','DSC_53431_thumb.jpg',100, 100,1,'							photo_4738117.html');
												thumbnails[4738119] = new thumbnail(4738119,'63435','Batmitzvah Girls','DSC_71961_thumb.jpg',100, 100,1,'							photo_4738119.html');
												thumbnails[4738122] = new thumbnail(4738122,'63435','batmitzvah girl','DSC_73721_thumb.jpg',100, 100,1,'							photo_4738122.html');
												thumbnails[4738123] = new thumbnail(4738123,'63435','Hula Girl','DSC_76801_thumb.jpg',100, 100,1,'							photo_4738123.html');
												thumbnails[4738125] = new thumbnail(4738125,'63435','Dri Tibet gets ready','DSCF00071_thumb.jpg',100, 100,1,'							photo_4738125.html');
												thumbnails[4738127] = new thumbnail(4738127,'63435','Bride and Dad','DSCF00661_thumb.jpg',100, 100,1,'							photo_4738127.html');
												thumbnails[4738132] = new thumbnail(4738132,'63435','Best Man<br>\r\nNurse with Wounds','DSCF01101_thumb.jpg',100, 100,1,'							photo_4738132.html');
												thumbnails[4738134] = new thumbnail(4738134,'63435','Wedding Reception','leather1_thumb.jpg',100, 100,1,'							photo_4738134.html');
												thumbnails[4738149] = new thumbnail(4738149,'63434','Wicked','DSC_25171_thumb.jpg',100, 100,1,'							photo_4738149.html');
												thumbnails[4738151] = new thumbnail(4738151,'63434','Lord of the Rings','DSC_25411_thumb.jpg',96, 100,1,'							photo_4738151.html');
												thumbnails[4738154] = new thumbnail(4738154,'63434','Chicago','DSC_26401_thumb.jpg',100, 100,1,'							photo_4738154.html');
												thumbnails[4738156] = new thumbnail(4738156,'63434','Joseph','DSC_26601_thumb.jpg',98, 100,1,'							photo_4738156.html');
												thumbnails[4738158] = new thumbnail(4738158,'63434','The Sound of Music','DSC_28151_thumb.jpg',100, 100,1,'							photo_4738158.html');
												thumbnails[4738159] = new thumbnail(4738159,'63434','Wicked Kissing','DSC_29831_thumb.jpg',100, 100,1,'							photo_4738159.html');
												thumbnails[4738160] = new thumbnail(4738160,'63434','Thriller ','DSC_32661_thumb.jpg',100, 100,1,'							photo_4738160.html');
												thumbnails[4738162] = new thumbnail(4738162,'63434','Joseph','DSC_34081_thumb.jpg',100, 100,1,'							photo_4738162.html');
												thumbnails[4738164] = new thumbnail(4738164,'63434','Mamma Mia','DSC_40331_thumb.jpg',100, 100,1,'							photo_4738164.html');
												thumbnails[4738166] = new thumbnail(4738166,'63434','Cabaret act','DSC_41711_thumb.jpg',98, 100,1,'							photo_4738166.html');
												thumbnails[4738168] = new thumbnail(4738168,'63434','We Will Rock You','DSC_44511_thumb.jpg',100, 100,1,'							photo_4738168.html');
												thumbnails[4738169] = new thumbnail(4738169,'63434','','DSC_45521_thumb.jpg',100, 100,1,'							photo_4738169.html');
												thumbnails[4738173] = new thumbnail(4738173,'63434','Suzanne Andrade<br>\r\nPerformance Poet','DSC_61411_thumb.jpg',100, 100,1,'							photo_4738173.html');
												thumbnails[4738174] = new thumbnail(4738174,'63434','Simon Munnery at <br>\r\nKings Place','DSC_63271_thumb.jpg',100, 100,1,'							photo_4738174.html');
												thumbnails[4738177] = new thumbnail(4738177,'63434','John Hegley','DSC_63961_thumb.jpg',100, 100,1,'							photo_4738177.html');
												thumbnails[4738178] = new thumbnail(4738178,'63434','We Will Rock You','DSC_71941_thumb.jpg',100, 100,1,'							photo_4738178.html');
												thumbnails[4738181] = new thumbnail(4738181,'63434','Jerry Springer in <br>\r\nChicago','DSC_72471_thumb.jpg',100, 100,1,'							photo_4738181.html');
												thumbnails[4738184] = new thumbnail(4738184,'63434','Jerry Springer and<br>\r\nChicago cast','DSC_72561_thumb.jpg',100, 100,1,'							photo_4738184.html');
												thumbnails[4738188] = new thumbnail(4738188,'63434','Thriller \'Michael Jackson\'','DSC_74141_thumb.jpg',100, 100,1,'							photo_4738188.html');
												thumbnails[4738189] = new thumbnail(4738189,'63434','Avenue Q','DSC_75941_thumb.jpg',100, 100,1,'							photo_4738189.html');
												thumbnails[4739255] = new thumbnail(4739255,'271801','Orc<br>\r\nLord of the Rings','DSC_00291_thumb.jpg',100, 100,1,'							photo_4739255.html');
												thumbnails[4739431] = new thumbnail(4739431,'271801','Mamma Mia backstage','DSC_09261_thumb.jpg',100, 100,1,'							photo_4739431.html');
												thumbnails[4739434] = new thumbnail(4739434,'271800','Karin Renquist in<br>\r\nConversation','DSC_19741_thumb.jpg',100, 100,1,'							photo_4739434.html');
												thumbnails[4739436] = new thumbnail(4739436,'271800','Michael Jarrell at<br>\r\nQueen Elizabeth Hall','DSC_19791_thumb.jpg',100, 100,1,'							photo_4739436.html');
												thumbnails[4739437] = new thumbnail(4739437,'271801','Boris Johnson','DSC_24431_thumb.jpg',100, 100,1,'							photo_4739437.html');
												thumbnails[4739439] = new thumbnail(4739439,'271801','Christopher Biggins and Town Crier','DSC_26261_thumb.jpg',100, 100,1,'							photo_4739439.html');
												thumbnails[4739441] = new thumbnail(4739441,'271801','Benjamin Zephaniah in<br>\r\nParliament Square','DSC_27311_thumb.jpg',100, 100,1,'							photo_4739441.html');
												thumbnails[4739443] = new thumbnail(4739443,'271801','Nelson Mandela at unveiling','DSC_28871_thumb.jpg',100, 100,1,'							photo_4739443.html');
												thumbnails[4739444] = new thumbnail(4739444,'271801','Orc Backstage','DSC_29541_thumb.jpg',100, 100,1,'							photo_4739444.html');
												thumbnails[4739446] = new thumbnail(4739446,'271801','Dirty Dancing','DSC_30611_thumb.jpg',100, 100,1,'							photo_4739446.html');
												thumbnails[4739447] = new thumbnail(4739447,'271801','Gay Pride interviews','DSC_52462_thumb.jpg',100, 100,1,'							photo_4739447.html');
												thumbnails[4739448] = new thumbnail(4739448,'271801','Harry Potter cast at launch','DSC_38511_thumb.jpg',100, 100,1,'							photo_4739448.html');
												thumbnails[4739449] = new thumbnail(4739449,'271801','Harry Potter cast interviews','DSC_38681_thumb.jpg',100, 100,1,'							photo_4739449.html');
												thumbnails[4739450] = new thumbnail(4739450,'271801','Harry Potter cast launch','DSC_39401_thumb.jpg',100, 100,1,'							photo_4739450.html');
												thumbnails[4739451] = new thumbnail(4739451,'271801','Justin Fletcher','DSC_39441_thumb.jpg',100, 100,1,'							photo_4739451.html');
												thumbnails[4739452] = new thumbnail(4739452,'271800','Nuria Schoenberg','DSC_40291_thumb.jpg',100, 100,1,'							photo_4739452.html');
												thumbnails[4739454] = new thumbnail(4739454,'271801','Leicester Square Launch party','DSC_40581_thumb.jpg',100, 100,1,'							photo_4739454.html');
												thumbnails[4739455] = new thumbnail(4739455,'271801','Christopher Biggins and Admirer','DSC_44271_thumb.jpg',100, 100,1,'							photo_4739455.html');
												thumbnails[4739458] = new thumbnail(4739458,'271801','Christopher Biggins with cast of Priscilla','DSC_45041_thumb.jpg',100, 100,1,'							photo_4739458.html');
												thumbnails[4739459] = new thumbnail(4739459,'271801','Udderbelly performance','DSC_48871_thumb.jpg',100, 100,1,'							photo_4739459.html');
												thumbnails[4739460] = new thumbnail(4739460,'271801','West End Live crowd','DSC_50741_thumb.jpg',100, 100,1,'							photo_4739460.html');
												thumbnails[4739462] = new thumbnail(4739462,'271801','Gay Pride performers','DSC_51271_thumb.jpg',100, 100,1,'							photo_4739462.html');
												thumbnails[4739464] = new thumbnail(4739464,'271801','Gay Pride','DSC_52481_thumb.jpg',100, 100,1,'							photo_4739464.html');
												thumbnails[4739466] = new thumbnail(4739466,'271801','Gay Pride Adjustments','DSC_52691_thumb.jpg',100, 100,1,'							photo_4739466.html');
												thumbnails[4739469] = new thumbnail(4739469,'271801','Gay Pride love','DSC_52811_thumb.jpg',100, 100,1,'							photo_4739469.html');
												thumbnails[4739471] = new thumbnail(4739471,'271801','Gay Pride<br>\r\nhappy police','DSC_53651_thumb.jpg',100, 100,1,'							photo_4739471.html');
												thumbnails[4739473] = new thumbnail(4739473,'271801','Gay Pride<br>\r\nRest','DSC_54101_thumb.jpg',100, 100,1,'							photo_4739473.html');
												thumbnails[4739474] = new thumbnail(4739474,'271801','Gay Pride<br>\r\nBiro messages','DSC_54111_thumb.jpg',100, 100,1,'							photo_4739474.html');
												thumbnails[4739476] = new thumbnail(4739476,'271801','Gay Pride<br>\r\nPoochis','DSC_54281_thumb.jpg',100, 100,1,'							photo_4739476.html');
												thumbnails[4739477] = new thumbnail(4739477,'271801','Gay Pride opentop with<br>\r\nSir Ian McKellen and Diva','DSC_55821_thumb.jpg',99, 100,1,'							photo_4739477.html');
												thumbnails[4739478] = new thumbnail(4739478,'271801','Gay Pride<br>\r\nFestive','DSC_57081_thumb.jpg',100, 100,1,'							photo_4739478.html');
												thumbnails[4739479] = new thumbnail(4739479,'271801','Gay Pride opentop at<br>\r\nPiccadilly Circus','DSC_58081_thumb.jpg',100, 100,1,'							photo_4739479.html');
												thumbnails[4739480] = new thumbnail(4739480,'271801','Jason Donovan','DSC_68651_thumb.jpg',100, 100,1,'							photo_4739480.html');
												thumbnails[4739481] = new thumbnail(4739481,'271801','Christopher Biggins and Nancy','DSC_71151_thumb.jpg',100, 100,1,'							photo_4739481.html');
												thumbnails[4739483] = new thumbnail(4739483,'271801','Angelina Ballerina','DSC_75371_thumb.jpg',100, 100,1,'							photo_4739483.html');
												thumbnails[4743613] = new thumbnail(4743613,'63433','Saatchi Show Royal Academy<br>\r\nAmerican Art','8_thumb.jpg',100, 100,1,'							photo_4743613.html');
												thumbnails[4743616] = new thumbnail(4743616,'63433','Carl Andre<br>\r\nKarsten Schubert','andre_thumb.jpg',100, 100,1,'							photo_4743616.html');
												thumbnails[4743617] = new thumbnail(4743617,'63433','Dana Schutz<br>\r\nSaatchi Collection','Dana_Schutz_thumb.jpg',100, 100,1,'							photo_4743617.html');
												thumbnails[4743624] = new thumbnail(4743624,'63433','Art First <br>\r\nCork Street','DSC_1398_thumb.jpg',100, 100,1,'							photo_4743624.html');
												thumbnails[4743627] = new thumbnail(4743627,'63433','Saatchi Gallery<br>\r\nEducation Dept','DSC_1881_thumb.jpg',100, 100,1,'							photo_4743627.html');
												thumbnails[4743629] = new thumbnail(4743629,'63433','Saatchi Gallery<br>\r\nEducation Dept','DSC_2021_thumb.jpg',100, 100,1,'							photo_4743629.html');
												thumbnails[4743631] = new thumbnail(4743631,'63433','Saatchi Gallery<br>\r\nEducation Dept','DSC_2031_thumb.jpg',100, 100,1,'							photo_4743631.html');
												thumbnails[4743633] = new thumbnail(4743633,'63433','Saatchi Gallery<br>\r\nEducation Dept','DSC_2040_thumb.jpg',100, 100,1,'							photo_4743633.html');
												thumbnails[4743636] = new thumbnail(4743636,'63433','Richard Green Fine Art<br>\r\nAlbemarle Street','DSC_3602_thumb.jpg',100, 100,1,'							photo_4743636.html');
												thumbnails[4743638] = new thumbnail(4743638,'63433','Alexis Kersey studio photography<br>\r\nMysore South Indai','DSC_4737_thumb.jpg',100, 100,1,'							photo_4743638.html');
												thumbnails[4743642] = new thumbnail(4743642,'63433','Eileen Cooper<br>\r\nArt First','DSC_6888_thumb.jpg',100, 100,1,'							photo_4743642.html');
												thumbnails[4743646] = new thumbnail(4743646,'63433','Jenny Wiener<br>\r\nBearSpace Gallery','JWienerJerome_a_thumb.jpg',100, 100,1,'							photo_4743646.html');
												thumbnails[4743650] = new thumbnail(4743650,'63433','Lorraine Clarke<br>\r\nCatalogue for Nosce Te Ipsum','Lorraine_Clark_Catalogue_thumb.jpg',100, 100,1,'							photo_4743650.html');
												thumbnails[4743653] = new thumbnail(4743653,'63433','Hermann Nitsch<br>\r\nSaatchi Gallery','Nitsch_thumb.jpg',100, 100,1,'							photo_4743653.html');
												thumbnails[4743654] = new thumbnail(4743654,'63433','Barry Reigate<br>\r\nParadise Row','Reigate_Green_1_thumb.jpg',100, 100,1,'							photo_4743654.html');
												thumbnails[4743655] = new thumbnail(4743655,'63433','Saatchi Gallery Catalogue<br>\r\nTriumph of Painting','triumph_of_painting_thumb.jpg',100, 100,1,'							photo_4743655.html');
												thumbnails[4743660] = new thumbnail(4743660,'63433','Indian Contemporary<br>\r\nRob Dean Art','DSC_1022_thumb.jpg',100, 100,1,'							photo_4743660.html');
												thumbnails[4743664] = new thumbnail(4743664,'63435','Family Group<br>\r\nSt John\'s Wood','DSC_8321_thumb.jpg',100, 100,1,'							photo_4743664.html');
												thumbnails[4743666] = new thumbnail(4743666,'63435','Polo Day','Tusk_1_thumb.jpg',100, 100,1,'							photo_4743666.html');
												thumbnails[4743667] = new thumbnail(4743667,'63435','Polo Day','Tusk_5_thumb.jpg',100, 100,1,'							photo_4743667.html');
												thumbnails[4743669] = new thumbnail(4743669,'63435','Christmas Party','Xmas_Party_thumb.jpg',100, 100,1,'							photo_4743669.html');
												thumbnails[4743671] = new thumbnail(4743671,'63436','Petit Bateau <br>\r\ncut out','60309_classic_thumb.jpg',100, 100,1,'							photo_4743671.html');
												thumbnails[4743673] = new thumbnail(4743673,'63436','Bob the Builder<br>\r\nHIT Entertainment','Bob_The_Builder_Stills_thumb.jpg',100, 100,1,'							photo_4743673.html');
												thumbnails[4743678] = new thumbnail(4743678,'63436','Space NK <br>\r\nnew displays','DSC_1145_thumb.jpg',100, 100,1,'							photo_4743678.html');
												thumbnails[4743679] = new thumbnail(4743679,'63436','Space NK new displays','DSC_1151_thumb.jpg',100, 100,1,'							photo_4743679.html');
												thumbnails[4743680] = new thumbnail(4743680,'63436','White Company<br>\r\nPress Launch','DSC_1181_thumb.jpg',100, 100,1,'							photo_4743680.html');
												thumbnails[4743681] = new thumbnail(4743681,'63436','White Company<br>\r\nPress Launch','DSC_1140_thumb.jpg',100, 100,1,'							photo_4743681.html');
												thumbnails[4743682] = new thumbnail(4743682,'63436','Jamie Aston Flowers<br>\r\nGreat Portland St','DSC_3460_thumb.jpg',100, 100,1,'							photo_4743682.html');
												thumbnails[4743685] = new thumbnail(4743685,'63436','Jamie Aston Flowers','DSC_7608_thumb.jpg',100, 100,1,'							photo_4743685.html');
												thumbnails[4743686] = new thumbnail(4743686,'63436','Food Brands Group<br>\r\nPercol Packs','Food_Brands_Group_thumb.jpg',100, 100,1,'							photo_4743686.html');
												thumbnails[4743689] = new thumbnail(4743689,'63436','Nini\'s Treehouse<br>\r\nTelevision Marketing Photography','Ninis_treehouse_thumb.jpg',100, 100,1,'							photo_4743689.html');
												thumbnails[4743691] = new thumbnail(4743691,'63434','Chicago Backstage','Chicago_Backstage_thumb.jpg',100, 100,1,'							photo_4743691.html');
												thumbnails[4743692] = new thumbnail(4743692,'63434','Su Pollard','DSC_0484_thumb.jpg',100, 100,1,'							photo_4743692.html');
												thumbnails[4743694] = new thumbnail(4743694,'63434','Mamma Mia<br>\r\n','DSC_0629_thumb.jpg',100, 100,1,'							photo_4743694.html');
												thumbnails[4743695] = new thumbnail(4743695,'63434','Wicked','DSC_0956_thumb.jpg',100, 100,1,'							photo_4743695.html');
												thumbnails[4743696] = new thumbnail(4743696,'63434','Mamma Mia','DSC_3477_thumb.jpg',100, 100,1,'							photo_4743696.html');
												thumbnails[4743697] = new thumbnail(4743697,'63434','Mamma Mia<br>\r\nEvening Standard','mamma_mia_thumb.jpg',100, 100,1,'							photo_4743697.html');
												thumbnails[4743699] = new thumbnail(4743699,'271801','Gay Pride<br>\r\nbig boys','DSC_0716_thumb.jpg',100, 100,1,'							photo_4743699.html');
												thumbnails[4743701] = new thumbnail(4743701,'271801','Wicked<br>\r\nAftershow party','DSC_1944_thumb.jpg',100, 100,1,'							photo_4743701.html');
												thumbnails[4743702] = new thumbnail(4743702,'271801','West End Live Crowd','DSC_3515_thumb.jpg',100, 100,1,'							photo_4743702.html');
												thumbnails[4743705] = new thumbnail(4743705,'271801','Lord Mayor\'s Show<br>\r\nprparation','DSC_3707_thumb.jpg',100, 100,1,'							photo_4743705.html');
												thumbnails[4743709] = new thumbnail(4743709,'271801','Lord Mayor\'s Parade<br>\r\nBraiding','DSC_3866_thumb.jpg',100, 100,1,'							photo_4743709.html');
												thumbnails[4743711] = new thumbnail(4743711,'271801','Lord Mayor\'s Parade<br>\r\nGuards','DSC_3891_thumb.jpg',100, 100,1,'							photo_4743711.html');
												thumbnails[4743712] = new thumbnail(4743712,'271801','Lord Mayor\'s Parade<br>\r\nAuctioneers Carriage at St Paul\'s<br>\r\n','DSC_4073_thumb.jpg',100, 100,1,'							photo_4743712.html');
												thumbnails[4743713] = new thumbnail(4743713,'271801','Carnival time','DSC_5351_thumb.jpg',100, 100,1,'							photo_4743713.html');
												thumbnails[4743714] = new thumbnail(4743714,'271801','Jacques Derrida<br>\r\nExplaining himself ICA','Jacques_Derrida_thumb.jpg',100, 100,1,'							photo_4743714.html');
												thumbnails[4743716] = new thumbnail(4743716,'271801','London Parade<br>\r\nCheerleaders','London_Parade_thumb.jpg',100, 100,1,'							photo_4743716.html');
												thumbnails[4743718] = new thumbnail(4743718,'271801','The Stage Front Page<br>\r\nChicago','Stage_magazine_thumb.jpg',100, 100,1,'							photo_4743718.html');
												thumbnails[4743721] = new thumbnail(4743721,'271801','Astanga Yoga<br>\r\nSri K Patthabi Jois<br>\r\nworkshop ','Yoga_1_thumb.jpg',100, 100,1,'							photo_4743721.html');
												thumbnails[4743724] = new thumbnail(4743724,'63117','KPF Interior','DSC_0363_thumb.jpg',100, 100,1,'							photo_4743724.html');
												thumbnails[4743726] = new thumbnail(4743726,'63117','Kohn Pederson Fox<br>\r\nInterior','DSC_0384_thumb.jpg',100, 100,1,'							photo_4743726.html');
												thumbnails[4743728] = new thumbnail(4743728,'63117','Helicopter Photography<br>\r\nPRC Architects Dover','DSC_6614_thumb.jpg',100, 100,1,'							photo_4743728.html');
												thumbnails[4743730] = new thumbnail(4743730,'63117','Helicopter Photography<br>\r\nPRC Architects Dover','DSC_6776_thumb.jpg',100, 100,1,'							photo_4743730.html');
												thumbnails[4743731] = new thumbnail(4743731,'63117','Kohn Pederson Fox<br>\r\nLondon Interior','DSCF2107_thumb.jpg',100, 100,1,'							photo_4743731.html');
												thumbnails[4743733] = new thumbnail(4743733,'63117','Saatchi Signage<br>\r\nClearchannel','Saatchi_Signage_thumb.jpg',100, 100,1,'							photo_4743733.html');
												thumbnails[4743734] = new thumbnail(4743734,'63438','Citizens Advice<br>\r\nAnnual report','CAB_2_thumb.jpg',100, 100,1,'							photo_4743734.html');
												thumbnails[4743741] = new thumbnail(4743741,'63438','Citizens Advice<br>\r\nAnnual Report','CAB2_thumb.jpg',100, 100,1,'							photo_4743741.html');
												thumbnails[4743747] = new thumbnail(4743747,'63438','Fern Britton<br>\r\nSouth Bank Studios<br>\r\n','DSC_3168_thumb.jpg',100, 100,1,'							photo_4743747.html');
												thumbnails[4743749] = new thumbnail(4743749,'63438','Steen Associates<br>\r\nCovent Garden Firm','DSC_3676_thumb.jpg',100, 100,1,'							photo_4743749.html');
												thumbnails[4743785] = new thumbnail(4743785,'63438','Linford Christie<br>\r\nWestminster Schools','DSC_4427_thumb.jpg',100, 100,1,'							photo_4743785.html');
												thumbnails[4743786] = new thumbnail(4743786,'63438','Marcelle Price<br>\r\n','Marcell_Price_thumb.jpg',100, 100,1,'							photo_4743786.html');
												thumbnails[4743788] = new thumbnail(4743788,'63438','ACAVA Arts Group<br>\r\nSculptors in Schools','sis_entrance_panel_A4_thumb.jpg',100, 100,1,'							photo_4743788.html');
												thumbnails[4743790] = new thumbnail(4743790,'63438','Woody Allen and Scarlet Johanson<br>\r\non set','Woody_Allen_thumb.jpg',100, 100,1,'							photo_4743790.html');
												thumbnails[4743793] = new thumbnail(4743793,'63438','Yoga Workshop<br>\r\nbackbending','yoga_4_thumb.jpg',100, 100,1,'							photo_4743793.html');
												thumbnails[4743795] = new thumbnail(4743795,'63438','Yoga Class','yoga_12_thumb.jpg',100, 100,1,'							photo_4743795.html');
												thumbnails[4743801] = new thumbnail(4743801,'272179','Milky Christmas Card','DSC_8597_thumb.jpg',100, 100,1,'							photo_4743801.html');
												thumbnails[4743802] = new thumbnail(4743802,'272179','Milky Snowflake','DSC_8649a_thumb.jpg',100, 100,1,'							photo_4743802.html');
												thumbnails[4745243] = new thumbnail(4745243,'63438','School Prospectus','Carlton1_thumb.jpg',100, 100,1,'							photo_4745243.html');
												thumbnails[4745250] = new thumbnail(4745250,'63438','Christmas Party','kissing1_thumb.jpg',100, 100,1,'							photo_4745250.html');
												thumbnails[4745252] = new thumbnail(4745252,'63436','Museumaker <br>\r\nArts Council Museum Awareness Campaign','millgate1_thumb.jpg',100, 100,1,'							photo_4745252.html');
												thumbnails[4745255] = new thumbnail(4745255,'63436','IKEA<br>\r\nSummer catalogue','ikea1_thumb.jpg',100, 100,1,'							photo_4745255.html');
												thumbnails[4752256] = new thumbnail(4752256,'272691','Custaard Apple  2008<br>\r\nPoster Paint on Paper','Custard_Apple_thumb.jpg',100, 100,1,'							photo_4752256.html');
												thumbnails[4752260] = new thumbnail(4752260,'272691','Wrist watch  2008<br>\r\nPoster paint on paper','DSC_8119_thumb.jpg',100, 100,1,'							photo_4752260.html');
												thumbnails[4752263] = new thumbnail(4752263,'272691','Door Bell  2008<br>\r\nPoster paint on paper','DSC_8128_thumb.jpg',100, 100,1,'							photo_4752263.html');
												thumbnails[4752264] = new thumbnail(4752264,'272691','Holding Lingerie  2008<br>\r\nPoster paint on paper','DSC_8133_thumb.jpg',100, 100,1,'							photo_4752264.html');
												thumbnails[4752495] = new thumbnail(4752495,'272691','Girls Oiling  2008<br>\r\nPoster paint on paper','Girls_Oiling_thumb.jpg',100, 100,1,'							photo_4752495.html');
												thumbnails[4752496] = new thumbnail(4752496,'272691','Honeydew  2008<br>\r\nPoster paint on paper','Honeydew_thumb.jpg',100, 100,1,'							photo_4752496.html');
												thumbnails[4752497] = new thumbnail(4752497,'272691','Southern Star  2008<br>\r\nPoster paint on paper','Southern_Star_1_thumb.jpg',100, 100,1,'							photo_4752497.html');
												thumbnails[4754038] = new thumbnail(4754038,'272570','Andalucia <br>\r\nacrylic on inkjet','Andalucia_thumb.jpg',100, 100,1,'							photo_4754038.html');
												thumbnails[4754039] = new thumbnail(4754039,'272570','Appointment<br>\r\nacrylic on inkjet','Appointment_thumb.jpg',100, 100,1,'							photo_4754039.html');
												thumbnails[4754040] = new thumbnail(4754040,'272570','Jesus<br>\r\nacrylic on inkjet','Jesus_thumb.jpg',100, 100,1,'							photo_4754040.html');
												thumbnails[4754041] = new thumbnail(4754041,'272570','Liverpool Road','Liverpool_Road_thumb.jpg',100, 100,1,'							photo_4754041.html');
												thumbnails[4754042] = new thumbnail(4754042,'272570','Organic','Organic_thumb.jpg',100, 100,1,'							photo_4754042.html');
												thumbnails[4756072] = new thumbnail(4756072,'272689','Gokul Chats<br>\r\nAcrylic on khadi paper','Gokul_Chats_thumb.jpg',100, 100,1,'							photo_4756072.html');
												thumbnails[4756073] = new thumbnail(4756073,'272689','Leaves','Leaves_thumb.JPG',100, 100,1,'							photo_4756073.html');
												thumbnails[4756076] = new thumbnail(4756076,'272689','Lilies','Lilies_thumb.jpg',100, 100,1,'							photo_4756076.html');
												thumbnails[4756077] = new thumbnail(4756077,'272689','Man<br>\r\nAcrylic on khadi paper','Man_thumb.JPG',100, 100,1,'							photo_4756077.html');
												thumbnails[4756082] = new thumbnail(4756082,'272689','Milking','Milking_thumb.jpg',100, 100,1,'							photo_4756082.html');
												thumbnails[4756083] = new thumbnail(4756083,'272689','Viaduct','Viaduct_thumb.jpg',100, 100,1,'							photo_4756083.html');
												thumbnails[4756092] = new thumbnail(4756092,'272689','What are we going to do','What_are_we_Doing_thumb.jpg',100, 100,1,'							photo_4756092.html');
												thumbnails[4756105] = new thumbnail(4756105,'272690','Big Breakfast','Big_Breakfast_thumb.JPG',100, 100,1,'							photo_4756105.html');
												thumbnails[4756107] = new thumbnail(4756107,'272690','Freudian Slippers','Freudian_Slippers_thumb.JPG',100, 100,1,'							photo_4756107.html');
												thumbnails[4756109] = new thumbnail(4756109,'272690','Horse in a Bar','Horse_in_a_Bar_thumb.jpg',100, 100,1,'							photo_4756109.html');
												thumbnails[4756114] = new thumbnail(4756114,'272690','Nietzche','Nietsche_thumb.jpg',100, 100,1,'							photo_4756114.html');
												thumbnails[4756117] = new thumbnail(4756117,'272690','Panda in a Bar','Panda_in_a_Bar_thumb.JPG',100, 100,1,'							photo_4756117.html');
												thumbnails[4756120] = new thumbnail(4756120,'272690','Putting','Putting_thumb.JPG',100, 100,1,'							photo_4756120.html');
												thumbnails[4756124] = new thumbnail(4756124,'272690','Shower','Shower_thumb.JPG',100, 100,1,'							photo_4756124.html');
												thumbnails[4756128] = new thumbnail(4756128,'272690','Table tennis','Table_Tennis_1_thumb.JPG',100, 100,1,'							photo_4756128.html');
												thumbnails[4756143] = new thumbnail(4756143,'272690','Two Nuns','Two_Nuns_thumb.jpg',99, 100,1,'							photo_4756143.html');
												thumbnails[4756153] = new thumbnail(4756153,'272691','Dogs','Dogs_thumb.jpg',100, 100,1,'							photo_4756153.html');
												thumbnails[4756157] = new thumbnail(4756157,'272691','Sweeney','Sweeney_thumb.jpg',100, 100,1,'							photo_4756157.html');
												thumbnails[4790035] = new thumbnail(4790035,'272179','John in a Bottle','1_thumb.jpg',100, 100,1,'							photo_4790035.html');
												thumbnails[4790036] = new thumbnail(4790036,'272179','John in a Bottle','2_thumb.jpg',100, 100,1,'							photo_4790036.html');
												thumbnails[4790038] = new thumbnail(4790038,'272179','John in a Bottle','3_thumb.jpg',100, 100,1,'							photo_4790038.html');
												thumbnails[4790039] = new thumbnail(4790039,'272179','John in a Bottle','4_thumb.jpg',100, 100,1,'							photo_4790039.html');
												thumbnails[4790040] = new thumbnail(4790040,'272179','John in a Bottle','5_thumb.jpg',100, 100,1,'							photo_4790040.html');
												thumbnails[4790041] = new thumbnail(4790041,'272179','John in a Bottle','6_thumb.jpg',100, 100,1,'							photo_4790041.html');
												thumbnails[4790042] = new thumbnail(4790042,'272179','John in a Bottle','7_thumb.jpg',100, 100,1,'							photo_4790042.html');
												thumbnails[4790044] = new thumbnail(4790044,'272179','John in a Bottle','81_thumb.jpg',100, 100,1,'							photo_4790044.html');
												thumbnails[4790045] = new thumbnail(4790045,'272179','John in a Bottle','9_thumb.jpg',100, 100,1,'							photo_4790045.html');
												thumbnails[4790046] = new thumbnail(4790046,'272179','John in a Bottle','10_thumb.jpg',100, 100,1,'							photo_4790046.html');
												thumbnails[4811102] = new thumbnail(4811102,'63433','Alison Turnbull<br>\r\nMatt\'s Gallery Cover 2009','DSC_0624_copy_thumb.jpg',100, 100,1,'							photo_4811102.html');
												thumbnails[4811272] = new thumbnail(4811272,'63433','Roy Voss<br>\r\nMatt\'s Gallery<br>\r\nInstallation 2009','DSC_1623_copy_thumb.jpg',100, 100,1,'							photo_4811272.html');
												thumbnails[4811273] = new thumbnail(4811273,'63433','Roy Voss<br>\r\nMatt\'s Gallery','DSC_1766_copy_thumb.jpg',100, 100,1,'							photo_4811273.html');
												thumbnails[4811274] = new thumbnail(4811274,'63433','Jack Milroy<br>\r\nArt First','DSC_4777_copy_thumb.jpg',100, 100,1,'							photo_4811274.html');
												thumbnails[4811278] = new thumbnail(4811278,'63433','Jack Milroy<br>\r\nArt First','DSC_4960_copy_thumb.jpg',100, 100,1,'							photo_4811278.html');
												thumbnails[4811284] = new thumbnail(4811284,'63433','Gerald Laing<br>\r\n','DSC_5795_copy_thumb.jpg',100, 100,1,'							photo_4811284.html');
												thumbnails[4811290] = new thumbnail(4811290,'63433','Richard Cook<br>\r\nArt First<br>\r\nPortrait for Catalogue, Cornwall','DSC_8320_copy_thumb.jpg',100, 100,1,'							photo_4811290.html');
												thumbnails[4811294] = new thumbnail(4811294,'63433','Alison Turnbull<br>\r\nMatt\'s Gallery Catalogue','Test_1_copy_thumb.jpg',100, 99,1,'							photo_4811294.html');
												thumbnails[4811308] = new thumbnail(4811308,'275081','Bathroom Accident<br>\r\noil on canvas<br>\r\n5\' x 5\'','Bathroom_Accident_copy_thumb.jpg',100, 100,1,'							photo_4811308.html');
												thumbnails[4811313] = new thumbnail(4811313,'275081','Bird Table<br>\r\noil on paper<br>\r\n6\' x 6\'','Bird_Table_copy_thumb.jpg',100, 100,1,'							photo_4811313.html');
												thumbnails[4811317] = new thumbnail(4811317,'275081','Concourse Gallery installation','Concourse_Gallery_1_copy_thumb.jpg',100, 100,1,'							photo_4811317.html');
												thumbnails[4811324] = new thumbnail(4811324,'275081','Concourse Gallery','Concourse_Gallery_2_copy_thumb.jpg',100, 100,1,'							photo_4811324.html');
												thumbnails[4811337] = new thumbnail(4811337,'275081','In Bed With a Toaster<br>\r\n100 x 100cm','In_Bed_with_a_Toaster_copy_thumb.jpg',99, 100,1,'							photo_4811337.html');
												thumbnails[4811342] = new thumbnail(4811342,'275081','Incident<br>\r\noil on canvas<br>\r\n100 x 100cm','Incident_copy_thumb.jpg',100, 100,1,'							photo_4811342.html');
												thumbnails[4811347] = new thumbnail(4811347,'275081','Meatloaf Portrait<br>\r\noil on canvas<br>\r\n100 x 100cm','Meatloaf_Portrait_copy_thumb.jpg',99, 100,1,'							photo_4811347.html');
												thumbnails[4811349] = new thumbnail(4811349,'275081','Mop<br>\r\noil on canvas<br>\r\n100 x 100cm','Mop_copy_thumb.jpg',100, 100,1,'							photo_4811349.html');
												thumbnails[4811354] = new thumbnail(4811354,'275081','Narcissus<br>\r\noil on paper','Narcissus_copy_thumb.jpg',100, 100,1,'							photo_4811354.html');
												thumbnails[4811355] = new thumbnail(4811355,'275081','Peas<br>\r\noil on paper','Peas_copy_thumb.jpg',100, 100,1,'							photo_4811355.html');
												thumbnails[4811358] = new thumbnail(4811358,'275081','Mercury Gallery<br>\r\nInstallation','Sign_O_the_Times_copy_thumb.jpg',100, 100,1,'							photo_4811358.html');
												thumbnails[4811363] = new thumbnail(4811363,'275081','Smoker<br>\r\noil on canvas<br>\r\n100 x 100cm','Smoker_copy_thumb.jpg',100, 100,1,'							photo_4811363.html');
												thumbnails[4811366] = new thumbnail(4811366,'275081','Soup<br>\r\noil on paper','Soup_copy_thumb.jpg',100, 100,1,'							photo_4811366.html');
												thumbnails[4811377] = new thumbnail(4811377,'275081','Tattoo<br>\r\noil on canvas<br>\r\n180 x 100cm','Tattoo_copy_thumb.jpg',100, 100,1,'							photo_4811377.html');
												thumbnails[4811382] = new thumbnail(4811382,'275081','Tobacco God<br>\r\noil on canvas','Tobacco_God_copy_thumb.jpg',100, 100,1,'							photo_4811382.html');
												thumbnails[4811383] = new thumbnail(4811383,'275081','Wound<br>\r\noil on canvas<br>\r\n100 x 100cm','Wound_copy_thumb.jpg',99, 100,1,'							photo_4811383.html');
												thumbnails[4827339] = new thumbnail(4827339,'272179','Edward Lear Jumblies','Jumblie_03_copy_thumb.jpg',100, 100,1,'							photo_4827339.html');
												thumbnails[4827340] = new thumbnail(4827340,'272179','Edward Lear Jumblies','Jumblie_04_copy_thumb.jpg',100, 100,1,'							photo_4827340.html');
												thumbnails[4827341] = new thumbnail(4827341,'272179','Edward Lear Jumblies','Jumblie_05_copy_thumb.jpg',100, 100,1,'							photo_4827341.html');
												thumbnails[4827342] = new thumbnail(4827342,'272179','Edward Lear Jumblies','Jumblie_07_copy_thumb.jpg',100, 100,1,'							photo_4827342.html');
												thumbnails[4827343] = new thumbnail(4827343,'272179','Edward Lear Jumblies','Jumblie_09_copy_thumb.jpg',100, 100,1,'							photo_4827343.html');
												thumbnails[4853771] = new thumbnail(4853771,'63433','Saatchi Education Opening<br>\r\nAmerican Abstract 2009','DSC_9732_copy_thumb.jpg',100, 100,1,'							photo_4853771.html');
												thumbnails[4853797] = new thumbnail(4853797,'63433','Saatchi Education Opening<br>\r\nAmerican Abstract 2009','DSC_9821_copy_thumb.jpg',100, 100,1,'							photo_4853797.html');
												thumbnails[4853801] = new thumbnail(4853801,'63433','Artist with work','DSC_9881_copy_thumb.jpg',100, 100,1,'							photo_4853801.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[271801] = new gallery(271801,'4739255','Events','gallery',[4739255,4739431,4739437,4739439,4739441,4739443,4739444,4739446,4739447,4739448,4739449,4739450,4739451,4739454,4739455,4739458,4739459,4739460,4739462,4739464,4739466,4739469,4739471,4739473,4739474,4739476,4739477,4739478,4739479,4739480,4739481,4739483,4743699,4743701,4743702,4743705,4743709,4743711,4743712,4743713,4743714,4743716,4743718,4743721],0, 0, '272532', '																																																																																																							gallery_271801.html',0,0);
				  					galleries[272689] = new gallery(272689,'4756092,4756083,4756082,4756077,4756076,4756073,4756072','India 2004','gallery',[4756072,4756073,4756076,4756077,4756082,4756083,4756092],0, 0, '272525', '																																																																																																							gallery_272689.html',0,0);
				  					galleries[271800] = new gallery(271800,'4737707','music','gallery',[4737707,4738063,4738065,4738066,4738067,4738069,4738072,4738073,4738080,4738083,4738086,4739434,4739436,4739452],0, 0, '272532', '																																																																																																							gallery_271800.html',0,0);
				  					galleries[272690] = new gallery(272690,'4756143,4756128,4756124,4756120,4756117,4756114,4756109,4756107,4756105','Painting 2006-07','gallery',[4756105,4756107,4756109,4756114,4756117,4756120,4756124,4756128,4756143],0, 0, '272525', '																																																																																																							gallery_272690.html',0,0);
				  					galleries[272691] = new gallery(272691,'4752496','Painting 2008-2009','gallery',[4752256,4752260,4752263,4752264,4752495,4752496,4752497,4756153,4756157],0, 0, '272525', '																																																																																																							gallery_272691.html',0,0);
				  					galleries[275081] = new gallery(275081,'4811383,4811382,4811377,4811366,4811363,4811358,4811355,4811354,4811349,4811347','Painting pre 2000','gallery',[4811308,4811313,4811317,4811324,4811337,4811342,4811347,4811349,4811354,4811355,4811358,4811363,4811366,4811377,4811382,4811383],0, 0, '272525', '																																																																																																							gallery_275081.html',0,0);
				  					galleries[272570] = new gallery(272570,'4754041','Photo Paintings','gallery',[4754038,4754039,4754040,4754041,4754042],0, 0, '272525', '																																																																																																							gallery_272570.html',0,0);
				  					galleries[63117] = new gallery(63117,'4743726,4743724','Architecture','gallery',[818015,818053,818068,818084,818092,818098,4743724,4743726,4743728,4743730,4743731,4743733],0, 0, '272532', '																																																																																																							gallery_63117.html',0,0);
				  					galleries[272532] = new gallery(272532,'4743790,4743726,4743724,4743673,4743629,4739255,4738169,4738125,4737707','Photography','gallery',[],0, 0, '', '																																																																																																							gallery_272532.html',0,0);
				  					galleries[63433] = new gallery(63433,'4743629','Art & Artists','gallery',[4743613,4743616,4743617,4743624,4743627,4743629,4743631,4743633,4743636,4743638,4743642,4743646,4743650,4743653,4743654,4743655,4743660,4811102,4811272,4811273,4811274,4811278,4811284,4811290,4811294,4853771,4853797,4853801],0, 0, '272532', '																																																																																																							gallery_63433.html',0,0);
				  					galleries[63434] = new gallery(63434,'4738169','Performance','gallery',[4738149,4738151,4738154,4738156,4738158,4738159,4738160,4738162,4738164,4738166,4738168,4738169,4738173,4738174,4738177,4738178,4738181,4738184,4738188,4738189,4743691,4743692,4743694,4743695,4743696,4743697],0, 0, '272532', '																																																																																																							gallery_63434.html',0,0);
				  					galleries[63435] = new gallery(63435,'4738125','Social','gallery',[4738101,4738103,4738106,4738109,4738112,4738114,4738116,4738117,4738119,4738122,4738123,4738125,4738127,4738132,4738134,4743664,4743666,4743667,4743669],0, 0, '272532', '																																																																																																							gallery_63435.html',0,0);
				  					galleries[63436] = new gallery(63436,'4743673','Product','gallery',[4743671,4743673,4743678,4743679,4743680,4743681,4743682,4743685,4743686,4743689,4745252,4745255],0, 0, '272532', '																																																																																																							gallery_63436.html',0,0);
				  					galleries[272525] = new gallery(272525,'4754041,4752496,4743802','Paintings','gallery',[],0, 0, '', '																																																																																																							gallery_272525.html',0,0);
				  					galleries[63438] = new gallery(63438,'4743790','People','gallery',[4743734,4743741,4743747,4743749,4743785,4743786,4743788,4743790,4743793,4743795,4745243,4745250],0, 0, '272532', '																																																																																																							gallery_63438.html',0,0);
				  					galleries[272179] = new gallery(272179,'4743802','Illustration and Design','gallery',[4743801,4743802,4790035,4790036,4790038,4790039,4790040,4790041,4790042,4790044,4790045,4790046,4827339,4827340,4827341,4827342,4827343],0, 0, '272525', '																																																																																																							gallery_272179.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '4738169';
imageSets[2] = '4754041,4752496,4743802,4743790,4743726,4743724,4743673,4743629,4739255,4738169,4738125,4737707';
imageSets[3] = '4853801,4853797,4853771,4827343,4827342,4827341,4827340,4827339,4811383,4811382,4811377,4811366,4811363,4811358,4811355,4811354,4811349,4811347,4811342,4811337,4811324,4811317,4811313,4811308,4811294,4811290,4811284,4811278,4811274,4811273,4811272,4811102,4790046,4790045,4790044,4790042,4790041,4790040,4790039,4790038,4790036,4790035,4756227,4756157,4756153,4756143,4756128,4756124,4756120,4756117';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/justinpiperger/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/justinpiperger/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/justinpiperger/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/justinpiperger/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://www.clikchurch.com/justinpiperger/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/justinpiperger/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/justinpiperger/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/justinpiperger/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/justinpiperger/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/justinpiperger/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/justinpiperger/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/justinpiperger/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/justinpiperger/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/justinpiperger/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/justinpiperger/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/justinpiperger/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/justinpiperger/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/justinpiperger/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/justinpiperger/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/justinpiperger/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/justinpiperger/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {

	imageID = randomListVal('');
		if (!basic) {
	img.src = photos[imageID].src;
	img.width = photos[imageID].width;
	img.height = photos[imageID].height;
  img.parentNode.title = img.alt = photos[imageID].caption;
	}
	else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
				
	}
			}

function getHomeImageLink(imageID) {
  	var href='', photo = backgrounds && backgrounds[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}
/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
  var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
		if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
    
  updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
  var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
      op = $.extend({},defaults,options),
      html = '', temp = '',
      photoId = op.nextPhoto.id,
      photoCaption = op.nextPhoto.caption,
      photoSrc = op.nextPhoto.src;
		
		if (!basic) {
    if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
    }
				
    if (op.$photo.length > 0) {
      html = $('<img/>',{
        'class': 'mainphoto photo',
        src: photoSrc,
        id: 'mainPic',
        name: 'mainPic',
        width: op.nextPhoto.width,
        height: op.nextPhoto.height,
        alt: photoCaption,
        css: op.css || {}
      });
      if (op.href) {
      	if (op.href.match(/<a/)) {
      	  html = $(op.href).append(html);
      	} else {
		  html = $('<a/>', {
			href: op.href,
			title: photoCaption
		  }).append(html);
	    }
      } else {
      	html = $('<a/>', {
			title: photoCaption
		  }).append(html);
      }
      if (op.speed == 0) {        op.$photo.html(html);        if (op.onBefore) {          op.onBefore.apply(op.$photo);        }        if (op.onAfter) {          op.onAfter.apply(op.$photo);        }      } else {        op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){            if (op.onAfter) {		    op.onAfter.apply(this);          }		  clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));		}, op.onBefore);
      }    }
    	if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'Justin Piperger : ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
	    var options = {};	    	      	      resizePhotoInfo(options);
        if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
  	      toggleAddToCartConfirm(backgrounds);
  	    } else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
  	      toggleAddToCartConfirm(photos);
  	    }
	    });
    }
        if (!op.speed) {      clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));    }        
    return html;			}
	else {
				
		window.location = 'photo_' + nextPhoto.id + '.html';
	}
		
}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array){
  if (typeof(array) !== 'object') {
    array = photos;
  }
	if($('#paymentConfirm').length > 0){
		$('#paymentConfirm').hide();
		$('#paymentAddButton')
		.unbind()
		.click(function(){
						form = document.getElementById('paymentForm');
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm').text('Item added to cart').show();}
				else{
					$('#paymentConfirm').text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm').text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}
/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp = temp +  '<p id="imageDescription">' + this.description + '</p>';
	}
		if (this.photo_ref != '') {
		temp = temp + '<p class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</p>';
	}
		if (this.takendate != '') {
				
		temp = temp + '<p class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</p>';
	}
	
	if (this.location != '') {
				
		temp = temp + '<p class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</p>';
	}
	
	if (this.photographer != '') {
				
		temp = temp + '<p class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</p>';
	}
					
				if (temp != '') {
		temp = temp + '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp = temp + '<p>Order this print:</p>';
				temp = temp + '<p class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> 							' + (this.item_price).toFixed(2) + '</p>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.payment_groups_id !== '') {
		temp = temp + '<p>Buy this print online:</p>';
				temp = temp + '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp = temp + '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
				
		temp = temp + getPaymentOptions(this.payment_groups_id);
		temp = temp + '</select>';
		temp = temp + '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
	else {
				
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
			temp = temp + '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
		
	if(img){
	      if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
        imageID = imageID[1];
      } else {
			  imageID = randomListVal(galleries[gallery_id].featured_images);
      }
							
			if (imageID != 0) {
				img.src = thumbnails[imageID].src;
				img.width = thumbnails[imageID].width;
				img.height = thumbnails[imageID].height;
				img.alt = galleries[gallery_id].title;
        if (updateLink) {
          $(img).parent().attr({            href: thumbnails[imageID].fnGalleryLink(gallery_id),            title: galleries[gallery_id].title          });
        }
							}
										}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp = temp + ' | ';
				}
				temp = temp + '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
			}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

