window.thumbnails = {};
															thumbnails[4828325] = clik.newPhoto({"id":4828325,"src":"old-telephone_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":175});
															thumbnails[4816247] = clik.newPhoto({"id":4816247,"src":"Bogey1_thumb.jpg","galleries_id":275186,"server_id":18,"link":"photo_4816247.html","width":130,"caption":"Bogart - outside South Hill Park - Acrylic","height":153});
															thumbnails[4816257] = clik.newPhoto({"id":4816257,"src":"Dirty-Harry-_thumb.jpg","galleries_id":275186,"server_id":18,"link":"photo_4816257.html","width":130,"caption":"Eastwood - \"Do you feel lucky?\" - Acrylic","height":195});
															thumbnails[4816272] = clik.newPhoto({"id":4816272,"src":"McQueen-_thumb.jpg","galleries_id":275186,"server_id":18,"link":"photo_4816272.html","width":130,"caption":"McQueen - \"Is this Switzerland?\" - Acrylic","height":195});
															thumbnails[4816557] = clik.newPhoto({"id":4816557,"src":"Role-Model-_thumb.jpg","galleries_id":275186,"server_id":18,"link":"photo_4816557.html","width":130,"caption":"Role Model? - Acrylic","height":96});
															thumbnails[4816587] = clik.newPhoto({"id":4816587,"src":"Cemet_Junction_1_thumb.jpg","galleries_id":275189,"server_id":18,"link":"photo_4816587.html","width":130,"caption":"Cemetery Junction, Reading - Past & Present - Acrylic","height":75});
															thumbnails[4816614] = clik.newPhoto({"id":4816614,"src":"Broad-Street-1_thumb.jpg","galleries_id":275189,"server_id":18,"link":"photo_4816614.html","width":130,"caption":"Broad Street, Reading - Past & Present - Mixed media","height":77});
															thumbnails[4816617] = clik.newPhoto({"id":4816617,"src":"Cheney_thumb.jpg","galleries_id":275189,"server_id":18,"link":"photo_4816617.html","width":130,"caption":"Cheney - Past & Present - Mixed media","height":85});
															thumbnails[4816654] = clik.newPhoto({"id":4816654,"src":"Bracknell-High-Street_thumb.jpg","galleries_id":275189,"server_id":18,"link":"photo_4816654.html","width":130,"caption":"Bracknell High Street West - Past & Present - Mixed media","height":86});
															thumbnails[4816657] = clik.newPhoto({"id":4816657,"src":"Bracknell_HighSt_East_thumb.jpg","galleries_id":275189,"server_id":18,"link":"photo_4816657.html","width":130,"caption":"Bracknell High Street East - Past & Present - Mixed media","height":81});
															thumbnails[4816658] = clik.newPhoto({"id":4816658,"src":"Berystede-Hotel_thumb.jpg","galleries_id":275189,"server_id":18,"link":"photo_4816658.html","width":130,"caption":"Berystede Hotel, Ascot - Mixed media<br>\r\n","height":98});
															thumbnails[4816662] = clik.newPhoto({"id":4816662,"src":"WURC-Ext_thumb.jpg","galleries_id":275189,"server_id":18,"link":"photo_4816662.html","width":130,"caption":"Woking UR Church - New extension - Acrylic","height":87});
															thumbnails[4816677] = clik.newPhoto({"id":4816677,"src":"Wellesley_thumb.jpg","galleries_id":275189,"server_id":18,"link":"photo_4816677.html","width":130,"caption":"Wellesley House, Crowthorne (elevation) - Mixed media","height":63});
															thumbnails[4816682] = clik.newPhoto({"id":4816682,"src":"Woking-Interior-1_thumb.jpg","galleries_id":275189,"server_id":18,"link":"photo_4816682.html","width":130,"caption":"Woking UR Church interior 1","height":89});
															thumbnails[4816684] = clik.newPhoto({"id":4816684,"src":"Woking-Interior-2_thumb.jpg","galleries_id":275189,"server_id":18,"link":"photo_4816684.html","width":130,"caption":"Woking UR Church 2","height":85});
															thumbnails[4816692] = clik.newPhoto({"id":4816692,"src":"Matchday-1_thumb.jpg","galleries_id":275187,"server_id":18,"link":"photo_4816692.html","width":130,"caption":"Matchday - Just before kick-off - Acrylic","height":95});
															thumbnails[4816699] = clik.newPhoto({"id":4816699,"src":"MatchDay-2_thumb.jpg","galleries_id":275187,"server_id":18,"link":"photo_4816699.html","width":130,"caption":"Matchday - Pre match anticipation - Acrylic","height":96});
															thumbnails[4816704] = clik.newPhoto({"id":4816704,"src":"Its-all-about-to-kick-off__thumb.jpg","galleries_id":275187,"server_id":18,"link":"photo_4816704.html","width":130,"caption":"\"It's all about to kick-off\" - Acrylic","height":88});
															thumbnails[4816707] = clik.newPhoto({"id":4816707,"src":"ElmPark_thumb.jpg","galleries_id":275187,"server_id":18,"link":"photo_4816707.html","width":130,"caption":"Elm Park - Thanks for the Memories - Mixed media","height":87});
															thumbnails[4816709] = clik.newPhoto({"id":4816709,"src":"RFC-135_thumb.jpg","galleries_id":275187,"server_id":18,"link":"photo_4816709.html","width":130,"caption":"After 135 years - Acrylic","height":94});
															thumbnails[4816711] = clik.newPhoto({"id":4816711,"src":"RTID_thumb.jpg","galleries_id":275187,"server_id":18,"link":"photo_4816711.html","width":130,"caption":"Reading Til I Die 1 - Acrylic","height":93});
															thumbnails[4816715] = clik.newPhoto({"id":4816715,"src":"RTID_1R_thumb.jpg","galleries_id":275187,"server_id":18,"link":"photo_4816715.html","width":130,"caption":"Reading Til I Die 2 - Acrylic","height":96});
															thumbnails[4816740] = clik.newPhoto({"id":4816740,"src":"Valentino_Montage_thumb.jpg","galleries_id":275187,"server_id":18,"link":"photo_4816740.html","width":130,"caption":"Valentino Rossi - \"The Doctor\" - Digital","height":92});
															thumbnails[4816772] = clik.newPhoto({"id":4816772,"src":"Slough-with-Betjeman_thumb.jpg","galleries_id":275174,"server_id":18,"link":"photo_4816772.html","width":130,"caption":"Betjeman's Slough - Friendly bombs! - Digital","height":184});
															thumbnails[4816780] = clik.newPhoto({"id":4816780,"src":"PP-Footballer12_thumb.jpg","galleries_id":275174,"server_id":18,"link":"photo_4816780.html","width":130,"caption":"Past & Present footballer - Digital","height":217});
															thumbnails[4816804] = clik.newPhoto({"id":4816804,"src":"IEnglish_thumb.jpg","galleries_id":275174,"server_id":18,"link":"photo_4816804.html","width":130,"caption":"Interactive English - Digital","height":111});
															thumbnails[4816806] = clik.newPhoto({"id":4816806,"src":"MWH_thumb.jpg","galleries_id":275174,"server_id":18,"link":"photo_4816806.html","width":130,"caption":"Modern World History - Digital","height":92});
															thumbnails[4816851] = clik.newPhoto({"id":4816851,"src":"Rooney---The-Passion1_thumb.jpg","galleries_id":275187,"server_id":18,"link":"photo_4816851.html","width":130,"caption":"Rooney - The Passion - Acrylic","height":171});
															thumbnails[4816860] = clik.newPhoto({"id":4816860,"src":"Galapagos-_thumb.jpg","galleries_id":275174,"server_id":18,"link":"photo_4816860.html","width":130,"caption":"Galapagos - Digital","height":91});
															thumbnails[4816870] = clik.newPhoto({"id":4816870,"src":"LouHenny_Car_thumb.jpg","galleries_id":275174,"server_id":18,"link":"photo_4816870.html","width":130,"caption":"Henny & Car - Acrylic","height":101});
															thumbnails[4816873] = clik.newPhoto({"id":4816873,"src":"Lou-Henny_thumb.jpg","galleries_id":275174,"server_id":18,"link":"photo_4816873.html","width":130,"caption":"Lou & Henny - Acrylic","height":169});
															thumbnails[4816890] = clik.newPhoto({"id":4816890,"src":"NEWARK-CASTLE_thumb.jpg","galleries_id":275175,"server_id":18,"link":"photo_4816890.html","width":130,"caption":"Newark Castle - Mixed media","height":103});
															thumbnails[4816891] = clik.newPhoto({"id":4816891,"src":"StMichaels-Mount_thumb.jpg","galleries_id":275175,"server_id":18,"link":"photo_4816891.html","width":130,"caption":"St.Michael's Mount - Acrylic","height":89});
															thumbnails[4816893] = clik.newPhoto({"id":4816893,"src":"BFBC---Leaflet_thumb.jpg","galleries_id":275174,"server_id":18,"link":"photo_4816893.html","width":130,"caption":"Garden Wildlife Leaflet - Bracknell Forest Council - Acrylic","height":96});
															thumbnails[4816902] = clik.newPhoto({"id":4816902,"src":"Xmas-_Card_6_thumb.jpg","galleries_id":275175,"server_id":18,"link":"photo_4816902.html","width":130,"caption":"Christmas card - Mixed media","height":186});
															thumbnails[4816928] = clik.newPhoto({"id":4816928,"src":"The-Cottage_thumb.jpg","galleries_id":275175,"server_id":18,"link":"photo_4816928.html","width":130,"caption":"\"The Cottage\" - Mixed media","height":88});
															thumbnails[4817139] = clik.newPhoto({"id":4817139,"src":"Barley1_thumb.jpg","galleries_id":275257,"server_id":18,"link":"photo_4817139.html","width":130,"caption":"House in Crowthorne, Berks","height":101});
															thumbnails[4817142] = clik.newPhoto({"id":4817142,"src":"Barlow_thumb.jpg","galleries_id":275257,"server_id":18,"link":"photo_4817142.html","width":130,"caption":"House in Wokingham, Berks","height":95});
															thumbnails[4817146] = clik.newPhoto({"id":4817146,"src":"Foulds_thumb.jpg","galleries_id":275257,"server_id":18,"link":"photo_4817146.html","width":130,"caption":"House in Wokingham, Berks","height":91});
															thumbnails[4817154] = clik.newPhoto({"id":4817154,"src":"EBC_A_thumb.jpg","galleries_id":275257,"server_id":18,"link":"photo_4817154.html","width":130,"caption":"Easthampstead Baptist Church - Past & Present","height":92});
															thumbnails[4817214] = clik.newPhoto({"id":4817214,"src":"Abs-Main_WR-jpg_thumb.jpg","galleries_id":275257,"server_id":18,"link":"photo_4817214.html","width":130,"caption":"Abs - Acrylic","height":182});
															thumbnails[4817222] = clik.newPhoto({"id":4817222,"src":"JT-joined_thumb.jpg","galleries_id":275257,"server_id":18,"link":"photo_4817222.html","width":130,"caption":"Joyce & Terry - Acrylic","height":104});
															thumbnails[4817223] = clik.newPhoto({"id":4817223,"src":"JK-Scan-_thumb.jpg","galleries_id":275257,"server_id":18,"link":"photo_4817223.html","width":130,"caption":"Pencil portrait","height":170});
															thumbnails[4817229] = clik.newPhoto({"id":4817229,"src":"JStumbles_thumb.jpg","galleries_id":275257,"server_id":18,"link":"photo_4817229.html","width":130,"caption":"The Creation of John","height":67});
															thumbnails[4827464] = clik.newPhoto({"id":4827464,"src":"Earthquake_thumb.jpg","galleries_id":275174,"server_id":18,"link":"photo_4827464.html","width":130,"caption":"Earthquake - Digital","height":130});
															thumbnails[4828818] = clik.newPhoto({"id":4828818,"src":"Arnie-21_thumb.jpg","galleries_id":275186,"server_id":18,"link":"photo_4828818.html","width":130,"caption":"Arnie - The Ultimate Bouncer - Acrylic","height":174});
															thumbnails[4828854] = clik.newPhoto({"id":4828854,"src":"English-Eccentric_thumb.jpg","galleries_id":275174,"server_id":18,"link":"photo_4828854.html","width":130,"caption":"The English Eccentric - Watercolour","height":190});
															thumbnails[4850096] = clik.newPhoto({"id":4850096,"src":"Robin-Friday-A_thumb.jpg","galleries_id":275187,"server_id":18,"link":"photo_4850096.html","width":130,"caption":"Robin Friday - Acrylic","height":184});
															thumbnails[5191156] = clik.newPhoto({"id":5191156,"src":"The_Long_Walk_a_thumb.jpg","galleries_id":275175,"server_id":18,"link":"photo_5191156.html","width":130,"caption":"The Long Walk<br>\r\nAcrylic","height":98});
															thumbnails[5191160] = clik.newPhoto({"id":5191160,"src":"Seven_Sisters_a_thumb.jpg","galleries_id":275175,"server_id":18,"link":"photo_5191160.html","width":130,"caption":"Seven Sisters<br>\r\nAcrylic","height":97});
															thumbnails[5191164] = clik.newPhoto({"id":5191164,"src":"Meercats_1__thumb.jpg","galleries_id":275174,"server_id":18,"link":"photo_5191164.html","width":130,"caption":"Meercats<br>\r\nDigital","height":183});
															thumbnails[5595505] = clik.newPhoto({"id":5595505,"src":"Summer---website_thumb.jpg","galleries_id":275174,"server_id":18,"link":"photo_5595505.html","width":130,"caption":"Summer Holiday - Mixed media","height":62});
															thumbnails[5595514] = clik.newPhoto({"id":5595514,"src":"Ford-Anglia_website_thumb.jpg","galleries_id":275174,"server_id":18,"link":"photo_5595514.html","width":130,"caption":"Ford Anglia - Digital","height":130});
															thumbnails[5595520] = clik.newPhoto({"id":5595520,"src":"Riverside---website_thumb.jpg","galleries_id":275175,"server_id":18,"link":"photo_5595520.html","width":130,"caption":"Riverside - Mixed media","height":97});
															thumbnails[5595607] = clik.newPhoto({"id":5595607,"src":"MG--website_thumb.jpg","galleries_id":275174,"server_id":18,"link":"photo_5595607.html","width":130,"caption":"Moonlight Garden - Watercolour","height":106});
															thumbnails[5680405] = clik.newPhoto({"id":5680405,"src":"Ridgmont-Rear_thumb.jpg","galleries_id":275189,"server_id":18,"link":"photo_5680405.html","width":130,"caption":"Ridgmont - Rear view","height":96});
															thumbnails[6239442] = clik.newPhoto({"id":6239442,"src":"Ultimate-Composition-1a_thumb.jpg","galleries_id":275174,"server_id":18,"link":"photo_6239442.html","width":130,"caption":"Ultimate Driving School - Think Bike!!","height":92});
															thumbnails[6536049] = clik.newPhoto({"id":6536049,"src":"Kingfisher-_thumb.jpg","galleries_id":275175,"server_id":18,"link":"photo_6536049.html","width":130,"caption":"Kingfisher - Acrylic","height":192});
															thumbnails[8176838] = clik.newPhoto({"id":8176838,"src":"Pathway_thumb.jpg","galleries_id":275175,"server_id":18,"link":"photo_8176838.html","width":130,"caption":"Pathway","height":90});
															thumbnails[8176846] = clik.newPhoto({"id":8176846,"src":"Whitesands_thumb.jpg","galleries_id":275175,"server_id":18,"link":"photo_8176846.html","width":130,"caption":"Whitesands","height":91});
															thumbnails[8176848] = clik.newPhoto({"id":8176848,"src":"Corner_thumb.jpg","galleries_id":275187,"server_id":18,"link":"photo_8176848.html","width":130,"caption":"Corner","height":336});
															thumbnails[8176850] = clik.newPhoto({"id":8176850,"src":"Bowled_thumb.jpg","galleries_id":275187,"server_id":18,"link":"photo_8176850.html","width":130,"caption":"Bowled!","height":335});
															thumbnails[8176862] = clik.newPhoto({"id":8176862,"src":"Kite_thumb.jpg","galleries_id":275175,"server_id":18,"link":"photo_8176862.html","width":130,"caption":"Kite","height":100});
															thumbnails[8176864] = clik.newPhoto({"id":8176864,"src":"MSS_thumb.jpg","galleries_id":275174,"server_id":18,"link":"photo_8176864.html","width":130,"caption":"Molly's Sweet Shop","height":168});
															thumbnails[8605361] = clik.newPhoto({"id":8605361,"src":"Ramshackle-Web_thumb.jpg","galleries_id":275175,"server_id":18,"link":"photo_8605361.html","width":130,"caption":"Ramshackle","height":132});
															thumbnails[8605363] = clik.newPhoto({"id":8605363,"src":"Reflections-Web_thumb.jpg","galleries_id":275175,"server_id":18,"link":"photo_8605363.html","width":130,"caption":"Reflections","height":132});
															thumbnails[8605367] = clik.newPhoto({"id":8605367,"src":"Whos-Number-One-Web_thumb.jpg","galleries_id":275186,"server_id":18,"link":"photo_8605367.html","width":130,"caption":"Who's Number One?","height":51});
															thumbnails[8605370] = clik.newPhoto({"id":8605370,"src":"Canned-Beauty-Web_thumb.jpg","galleries_id":275186,"server_id":18,"link":"photo_8605370.html","width":130,"caption":"Canned Beauty","height":91});
															thumbnails[8605373] = clik.newPhoto({"id":8605373,"src":"Airport-Web_thumb.jpg","galleries_id":275174,"server_id":18,"link":"photo_8605373.html","width":130,"caption":"Airport Check-In","height":81});
															thumbnails[8605375] = clik.newPhoto({"id":8605375,"src":"Airport-View-1-Web_thumb.jpg","galleries_id":275174,"server_id":18,"link":"photo_8605375.html","width":130,"caption":"Airport View 1","height":84});
															thumbnails[8605384] = clik.newPhoto({"id":8605384,"src":"Airport-view-2-Web_thumb.jpg","galleries_id":275174,"server_id":18,"link":"photo_8605384.html","width":130,"caption":"Airport view 2","height":64});
															thumbnails[9064027] = clik.newPhoto({"id":9064027,"src":"Ram-1-Web_thumb.jpg","galleries_id":275175,"server_id":18,"link":"photo_9064027.html","width":130,"caption":"Italy Ramshackle 1","height":41});
															thumbnails[9064040] = clik.newPhoto({"id":9064040,"src":"Ram-2-web1_thumb.jpg","galleries_id":275175,"server_id":18,"link":"photo_9064040.html","width":130,"caption":"Italy Ramshackle 2","height":411});
															thumbnails[9064041] = clik.newPhoto({"id":9064041,"src":"Ram-3-web_thumb.jpg","galleries_id":275175,"server_id":18,"link":"photo_9064041.html","width":130,"caption":"Italy Ramshackle 3","height":411});
															thumbnails[9064182] = clik.newPhoto({"id":9064182,"src":"Building-Site_3AF267F3-1EC9-DFB6-091603FBFB790ED0_thumb.jpg","galleries_id":275174,"server_id":18,"link":"photo_9064182.html","width":130,"caption":"Building Site","height":95});
															thumbnails[4827480] = clik.newPhoto({"id":4827480,"src":"WMemories1_thumb.jpg","galleries_id":275718,"server_id":18,"link":"photo_4827480.html","width":130,"caption":"Corporate artwork","height":98});
															thumbnails[4827484] = clik.newPhoto({"id":4827484,"src":"Berystede-Hotel2_thumb.jpg","galleries_id":275718,"server_id":18,"link":"photo_4827484.html","width":130,"caption":"Greetings cards","height":98});
															thumbnails[4827497] = clik.newPhoto({"id":4827497,"src":"Woking-Interior-22_thumb.jpg","galleries_id":275718,"server_id":18,"link":"photo_4827497.html","width":130,"caption":"Artist Impressions","height":85});
															thumbnails[4827499] = clik.newPhoto({"id":4827499,"src":"NEWARK-CASTLE1_thumb.jpg","galleries_id":275718,"server_id":18,"link":"photo_4827499.html","width":130,"caption":"Favourite places","height":103});
															thumbnails[4827505] = clik.newPhoto({"id":4827505,"src":"IEnglish1_thumb.jpg","galleries_id":275718,"server_id":18,"link":"photo_4827505.html","width":130,"caption":"Illustrations","height":111});
															thumbnails[4827509] = clik.newPhoto({"id":4827509,"src":"Valentino-Montage1_thumb.jpg","galleries_id":275718,"server_id":18,"link":"photo_4827509.html","width":130,"caption":"Sports","height":92});
															thumbnails[4827525] = clik.newPhoto({"id":4827525,"src":"JT-joined1_thumb.jpg","galleries_id":275718,"server_id":18,"link":"photo_4827525.html","width":130,"caption":"Portraits","height":104});
															thumbnails[4827544] = clik.newPhoto({"id":4827544,"src":"Boss-Dog-16401_thumb.jpg","galleries_id":275718,"server_id":18,"link":"photo_4827544.html","width":130,"caption":"Corporate Livery","height":95});
															thumbnails[4827555] = clik.newPhoto({"id":4827555,"src":"Barley3_thumb.jpg","galleries_id":275730,"server_id":18,"link":"photo_4827555.html","width":130,"caption":"Commissioning artwork - Houses<br>\r\n<br>\r\n","height":101});
															thumbnails[4827581] = clik.newPhoto({"id":4827581,"src":"Jamie-Smith-11_thumb.jpg","galleries_id":275730,"server_id":18,"link":"photo_4827581.html","width":130,"caption":"Commissioning artwork - People","height":168});
															thumbnails[4827620] = clik.newPhoto({"id":4827620,"src":"JT-joined12_thumb.jpg","galleries_id":275730,"server_id":18,"link":"photo_4827620.html","width":130,"caption":"Creating the picture","height":104});
															thumbnails[4822025] = clik.newPhoto({"id":4822025,"src":"R-Logo_thumb.jpg","galleries_id":275436,"server_id":18,"link":"photo_4822025.html","width":130,"caption":"Reverb Youth Cafe","height":84});
															thumbnails[4822052] = clik.newPhoto({"id":4822052,"src":"logo-remix_thumb.jpg","galleries_id":275436,"server_id":18,"link":"photo_4822052.html","width":130,"caption":"Remix logo","height":66});
															thumbnails[4822054] = clik.newPhoto({"id":4822054,"src":"Logo_Inflo_1psd_thumb.jpg","galleries_id":275436,"server_id":18,"link":"photo_4822054.html","width":130,"caption":"Inflo logo","height":130});
															thumbnails[4822056] = clik.newPhoto({"id":4822056,"src":"ebc_thumb.jpg","galleries_id":275436,"server_id":18,"link":"photo_4822056.html","width":130,"caption":"EBC Logo","height":123});
															thumbnails[4822310] = clik.newPhoto({"id":4822310,"src":"NPU_thumb.jpg","galleries_id":275436,"server_id":18,"link":"photo_4822310.html","width":130,"caption":"NPU Logo","height":163});
															thumbnails[4827832] = clik.newPhoto({"id":4827832,"src":"Design-plan-1_thumb.jpg","galleries_id":275435,"server_id":18,"link":"photo_4827832.html","width":130,"caption":"AEA Technology Pride Park, Derby","height":189});
															thumbnails[4827849] = clik.newPhoto({"id":4827849,"src":"Design-plan-2_thumb.jpg","galleries_id":275435,"server_id":18,"link":"photo_4827849.html","width":130,"caption":"Oce (UK) Ltd, London HQ","height":90});
															thumbnails[4827860] = clik.newPhoto({"id":4827860,"src":"Design-plan-3_thumb.jpg","galleries_id":275435,"server_id":18,"link":"photo_4827860.html","width":130,"caption":"Parim Offices, Chesham","height":85});
															thumbnails[4827881] = clik.newPhoto({"id":4827881,"src":"Design-1_thumb.jpg","galleries_id":275435,"server_id":18,"link":"photo_4827881.html","width":130,"caption":"3D view of typical office layout","height":98});
															thumbnails[4827994] = clik.newPhoto({"id":4827994,"src":"Design-2_thumb.jpg","galleries_id":275435,"server_id":18,"link":"photo_4827994.html","width":130,"caption":"3D view of 7 person workstation","height":82});
															thumbnails[4827999] = clik.newPhoto({"id":4827999,"src":"Design-3_thumb.jpg","galleries_id":275435,"server_id":18,"link":"photo_4827999.html","width":130,"caption":"Cable channel & framework","height":165});
															thumbnails[4828010] = clik.newPhoto({"id":4828010,"src":"Design-4_thumb.jpg","galleries_id":275435,"server_id":18,"link":"photo_4828010.html","width":130,"caption":"Cable channel section","height":87});
															thumbnails[5213795] = clik.newPhoto({"id":5213795,"src":"Stepping_Stones1_thumb.jpg","galleries_id":275436,"server_id":18,"link":"photo_5213795.html","width":130,"caption":"Stepping Stones","height":220});
															thumbnails[8605393] = clik.newPhoto({"id":8605393,"src":"Premix_thumb.jpg","galleries_id":275436,"server_id":18,"link":"photo_8605393.html","width":130,"caption":"Premix","height":41});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[275730] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Commissions","link":"section331333.html","maxRecords":0.0,"photoIDs":[4827555.0,4827581.0,4827620.0],"skipIndex":0,"section_code":"section331333","featured_images":"4827620,4827581,4827555","id":275730,"singleSection":true});				  						galleries[275436] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Logos","link":"section330982_275436.html","maxRecords":0.0,"photoIDs":[4822025.0,4822052.0,4822054.0,4822056.0,4822310.0,5213795.0,8605393.0],"skipIndex":0,"section_code":"section330982","featured_images":"8605393,5213795,4822310,4822056,4822054,4822052,4822025","id":275436,"singleSection":false});				  						galleries[275435] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Office Interiors","link":"section330982_275435.html","maxRecords":0.0,"photoIDs":[4827832.0,4827849.0,4827860.0,4827881.0,4827994.0,4827999.0,4828010.0],"skipIndex":0,"section_code":"section330982","featured_images":"4828010,4827999,4827994,4827881,4827860,4827849,4827832","id":275435,"singleSection":false});				  						galleries[275718] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Services","link":"section331319.html","maxRecords":0.0,"photoIDs":[4827480.0,4827484.0,4827497.0,4827499.0,4827505.0,4827509.0,4827525.0,4827544.0],"skipIndex":0,"section_code":"section331319","featured_images":"4827544,4827525,4827509,4827505,4827499,4827497,4827484,4827480","id":275718,"singleSection":true});				  						galleries[275174] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Illustration","link":"gallery_275174.html","maxRecords":0.0,"photoIDs":[4816772.0,4816780.0,4816804.0,4816806.0,4816860.0,4816870.0,4816873.0,4816893.0,4827464.0,4828854.0,5191164.0,5595505.0,5595514.0,5595607.0,6239442.0,8176864.0,8605373.0,8605375.0,8605384.0,9064182.0],"skipIndex":0,"section_code":"gallery","featured_images":"9064182,8605384,8605375,8605373,8176864,6239442,5595607,5595514,5595505,5191164","id":275174,"singleSection":false});				  						galleries[275189] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Architectural","link":"gallery_275189.html","maxRecords":0.0,"photoIDs":[4816587.0,4816614.0,4816617.0,4816654.0,4816657.0,4816658.0,4816662.0,4816677.0,4816682.0,4816684.0,5680405.0],"skipIndex":0,"section_code":"gallery","featured_images":"5680405,4816684,4816682,4816677,4816662,4816658,4816657,4816654,4816617,4816614","id":275189,"singleSection":false});				  						galleries[275257] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portraits","link":"gallery_275257.html","maxRecords":0.0,"photoIDs":[4817139.0,4817142.0,4817146.0,4817154.0,4817214.0,4817222.0,4817223.0,4817229.0],"skipIndex":0,"section_code":"gallery","featured_images":"4817229,4817223,4817222,4817214,4817154,4817146,4817142,4817139","id":275257,"singleSection":false});				  						galleries[275187] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Sports","link":"gallery_275187.html","maxRecords":0.0,"photoIDs":[4816692.0,4816699.0,4816704.0,4816707.0,4816709.0,4816711.0,4816715.0,4816740.0,4816851.0,4850096.0,8176848.0,8176850.0],"skipIndex":0,"section_code":"gallery","featured_images":"8176850,8176848,4850096,4816851,4816740,4816715,4816711,4816709,4816707,4816704","id":275187,"singleSection":false});				  						galleries[275186] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Figurative","link":"gallery_275186.html","maxRecords":0.0,"photoIDs":[4816247.0,4816257.0,4816272.0,4816557.0,4828818.0,8605367.0,8605370.0],"skipIndex":0,"section_code":"gallery","featured_images":"8605370,8605367,4828818,4816557,4816272,4816257,4816247","id":275186,"singleSection":false});				  						galleries[275175] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Miscellaneous","link":"gallery_275175.html","maxRecords":0.0,"photoIDs":[4816890.0,4816891.0,4816902.0,4816928.0,5191156.0,5191160.0,5595520.0,6536049.0,8176838.0,8176846.0,8176862.0,8605361.0,8605363.0,9064027.0,9064040.0,9064041.0],"skipIndex":0,"section_code":"gallery","featured_images":"9064041,9064040,9064027,8605363,8605361,8176862,8176846,8176838,6536049,5595520","id":275175,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '9064182,9064041,9064040,9064027,8605393,8605384,8605375,8605373,8605370,8605367,8605363,8605361,8176864,8176862,8176850,8176848,8176846,8176838,6536049,6239442,5680405,5595607,5595520,5595514,5595505,5213795,5191164,5191160,5191156,4850096,4828854,4828818,4828325,4828010,4827999,4827994,4827881,4827860,4827849,4827832,4827620,4827581,4827555,4827544,4827525,4827509,4827505,4827499,4827497,4827484';
imageSets[3] = '9064182,9064041,9064040,9064027,8605393,8605384,8605375,8605373,8605370,8605367,8605363,8605361,8176864,8176862,8176850,8176848,8176846,8176838,6536049,6239442,5680405,5595607,5595520,5595514,5595505,5213795,5191164,5191160,5191156,4850096,4828854,4828818,4828325,4828010,4827999,4827994,4827881,4827860,4827849,4827832,4827620,4827581,4827555,4827544,4827525,4827509,4827505,4827499,4827497,4827484';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/steveyk/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/steveyk/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/steveyk/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/steveyk/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/steveyk/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/steveyk/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/steveyk/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/steveyk/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/steveyk/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/steveyk/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/steveyk/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/steveyk/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/steveyk/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/steveyk/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/steveyk/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/steveyk/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/steveyk/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/steveyk/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/steveyk/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/steveyk/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/steveyk/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/steveyk/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/steveyk/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/steveyk/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/steveyk/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/steveyk/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/steveyk/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 || photos || {})[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 = 'Steve King - Artist & Illustrator: ' + 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.item_price !== '') {
			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({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* 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;
	}
}

			

