window.thumbnails = {};
															thumbnails[1766359] = clik.newPhoto({"id":1766359,"src":"0863g1_thumb.jpg","galleries_id":116551,"server_id":1,"link":"photo_1766359.html","width":130,"caption":"Lamb","height":198});
															thumbnails[1766363] = clik.newPhoto({"id":1766363,"src":"Jamie T_21_thumb.jpg","galleries_id":116551,"server_id":1,"link":"photo_1766363.html","width":130,"caption":"Jamie T","height":194});
															thumbnails[1766364] = clik.newPhoto({"id":1766364,"src":"0863h1_thumb.jpg","galleries_id":116551,"server_id":1,"link":"photo_1766364.html","width":130,"caption":"Lamb","height":198});
															thumbnails[1766366] = clik.newPhoto({"id":1766366,"src":"Captain1_thumb.jpg","galleries_id":116551,"server_id":1,"link":"photo_1766366.html","width":130,"caption":"Captain","height":197});
															thumbnails[1766370] = clik.newPhoto({"id":1766370,"src":"ianbrown51_thumb.jpg","galleries_id":116551,"server_id":1,"link":"photo_1766370.html","width":130,"caption":"Ian Brown","height":93});
															thumbnails[1766372] = clik.newPhoto({"id":1766372,"src":"mercury rev1_thumb.jpg","galleries_id":116551,"server_id":1,"link":"photo_1766372.html","width":130,"caption":"Mercury Rev","height":91});
															thumbnails[1766373] = clik.newPhoto({"id":1766373,"src":"rootsmanuva21_thumb.jpg","galleries_id":116551,"server_id":1,"link":"photo_1766373.html","width":130,"caption":"Roots Manuva","height":86});
															thumbnails[1766377] = clik.newPhoto({"id":1766377,"src":"tim61_thumb.jpg","galleries_id":116551,"server_id":1,"link":"photo_1766377.html","width":130,"caption":"The Charlatans","height":108});
															thumbnails[1766378] = clik.newPhoto({"id":1766378,"src":"DSC_00621_thumb.jpg","galleries_id":116541,"server_id":1,"link":"photo_1766378.html","width":130,"caption":"Andrew Lancel","height":199});
															thumbnails[1766381] = clik.newPhoto({"id":1766381,"src":"Lisa Maxwell1_thumb.jpg","galleries_id":116541,"server_id":1,"link":"photo_1766381.html","width":130,"caption":"Lisa Maxwell","height":199});
															thumbnails[1766386] = clik.newPhoto({"id":1766386,"src":"LL_011_thumb.jpg","galleries_id":116541,"server_id":1,"link":"photo_1766386.html","width":130,"caption":"Louisa Lytton","height":199});
															thumbnails[1766421] = clik.newPhoto({"id":1766421,"src":"289-2b1_thumb.jpg","galleries_id":116530,"server_id":1,"link":"photo_1766421.html","width":130,"caption":"The Bill - ITV","height":181});
															thumbnails[1766423] = clik.newPhoto({"id":1766423,"src":"373-36j1_thumb.jpg","galleries_id":116530,"server_id":1,"link":"photo_1766423.html","width":130,"caption":"The Bill - ITV","height":195});
															thumbnails[1766424] = clik.newPhoto({"id":1766424,"src":"455-47e1_thumb.jpg","galleries_id":116530,"server_id":1,"link":"photo_1766424.html","width":130,"caption":"The Bill - ITV","height":195});
															thumbnails[1813703] = clik.newPhoto({"id":1813703,"src":"Alex_Casual_22_thumb.jpg","galleries_id":116541,"server_id":1,"link":"photo_1813703.html","width":130,"caption":"Alex Walkinshaw","height":197});
															thumbnails[1813704] = clik.newPhoto({"id":1813704,"src":"Simon_Casual_43_B&W_thumb.jpg","galleries_id":116541,"server_id":1,"link":"photo_1813704.html","width":130,"caption":"Simon Rouse","height":195});
															thumbnails[1813706] = clik.newPhoto({"id":1813706,"src":"Class of 2007 - The Bill_thumb.jpg","galleries_id":116541,"server_id":1,"link":"photo_1813706.html","width":130,"caption":"The Bill","height":93});
															thumbnails[6000929] = clik.newPhoto({"id":6000929,"src":"ITCrowd_Group_Facesinthecomputer_01_Resized_thumb.jpg","galleries_id":116541,"server_id":1,"link":"photo_6000929.html","width":130,"caption":"The IT Crowd","height":190});
															thumbnails[6000937] = clik.newPhoto({"id":6000937,"src":"TAKEMEOUT_PADDYGIRLS_01_Resized_thumb.jpg","galleries_id":116541,"server_id":1,"link":"photo_6000937.html","width":130,"caption":"Take Me out","height":191});
															thumbnails[6000940] = clik.newPhoto({"id":6000940,"src":"ITCrowd_Group_Sofa_002_Resized_thumb.jpg","galleries_id":116541,"server_id":1,"link":"photo_6000940.html","width":130,"caption":"The IT Crowd","height":92});
															thumbnails[6000941] = clik.newPhoto({"id":6000941,"src":"CelebrityJuice_039_Resized_thumb.jpg","galleries_id":116541,"server_id":1,"link":"photo_6000941.html","width":130,"caption":"Celebrity Juice","height":195});
															thumbnails[6000942] = clik.newPhoto({"id":6000942,"src":"WDW_Tracy-Ann_Oberman_10_Resized_thumb.jpg","galleries_id":116541,"server_id":1,"link":"photo_6000942.html","width":130,"caption":"Who Does What?","height":195});
															thumbnails[6000950] = clik.newPhoto({"id":6000950,"src":"01-52rr_Resized_thumb.jpg","galleries_id":116530,"server_id":1,"link":"photo_6000950.html","width":130,"caption":"The Bill","height":86});
															thumbnails[6000953] = clik.newPhoto({"id":6000953,"src":"03-22ll_Resized_thumb.jpg","galleries_id":116530,"server_id":1,"link":"photo_6000953.html","width":130,"caption":"The Bill","height":177});
															thumbnails[6000954] = clik.newPhoto({"id":6000954,"src":"03-23f_Resized_thumb.jpg","galleries_id":116530,"server_id":1,"link":"photo_6000954.html","width":130,"caption":"The Bill","height":84});
															thumbnails[6000955] = clik.newPhoto({"id":6000955,"src":"24-27ooo_Resized_thumb.jpg","galleries_id":116530,"server_id":1,"link":"photo_6000955.html","width":130,"caption":"The Bill","height":190});
															thumbnails[6000956] = clik.newPhoto({"id":6000956,"src":"668-47ee_2_Resized_thumb.jpg","galleries_id":116530,"server_id":1,"link":"photo_6000956.html","width":130,"caption":"The Bill","height":88});
															thumbnails[6000957] = clik.newPhoto({"id":6000957,"src":"CelebrityJuice_Radio1vThisMorning_051_Resized_thumb.jpg","galleries_id":116530,"server_id":1,"link":"photo_6000957.html","width":130,"caption":"Celebrity Juice","height":86});
															thumbnails[6000959] = clik.newPhoto({"id":6000959,"src":"CelebrityJuice_Radio1vThisMorning_059_Resized_thumb.jpg","galleries_id":116530,"server_id":1,"link":"photo_6000959.html","width":130,"caption":"Celebrity Juice","height":198});
															thumbnails[6000960] = clik.newPhoto({"id":6000960,"src":"CelebrityJuice_Radio1vThisMorning_075_Resized_thumb.jpg","galleries_id":116530,"server_id":1,"link":"photo_6000960.html","width":130,"caption":"Celebrity Juice","height":91});
															thumbnails[6000962] = clik.newPhoto({"id":6000962,"src":"HITW_EP11_11_024_Resized_thumb.jpg","galleries_id":116530,"server_id":1,"link":"photo_6000962.html","width":130,"caption":"Hole In The Wall","height":195});
															thumbnails[6000963] = clik.newPhoto({"id":6000963,"src":"HITW_EP11_11_048_Resized_thumb.jpg","galleries_id":116530,"server_id":1,"link":"photo_6000963.html","width":130,"caption":"Hole In The Wall","height":195});
															thumbnails[6000975] = clik.newPhoto({"id":6000975,"src":"TakeMeOut_PaddyMcGuinness_069_Resized_thumb.jpg","galleries_id":116541,"server_id":1,"link":"photo_6000975.html","width":130,"caption":"Paddy McGuinness","height":195});
															thumbnails[6000980] = clik.newPhoto({"id":6000980,"src":"Simon_01_Resized_thumb.jpg","galleries_id":116541,"server_id":1,"link":"photo_6000980.html","width":130,"caption":"The King Is Dead","height":57});
															thumbnails[6001043] = clik.newPhoto({"id":6001043,"src":"GBTJ_001_Resized_thumb.jpg","galleries_id":116541,"server_id":1,"link":"photo_6001043.html","width":130,"caption":"Great British Railway Journeys","height":195});
															thumbnails[6001045] = clik.newPhoto({"id":6001045,"src":"Buzzcocks_DTennant_155_Resized_thumb.jpg","galleries_id":116541,"server_id":1,"link":"photo_6001045.html","width":130,"caption":"Never Mind The Buzzcocks","height":201});
															thumbnails[6001073] = clik.newPhoto({"id":6001073,"src":"TakeMeOut_Show2_061_Resized_thumb.jpg","galleries_id":116530,"server_id":1,"link":"photo_6001073.html","width":130,"caption":"Take Me Out","height":91});
															thumbnails[6001075] = clik.newPhoto({"id":6001075,"src":"TakeMeOut_Show4_103_Resized_thumb.jpg","galleries_id":116530,"server_id":1,"link":"photo_6001075.html","width":130,"caption":"Take Me Out","height":188});
															thumbnails[6001077] = clik.newPhoto({"id":6001077,"src":"HITW_EP2_05_080_Resized_thumb.jpg","galleries_id":116530,"server_id":1,"link":"photo_6001077.html","width":130,"caption":"Hole In The Wall","height":86});
															thumbnails[6814962] = clik.newPhoto({"id":6814962,"src":"Alex_Walkinshaw__Rupert_Hill_27_thumb.jpg","galleries_id":116541,"server_id":1,"link":"photo_6814962.html","width":130,"caption":"Alex Walkinshaw and Rupert Hill - The Bill","height":85});
															thumbnails[6814965] = clik.newPhoto({"id":6814965,"src":"THE_ROB_BRYDON_SHOW_ClipsShow_003_thumb.JPG","galleries_id":116530,"server_id":1,"link":"photo_6814965.html","width":130,"caption":"The Rob Brydon Show","height":196});
															thumbnails[6814975] = clik.newPhoto({"id":6814975,"src":"THE_ROB_BRYDON_SHOW_DavidWalliams_055_thumb.JPG","galleries_id":116530,"server_id":1,"link":"photo_6814975.html","width":130,"caption":"The Rob Brydon Show","height":86});
															thumbnails[6815040] = clik.newPhoto({"id":6815040,"src":"THE_ROB_BRYDON_SHOW_JamesCorden_051_thumb.JPG","galleries_id":116530,"server_id":1,"link":"photo_6815040.html","width":130,"caption":"The Rob Brydon Show","height":88});
															thumbnails[6815046] = clik.newPhoto({"id":6815046,"src":"THE_ROB_BRYDON_SHOW_TerryWogan_077_thumb.JPG","galleries_id":116530,"server_id":1,"link":"photo_6815046.html","width":130,"caption":"The Rob Brydon Show","height":82});
															thumbnails[6815058] = clik.newPhoto({"id":6815058,"src":"THE_ROB_BRYDON_SHOW_RonnnieCorbett_129_thumb.JPG","galleries_id":116551,"server_id":1,"link":"photo_6815058.html","width":130,"caption":"Paloma Faith","height":88});
															thumbnails[6815061] = clik.newPhoto({"id":6815061,"src":"THE_ROB_BRYDON_SHOW_StephenFry_090_thumb.JPG","galleries_id":116551,"server_id":1,"link":"photo_6815061.html","width":130,"caption":"Seasick Steve","height":192});
															thumbnails[6815211] = clik.newPhoto({"id":6815211,"src":"3-31i_thumb.jpg","galleries_id":116530,"server_id":1,"link":"photo_6815211.html","width":130,"caption":"Little Devil","height":84});
															thumbnails[6815213] = clik.newPhoto({"id":6815213,"src":"Scene_62b__thumb.jpg","galleries_id":116530,"server_id":1,"link":"photo_6815213.html","width":130,"caption":"Little Devil","height":204});
															thumbnails[6815220] = clik.newPhoto({"id":6815220,"src":"BeerPizzaClub_Show1_012_thumb.JPG","galleries_id":116530,"server_id":1,"link":"photo_6815220.html","width":130,"caption":"Richard Bacon's Beer & Pizza Club","height":87});
															thumbnails[6815223] = clik.newPhoto({"id":6815223,"src":"BeerPizzaClub_Show3_063_thumb.JPG","galleries_id":116530,"server_id":1,"link":"photo_6815223.html","width":130,"caption":"Richard Bacon's Beer & Pizza Club","height":207});
															thumbnails[6827453] = clik.newPhoto({"id":6827453,"src":"Scott_3_thumb.jpg","galleries_id":116541,"server_id":1,"link":"photo_6827453.html","width":130,"caption":"Scott Maslen","height":191});
															thumbnails[6827460] = clik.newPhoto({"id":6827460,"src":"THE_BILL_We_Love_Telly_011_thumb.jpg","galleries_id":116541,"server_id":1,"link":"photo_6827460.html","width":130,"caption":"The Bill","height":182});
															thumbnails[6827462] = clik.newPhoto({"id":6827462,"src":"DSC_0088_thumb.jpg","galleries_id":116541,"server_id":1,"link":"photo_6827462.html","width":130,"caption":"The Bill","height":204});
															thumbnails[6827474] = clik.newPhoto({"id":6827474,"src":"ETTC_NC_057_thumb.jpg","galleries_id":116541,"server_id":1,"link":"photo_6827474.html","width":130,"caption":"Escape To The Country - Nicki Chapman","height":195});
															thumbnails[7149667] = clik.newPhoto({"id":7149667,"src":"Dave__Lou_01_thumb.jpg","galleries_id":386428,"server_id":1,"link":"photo_7149667.html","width":130,"caption":"","height":93});
															thumbnails[7149675] = clik.newPhoto({"id":7149675,"src":"HM_090_thumb.jpg","galleries_id":386428,"server_id":1,"link":"photo_7149675.html","width":130,"caption":"","height":93});
															thumbnails[7149676] = clik.newPhoto({"id":7149676,"src":"HM_352_thumb.jpg","galleries_id":386428,"server_id":1,"link":"photo_7149676.html","width":130,"caption":"","height":91});
															thumbnails[7149678] = clik.newPhoto({"id":7149678,"src":"Dave__Lou_08_thumb.jpg","galleries_id":386428,"server_id":1,"link":"photo_7149678.html","width":130,"caption":"","height":182});
															thumbnails[7149679] = clik.newPhoto({"id":7149679,"src":"SF_074_thumb.jpg","galleries_id":386428,"server_id":1,"link":"photo_7149679.html","width":130,"caption":"","height":196});
															thumbnails[7149681] = clik.newPhoto({"id":7149681,"src":"Mark__Lisa_514_thumb.jpg","galleries_id":386428,"server_id":1,"link":"photo_7149681.html","width":130,"caption":"","height":205});
															thumbnails[7149685] = clik.newPhoto({"id":7149685,"src":"SF_187_thumb.jpg","galleries_id":386428,"server_id":1,"link":"photo_7149685.html","width":130,"caption":"","height":93});
															thumbnails[7149686] = clik.newPhoto({"id":7149686,"src":"Mark__Lisa_330_thumb.jpg","galleries_id":386428,"server_id":1,"link":"photo_7149686.html","width":130,"caption":"","height":85});
															thumbnails[7202671] = clik.newPhoto({"id":7202671,"src":"DL_046_thumb.jpg","galleries_id":386428,"server_id":1,"link":"photo_7202671.html","width":130,"caption":"","height":86});
															thumbnails[7202674] = clik.newPhoto({"id":7202674,"src":"DL_092_thumb.jpg","galleries_id":386428,"server_id":1,"link":"photo_7202674.html","width":130,"caption":"","height":195});
															thumbnails[7202680] = clik.newPhoto({"id":7202680,"src":"MM.jpg_thumb.jpg","galleries_id":116541,"server_id":1,"link":"photo_7202680.html","width":130,"caption":"Maria Marchant - Pianist","height":211});
															thumbnails[7202682] = clik.newPhoto({"id":7202682,"src":"MM_045_BW_thumb.jpg","galleries_id":116541,"server_id":1,"link":"photo_7202682.html","width":130,"caption":"Maria Marchant - Pianist","height":192});
															thumbnails[7202691] = clik.newPhoto({"id":7202691,"src":"Swarovski_SS__004_thumb.jpg","galleries_id":389254,"server_id":1,"link":"photo_7202691.html","width":130,"caption":"Swarovski","height":91});
															thumbnails[7202701] = clik.newPhoto({"id":7202701,"src":"Swarovski_SS__080_thumb.jpg","galleries_id":389254,"server_id":1,"link":"photo_7202701.html","width":130,"caption":"Swarovski","height":85});
															thumbnails[7202703] = clik.newPhoto({"id":7202703,"src":"Swarovski_SS__064_thumb.jpg","galleries_id":389254,"server_id":1,"link":"photo_7202703.html","width":130,"caption":"Swarovski","height":86});
															thumbnails[7202705] = clik.newPhoto({"id":7202705,"src":"Swarovski_SummerBall09_042_thumb.jpg","galleries_id":389254,"server_id":1,"link":"photo_7202705.html","width":130,"caption":"Swarovski","height":199});
															thumbnails[7202894] = clik.newPhoto({"id":7202894,"src":"DSC_0091_thumb.jpg","galleries_id":389262,"server_id":1,"link":"photo_7202894.html","width":130,"caption":"","height":198});
															thumbnails[7202899] = clik.newPhoto({"id":7202899,"src":"Eros_thumb.jpg","galleries_id":389262,"server_id":1,"link":"photo_7202899.html","width":130,"caption":"","height":195});
															thumbnails[7202901] = clik.newPhoto({"id":7202901,"src":"Scooter_thumb.jpg","galleries_id":389262,"server_id":1,"link":"photo_7202901.html","width":130,"caption":"","height":196});
															thumbnails[7202902] = clik.newPhoto({"id":7202902,"src":"DSC_0196_thumb.jpg","galleries_id":389262,"server_id":1,"link":"photo_7202902.html","width":130,"caption":"","height":82});
															thumbnails[7202903] = clik.newPhoto({"id":7202903,"src":"DSC_0092_21_thumb.jpg","galleries_id":389262,"server_id":1,"link":"photo_7202903.html","width":130,"caption":"","height":85});
															thumbnails[7202908] = clik.newPhoto({"id":7202908,"src":"view_from_tower_block_5_thumb.jpg","galleries_id":389262,"server_id":1,"link":"photo_7202908.html","width":130,"caption":"","height":86});
															thumbnails[7480555] = clik.newPhoto({"id":7480555,"src":"AshleyCentre_GV_013_thumb.JPG","galleries_id":389254,"server_id":1,"link":"photo_7480555.html","width":130,"caption":"The Ashley Centre, Epsom. Image for advert","height":86});
															thumbnails[7480556] = clik.newPhoto({"id":7480556,"src":"AshleyCentre_GV_003_thumb.JPG","galleries_id":389254,"server_id":1,"link":"photo_7480556.html","width":130,"caption":"The Ashley Centre, Epsom, Image for advert","height":86});
															thumbnails[7480561] = clik.newPhoto({"id":7480561,"src":"Swarovski_KLemon_04_thumb.JPG","galleries_id":389254,"server_id":1,"link":"photo_7480561.html","width":130,"caption":"Artist Kerry Lemon working for Swarovski","height":86});
															thumbnails[7480562] = clik.newPhoto({"id":7480562,"src":"Swarovski_KLemon_28_thumb.JPG","galleries_id":389254,"server_id":1,"link":"photo_7480562.html","width":130,"caption":"Artist Kerry Lemon working for Swarovski","height":179});
															thumbnails[7480564] = clik.newPhoto({"id":7480564,"src":"ti030879f_thumb.JPG","galleries_id":389254,"server_id":1,"link":"photo_7480564.html","width":130,"caption":"Image for restaurant review","height":198});
															thumbnails[7480576] = clik.newPhoto({"id":7480576,"src":"COMEDY_ROCKS_RX3_083_thumb.JPG","galleries_id":116530,"server_id":1,"link":"photo_7480576.html","width":130,"caption":"Comedy Rocks with Jason Manford","height":194});
															thumbnails[7480580] = clik.newPhoto({"id":7480580,"src":"COMEDY_ROCKS_RX1_086_thumb.JPG","galleries_id":116530,"server_id":1,"link":"photo_7480580.html","width":130,"caption":"Jim Jeffries on Comedy Rocks with Jason Manford","height":195});
															thumbnails[7480582] = clik.newPhoto({"id":7480582,"src":"GotToDance_Final_003_thumb.JPG","galleries_id":116530,"server_id":1,"link":"photo_7480582.html","width":130,"caption":"Diversity performing on Got To Dance","height":90});
															thumbnails[7480584] = clik.newPhoto({"id":7480584,"src":"GotToDance_Semi1_025_thumb.jpg","galleries_id":116530,"server_id":1,"link":"photo_7480584.html","width":130,"caption":"Aleviate performing on Got To Dance","height":85});
															thumbnails[7526053] = clik.newPhoto({"id":7526053,"src":"Swarovski_SP_011_thumb.jpg","galleries_id":389254,"server_id":1,"link":"photo_7526053.html","width":130,"caption":"Swarovski","height":78});
															thumbnails[7526055] = clik.newPhoto({"id":7526055,"src":"Swarovski_SP_006_thumb.jpg","galleries_id":389254,"server_id":1,"link":"photo_7526055.html","width":130,"caption":"Swarovski","height":174});
															thumbnails[7526269] = clik.newPhoto({"id":7526269,"src":"Swarovski_SP_005_thumb.jpg","galleries_id":389254,"server_id":1,"link":"photo_7526269.html","width":130,"caption":"Swarovski","height":127});
															thumbnails[7526273] = clik.newPhoto({"id":7526273,"src":"Buzzcocks_001_WithLogo_thumb.jpg","galleries_id":116541,"server_id":1,"link":"photo_7526273.html","width":130,"caption":"Never Mind The Buzzcocks","height":152});
															thumbnails[8233722] = clik.newPhoto({"id":8233722,"src":"43_33_p_web_thumb.jpg","galleries_id":116530,"server_id":38,"link":"photo_8233722.html","width":130,"caption":"Holby City","height":88});
															thumbnails[8233725] = clik.newPhoto({"id":8233725,"src":"47_18_t_web_thumb.jpg","galleries_id":116530,"server_id":38,"link":"photo_8233725.html","width":130,"caption":"Casualty","height":192});
															thumbnails[8233728] = clik.newPhoto({"id":8233728,"src":"4222_18_v_web_thumb.jpg","galleries_id":116530,"server_id":38,"link":"photo_8233728.html","width":130,"caption":"Eastenders","height":86});
															thumbnails[8233730] = clik.newPhoto({"id":8233730,"src":"4228_14_e_web_thumb.jpg","galleries_id":116530,"server_id":38,"link":"photo_8233730.html","width":130,"caption":"Eastenders","height":87});
															thumbnails[8233732] = clik.newPhoto({"id":8233732,"src":"EE_David_Essex_012_web_thumb.jpg","galleries_id":116541,"server_id":38,"link":"photo_8233732.html","width":130,"caption":"David Essex","height":90});
															thumbnails[8233735] = clik.newPhoto({"id":8233735,"src":"EE_DE__SJS_008_web_thumb.jpg","galleries_id":116541,"server_id":38,"link":"photo_8233735.html","width":130,"caption":"David Essex & Steve John Shepherd ","height":195});
															thumbnails[8233738] = clik.newPhoto({"id":8233738,"src":"GBRJ_02_073_web_thumb.jpg","galleries_id":116541,"server_id":38,"link":"photo_8233738.html","width":130,"caption":"Michael Portillo","height":197});
															thumbnails[8233739] = clik.newPhoto({"id":8233739,"src":"Safebreakers_060_web_thumb.jpg","galleries_id":116541,"server_id":38,"link":"photo_8233739.html","width":130,"caption":"Ben Shepherd","height":196});
															thumbnails[8233792] = clik.newPhoto({"id":8233792,"src":"Xfm_080311_elbow_021_web_thumb.jpg","galleries_id":116551,"server_id":38,"link":"photo_8233792.html","width":130,"caption":"Guy from Elbow @ xfm","height":85});
															thumbnails[8233794] = clik.newPhoto({"id":8233794,"src":"Xfm_080311_elbow_024_web_thumb.jpg","galleries_id":116551,"server_id":38,"link":"photo_8233794.html","width":130,"caption":"Pete from Elbow @ xfm","height":86});
															thumbnails[8233795] = clik.newPhoto({"id":8233795,"src":"Yazoo_Tag_Rugby_138_web_thumb.jpg","galleries_id":116541,"server_id":38,"link":"photo_8233795.html","width":130,"caption":"Mark Cueto","height":87});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[389254] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Corporate & Advertising","link":"gallery_389254.html","maxRecords":0.0,"photoIDs":[7202691.0,7202701.0,7202703.0,7202705.0,7480555.0,7480556.0,7480561.0,7480562.0,7480564.0,7526053.0,7526055.0,7526269.0],"skipIndex":0,"section_code":"gallery","featured_images":"7526269,7526055,7526053,7480564,7480562,7480561,7480556,7480555,7202705,7202703","id":389254,"singleSection":false});				  						galleries[389262] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Landscapes","link":"gallery_389262.html","maxRecords":0.0,"photoIDs":[7202894.0,7202899.0,7202901.0,7202902.0,7202903.0,7202908.0],"skipIndex":0,"section_code":"gallery","featured_images":"7202908,7202903,7202902,7202901,7202899,7202894","id":389262,"singleSection":false});				  						galleries[116551] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Music","link":"gallery_116551.html","maxRecords":0.0,"photoIDs":[1766359.0,1766363.0,1766364.0,1766366.0,1766370.0,1766372.0,1766373.0,1766377.0,6815058.0,6815061.0,8233792.0,8233794.0],"skipIndex":0,"section_code":"gallery","featured_images":1766364.0,"id":116551,"singleSection":false});				  						galleries[116541] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portraits","link":"gallery_116541.html","maxRecords":0.0,"photoIDs":[1766378.0,1766381.0,1766386.0,1813703.0,1813704.0,1813706.0,6000929.0,6000937.0,6000940.0,6000941.0,6000942.0,6000975.0,6000980.0,6001043.0,6001045.0,6814962.0,6827453.0,6827460.0,6827462.0,6827474.0,7202680.0,7202682.0,7526273.0,8233732.0,8233735.0,8233738.0,8233739.0,8233795.0],"skipIndex":0,"section_code":"gallery","featured_images":"1813706,1813704,1766378","id":116541,"singleSection":false});				  						galleries[116530] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"TV & Film Stills","link":"gallery_116530.html","maxRecords":0.0,"photoIDs":[1766421.0,1766423.0,1766424.0,6000950.0,6000953.0,6000954.0,6000955.0,6000956.0,6000957.0,6000959.0,6000960.0,6000962.0,6000963.0,6001073.0,6001075.0,6001077.0,6814965.0,6814975.0,6815040.0,6815046.0,6815211.0,6815213.0,6815220.0,6815223.0,7480576.0,7480580.0,7480582.0,7480584.0,8233722.0,8233725.0,8233728.0,8233730.0],"skipIndex":0,"section_code":"gallery","featured_images":"8233730,8233728,8233725,8233722,7480584,7480582,7480580,7480576,6815223,6815220","id":116530,"singleSection":false});				  						galleries[386428] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Weddings","link":"gallery_386428.html","maxRecords":0.0,"photoIDs":[7149667.0,7149675.0,7149676.0,7149678.0,7149679.0,7149681.0,7149685.0,7149686.0,7202671.0,7202674.0],"skipIndex":0,"section_code":"gallery","featured_images":"7202674,7202671,7149686,7149685,7149681,7149679,7149678,7149676,7149675,7149667","id":386428,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8233795,8233794,8233792,8233739,8233738,8233735,8233732,8233730,8233728,8233725,8233722,7526273,7526269,7526055,7526053,7480584,7480582,7480580,7480576,7480564,7480562,7480561,7480556,7480555,7202908,7202903,7202902,7202901,7202899,7202894,7202705,7202703,7202701,7202691,7202682,7202680,7202674,7202671,7149686,7149685,7149681,7149679,7149678,7149676,7149675,7149667,6827474,6827462,6827460,6827453';
imageSets[2] = '1813706,1813704,1766378,1766364';
imageSets[3] = '8233795,8233794,8233792,8233739,8233738,8233735,8233732,8233730,8233728,8233725,8233722,7526273,7526269,7526055,7526053,7480584,7480582,7480580,7480576,7480564,7480562,7480561,7480556,7480555,7202908,7202903,7202902,7202901,7202899,7202894,7202705,7202703,7202701,7202691,7202682,7202680,7202674,7202671,7149686,7149685,7149681,7149679,7149678,7149676,7149675,7149667,6827474,6827462,6827460,6827453';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/speskett/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/speskett/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/speskett/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/speskett/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/speskett/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/speskett/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/speskett/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/speskett/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/speskett/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/speskett/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/speskett/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/speskett/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/speskett/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/speskett/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/speskett/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/speskett/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/speskett/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/speskett/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/speskett/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/speskett/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/speskett/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/speskett/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/speskett/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/speskett/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:'',$detailContainer:'',
                    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 (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'Steven Peskett Photography: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		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.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			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', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp += '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		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 += '<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 += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

