window.thumbnails = {};
															thumbnails[7172206] = clik.newPhoto({"id":7172206,"src":"20101208-5164-20E9CC1F_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":160,"caption":"","height":125});
															thumbnails[7159520] = clik.newPhoto({"id":7159520,"src":"Beauty_and_the_Beast_DxO_thumb.jpg","galleries_id":36719,"server_id":18,"link":"photo_7159520.html","width":160,"caption":"Beauty and the Beast.","height":120});
															thumbnails[668220] = clik.newPhoto({"id":668220,"src":"birch_thumb.jpg","galleries_id":49858,"server_id":18,"link":"photo_668220.html","width":130,"caption":"Light beech frame ","height":130});
															thumbnails[7159409] = clik.newPhoto({"id":7159409,"src":"churchill_DxO_thumb.jpg","galleries_id":36680,"server_id":18,"link":"photo_7159409.html","width":160,"caption":"Radcliffe Camera.","height":200});
															thumbnails[7160017] = clik.newPhoto({"id":7160017,"src":"Goring_BBB12505-1E4F-37DC-716E5D5129B39C8E_thumb.jpg","galleries_id":36680,"server_id":18,"link":"photo_7160017.html","width":160,"caption":"Goring.","height":120});
															thumbnails[7167308] = clik.newPhoto({"id":7167308,"src":"IMG_0088_C0B3596F-1E4F-37DC-717BE9DFF3B82ADB_thumb.jpg","galleries_id":36680,"server_id":18,"link":"photo_7167308.html","width":160,"caption":"Merton View.","height":107});
															thumbnails[695987] = clik.newPhoto({"id":695987,"src":"12621_view1_thumb.jpg","galleries_id":49858,"server_id":18,"link":"photo_695987.html","width":130,"caption":"Dark\/Wide Frame ","height":193});
															thumbnails[7159413] = clik.newPhoto({"id":7159413,"src":"PICT0815_DxO_thumb.jpg","galleries_id":36680,"server_id":18,"link":"photo_7159413.html","width":160,"caption":"Misty Morning.","height":120});
															thumbnails[7160092] = clik.newPhoto({"id":7160092,"src":"PICT08482_thumb.jpg","galleries_id":36680,"server_id":18,"link":"photo_7160092.html","width":160,"caption":"Two Bridges.","height":120});
															thumbnails[7159414] = clik.newPhoto({"id":7159414,"src":"solitaire_DxO_thumb.jpg","galleries_id":36719,"server_id":18,"link":"photo_7159414.html","width":160,"caption":"solitaire DxO","height":204});
															thumbnails[7238117] = clik.newPhoto({"id":7238117,"src":"Oxford-bikes_371AF866-1EC9-D45B-1C759E7EA2285043_thumb.jpg","galleries_id":36680,"server_id":18,"link":"photo_7238117.html","width":160,"caption":"Oxford-Bikes.","height":113});
															thumbnails[7238450] = clik.newPhoto({"id":7238450,"src":"2_thumb.jpg","galleries_id":36680,"server_id":18,"link":"photo_7238450.html","width":160,"caption":"Punts.","height":240});
															thumbnails[7238465] = clik.newPhoto({"id":7238465,"src":"Magdalen Punt Station_thumb.jpg","galleries_id":36680,"server_id":18,"link":"photo_7238465.html","width":160,"caption":"Magdalen Punt Station.","height":235});
															thumbnails[8272198] = clik.newPhoto({"id":8272198,"src":"coffee_thumb.jpg","galleries_id":41782,"server_id":37,"link":"photo_8272198.html","width":160,"caption":"coffee","height":240});
															thumbnails[8272203] = clik.newPhoto({"id":8272203,"src":"coffee-2_thumb.jpg","galleries_id":41782,"server_id":37,"link":"photo_8272203.html","width":160,"caption":"coffee 2","height":240});
															thumbnails[8272205] = clik.newPhoto({"id":8272205,"src":"Dandelion_thumb.jpg","galleries_id":41782,"server_id":37,"link":"photo_8272205.html","width":160,"caption":"Dandelion","height":107});
															thumbnails[656578] = clik.newPhoto({"id":656578,"src":"dark birch_thumb.jpg","galleries_id":49858,"server_id":18,"link":"photo_656578.html","width":130,"caption":"Dark Frame","height":165});
															thumbnails[466703] = clik.newPhoto({"id":466703,"src":"bluebell_walk_thumb.jpg","galleries_id":36719,"server_id":18,"link":"photo_466703.html","width":130,"caption":"Bluebell Walk","height":183});
															thumbnails[466705] = clik.newPhoto({"id":466705,"src":"chestnut ave ú30_thumb.jpg","galleries_id":36719,"server_id":18,"link":"photo_466705.html","width":130,"caption":"Chestnut Avenue","height":98});
															thumbnails[466711] = clik.newPhoto({"id":466711,"src":"footsteps edited_thumb.jpg","galleries_id":37441,"server_id":18,"link":"photo_466711.html","width":130,"caption":"Footsteps","height":184});
															thumbnails[466729] = clik.newPhoto({"id":466729,"src":"Sunset Waves2 420x120_thumb.jpg","galleries_id":37441,"server_id":18,"link":"photo_466729.html","width":130,"caption":"Sunset Waves (price includes frame)","height":37});
															thumbnails[467295] = clik.newPhoto({"id":467295,"src":"the_lampost2_thumb.jpg","galleries_id":37441,"server_id":18,"link":"photo_467295.html","width":130,"caption":"The Lampost -gallery wrapped canvas purchased by the Hawkwell House Hotel Oxford","height":289});
															thumbnails[469399] = clik.newPhoto({"id":469399,"src":"PICT0121_edited1_thumb.jpg","galleries_id":37441,"server_id":18,"link":"photo_469399.html","width":130,"caption":"The High Street Oxford - gallery wrapped canvas purchased  by the Hawkwell House Hotel Oxford ","height":174});
															thumbnails[469411] = clik.newPhoto({"id":469411,"src":"PICT0143_thumb.jpg","galleries_id":37441,"server_id":18,"link":"photo_469411.html","width":130,"caption":"Gloucester Green - Purchased by an Oxford Estate Agent ","height":174});
															thumbnails[471949] = clik.newPhoto({"id":471949,"src":"PICT11760001_thumb.jpg","galleries_id":37441,"server_id":18,"link":"photo_471949.html","width":130,"caption":"Park and Ride - Purchased twice by The Department of Transport","height":174});
															thumbnails[668215] = clik.newPhoto({"id":668215,"src":"PICT1581_thumb.jpg","galleries_id":37441,"server_id":18,"link":"photo_668215.html","width":130,"caption":"Bicycles at Oxford railway Station - Purchased for an internal newsletter ","height":173});
															thumbnails[564740] = clik.newPhoto({"id":564740,"src":"Image_0578_thumb.jpg","galleries_id":37441,"server_id":18,"link":"photo_564740.html","width":130,"caption":"Cauliflower-Sold to an American Newspaper","height":195});
															thumbnails[473788] = clik.newPhoto({"id":473788,"src":"JQ5I4115_thumb.jpg","galleries_id":37441,"server_id":18,"link":"photo_473788.html","width":130,"caption":"Iguana - Sold to a North American Company for an Educational Book","height":86});
															thumbnails[473796] = clik.newPhoto({"id":473796,"src":"JQ5I5285(2)sarahcarrington_thumb.jpg","galleries_id":37441,"server_id":18,"link":"photo_473796.html","width":130,"caption":"Orchid - Sold to a London company for a Mexican magazine","height":195});
															thumbnails[473807] = clik.newPhoto({"id":473807,"src":"JQ5I6662_thumb.jpg","galleries_id":37441,"server_id":18,"link":"photo_473807.html","width":130,"caption":"Fly Tipping in the Countryside -Sold to London Zoo ","height":195});
															thumbnails[473816] = clik.newPhoto({"id":473816,"src":"PICT0044_thumb.jpg","galleries_id":37441,"server_id":18,"link":"photo_473816.html","width":130,"caption":"Two Otters - Purchased by a British Company for a calendar","height":152});
															thumbnails[473822] = clik.newPhoto({"id":473822,"src":"PICT0741_thumb.jpg","galleries_id":37441,"server_id":18,"link":"photo_473822.html","width":130,"caption":"Solo Rower - Purchased by a U. K. Financial Industry for a brochure <br>\r\n","height":174});
															thumbnails[475074] = clik.newPhoto({"id":475074,"src":"Banbury Cross_thumb.jpg","galleries_id":37441,"server_id":18,"link":"photo_475074.html","width":130,"caption":"Banbury Cross -Purchased by Torex Retail for a website ","height":144});
															thumbnails[475075] = clik.newPhoto({"id":475075,"src":"broad street_thumb.jpg","galleries_id":37441,"server_id":18,"link":"photo_475075.html","width":130,"caption":"Broad Street, oxford. Purchased for an Educational Newsletter<br>\r\n-   <br>\r\n","height":174});
															thumbnails[472445] = clik.newPhoto({"id":472445,"src":"PICT1395_thumb.jpg","galleries_id":37441,"server_id":18,"link":"photo_472445.html","width":130,"caption":"Poppies (Landscape) - Sold to an Australian Company for an ANZAC memorial","height":98});
															thumbnails[475100] = clik.newPhoto({"id":475100,"src":"JQ5I7129_thumb.jpg","galleries_id":37441,"server_id":18,"link":"photo_475100.html","width":130,"caption":"Mural of the Nativity -Commissioned by Campion Hall Oxford for use on a Christmas card.<br>\r\n ","height":195});
															thumbnails[475101] = clik.newPhoto({"id":475101,"src":"JQ5I7109_thumb.jpg","galleries_id":37441,"server_id":18,"link":"photo_475101.html","width":130,"caption":"Three Wise Men with Virgin and Child Commissioned by Campion Hall Oxford for use on a Christmas card.<br>\r\n - <br>\r\n","height":195});
															thumbnails[695993] = clik.newPhoto({"id":695993,"src":"PICT0029_thumb.jpg","galleries_id":37441,"server_id":18,"link":"photo_695993.html","width":130,"caption":"Dwarf Zebu- Purchased for a world wide travel guide","height":98});
															thumbnails[808026] = clik.newPhoto({"id":808026,"src":"JQ5I39763_thumb.jpg","galleries_id":37441,"server_id":18,"link":"photo_808026.html","width":130,"caption":"Leaf Cutting Ants.Purchased by Metafusion Ltd from Singapore<br>\r\n","height":184});
															thumbnails[1091663] = clik.newPhoto({"id":1091663,"src":"credit card_thumb.jpg","galleries_id":37441,"server_id":18,"link":"photo_1091663.html","width":130,"caption":"purchased by a Consumer Magazine.","height":86});
															thumbnails[1165149] = clik.newPhoto({"id":1165149,"src":"Image_1403(2)1_thumb.jpg","galleries_id":37441,"server_id":18,"link":"photo_1165149.html","width":130,"caption":"Smoking credit cards-sold to a website for a crime diversion scheme","height":195});
															thumbnails[2796945] = clik.newPhoto({"id":2796945,"src":"JQ5I3691_thumb.jpg","galleries_id":37441,"server_id":18,"link":"photo_2796945.html","width":130,"caption":"Tree Nymph Butterfly- Purchased on acrylic for the Oxford Cancer Centre Churchill Hospital Oxford","height":90});
															thumbnails[2796980] = clik.newPhoto({"id":2796980,"src":"JQ5I9379(17)_thumb.jpg","galleries_id":37441,"server_id":18,"link":"photo_2796980.html","width":130,"caption":"Purchased on acrylic for the Oxford Cancer Centre Churchill Hospital Oxford","height":90});
															thumbnails[3504240] = clik.newPhoto({"id":3504240,"src":"JQ5I0546(-perspective)_DxOTBS (377 x 500)_thumb.jpg","galleries_id":37441,"server_id":18,"link":"photo_3504240.html","width":130,"caption":"radcliffe Camera, Oxford. Purchased by the Cochrane Institute, Oxford","height":172});
															thumbnails[3504258] = clik.newPhoto({"id":3504258,"src":"JQ5I0579_DxO_thumb.jpg","galleries_id":37441,"server_id":18,"link":"photo_3504258.html","width":130,"caption":"JQAerial View of All Souls college Oxford, Purchased by the Cochrane Institute, Oxford","height":98});
															thumbnails[3504259] = clik.newPhoto({"id":3504259,"src":"oxford-traffic_thumb.jpg","galleries_id":37441,"server_id":18,"link":"photo_3504259.html","width":130,"caption":"oxford-traffic, Purchased by the Cochrane Institute, Oxford","height":173});
															thumbnails[2796981] = clik.newPhoto({"id":2796981,"src":"PICT0790(2)_thumb.jpg","galleries_id":37441,"server_id":18,"link":"photo_2796981.html","width":130,"caption":"Purchased on acrylic for the Oxford Cancer Centre Churchill Hospital Oxford","height":91});
															thumbnails[2796946] = clik.newPhoto({"id":2796946,"src":"JQ5I3889_thumb.jpg","galleries_id":37441,"server_id":18,"link":"photo_2796946.html","width":130,"caption":"Swallowtail Butterfly- Purchased on acrylic for the Oxford Cancer Centre Churchill Hospital Oxford","height":90});
															thumbnails[1165156] = clik.newPhoto({"id":1165156,"src":"_Q5I1143(2)1_thumb.jpg","galleries_id":37441,"server_id":18,"link":"photo_1165156.html","width":130,"caption":"View from the inside of a prison cell-  sold to a website for a crime diversion scheme","height":195});
															thumbnails[2796947] = clik.newPhoto({"id":2796947,"src":"JQ5I3965(2)_thumb.jpg","galleries_id":37441,"server_id":18,"link":"photo_2796947.html","width":130,"caption":"Red Butterfly- Purchased on acrylic for the Oxford Cancer Centre Churchill Hospital Oxford","height":90});
															thumbnails[2796982] = clik.newPhoto({"id":2796982,"src":"PICT1341_thumb.jpg","galleries_id":37441,"server_id":18,"link":"photo_2796982.html","width":130,"caption":"Poppy- Purchased on acrylic for the Oxford Cancer Centre Churchill Hospital Oxford","height":90});
															thumbnails[3504260] = clik.newPhoto({"id":3504260,"src":"PICT0603_DxO_thumb.jpg","galleries_id":37441,"server_id":18,"link":"photo_3504260.html","width":130,"caption":"Sigh 3, Purchased by the Cochrane Institute, Oxford","height":173});
															thumbnails[3504161] = clik.newPhoto({"id":3504161,"src":"JQ5I0681_DxO_thumb.jpg","galleries_id":37441,"server_id":18,"link":"photo_3504161.html","width":130,"caption":"View along Catte Street Oxford. Purchased by the Cochrane Institute, Oxford","height":173});
															thumbnails[3504261] = clik.newPhoto({"id":3504261,"src":"PICT0610_DxO-_thumb.jpg","galleries_id":37441,"server_id":18,"link":"photo_3504261.html","width":130,"caption":"Purchased by the Cochrane Institute, Oxford","height":173});
															thumbnails[2796948] = clik.newPhoto({"id":2796948,"src":"JQ5I4078_thumb.(2)JPG.jpg","galleries_id":37441,"server_id":18,"link":"photo_2796948.html","width":130,"caption":"Butterfly head- Purchased on acrylic for the Oxford Cancer Centre Churchill Hospital Oxford","height":90});
															thumbnails[2796949] = clik.newPhoto({"id":2796949,"src":"JQ5I9065_thumb.jpg","galleries_id":37441,"server_id":18,"link":"photo_2796949.html","width":130,"caption":"agapanthus - Purchased on acrylic for the Oxford Cancer Centre Churchill Hospital Oxford","height":90});
															thumbnails[1573697] = clik.newPhoto({"id":1573697,"src":"physallis_thumb.jpg","galleries_id":41782,"server_id":18,"link":"photo_1573697.html","width":130,"caption":"Physallis","height":88});
															thumbnails[623405] = clik.newPhoto({"id":623405,"src":"Image_1061_thumb.jpg","galleries_id":41782,"server_id":18,"link":"photo_623405.html","width":130,"caption":"Spices (landscape)","height":87});
															thumbnails[623408] = clik.newPhoto({"id":623408,"src":"Image_1052_thumb.jpg","galleries_id":41782,"server_id":18,"link":"photo_623408.html","width":130,"caption":"Spices (  Portrait )","height":195});
															thumbnails[679492] = clik.newPhoto({"id":679492,"src":"Image_1237_thumb.jpg","galleries_id":41782,"server_id":18,"link":"photo_679492.html","width":130,"caption":"Red Rose","height":195});
															thumbnails[531117] = clik.newPhoto({"id":531117,"src":"Image_0865_thumb.jpg","galleries_id":41782,"server_id":18,"link":"photo_531117.html","width":130,"caption":"Peppers","height":195});
															thumbnails[531119] = clik.newPhoto({"id":531119,"src":"Image_0870_thumb.jpg","galleries_id":41782,"server_id":18,"link":"photo_531119.html","width":130,"caption":"Green and Red Peppers","height":195});
															thumbnails[531124] = clik.newPhoto({"id":531124,"src":"Image_0872_thumb.jpg","galleries_id":41782,"server_id":18,"link":"photo_531124.html","width":130,"caption":"Cut Red pepper","height":195});
															thumbnails[531156] = clik.newPhoto({"id":531156,"src":"Image_0936_thumb.jpg","galleries_id":41782,"server_id":18,"link":"photo_531156.html","width":130,"caption":"Red wine in a glass","height":195});
															thumbnails[469354] = clik.newPhoto({"id":469354,"src":"Image_0354_thumb.jpg","galleries_id":41782,"server_id":18,"link":"photo_469354.html","width":130,"caption":"Tomatoe Juice<br>\r\n","height":195});
															thumbnails[469360] = clik.newPhoto({"id":469360,"src":"Image_0449_thumb.jpg","galleries_id":41782,"server_id":18,"link":"photo_469360.html","width":130,"caption":"Orange Juice","height":195});
															thumbnails[5597866] = clik.newPhoto({"id":5597866,"src":"water_droplet_1_thumb.jpg","galleries_id":41782,"server_id":18,"link":"photo_5597866.html","width":130,"caption":"water droplet 1","height":87});
															thumbnails[3102954] = clik.newPhoto({"id":3102954,"src":"sharpened_0000181_thumb.jpg","galleries_id":41782,"server_id":18,"link":"photo_3102954.html","width":130,"caption":"Christmas Sparkle","height":195});
															thumbnails[5597867] = clik.newPhoto({"id":5597867,"src":"water_droplet_2_thumb.jpg","galleries_id":41782,"server_id":18,"link":"photo_5597867.html","width":130,"caption":"water droplet 2","height":87});
															thumbnails[469050] = clik.newPhoto({"id":469050,"src":"solitaire_thumb.jpg","galleries_id":36719,"server_id":18,"link":"photo_469050.html","width":130,"caption":"Solitaire","height":166});
															thumbnails[466731] = clik.newPhoto({"id":466731,"src":"thistle_thumb.jpg","galleries_id":36719,"server_id":18,"link":"photo_466731.html","width":130,"caption":"Thistle","height":98});
															thumbnails[467288] = clik.newPhoto({"id":467288,"src":"_Q5I1105_thumb.jpg","galleries_id":36719,"server_id":18,"link":"photo_467288.html","width":130,"caption":"Sunflower","height":195});
															thumbnails[467289] = clik.newPhoto({"id":467289,"src":"_Q5I1109_thumb.jpg","galleries_id":36719,"server_id":18,"link":"photo_467289.html","width":130,"caption":"Sunflower2","height":195});
															thumbnails[467290] = clik.newPhoto({"id":467290,"src":"Joey close-up_thumb.jpg","galleries_id":36719,"server_id":18,"link":"photo_467290.html","width":130,"caption":"Just Joey","height":98});
															thumbnails[464186] = clik.newPhoto({"id":464186,"src":"dahlia_thumb.jpg","galleries_id":36719,"server_id":18,"link":"photo_464186.html","width":130,"caption":"Dahlia","height":184});
															thumbnails[464670] = clik.newPhoto({"id":464670,"src":"Canvasccc_thumb.jpg","galleries_id":36719,"server_id":18,"link":"photo_464670.html","width":130,"caption":"Poppy","height":130});
															thumbnails[464778] = clik.newPhoto({"id":464778,"src":"JQ5I5251_thumb.jpg","galleries_id":36719,"server_id":18,"link":"photo_464778.html","width":130,"caption":"Water Lily","height":191});
															thumbnails[480483] = clik.newPhoto({"id":480483,"src":"JQ5I5302_thumb.jpg","galleries_id":36719,"server_id":18,"link":"photo_480483.html","width":130,"caption":"White Orchid","height":87});
															thumbnails[480484] = clik.newPhoto({"id":480484,"src":"JQ5I5301_thumb.jpg","galleries_id":36719,"server_id":18,"link":"photo_480484.html","width":130,"caption":"White Orchid (Portrait)","height":195});
															thumbnails[480486] = clik.newPhoto({"id":480486,"src":"JQ5I5465_thumb.jpg","galleries_id":36719,"server_id":18,"link":"photo_480486.html","width":130,"caption":"Foxglove","height":184});
															thumbnails[689633] = clik.newPhoto({"id":689633,"src":"Image_1270_thumb.jpg","galleries_id":36719,"server_id":18,"link":"photo_689633.html","width":130,"caption":"Water droplets on a Rose","height":195});
															thumbnails[480475] = clik.newPhoto({"id":480475,"src":"DSC01805_thumb.jpg","galleries_id":36719,"server_id":18,"link":"photo_480475.html","width":130,"caption":"Grapes","height":174});
															thumbnails[480477] = clik.newPhoto({"id":480477,"src":"fritillary_thumb.jpg","galleries_id":36719,"server_id":18,"link":"photo_480477.html","width":130,"caption":"Fritillary","height":174});
															thumbnails[472442] = clik.newPhoto({"id":472442,"src":"PICT1365_thumb.jpg","galleries_id":36719,"server_id":18,"link":"photo_472442.html","width":130,"caption":"Poppies (Portrait)","height":174});
															thumbnails[475083] = clik.newPhoto({"id":475083,"src":"JQ5I1593_thumb.jpg","galleries_id":36719,"server_id":18,"link":"photo_475083.html","width":130,"caption":"Lily Pad","height":104});
															thumbnails[3153914] = clik.newPhoto({"id":3153914,"src":"Rose-Petal_thumb.jpg","galleries_id":36719,"server_id":18,"link":"photo_3153914.html","width":130,"caption":"Rose Petal","height":193});
															thumbnails[1215037] = clik.newPhoto({"id":1215037,"src":"_Q5I2141(2)_thumb.jpg","galleries_id":36719,"server_id":18,"link":"photo_1215037.html","width":130,"caption":"Red and Yellow Tulip","height":195});
															thumbnails[1643577] = clik.newPhoto({"id":1643577,"src":"JQ5I90651_thumb.jpg","galleries_id":36719,"server_id":18,"link":"photo_1643577.html","width":130,"caption":"Agapanthus","height":87});
															thumbnails[7016749] = clik.newPhoto({"id":7016749,"src":"Image_1231_thumb.jpg","galleries_id":36719,"server_id":18,"link":"photo_7016749.html","width":130,"caption":"Image 1231","height":131});
															thumbnails[7016751] = clik.newPhoto({"id":7016751,"src":"Image_1248_thumb.jpg","galleries_id":36719,"server_id":18,"link":"photo_7016751.html","width":130,"caption":"Image 1248","height":130});
															thumbnails[7016796] = clik.newPhoto({"id":7016796,"src":"Image_1246blue_thumb.jpg","galleries_id":36719,"server_id":18,"link":"photo_7016796.html","width":130,"caption":"Image 1246blue","height":130});
															thumbnails[473782] = clik.newPhoto({"id":473782,"src":"JQ5I3745_thumb.jpg","galleries_id":37445,"server_id":18,"link":"photo_473782.html","width":130,"caption":"Horse Eye","height":195});
															thumbnails[475077] = clik.newPhoto({"id":475077,"src":"Brown bear_thumb.jpg","galleries_id":37445,"server_id":18,"link":"photo_475077.html","width":130,"caption":"Brown Bear","height":195});
															thumbnails[475078] = clik.newPhoto({"id":475078,"src":"JQ5I4009_thumb.jpg","galleries_id":37445,"server_id":18,"link":"photo_475078.html","width":130,"caption":"Ants 1","height":195});
															thumbnails[475081] = clik.newPhoto({"id":475081,"src":"JQ5I4039_thumb.jpg","galleries_id":37445,"server_id":18,"link":"photo_475081.html","width":130,"caption":"Ants 2","height":195});
															thumbnails[689634] = clik.newPhoto({"id":689634,"src":"JQ5I8355_thumb.jpg","galleries_id":37445,"server_id":18,"link":"photo_689634.html","width":130,"caption":"Owl","height":195});
															thumbnails[480481] = clik.newPhoto({"id":480481,"src":"JQ5I3700_thumb.jpg","galleries_id":37445,"server_id":18,"link":"photo_480481.html","width":130,"caption":"White Nymph Butterfly","height":195});
															thumbnails[557108] = clik.newPhoto({"id":557108,"src":"Tiger-(swimming)-copy_thumb.jpg","galleries_id":37445,"server_id":18,"link":"photo_557108.html","width":130,"caption":"Swimming Tiger","height":89});
															thumbnails[464779] = clik.newPhoto({"id":464779,"src":"otter_thumb.jpg","galleries_id":37445,"server_id":18,"link":"photo_464779.html","width":130,"caption":"Otter","height":98});
															thumbnails[464776] = clik.newPhoto({"id":464776,"src":"JQ5I0704 copy001_thumb.jpg","galleries_id":37445,"server_id":18,"link":"photo_464776.html","width":130,"caption":"Standing Tiger","height":191});
															thumbnails[464179] = clik.newPhoto({"id":464179,"src":"JQ5I0916_thumb.jpg","galleries_id":37445,"server_id":18,"link":"photo_464179.html","width":130,"caption":"Leopard","height":191});
															thumbnails[1091576] = clik.newPhoto({"id":1091576,"src":"Lions-Head_thumb.jpg","galleries_id":37445,"server_id":18,"link":"photo_1091576.html","width":130,"caption":"Lions-Head","height":178});
															thumbnails[5212648] = clik.newPhoto({"id":5212648,"src":"Meerkatt_DxO_thumb.jpg","galleries_id":37445,"server_id":18,"link":"photo_5212648.html","width":130,"caption":"Meerkat ","height":220});
															thumbnails[5212653] = clik.newPhoto({"id":5212653,"src":"otter_68B3BE8A-1D09-001F-998A99D8815A9983_thumb.jpg","galleries_id":37445,"server_id":18,"link":"photo_5212653.html","width":130,"caption":"Otters Cave","height":131});
															thumbnails[1091560] = clik.newPhoto({"id":1091560,"src":"_Q5I2404_thumb.jpg","galleries_id":37445,"server_id":18,"link":"photo_1091560.html","width":130,"caption":"Chimpanzee","height":195});
															thumbnails[1643578] = clik.newPhoto({"id":1643578,"src":"JQ5I3853_thumb.jpg","galleries_id":37445,"server_id":18,"link":"photo_1643578.html","width":130,"caption":"Orange-Butterfly","height":87});
															thumbnails[1091561] = clik.newPhoto({"id":1091561,"src":"_Q5I2470_thumb.jpg","galleries_id":37445,"server_id":18,"link":"photo_1091561.html","width":130,"caption":"Jaguar","height":195});
															thumbnails[2614107] = clik.newPhoto({"id":2614107,"src":"Palmer_ox135jh_Order52_Page003_thumb.jpg","galleries_id":37445,"server_id":18,"link":"photo_2614107.html","width":130,"caption":"3 Tigers","height":89});
															thumbnails[2614108] = clik.newPhoto({"id":2614108,"src":"Palmer_ox135jh_Order52_Page004_thumb.jpg","galleries_id":37445,"server_id":18,"link":"photo_2614108.html","width":130,"caption":"Cats","height":89});
															thumbnails[5001145] = clik.newPhoto({"id":5001145,"src":"JQ5I0951_thumb.jpg","galleries_id":36719,"server_id":18,"link":"photo_5001145.html","width":130,"caption":"JQ5I0951","height":87});
															thumbnails[5000776] = clik.newPhoto({"id":5000776,"src":"IMG_0382_thumb.jpg","galleries_id":36719,"server_id":18,"link":"photo_5000776.html","width":130,"caption":"IMG 0382","height":195});
															thumbnails[5000785] = clik.newPhoto({"id":5000785,"src":"_Q5I2141_thumb.jpg","galleries_id":36719,"server_id":18,"link":"photo_5000785.html","width":130,"caption":" Q5I2141","height":195});
															thumbnails[5001116] = clik.newPhoto({"id":5001116,"src":"IMG_0386_thumb.jpg","galleries_id":36719,"server_id":18,"link":"photo_5001116.html","width":130,"caption":"IMG 0386","height":195});
															thumbnails[5001126] = clik.newPhoto({"id":5001126,"src":"IMG_0469_thumb.jpg","galleries_id":36719,"server_id":18,"link":"photo_5001126.html","width":130,"caption":"IMG 0469","height":87});
															thumbnails[5001135] = clik.newPhoto({"id":5001135,"src":"JQ5I0949_thumb.jpg","galleries_id":36719,"server_id":18,"link":"photo_5001135.html","width":130,"caption":"JQ5I0949","height":195});
															thumbnails[5001127] = clik.newPhoto({"id":5001127,"src":"IMG_0478_thumb.jpg","galleries_id":36719,"server_id":18,"link":"photo_5001127.html","width":130,"caption":"IMG 0478","height":195});
															thumbnails[5001117] = clik.newPhoto({"id":5001117,"src":"IMG_0400_thumb.jpg","galleries_id":36719,"server_id":18,"link":"photo_5001117.html","width":130,"caption":"IMG 0400","height":195});
															thumbnails[5001146] = clik.newPhoto({"id":5001146,"src":"Rhododendron_thumb.jpg","galleries_id":36719,"server_id":18,"link":"photo_5001146.html","width":130,"caption":"Rhododendron","height":173});
															thumbnails[5001118] = clik.newPhoto({"id":5001118,"src":"IMG_0436_thumb.jpg","galleries_id":36719,"server_id":18,"link":"photo_5001118.html","width":130,"caption":"IMG 0436","height":195});
															thumbnails[5001136] = clik.newPhoto({"id":5001136,"src":"JQ5I9063_thumb.jpg","galleries_id":36719,"server_id":18,"link":"photo_5001136.html","width":130,"caption":"JQ5I9063","height":87});
															thumbnails[5001137] = clik.newPhoto({"id":5001137,"src":"PICT1341_9BE5BD55-1D09-001F-9964993448B7DEA6_thumb.jpg","galleries_id":36719,"server_id":18,"link":"photo_5001137.html","width":130,"caption":"PICT1341","height":98});
															thumbnails[5001129] = clik.newPhoto({"id":5001129,"src":"IMG_04931_thumb.jpg","galleries_id":36719,"server_id":18,"link":"photo_5001129.html","width":130,"caption":"IMG 04931","height":195});
															thumbnails[5001119] = clik.newPhoto({"id":5001119,"src":"IMG_0437_thumb.jpg","galleries_id":36719,"server_id":18,"link":"photo_5001119.html","width":130,"caption":"IMG 0437","height":195});
															thumbnails[5000777] = clik.newPhoto({"id":5000777,"src":"IMG_0405_thumb.jpg","galleries_id":36719,"server_id":18,"link":"photo_5000777.html","width":130,"caption":"IMG 0405","height":195});
															thumbnails[5001120] = clik.newPhoto({"id":5001120,"src":"IMG_0468_thumb.jpg","galleries_id":36719,"server_id":18,"link":"photo_5001120.html","width":130,"caption":"IMG 0468","height":195});
															thumbnails[5001130] = clik.newPhoto({"id":5001130,"src":"IMG_0506_thumb.jpg","galleries_id":36719,"server_id":18,"link":"photo_5001130.html","width":130,"caption":"IMG 0506","height":195});
															thumbnails[5001138] = clik.newPhoto({"id":5001138,"src":"PICT1427_thumb.jpg","galleries_id":36719,"server_id":18,"link":"photo_5001138.html","width":130,"caption":"PICT1427","height":98});
															thumbnails[6331574] = clik.newPhoto({"id":6331574,"src":"IMG_0036dxo_CB47C2D6-24E8-5EC4-4FCD0E56D0F713DD_thumb.jpg","galleries_id":350990,"server_id":18,"link":"photo_6331574.html","width":130,"caption":"IMG 0036dxo","height":43});
															thumbnails[6331759] = clik.newPhoto({"id":6331759,"src":"IMG_0012_thumb.jpg","galleries_id":350990,"server_id":18,"link":"photo_6331759.html","width":130,"caption":"Bridge of Sigh","height":43});
															thumbnails[6331761] = clik.newPhoto({"id":6331761,"src":"IMG_0027dxo_thumb.jpg","galleries_id":350990,"server_id":18,"link":"photo_6331761.html","width":130,"caption":"IMG 0027dxo","height":43});
															thumbnails[6331763] = clik.newPhoto({"id":6331763,"src":"_MG_1514bwdxo_thumb.jpg","galleries_id":350990,"server_id":18,"link":"photo_6331763.html","width":130,"caption":"Balloons","height":49});
															thumbnails[6331767] = clik.newPhoto({"id":6331767,"src":"_MG_1591dxo_thumb.jpg","galleries_id":350990,"server_id":18,"link":"photo_6331767.html","width":130,"caption":"Sign Post","height":43});
															thumbnails[6331769] = clik.newPhoto({"id":6331769,"src":"_MG_1612dxo_CB59A1A1-24E8-5EC4-4FD8973937BB0408_thumb.jpg","galleries_id":350990,"server_id":18,"link":"photo_6331769.html","width":130,"caption":"Punts","height":44});
															thumbnails[4520063] = clik.newPhoto({"id":4520063,"src":"IMG_0006_thumb.jpg","galleries_id":36680,"server_id":18,"link":"photo_4520063.html","width":130,"caption":"Folly Bridge","height":49});
															thumbnails[5590854] = clik.newPhoto({"id":5590854,"src":"oxford_view_thumb.jpg","galleries_id":36680,"server_id":18,"link":"photo_5590854.html","width":130,"caption":"oxford view","height":97});
															thumbnails[464024] = clik.newPhoto({"id":464024,"src":"oxford traffic poster_thumb.jpg","galleries_id":36680,"server_id":18,"link":"photo_464024.html","width":130,"caption":"Oxford Traffic","height":191});
															thumbnails[4324623] = clik.newPhoto({"id":4324623,"src":"tom_tower2_DxO_thumb.jpg","galleries_id":36680,"server_id":18,"link":"photo_4324623.html","width":130,"caption":"Tom Tower","height":191});
															thumbnails[4335803] = clik.newPhoto({"id":4335803,"src":"Martyres_Memorial1_thumb.jpg","galleries_id":36680,"server_id":18,"link":"photo_4335803.html","width":130,"caption":"Martyr's Memorial","height":173});
															thumbnails[4336785] = clik.newPhoto({"id":4336785,"src":"JQ5I0590_renamed_27945_thumb.jpg","galleries_id":36680,"server_id":18,"link":"photo_4336785.html","width":130,"caption":"The High","height":87});
															thumbnails[4336757] = clik.newPhoto({"id":4336757,"src":"college_thumb.jpg","galleries_id":36680,"server_id":18,"link":"photo_4336757.html","width":130,"caption":"All Souls college","height":173});
															thumbnails[4336815] = clik.newPhoto({"id":4336815,"src":"PICT0523_renamed_11118_thumb.jpg","galleries_id":36680,"server_id":18,"link":"photo_4336815.html","width":130,"caption":" 11118","height":98});
															thumbnails[4336786] = clik.newPhoto({"id":4336786,"src":"JQ5I0614_renamed_8095_thumb.jpg","galleries_id":36680,"server_id":18,"link":"photo_4336786.html","width":130,"caption":"Secret Garden","height":195});
															thumbnails[4335804] = clik.newPhoto({"id":4335804,"src":"Tom_tower_thumb.jpg","galleries_id":36680,"server_id":18,"link":"photo_4335804.html","width":130,"caption":"Tom tower","height":191});
															thumbnails[4324624] = clik.newPhoto({"id":4324624,"src":"Two_Heads__DxO_thumb.jpg","galleries_id":36680,"server_id":18,"link":"photo_4324624.html","width":130,"caption":"Two Heads  ","height":173});
															thumbnails[4324600] = clik.newPhoto({"id":4324600,"src":"PICT0147_DxO1_thumb.jpg","galleries_id":36680,"server_id":18,"link":"photo_4324600.html","width":130,"caption":"Statues","height":173});
															thumbnails[464034] = clik.newPhoto({"id":464034,"src":"Altered-Fountain1_thumb.jpg","galleries_id":36680,"server_id":18,"link":"photo_464034.html","width":130,"caption":"The Fountain","height":191});
															thumbnails[4520064] = clik.newPhoto({"id":4520064,"src":"IMG_0089_thumb.jpg","galleries_id":36680,"server_id":18,"link":"photo_4520064.html","width":130,"caption":"Oxford City Rowing Club","height":50});
															thumbnails[4520065] = clik.newPhoto({"id":4520065,"src":"IMG_0099_thumb.jpg","galleries_id":36680,"server_id":18,"link":"photo_4520065.html","width":130,"caption":"Oxford Regatta","height":48});
															thumbnails[1215174] = clik.newPhoto({"id":1215174,"src":"JQ5I0546(-perspective)_thumb.jpg","galleries_id":36680,"server_id":18,"link":"photo_1215174.html","width":130,"caption":"Radcliffe Camera (2)","height":191});
															thumbnails[4336816] = clik.newPhoto({"id":4336816,"src":"PICT0825_renamed_15906_thumb.jpg","galleries_id":36680,"server_id":18,"link":"photo_4336816.html","width":130,"caption":15906.0,"height":98});
															thumbnails[4336760] = clik.newPhoto({"id":4336760,"src":"JQ5I0579_renamed_21220_thumb.jpg","galleries_id":36680,"server_id":18,"link":"photo_4336760.html","width":130,"caption":"All Souls College","height":87});
															thumbnails[4336788] = clik.newPhoto({"id":4336788,"src":"JQ5I5559_renamed_30724_thumb.jpg","galleries_id":36680,"server_id":18,"link":"photo_4336788.html","width":130,"caption":30724.0,"height":87});
															thumbnails[4324617] = clik.newPhoto({"id":4324617,"src":"the_high_DxO_thumb.jpg","galleries_id":36680,"server_id":18,"link":"photo_4324617.html","width":130,"caption":"The High ","height":173});
															thumbnails[4324602] = clik.newPhoto({"id":4324602,"src":"PICT0563E_DxO_thumb.jpg","galleries_id":36680,"server_id":18,"link":"photo_4324602.html","width":130,"caption":"Coloured Boats","height":173});
															thumbnails[2357162] = clik.newPhoto({"id":2357162,"src":"sunday morning_thumb.jpg","galleries_id":36680,"server_id":18,"link":"photo_2357162.html","width":130,"caption":"Sunday Morning","height":191});
															thumbnails[4520066] = clik.newPhoto({"id":4520066,"src":"IMG_0126_thumb.jpg","galleries_id":36680,"server_id":18,"link":"photo_4520066.html","width":130,"caption":"Iffley Lock","height":54});
															thumbnails[4520067] = clik.newPhoto({"id":4520067,"src":"IMG_0139_thumb.jpg","galleries_id":36680,"server_id":18,"link":"photo_4520067.html","width":130,"caption":"Christchurch College","height":48});
															thumbnails[4324603] = clik.newPhoto({"id":4324603,"src":"punting_DxO_thumb.jpg","galleries_id":36680,"server_id":18,"link":"photo_4324603.html","width":130,"caption":"Punting ","height":191});
															thumbnails[4336789] = clik.newPhoto({"id":4336789,"src":"PICT0153_renamed_13234_thumb.jpg","galleries_id":36680,"server_id":18,"link":"photo_4336789.html","width":130,"caption":" 13234","height":98});
															thumbnails[466727] = clik.newPhoto({"id":466727,"src":"Stone Face _thumb.jpg","galleries_id":36680,"server_id":18,"link":"photo_466727.html","width":130,"caption":"Stone Face","height":174});
															thumbnails[467293] = clik.newPhoto({"id":467293,"src":"the_lampost_thumb.jpg","galleries_id":36680,"server_id":18,"link":"photo_467293.html","width":130,"caption":"The Lampost","height":174});
															thumbnails[469413] = clik.newPhoto({"id":469413,"src":"Sigh (2)PICT0597_thumb.jpg","galleries_id":36680,"server_id":18,"link":"photo_469413.html","width":130,"caption":"The Sigh","height":174});
															thumbnails[471920] = clik.newPhoto({"id":471920,"src":"JQ5I0673_thumb.jpg","galleries_id":36680,"server_id":18,"link":"photo_471920.html","width":130,"caption":"Sigh 2","height":184});
															thumbnails[1643162] = clik.newPhoto({"id":1643162,"src":"cycle-rack_thumb.jpg","galleries_id":36680,"server_id":18,"link":"photo_1643162.html","width":130,"caption":"Cycle Rack","height":173});
															thumbnails[468939] = clik.newPhoto({"id":468939,"src":"JQ5I0668_thumb.jpg","galleries_id":36680,"server_id":18,"link":"photo_468939.html","width":130,"caption":"River Pastimes","height":195});
															thumbnails[469392] = clik.newPhoto({"id":469392,"src":"PICT0121_edited_thumb.jpg","galleries_id":36680,"server_id":18,"link":"photo_469392.html","width":130,"caption":"The High","height":174});
															thumbnails[471945] = clik.newPhoto({"id":471945,"src":"Magdelen_tower_thumb.jpg","galleries_id":36680,"server_id":18,"link":"photo_471945.html","width":130,"caption":"Magdalen Tower","height":174});
															thumbnails[472271] = clik.newPhoto({"id":472271,"src":"JQ5I0573_thumb.jpg","galleries_id":36680,"server_id":18,"link":"photo_472271.html","width":130,"caption":"Bird Gargoyle ","height":195});
															thumbnails[472278] = clik.newPhoto({"id":472278,"src":"JQ5I0682_thumb.jpg","galleries_id":36680,"server_id":18,"link":"photo_472278.html","width":130,"caption":"Radcliffe Camera ground level","height":204});
															thumbnails[466717] = clik.newPhoto({"id":466717,"src":"oxford_boats_thumb.jpg","galleries_id":36680,"server_id":18,"link":"photo_466717.html","width":130,"caption":"Oxford Boats","height":102});
															thumbnails[472270] = clik.newPhoto({"id":472270,"src":"JQ5I0568_thumb.jpg","galleries_id":36680,"server_id":18,"link":"photo_472270.html","width":130,"caption":"Gargoyle","height":87});
															thumbnails[1215173] = clik.newPhoto({"id":1215173,"src":"JQ5156019(a4)_thumb.jpg","galleries_id":36680,"server_id":18,"link":"photo_1215173.html","width":130,"caption":"canoe","height":92});
															thumbnails[1215175] = clik.newPhoto({"id":1215175,"src":"PICT0155_thumb.jpg","galleries_id":36680,"server_id":18,"link":"photo_1215175.html","width":130,"caption":"Angel Gargoyle 1","height":98});
															thumbnails[1215176] = clik.newPhoto({"id":1215176,"src":"PICT0156_thumb.jpg","galleries_id":36680,"server_id":18,"link":"photo_1215176.html","width":130,"caption":"Angel Gargoyle 2","height":98});
															thumbnails[5212732] = clik.newPhoto({"id":5212732,"src":"magdalen-Bridge_DxO_thumb.jpg","galleries_id":36680,"server_id":18,"link":"photo_5212732.html","width":130,"caption":"Magdalen Bridge ","height":65});
															thumbnails[3088595] = clik.newPhoto({"id":3088595,"src":"nashbaby_acrylic_thumb.jpg","galleries_id":189596,"server_id":18,"link":"photo_3088595.html","width":130,"caption":"Acrylic example","height":140});
															thumbnails[464039] = clik.newPhoto({"id":464039,"src":"JQ5I6599_thumb.jpg","galleries_id":183168,"server_id":18,"link":"photo_464039.html","width":130,"caption":"","height":195});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[189596] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Acrylic","link":"section234580.html","maxRecords":0.0,"photoIDs":[3088595.0],"skipIndex":0,"section_code":"section234580","featured_images":3088595.0,"id":189596,"singleSection":true});				  						galleries[183168] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Jan Palmer","link":"section227160.html","maxRecords":0.0,"photoIDs":[464039.0],"skipIndex":0,"section_code":"section227160","featured_images":464039.0,"id":183168,"singleSection":true});				  						galleries[36680] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Oxford","link":"gallery_36680.html","maxRecords":0.0,"photoIDs":[7159409.0,7160017.0,7167308.0,7159413.0,7160092.0,7238117.0,7238450.0,7238465.0,4520063.0,5590854.0,464024.0,4324623.0,4335803.0,4336785.0,4336757.0,4336815.0,4336786.0,4335804.0,4324624.0,4324600.0,464034.0,4520064.0,4520065.0,1215174.0,4336816.0,4336760.0,4336788.0,4324617.0,4324602.0,2357162.0,4520066.0,4520067.0,4324603.0,4336789.0,466727.0,467293.0,469413.0,471920.0,1643162.0,468939.0,469392.0,471945.0,472271.0,472278.0,466717.0,472270.0,1215173.0,1215175.0,1215176.0,5212732.0],"skipIndex":0,"section_code":"gallery","featured_images":2357162.0,"id":36680,"singleSection":false});				  						galleries[350990] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Infra-red and Black & White","link":"gallery_350990.html","maxRecords":0.0,"photoIDs":[6331574.0,6331759.0,6331761.0,6331763.0,6331767.0,6331769.0],"skipIndex":0,"section_code":"gallery","featured_images":"6331769,6331767,6331763,6331761,6331759,6331574","id":350990,"singleSection":false});				  						galleries[37445] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Animals","link":"gallery_37445.html","maxRecords":0.0,"photoIDs":[473782.0,475077.0,475078.0,475081.0,689634.0,480481.0,557108.0,464779.0,464776.0,464179.0,1091576.0,5212648.0,5212653.0,1091560.0,1643578.0,1091561.0,2614107.0,2614108.0],"skipIndex":0,"section_code":"gallery","featured_images":480481.0,"id":37445,"singleSection":false});				  						galleries[36719] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Floral","link":"gallery_36719.html","maxRecords":0.0,"photoIDs":[7159520.0,7159414.0,466703.0,466705.0,469050.0,466731.0,467288.0,467289.0,467290.0,464186.0,464670.0,464778.0,480483.0,480484.0,480486.0,689633.0,480475.0,480477.0,472442.0,475083.0,3153914.0,1215037.0,1643577.0,7016749.0,7016751.0,7016796.0,5001145.0,5000776.0,5000785.0,5001116.0,5001126.0,5001135.0,5001127.0,5001117.0,5001146.0,5001118.0,5001136.0,5001137.0,5001129.0,5001119.0,5000777.0,5001120.0,5001130.0,5001138.0],"skipIndex":0,"section_code":"gallery","featured_images":"467288,464186","id":36719,"singleSection":false});				  						galleries[41782] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Studio","link":"gallery_41782.html","maxRecords":0.0,"photoIDs":[8272198.0,8272203.0,8272205.0,1573697.0,623405.0,623408.0,679492.0,531117.0,531119.0,531124.0,531156.0,469354.0,469360.0,5597866.0,3102954.0,5597867.0],"skipIndex":0,"section_code":"gallery","featured_images":531117.0,"id":41782,"singleSection":false});				  						galleries[37441] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Freelance","link":"gallery_37441.html","maxRecords":0.0,"photoIDs":[466711.0,466729.0,467295.0,469399.0,469411.0,471949.0,668215.0,564740.0,473788.0,473796.0,473807.0,473816.0,473822.0,475074.0,475075.0,472445.0,475100.0,475101.0,695993.0,808026.0,1091663.0,1165149.0,2796945.0,2796980.0,3504240.0,3504258.0,3504259.0,2796981.0,2796946.0,1165156.0,2796947.0,2796982.0,3504260.0,3504161.0,3504261.0,2796948.0,2796949.0],"skipIndex":0,"section_code":"gallery","featured_images":"808026,466711","id":37441,"singleSection":false});				  						galleries[49858] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Frames","link":"gallery_49858.html","maxRecords":0.0,"photoIDs":[668220.0,695987.0,656578.0],"skipIndex":0,"section_code":"gallery","featured_images":695987.0,"id":49858,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '3102954,2796948,2796947,2357162,1643577,1215174,557108,467293,464024';
imageSets[2] = '2357162,808026,695987,531117,480481,467288,466711,464186';
imageSets[3] = '5001146,5001137,5001136,5001135,5001130,5001129,5001127,5001126,5001120,5001119,5001118,5001117,5000777';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/jpalmer/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/jpalmer/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/jpalmer/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/jpalmer/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/jpalmer/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/jpalmer/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/jpalmer/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/jpalmer/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/jpalmer/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/jpalmer/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/jpalmer/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/jpalmer/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/jpalmer/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/jpalmer/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/jpalmer/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/jpalmer/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/jpalmer/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/jpalmer/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/jpalmer/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/jpalmer/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/jpalmer/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/jpalmer/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/jpalmer/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/jpalmer/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 = 'Jan\'s Photos: ' + 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>';
	}
				
	temp += this.fnGetPaymentInfo();
				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>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (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="updateCartValue($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';
		
		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 += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm">';
			temp += '	<input type="hidden" name="item_option" value="' + item_option + '">';
			temp += '	<input type="hidden" name="site" value="JPALMER">';
			temp += '	<input type="hidden" name="item_number" value="'+ this.id +'">';
			temp += '	<input type="hidden" name="quantity" value="1">';
						temp += '	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\'\;" onmouseout="this.className=\'button\'\;" type="Button">';
							temp += '	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';
			temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
			temp += '<div id="confirmContainer">';
			temp += '<div id="paymentConfirm">Item added to cart</div>';
			temp += '</div>';
			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;
	}
}

			

