window.thumbnails = {};
															thumbnails[3299941] = clik.newPhoto({"id":3299941,"src":"InspiralDoorway_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"INSPIRAL DOORWAY I","height":181});
															thumbnails[5370205] = clik.newPhoto({"id":5370205,"src":"Ceramic_2123_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"FURROW","height":160});
															thumbnails[6396963] = clik.newPhoto({"id":6396963,"src":"Kaetsu_2_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Six Small Pieces","height":116});
															thumbnails[6397012] = clik.newPhoto({"id":6397012,"src":"Kaetsu_21_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":119});
															thumbnails[6397031] = clik.newPhoto({"id":6397031,"src":"Kaetsu_6_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":95});
															thumbnails[6397033] = clik.newPhoto({"id":6397033,"src":"Kaetsu_7_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Diversity Series","height":75});
															thumbnails[6397035] = clik.newPhoto({"id":6397035,"src":"Kaetsu_8_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":102});
															thumbnails[6397042] = clik.newPhoto({"id":6397042,"src":"Kaetsu_13_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Kaetsu Centre Exhibition","height":98});
															thumbnails[8142743] = clik.newPhoto({"id":8142743,"src":"Bovey_Tracey_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Bovey Tracey 2011","height":95});
															thumbnails[3300811] = clik.newPhoto({"id":3300811,"src":"Relativity1_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"No.1","height":131});
															thumbnails[5370233] = clik.newPhoto({"id":5370233,"src":"Contact_1_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"CONTACT I","height":182});
															thumbnails[6913094] = clik.newPhoto({"id":6913094,"src":"22_Diversity_Series1_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":67,"caption":"DIVERSITY SERIES - SOLD","height":130});
															thumbnails[7568395] = clik.newPhoto({"id":7568395,"src":"Grid-III-detail_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Grid III","height":98});
															thumbnails[8143354] = clik.newPhoto({"id":8143354,"src":"AAA_New_Work_Elemental_Series_10_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"ELEMENTAL SERIES - 10 pieces","height":96});
															thumbnails[3300817] = clik.newPhoto({"id":3300817,"src":"Relativity2_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"No.2","height":130});
															thumbnails[5370216] = clik.newPhoto({"id":5370216,"src":"Contact_II_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"CONTACT II","height":177});
															thumbnails[6173947] = clik.newPhoto({"id":6173947,"src":"Emmaus_1_detail1_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"'An Uprising of Kindness' Figure 1 (detail)","height":98});
															thumbnails[6397015] = clik.newPhoto({"id":6397015,"src":"Kaetsu_3_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Kaetsu Centre Exhibition 2010","height":98});
															thumbnails[8143350] = clik.newPhoto({"id":8143350,"src":"AAA_New_Work_Elemental_Series_10_1_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"ELEMENTAL SERIES - 10 pieces","height":52});
															thumbnails[3300827] = clik.newPhoto({"id":3300827,"src":"Relativity31_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"No.3","height":131});
															thumbnails[5370311] = clik.newPhoto({"id":5370311,"src":"Contact_III1_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"CONTACT III","height":180});
															thumbnails[6397009] = clik.newPhoto({"id":6397009,"src":"Kaetsu_1_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Kaetsu Centre Exhibition 2010","height":102});
															thumbnails[6397038] = clik.newPhoto({"id":6397038,"src":"Kaetsu_10_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"FRAGMENT II - SOLD","height":183});
															thumbnails[8143356] = clik.newPhoto({"id":8143356,"src":"AAA_New_Work_Elemental_Series_10_-_detail_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"ELEMENTAL SERIES - detail 1","height":94});
															thumbnails[3300832] = clik.newPhoto({"id":3300832,"src":"Relativity4_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"No.4","height":131});
															thumbnails[5426089] = clik.newPhoto({"id":5426089,"src":"occasions_photography_026_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"IMPRESSION I","height":154});
															thumbnails[6397036] = clik.newPhoto({"id":6397036,"src":"Kaetsu_9_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Kaetsu Centre Exhibition 2010","height":159});
															thumbnails[8143357] = clik.newPhoto({"id":8143357,"src":"AAA_New_Work_Elemental_Series_10_-_detail_2_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"ELEMENTAL SERIES - detail 2","height":90});
															thumbnails[3301116] = clik.newPhoto({"id":3301116,"src":"Relativity5_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"No.5","height":130});
															thumbnails[5426005] = clik.newPhoto({"id":5426005,"src":"occasions_photography_0271_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"VERTICAL SERIES NO. 1","height":303});
															thumbnails[6397029] = clik.newPhoto({"id":6397029,"src":"Kaetsu_5_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Kaetsu Centre Exhibition 2010","height":98});
															thumbnails[8143360] = clik.newPhoto({"id":8143360,"src":"AAA_New_Work_Fusion_I12_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":88,"caption":"FUSION I","height":130});
															thumbnails[8143361] = clik.newPhoto({"id":8143361,"src":"AAA_New_Work_Fusion_II_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":91,"caption":"FUSION II ","height":130});
															thumbnails[3301118] = clik.newPhoto({"id":3301118,"src":"Relativity6_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"No.6","height":131});
															thumbnails[5419878] = clik.newPhoto({"id":5419878,"src":"Vertical_Green_II_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"VERTICAL SERIES NO. 4","height":294});
															thumbnails[6173955] = clik.newPhoto({"id":6173955,"src":"Emmaus_2_detail2_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"'An Uprising of Kindness' Figure 2 (detail)","height":98});
															thumbnails[8143389] = clik.newPhoto({"id":8143389,"src":"AAA_New_Work_Fusion_III_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":93,"caption":"FUSION III","height":130});
															thumbnails[3301127] = clik.newPhoto({"id":3301127,"src":"Relativity7_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"No.7","height":129});
															thumbnails[8143392] = clik.newPhoto({"id":8143392,"src":"AAA_New_Work_Diversity_9_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"DIVERSITY SERIES 9 pieces","height":127});
															thumbnails[3301136] = clik.newPhoto({"id":3301136,"src":"Relativity8_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"No.8","height":131});
															thumbnails[8143363] = clik.newPhoto({"id":8143363,"src":"AAA_New_Work_Small_Pieces_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Five Small Pieces","height":38});
															thumbnails[3301218] = clik.newPhoto({"id":3301218,"src":"Relativity9_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"No.9","height":130});
															thumbnails[8143319] = clik.newPhoto({"id":8143319,"src":"AAA_New_Work_Elemental1_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"ELEMENTAL","height":130});
															thumbnails[3301221] = clik.newPhoto({"id":3301221,"src":"Relativity10_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"No.10","height":130});
															thumbnails[5561106] = clik.newPhoto({"id":5561106,"src":"3_Synthesis_I_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"SYNTHESIS I","height":159});
															thumbnails[8143347] = clik.newPhoto({"id":8143347,"src":"AAA_New_Work_Elemental_-_detail_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"ELEMENTAL - detail","height":95});
															thumbnails[8442303] = clik.newPhoto({"id":8442303,"src":"6_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":94,"caption":"'Field III'","height":130});
															thumbnails[3301225] = clik.newPhoto({"id":3301225,"src":"Relativity11_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"No.11","height":129});
															thumbnails[5561108] = clik.newPhoto({"id":5561108,"src":"4_Synthesis_II_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"SYNTHESIS II","height":153});
															thumbnails[3301228] = clik.newPhoto({"id":3301228,"src":"Relativity12_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"No.12","height":129});
															thumbnails[5561137] = clik.newPhoto({"id":5561137,"src":"5_Synthesis_III_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"SYNTHESIS III","height":160});
															thumbnails[6397070] = clik.newPhoto({"id":6397070,"src":"Me_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Clare Crouchman","height":131});
															thumbnails[8640403] = clik.newPhoto({"id":8640403,"src":"15_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":92,"caption":"'Flow'","height":130});
															thumbnails[3301233] = clik.newPhoto({"id":3301233,"src":"Relativity13_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"No.13","height":131});
															thumbnails[8640406] = clik.newPhoto({"id":8640406,"src":"17_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":96,"caption":"'Elemental I'","height":130});
															thumbnails[5561198] = clik.newPhoto({"id":5561198,"src":"Ceramic_1_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"FURROW II","height":159});
															thumbnails[8640617] = clik.newPhoto({"id":8640617,"src":"20_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":96,"caption":"'New Doorway'","height":130});
															thumbnails[5370229] = clik.newPhoto({"id":5370229,"src":"Follow_Series1_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"FOLLOW SERIES","height":125});
															thumbnails[8640607] = clik.newPhoto({"id":8640607,"src":"19_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":95,"caption":"'Synchronicity IV'","height":130});
															thumbnails[3299851] = clik.newPhoto({"id":3299851,"src":"Encircle_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Field I ","height":184});
															thumbnails[3300687] = clik.newPhoto({"id":3300687,"src":"Access_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Access","height":181});
															thumbnails[8442707] = clik.newPhoto({"id":8442707,"src":"13_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":92,"caption":"'Doorway'","height":130});
															thumbnails[2836004] = clik.newPhoto({"id":2836004,"src":"Verge_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Verge","height":174});
															thumbnails[3299861] = clik.newPhoto({"id":3299861,"src":"Field II_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Field II","height":186});
															thumbnails[5419858] = clik.newPhoto({"id":5419858,"src":"Circlular_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"ENCIRCLE","height":177});
															thumbnails[3300706] = clik.newPhoto({"id":3300706,"src":"Addition_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Addition","height":132});
															thumbnails[5370237] = clik.newPhoto({"id":5370237,"src":"occasions_photography_051_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"OPENING SERIES","height":88});
															thumbnails[5561084] = clik.newPhoto({"id":5561084,"src":"1_Window_I_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"WINDOW I","height":160});
															thumbnails[2835997] = clik.newPhoto({"id":2835997,"src":"Origon_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Origin","height":135});
															thumbnails[5370235] = clik.newPhoto({"id":5370235,"src":"Synthesis1_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"SYNTHESIS SERIES","height":55});
															thumbnails[5419862] = clik.newPhoto({"id":5419862,"src":"Enclosure_6B0D9744-1D09-001F-99D8218AA55A7312_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"ENCLOSURE","height":170});
															thumbnails[3300586] = clik.newPhoto({"id":3300586,"src":"Horizon_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Horizon","height":158});
															thumbnails[5419870] = clik.newPhoto({"id":5419870,"src":"Horizontal_Ceramic_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"SIMPLICITY III","height":99});
															thumbnails[6396971] = clik.newPhoto({"id":6396971,"src":"Kaetsu_11_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Infinite Connections - Detail","height":98});
															thumbnails[6394212] = clik.newPhoto({"id":6394212,"src":"Emmaus_1_FA0F5A70-1D09-001F-99B5CBA2BE46F9FD_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Figure 1 Outdoor Ceramic Mural","height":67});
															thumbnails[6394222] = clik.newPhoto({"id":6394222,"src":"Emmaus_2_FA115640-1D09-001F-99FD16CF69F206DC_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Figure 2 Outdoor Ceramic Mural","height":66});
															thumbnails[8442260] = clik.newPhoto({"id":8442260,"src":"4_thumb.jpg","galleries_id":446844,"server_id":5,"link":"photo_8442260.html","width":96,"caption":"SOLD","height":130});
															thumbnails[2835862] = clik.newPhoto({"id":2835862,"src":"Connection1_thumb.jpg","galleries_id":176687,"server_id":5,"link":"photo_2835862.html","width":130,"caption":"Connection No.1","height":129});
															thumbnails[6913326] = clik.newPhoto({"id":6913326,"src":"24_Grid_I_thumb.jpg","galleries_id":176685,"server_id":5,"link":"photo_6913326.html","width":129,"caption":"GRID I","height":130});
															thumbnails[7843757] = clik.newPhoto({"id":7843757,"src":"Unity_1C9AA541-1E4F-37DC-7119133791559222_thumb.jpg","galleries_id":176686,"server_id":5,"link":"photo_7843757.html","width":96,"caption":"UNITY - For David Hussey","height":130});
															thumbnails[8442239] = clik.newPhoto({"id":8442239,"src":"2_thumb.jpg","galleries_id":446844,"server_id":5,"link":"photo_8442239.html","width":92,"caption":"SOLD","height":130});
															thumbnails[2835686] = clik.newPhoto({"id":2835686,"src":"Connection2_thumb.jpg","galleries_id":176687,"server_id":5,"link":"photo_2835686.html","width":130,"caption":"Connection No.2","height":131});
															thumbnails[2835761] = clik.newPhoto({"id":2835761,"src":"Helen_2_thumb.jpg","galleries_id":176686,"server_id":5,"link":"photo_2835761.html","width":130,"caption":"Commission for stairwell in Switzerland 2","height":150});
															thumbnails[6913358] = clik.newPhoto({"id":6913358,"src":"25_Grid_I_-_Detail_thumb.jpg","galleries_id":176685,"server_id":5,"link":"photo_6913358.html","width":130,"caption":"GRID I - Detail","height":87});
															thumbnails[8442269] = clik.newPhoto({"id":8442269,"src":"5_thumb.jpg","galleries_id":446844,"server_id":5,"link":"photo_8442269.html","width":93,"caption":"SOLD","height":130});
															thumbnails[2835741] = clik.newPhoto({"id":2835741,"src":"Helens_Chalet_thumb.jpg","galleries_id":176686,"server_id":5,"link":"photo_2835741.html","width":130,"caption":"20 piece ceramic wall panel commission for stairwell in Switzerland","height":195});
															thumbnails[2835863] = clik.newPhoto({"id":2835863,"src":"Connection3_thumb.jpg","galleries_id":176687,"server_id":5,"link":"photo_2835863.html","width":130,"caption":"Connection No.3","height":131});
															thumbnails[6913149] = clik.newPhoto({"id":6913149,"src":"12_Grid_II_thumb.jpg","galleries_id":176685,"server_id":5,"link":"photo_6913149.html","width":130,"caption":"Grid II","height":128});
															thumbnails[8640400] = clik.newPhoto({"id":8640400,"src":"14_thumb.jpg","galleries_id":446844,"server_id":5,"link":"photo_8640400.html","width":94,"caption":"'Black and White'","height":130});
															thumbnails[2840249] = clik.newPhoto({"id":2840249,"src":"Connection43_thumb.jpg","galleries_id":176687,"server_id":5,"link":"photo_2840249.html","width":130,"caption":"Connection No.4","height":131});
															thumbnails[3534742] = clik.newPhoto({"id":3534742,"src":"Clare_Crouchman__Kanazawa_Door_Panels_thumb.JPG","galleries_id":176686,"server_id":5,"link":"photo_3534742.html","width":130,"caption":"Music In the Trees Commission,Kanazawa, Japan","height":156});
															thumbnails[6913250] = clik.newPhoto({"id":6913250,"src":"13_Grid_II_-_Detail_thumb.jpg","galleries_id":176685,"server_id":5,"link":"photo_6913250.html","width":130,"caption":"GRID II - Detail","height":87});
															thumbnails[8442256] = clik.newPhoto({"id":8442256,"src":"3_thumb.jpg","galleries_id":446844,"server_id":5,"link":"photo_8442256.html","width":91,"caption":"SOLD","height":130});
															thumbnails[2835965] = clik.newPhoto({"id":2835965,"src":"Connection5_thumb.jpg","galleries_id":176687,"server_id":5,"link":"photo_2835965.html","width":130,"caption":"Connection No.5","height":131});
															thumbnails[3439627] = clik.newPhoto({"id":3439627,"src":"1AAA 'seseragi'_thumb.JPG","galleries_id":176686,"server_id":5,"link":"photo_3439627.html","width":130,"caption":"Seseragi","height":129});
															thumbnails[7568393] = clik.newPhoto({"id":7568393,"src":"Grid-III_thumb.jpg","galleries_id":176685,"server_id":5,"link":"photo_7568393.html","width":130,"caption":"Grid III ","height":128});
															thumbnails[8640404] = clik.newPhoto({"id":8640404,"src":"16_thumb.jpg","galleries_id":446844,"server_id":5,"link":"photo_8640404.html","width":91,"caption":"SOLD","height":130});
															thumbnails[2835968] = clik.newPhoto({"id":2835968,"src":"Connection6_thumb.jpg","galleries_id":176687,"server_id":5,"link":"photo_2835968.html","width":130,"caption":"Connection No.6","height":131});
															thumbnails[3439619] = clik.newPhoto({"id":3439619,"src":"1AAA 'saezuri_thumb.jpg","galleries_id":176686,"server_id":5,"link":"photo_3439619.html","width":130,"caption":"Saezuri","height":128});
															thumbnails[6396960] = clik.newPhoto({"id":6396960,"src":"2_infinite_connections_thumb.jpg","galleries_id":176685,"server_id":5,"link":"photo_6396960.html","width":130,"caption":"INFINITE CONNECTIONS","height":117});
															thumbnails[8442285] = clik.newPhoto({"id":8442285,"src":"73_thumb.jpg","galleries_id":446844,"server_id":5,"link":"photo_8442285.html","width":96,"caption":"'Sense'","height":130});
															thumbnails[2835969] = clik.newPhoto({"id":2835969,"src":"Connection7_thumb.jpg","galleries_id":176687,"server_id":5,"link":"photo_2835969.html","width":130,"caption":"Connection No.7","height":131});
															thumbnails[3439617] = clik.newPhoto({"id":3439617,"src":"1AAA 'kozue'_thumb.JPG","galleries_id":176686,"server_id":5,"link":"photo_3439617.html","width":130,"caption":"Kozue","height":130});
															thumbnails[8143416] = clik.newPhoto({"id":8143416,"src":"AAA_New_Work_Diversity_91_thumb.jpg","galleries_id":176685,"server_id":5,"link":"photo_8143416.html","width":130,"caption":"BLUE DIVERSITY SERIES - 9 pieces","height":127});
															thumbnails[8442314] = clik.newPhoto({"id":8442314,"src":"11_thumb.jpg","galleries_id":446844,"server_id":5,"link":"photo_8442314.html","width":97,"caption":"SOLD","height":130});
															thumbnails[2835973] = clik.newPhoto({"id":2835973,"src":"Connection8_thumb.jpg","galleries_id":176687,"server_id":5,"link":"photo_2835973.html","width":130,"caption":"Connection No.8","height":129});
															thumbnails[3439606] = clik.newPhoto({"id":3439606,"src":"1AAA 'kazahana'_thumb.jpg","galleries_id":176686,"server_id":5,"link":"photo_3439606.html","width":130,"caption":"Kazehana","height":129});
															thumbnails[8143413] = clik.newPhoto({"id":8143413,"src":"AAA_New_Work_Elemental12_thumb.jpg","galleries_id":176685,"server_id":5,"link":"photo_8143413.html","width":130,"caption":"ELEMENTAL","height":130});
															thumbnails[8442317] = clik.newPhoto({"id":8442317,"src":"12_thumb.jpg","galleries_id":446844,"server_id":5,"link":"photo_8442317.html","width":94,"caption":"'Vertical Green Field'","height":130});
															thumbnails[2835985] = clik.newPhoto({"id":2835985,"src":"Connection9_thumb.jpg","galleries_id":176687,"server_id":5,"link":"photo_2835985.html","width":130,"caption":"Connection No.9","height":131});
															thumbnails[3439611] = clik.newPhoto({"id":3439611,"src":"1AAA 'komorebi'_thumb.JPG","galleries_id":176686,"server_id":5,"link":"photo_3439611.html","width":130,"caption":"Komorebi","height":131});
															thumbnails[8143397] = clik.newPhoto({"id":8143397,"src":"AAA_New_Work_Elemental_Series_1012_thumb.jpg","galleries_id":176685,"server_id":5,"link":"photo_8143397.html","width":130,"caption":"ELEMENTAL SERIES - 10 pieces","height":96});
															thumbnails[8442311] = clik.newPhoto({"id":8442311,"src":"102_thumb.jpg","galleries_id":446844,"server_id":5,"link":"photo_8442311.html","width":95,"caption":"'Outback'","height":130});
															thumbnails[2838708] = clik.newPhoto({"id":2838708,"src":"Inspiral-Doorway-Linocut1_thumb.jpg","galleries_id":176687,"server_id":5,"link":"photo_2838708.html","width":130,"caption":"Inspiral Doorway","height":131});
															thumbnails[3439632] = clik.newPhoto({"id":3439632,"src":"1AAAA3_thumb. 'hidamari'.jpg","galleries_id":176686,"server_id":5,"link":"photo_3439632.html","width":130,"caption":"Hidamari","height":132});
															thumbnails[8143464] = clik.newPhoto({"id":8143464,"src":"AAA_New_Work_Elemental_Series_10_112_thumb.jpg","galleries_id":176685,"server_id":5,"link":"photo_8143464.html","width":130,"caption":"ELEMENTAL SERIES","height":52});
															thumbnails[2836352] = clik.newPhoto({"id":2836352,"src":"Exist2_thumb.jpg","galleries_id":176687,"server_id":5,"link":"photo_2836352.html","width":130,"caption":"Exist I","height":156});
															thumbnails[8143402] = clik.newPhoto({"id":8143402,"src":"AAA_New_Work_Fusion_II1_thumb.jpg","galleries_id":176685,"server_id":5,"link":"photo_8143402.html","width":91,"caption":"FUSION II","height":130});
															thumbnails[8173474] = clik.newPhoto({"id":8173474,"src":"084_thumb.JPG","galleries_id":176686,"server_id":5,"link":"photo_8173474.html","width":87,"caption":"Private Commission","height":130});
															thumbnails[2836389] = clik.newPhoto({"id":2836389,"src":"Exist21_thumb.jpg","galleries_id":176687,"server_id":5,"link":"photo_2836389.html","width":130,"caption":"Exist II","height":153});
															thumbnails[6913105] = clik.newPhoto({"id":6913105,"src":"21_Diversity_Series_with_Clare_Crouchman1_thumb.jpg","galleries_id":176685,"server_id":5,"link":"photo_6913105.html","width":87,"caption":"DIVERSITY SERIES - SOLD","height":130});
															thumbnails[8173478] = clik.newPhoto({"id":8173478,"src":"085_thumb.JPG","galleries_id":176686,"server_id":5,"link":"photo_8173478.html","width":130,"caption":"Private Commission","height":87});
															thumbnails[3437375] = clik.newPhoto({"id":3437375,"src":"CC2_thumb.jpg","galleries_id":176686,"server_id":5,"link":"photo_3437375.html","width":130,"caption":"Relativity Series 5 - 8.  Installation in the Elevation Halls of the Tower Condominium Project in Chiba, Japan.","height":82});
															thumbnails[2840687] = clik.newPhoto({"id":2840687,"src":"Simplicity-I_thumb.jpg","galleries_id":176687,"server_id":5,"link":"photo_2840687.html","width":130,"caption":"Simplicity I","height":110});
															thumbnails[5719171] = clik.newPhoto({"id":5719171,"src":"Synchronicity_II1_thumb.jpg","galleries_id":176685,"server_id":5,"link":"photo_5719171.html","width":130,"caption":"SYNCHRONICITY II","height":171});
															thumbnails[8640619] = clik.newPhoto({"id":8640619,"src":"21_thumb.jpg","galleries_id":446844,"server_id":5,"link":"photo_8640619.html","width":95,"caption":"'Elemental II'","height":130});
															thumbnails[3437379] = clik.newPhoto({"id":3437379,"src":"CC3_thumb.jpg","galleries_id":176686,"server_id":5,"link":"photo_3437379.html","width":130,"caption":"Relativity Series 9 - 12.  Installation in the Elevation Halls of the Tower Condominium Project in Chiba, Japan.","height":87});
															thumbnails[2840689] = clik.newPhoto({"id":2840689,"src":"Simplicity-II_thumb.jpg","galleries_id":176687,"server_id":5,"link":"photo_2840689.html","width":130,"caption":"Simplicity II","height":113});
															thumbnails[5719158] = clik.newPhoto({"id":5719158,"src":"Synchronicity_I12_thumb.jpg","galleries_id":176685,"server_id":5,"link":"photo_5719158.html","width":130,"caption":"SYNCHRONICITY I","height":171});
															thumbnails[3437384] = clik.newPhoto({"id":3437384,"src":"CC4_thumb.jpg","galleries_id":176686,"server_id":5,"link":"photo_3437384.html","width":130,"caption":"Relativity Series 13 - 16.  Installation in the Elevation Halls of the Tower Condominium Project in Chiba, Japan.","height":87});
															thumbnails[5719174] = clik.newPhoto({"id":5719174,"src":"Doorway_VI_thumb.jpg","galleries_id":176685,"server_id":5,"link":"photo_5719174.html","width":130,"caption":"INFLUX","height":179});
															thumbnails[8442295] = clik.newPhoto({"id":8442295,"src":"8_thumb.jpg","galleries_id":446844,"server_id":5,"link":"photo_8442295.html","width":99,"caption":"'Elemental III'","height":130});
															thumbnails[3437361] = clik.newPhoto({"id":3437361,"src":"CC1_thumb.jpg","galleries_id":176686,"server_id":5,"link":"photo_3437361.html","width":130,"caption":"Relativity Series 1 - 4.   Installation in the Elevation Halls of the Tower Condominium Project in Chiba, Japan.","height":87});
															thumbnails[6394261] = clik.newPhoto({"id":6394261,"src":"Unity_thumb.jpg","galleries_id":176685,"server_id":5,"link":"photo_6394261.html","width":130,"caption":"UNITY - SOLD","height":176});
															thumbnails[5561188] = clik.newPhoto({"id":5561188,"src":"Across_50_x_50_cm_thumb.jpg","galleries_id":176685,"server_id":5,"link":"photo_5561188.html","width":130,"caption":"TRAVERSE","height":131});
															thumbnails[6832193] = clik.newPhoto({"id":6832193,"src":"AAA_Hampton_Court_Photo_thumb.jpg","galleries_id":176686,"server_id":5,"link":"photo_6832193.html","width":130,"caption":"'An Uprising of Kindness' Show garden","height":87});
															thumbnails[8640623] = clik.newPhoto({"id":8640623,"src":"22_thumb.jpg","galleries_id":446844,"server_id":5,"link":"photo_8640623.html","width":97,"caption":"'Grid V'","height":130});
															thumbnails[3301236] = clik.newPhoto({"id":3301236,"src":"Relativity14_thumb.jpg","galleries_id":176685,"server_id":5,"link":"photo_3301236.html","width":130,"caption":"Relativity No.14","height":130});
															thumbnails[7327607] = clik.newPhoto({"id":7327607,"src":"hampton_21_thumb.jpg","galleries_id":176686,"server_id":5,"link":"photo_7327607.html","width":110,"caption":"","height":130});
															thumbnails[5719176] = clik.newPhoto({"id":5719176,"src":"Terrain_70_x_70_cm_thumb.jpg","galleries_id":176685,"server_id":5,"link":"photo_5719176.html","width":130,"caption":"TERRAIN - SOLD","height":131});
															thumbnails[6173942] = clik.newPhoto({"id":6173942,"src":"Emmaus_1_thumb.jpg","galleries_id":176686,"server_id":5,"link":"photo_6173942.html","width":130,"caption":"'An Uprising of Kindness'Figure 1 - Outdoor Ceramic Floor Tiles 104 x 52 cm","height":67});
															thumbnails[5561174] = clik.newPhoto({"id":5561174,"src":"7_25_Circles_thumb.jpg","galleries_id":176685,"server_id":5,"link":"photo_5561174.html","width":130,"caption":"25 CIRCLES - SOLD","height":129});
															thumbnails[6173949] = clik.newPhoto({"id":6173949,"src":"Emmaus_1_detail2_thumb.jpg","galleries_id":176686,"server_id":5,"link":"photo_6173949.html","width":130,"caption":"'An Uprising of Kindness' Figure 1","height":98});
															thumbnails[8640408] = clik.newPhoto({"id":8640408,"src":"18_thumb.jpg","galleries_id":446844,"server_id":5,"link":"photo_8640408.html","width":96,"caption":"SOLD","height":130});
															thumbnails[5719241] = clik.newPhoto({"id":5719241,"src":"System_Series_I1_thumb.jpg","galleries_id":176685,"server_id":5,"link":"photo_5719241.html","width":130,"caption":"SYSTEM SERIES I","height":194});
															thumbnails[6173950] = clik.newPhoto({"id":6173950,"src":"Emmaus_2_thumb.jpg","galleries_id":176686,"server_id":5,"link":"photo_6173950.html","width":130,"caption":"'An Uprising of Kindness' Figure 2 - Outdoor Ceramic Floor Tiles 104 x 52 cm","height":66});
															thumbnails[8442230] = clik.newPhoto({"id":8442230,"src":"1_thumb.jpg","galleries_id":446844,"server_id":5,"link":"photo_8442230.html","width":95,"caption":"'Field II'","height":130});
															thumbnails[5719243] = clik.newPhoto({"id":5719243,"src":"System_Series_II_thumb.jpg","galleries_id":176685,"server_id":5,"link":"photo_5719243.html","width":130,"caption":"SYSTEM SERIES II","height":194});
															thumbnails[6173953] = clik.newPhoto({"id":6173953,"src":"Emmaus_2_detail_thumb.jpg","galleries_id":176686,"server_id":5,"link":"photo_6173953.html","width":130,"caption":"'An Uprising of Kindness' Figure 2 (detail)","height":98});
															thumbnails[8442306] = clik.newPhoto({"id":8442306,"src":"9_thumb.jpg","galleries_id":446844,"server_id":5,"link":"photo_8442306.html","width":96,"caption":"'Field V'","height":130});
															thumbnails[5719245] = clik.newPhoto({"id":5719245,"src":"System_Series_III_thumb.jpg","galleries_id":176685,"server_id":5,"link":"photo_5719245.html","width":130,"caption":"SYSTEM SERIES III","height":194});
															thumbnails[5719249] = clik.newPhoto({"id":5719249,"src":"System_Series_IV_thumb.jpg","galleries_id":176685,"server_id":5,"link":"photo_5719249.html","width":130,"caption":"SYSTEM SERIES IV","height":194});
															thumbnails[5719250] = clik.newPhoto({"id":5719250,"src":"System_Series_thumb.jpg","galleries_id":176685,"server_id":5,"link":"photo_5719250.html","width":130,"caption":"SYSTEM SERIES GROUP OF FOUR","height":194});
															thumbnails[2835976] = clik.newPhoto({"id":2835976,"src":"2_Inspire_Ceramic_Wall_Panel_51_x_32_cm_thumb.jpg","galleries_id":176685,"server_id":5,"link":"photo_2835976.html","width":130,"caption":"INSPIRE ","height":204});
															thumbnails[6396940] = clik.newPhoto({"id":6396940,"src":"Fragment_II_thumb.jpg","galleries_id":176685,"server_id":5,"link":"photo_6396940.html","width":130,"caption":"FRAGMENT II - SOLD","height":188});
															thumbnails[2836345] = clik.newPhoto({"id":2836345,"src":")-'Encourage'-Ceramic-Wall-_thumb.jpg","galleries_id":176685,"server_id":5,"link":"photo_2836345.html","width":130,"caption":"ENCOURAGE","height":206});
															thumbnails[2835912] = clik.newPhoto({"id":2835912,"src":"Quintessence_thumb.jpg","galleries_id":176685,"server_id":5,"link":"photo_2835912.html","width":130,"caption":"Quintessence - SOLD","height":189});
															thumbnails[2838572] = clik.newPhoto({"id":2838572,"src":"Fields1_thumb.jpg","galleries_id":176685,"server_id":5,"link":"photo_2838572.html","width":130,"caption":"Field Series","height":175});
															thumbnails[2836346] = clik.newPhoto({"id":2836346,"src":"12-Doorways1_thumb.jpg","galleries_id":176685,"server_id":5,"link":"photo_2836346.html","width":130,"caption":"12 Doorways","height":172});
															thumbnails[5370224] = clik.newPhoto({"id":5370224,"src":"Score_I_thumb.jpg","galleries_id":176685,"server_id":5,"link":"photo_5370224.html","width":130,"caption":"SCORE I","height":131});
															thumbnails[3299762] = clik.newPhoto({"id":3299762,"src":"Relativity15_thumb.jpg","galleries_id":176685,"server_id":5,"link":"photo_3299762.html","width":130,"caption":"Relativity No.15","height":131});
															thumbnails[3301240] = clik.newPhoto({"id":3301240,"src":"Relativity16_thumb.jpg","galleries_id":176685,"server_id":5,"link":"photo_3301240.html","width":130,"caption":"Relativity No.16","height":130});
															thumbnails[2840251] = clik.newPhoto({"id":2840251,"src":"DoorwayIV_thumb.jpg","galleries_id":176685,"server_id":5,"link":"photo_2840251.html","width":130,"caption":"INSPIRAL DOORWAY IV","height":127});
															thumbnails[2836372] = clik.newPhoto({"id":2836372,"src":"Fragment_thumb.jpg","galleries_id":176685,"server_id":5,"link":"photo_2836372.html","width":130,"caption":"FRAGMENT","height":75});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[176685] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Ceramic Gallery ","link":"gallery_176685.html","maxRecords":0.0,"photoIDs":[6913326.0,6913358.0,6913149.0,6913250.0,7568393.0,6396960.0,8143416.0,8143413.0,8143397.0,8143464.0,8143402.0,6913105.0,5719171.0,5719158.0,5719174.0,6394261.0,5561188.0,3301236.0,5719176.0,5561174.0,5719241.0,5719243.0,5719245.0,5719249.0,5719250.0,2835976.0,6396940.0,2836345.0,2835912.0,2838572.0,2836346.0,5370224.0,3299762.0,3301240.0,2840251.0,2836372.0],"skipIndex":0,"section_code":"gallery","featured_images":"8143402,8143397,6913358,6913326,6396960,6396940,5719250,5719241,5719176,5719171,5719158,5561188,3301240,3299762,2836372,2836346,2836345,2835976","id":176685,"singleSection":false});				  						galleries[176687] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Print Gallery","link":"gallery_176687.html","maxRecords":0.0,"photoIDs":[2835862.0,2835686.0,2835863.0,2840249.0,2835965.0,2835968.0,2835969.0,2835973.0,2835985.0,2838708.0,2836352.0,2836389.0,2840687.0,2840689.0],"skipIndex":0,"section_code":"gallery","featured_images":"2840249,2836352","id":176687,"singleSection":false});				  						galleries[446844] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Work for Sale","link":"gallery_446844.html","maxRecords":0.0,"photoIDs":[8442260.0,8442239.0,8442269.0,8640400.0,8442256.0,8640404.0,8442285.0,8442314.0,8442317.0,8442311.0,8640619.0,8442295.0,8640623.0,8640408.0,8442230.0,8442306.0],"skipIndex":0,"section_code":"gallery","featured_images":"8640623,8640619,8442317,8442314,8442311,8442295,8442285,8442269,8442260,8442256,8442239","id":446844,"singleSection":false});				  						galleries[176686] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Commissions","link":"gallery_176686.html","maxRecords":0.0,"photoIDs":[7843757.0,2835761.0,2835741.0,3534742.0,3439627.0,3439619.0,3439617.0,3439606.0,3439611.0,3439632.0,8173474.0,8173478.0,3437375.0,3437379.0,3437384.0,3437361.0,6832193.0,7327607.0,6173942.0,6173949.0,6173950.0,6173953.0],"skipIndex":0,"section_code":"gallery","featured_images":"8173478,7327607,6832193,6173953,6173950,6173949,6173942,3439632,3439627,3439619,3439617,3439611,3439606,2835761","id":176686,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8143354,7568395,6913326,3300811,8143350,6913358,3300817,2835686,3300827,8442256,8143357,2840249,3301116,6396960,3439619,2835968,2835969,8143363,3439606,8143397,8143319,8143347,2836352,8173478,8640619,5719171,2840687,5719158,8442295,8640617,8640623,6832193,5561188,7327607,5719176,5719241,5719250,2835976,6396940,2836345,2838572,3299762,3301240,2836372,6394212';
imageSets[2] = '8442260,6397033,8442239,8143354,7568395,6913326,3300811,8442269,8143350,6913358,3300817,2835761,3300827,8442256,2840249,3439627,3301116,8442285,6396960,3439619,3301118,8442314,8143392,3439617,3301127,8442317,8143363,3439606,3301136,8442311,8143397,8143319,3439611,3301218,8442303,8143347,3439632,8143402,2836352,8173478,8640619,5719171,5719158,8442295,8640617,8640623,6832193,5561188,7327607,8442707,6173942,5719176,6173949,6173950,5719241,6173953,5719250,2835976,6396940,2836345,2836346,3299762,3301240,2836372,6394212';
imageSets[3] = '6913326,6913358,6396960,8143363,5719171,6832193,5561188,5719176,5719250,6396940,2836372,6394212';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/Crouchman/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/Crouchman/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/Crouchman/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/Crouchman/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/Crouchman/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/Crouchman/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/Crouchman/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/Crouchman/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/Crouchman/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/Crouchman/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/Crouchman/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/Crouchman/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/Crouchman/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/Crouchman/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/Crouchman/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/Crouchman/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/Crouchman/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/Crouchman/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/Crouchman/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/Crouchman/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/Crouchman/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/Crouchman/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/Crouchman/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/Crouchman/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/Crouchman/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/Crouchman/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/Crouchman/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 = 'Clare Crouchman: ' + 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="CROUCHMAN">';
			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({					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;
	}
}

			

