window.thumbnails = {};
															thumbnails[767117] = clik.newPhoto({"id":767117,"src":"Shifts-pink-front-thumb1.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"pink front","height":130});
															thumbnails[768640] = clik.newPhoto({"id":768640,"src":"Shifts-orange-front-thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"orange front","height":129});
															thumbnails[768642] = clik.newPhoto({"id":768642,"src":"Shifts-side-thumbs.jpg","galleries_id":"","server_id":1,"link":"#","width":62,"caption":"side view","height":130});
															thumbnails[3699372] = clik.newPhoto({"id":3699372,"src":"Fr_1-early_morning_thumb.jpg","galleries_id":197592,"server_id":1,"link":"photo_3699372.html","width":130,"caption":"|Low tide ...","height":130});
															thumbnails[3699377] = clik.newPhoto({"id":3699377,"src":"fr_2-early_morning_thumb.jpg","galleries_id":197592,"server_id":1,"link":"photo_3699377.html","width":130,"caption":"at dawn ...","height":130});
															thumbnails[3699400] = clik.newPhoto({"id":3699400,"src":"fr_3-early_morning_thumb.jpg","galleries_id":197592,"server_id":1,"link":"photo_3699400.html","width":130,"caption":"8 August 08|","height":130});
															thumbnails[3855952] = clik.newPhoto({"id":3855952,"src":"fr_4-7am_thumb.jpg","galleries_id":197592,"server_id":1,"link":"photo_3855952.html","width":130,"caption":"|7am ...","height":130});
															thumbnails[3855791] = clik.newPhoto({"id":3855791,"src":"fr_5-FRAG-COL-STILL-32res_thumb.jpg","galleries_id":197592,"server_id":1,"link":"photo_3855791.html","width":130,"caption":"the tide ...","height":130});
															thumbnails[3855796] = clik.newPhoto({"id":3855796,"src":"fr_6-FRAG-COL-STILL-48res_thumb.jpg","galleries_id":197592,"server_id":1,"link":"photo_3855796.html","width":130,"caption":"is ...","height":130});
															thumbnails[3855856] = clik.newPhoto({"id":3855856,"src":"fr_7-FRAG-COL-STILL-40res_thumb.jpg","galleries_id":197592,"server_id":1,"link":"photo_3855856.html","width":130,"caption":"coming in ...","height":130});
															thumbnails[3855833] = clik.newPhoto({"id":3855833,"src":"fr_8-FRAG-COL-STILL-36_thumb.jpg","galleries_id":197592,"server_id":1,"link":"photo_3855833.html","width":130,"caption":"vehemently|","height":130});
															thumbnails[3855815] = clik.newPhoto({"id":3855815,"src":"fr_9-FRAG-COL-STILL-43_thumb.jpg","galleries_id":197592,"server_id":1,"link":"photo_3855815.html","width":130,"caption":"|Almost...","height":130});
															thumbnails[3855820] = clik.newPhoto({"id":3855820,"src":"fr_10-FRAG-COL-STILL-46_thumb.jpg","galleries_id":197592,"server_id":1,"link":"photo_3855820.html","width":130,"caption":"high tide ...","height":130});
															thumbnails[3856090] = clik.newPhoto({"id":3856090,"src":"fr_11-913grey_thumb.jpg","galleries_id":197592,"server_id":1,"link":"photo_3856090.html","width":130,"caption":"the light is ...","height":130});
															thumbnails[3855772] = clik.newPhoto({"id":3855772,"src":"fr_12-FRAG-COL-STILL-5_thumb.jpg","galleries_id":197592,"server_id":1,"link":"photo_3855772.html","width":130,"caption":"changing|","height":130});
															thumbnails[3717991] = clik.newPhoto({"id":3717991,"src":"fr_13-beached_thumb.jpg","galleries_id":197592,"server_id":1,"link":"photo_3717991.html","width":130,"caption":"|beached|","height":130});
															thumbnails[3699443] = clik.newPhoto({"id":3699443,"src":"fr_15-afternoon_thumb.jpg","galleries_id":197592,"server_id":1,"link":"photo_3699443.html","width":130,"caption":"at low tide...","height":130});
															thumbnails[3699441] = clik.newPhoto({"id":3699441,"src":"fr_14-afternoon_thumb.jpg","galleries_id":197592,"server_id":1,"link":"photo_3699441.html","width":130,"caption":"|What remains...","height":130});
															thumbnails[3699446] = clik.newPhoto({"id":3699446,"src":"fr_16-afternoon_thumb.jpg","galleries_id":197592,"server_id":1,"link":"photo_3699446.html","width":130,"caption":"'Sea Drawings'","height":130});
															thumbnails[5550025] = clik.newPhoto({"id":5550025,"src":"sea_1-web-IMG_0056_thumb.jpg","galleries_id":310824,"server_id":1,"link":"photo_5550025.html","width":130,"caption":"from left","height":130});
															thumbnails[5550082] = clik.newPhoto({"id":5550082,"src":"sea_4-web-RM1b_thumb.jpg","galleries_id":310824,"server_id":1,"link":"photo_5550082.html","width":130,"caption":"frontal","height":130});
															thumbnails[5550087] = clik.newPhoto({"id":5550087,"src":"sea_5-web-RM1f_thumb.jpg","galleries_id":310824,"server_id":1,"link":"photo_5550087.html","width":130,"caption":"from right","height":130});
															thumbnails[5550092] = clik.newPhoto({"id":5550092,"src":"sea_6-web-RM1i_thumb.jpg","galleries_id":310824,"server_id":1,"link":"photo_5550092.html","width":130,"caption":"inbetween","height":130});
															thumbnails[5550094] = clik.newPhoto({"id":5550094,"src":"sea_7-web-RM1j_thumb.jpg","galleries_id":310824,"server_id":1,"link":"photo_5550094.html","width":130,"caption":"engulfed","height":130});
															thumbnails[5550041] = clik.newPhoto({"id":5550041,"src":"sea_2-web-RM1s_thumb.jpg","galleries_id":310824,"server_id":1,"link":"photo_5550041.html","width":130,"caption":" from underneath","height":130});
															thumbnails[5550079] = clik.newPhoto({"id":5550079,"src":"sea_3-web-RM1n_thumb.jpg","galleries_id":310824,"server_id":1,"link":"photo_5550079.html","width":130,"caption":"right tip","height":130});
															thumbnails[5550097] = clik.newPhoto({"id":5550097,"src":"sea_8-web-RM1l_thumb.jpg","galleries_id":310824,"server_id":1,"link":"photo_5550097.html","width":130,"caption":"Detail","height":130});
															thumbnails[5558805] = clik.newPhoto({"id":5558805,"src":"1-IMG_0435-c_thumb.jpg","galleries_id":314538,"server_id":1,"link":"photo_5558805.html","width":130,"caption":"from left","height":130});
															thumbnails[5558808] = clik.newPhoto({"id":5558808,"src":"IMG_0451_3_thumb.jpg","galleries_id":314538,"server_id":1,"link":"photo_5558808.html","width":130,"caption":"one = two","height":130});
															thumbnails[5558810] = clik.newPhoto({"id":5558810,"src":"3-RM2d-c_thumb.jpg","galleries_id":314538,"server_id":1,"link":"photo_5558810.html","width":130,"caption":"from right","height":130});
															thumbnails[5558813] = clik.newPhoto({"id":5558813,"src":"buo_4-RM2e-c_thumb.jpg","galleries_id":314538,"server_id":1,"link":"photo_5558813.html","width":130,"caption":"interspace","height":130});
															thumbnails[5558816] = clik.newPhoto({"id":5558816,"src":"buo_5-RM2l_thumb.jpg","galleries_id":314538,"server_id":1,"link":"photo_5558816.html","width":130,"caption":"detail","height":130});
															thumbnails[5558387] = clik.newPhoto({"id":5558387,"src":"buo_RM2p_thumb.jpg","galleries_id":314538,"server_id":1,"link":"photo_5558387.html","width":130,"caption":"close-up","height":130});
															thumbnails[5795591] = clik.newPhoto({"id":5795591,"src":"jo_550_thumb.jpg","galleries_id":326222,"server_id":1,"link":"photo_5795591.html","width":130,"caption":"Video recording","height":130});
															thumbnails[5757636] = clik.newPhoto({"id":5757636,"src":"timebased_video_gallery_full_thumb.jpg","galleries_id":326222,"server_id":1,"link":"photo_5757636.html","width":130,"caption":"Fr-Agile","height":130});
															thumbnails[203363] = clik.newPhoto({"id":203363,"src":"09-web_thumb.jpg","galleries_id":18472,"server_id":1,"link":"photo_203363.html","width":130,"caption":"three whirls","height":125});
															thumbnails[203642] = clik.newPhoto({"id":203642,"src":"07-web_thumb.jpg","galleries_id":18472,"server_id":1,"link":"photo_203642.html","width":130,"caption":"cloudy light","height":104});
															thumbnails[203657] = clik.newPhoto({"id":203657,"src":"08-web_thumb.jpg","galleries_id":18472,"server_id":1,"link":"photo_203657.html","width":130,"caption":"sunlit","height":105});
															thumbnails[203664] = clik.newPhoto({"id":203664,"src":"05-web_thumb.jpg","galleries_id":18472,"server_id":1,"link":"photo_203664.html","width":130,"caption":"the space","height":104});
															thumbnails[203671] = clik.newPhoto({"id":203671,"src":"x11_thumb.jpg","galleries_id":18472,"server_id":1,"link":"photo_203671.html","width":130,"caption":"look through","height":98});
															thumbnails[203793] = clik.newPhoto({"id":203793,"src":"x20_thumb.jpg","galleries_id":18472,"server_id":1,"link":"photo_203793.html","width":130,"caption":"detail","height":98});
															thumbnails[203662] = clik.newPhoto({"id":203662,"src":"AIRE - WAVE 31_thumb.jpg","galleries_id":18472,"server_id":1,"link":"photo_203662.html","width":130,"caption":"center  view","height":98});
															thumbnails[203668] = clik.newPhoto({"id":203668,"src":"xaire-wave 109+_thumb.jpg","galleries_id":18472,"server_id":1,"link":"photo_203668.html","width":130,"caption":"side view","height":98});
															thumbnails[203670] = clik.newPhoto({"id":203670,"src":"AIRE - WAVE 6_thumb.jpg","galleries_id":18472,"server_id":1,"link":"photo_203670.html","width":130,"caption":"close-up","height":98});
															thumbnails[203947] = clik.newPhoto({"id":203947,"src":"ORGAN1-thumb.jpg","galleries_id":18498,"server_id":1,"link":"photo_203947.html","width":130,"caption":"from entrance","height":180});
															thumbnails[203951] = clik.newPhoto({"id":203951,"src":"ORGAN2-thumb.jpg","galleries_id":18498,"server_id":1,"link":"photo_203951.html","width":130,"caption":"slightly from left","height":180});
															thumbnails[203966] = clik.newPhoto({"id":203966,"src":"ORGAN4-thumb.jpg","galleries_id":18498,"server_id":1,"link":"photo_203966.html","width":130,"caption":"detail","height":180});
															thumbnails[203959] = clik.newPhoto({"id":203959,"src":"ORGAN3-thumb.jpg","galleries_id":18498,"server_id":1,"link":"photo_203959.html","width":130,"caption":"center view","height":100});
															thumbnails[205241] = clik.newPhoto({"id":205241,"src":"SALAMANDER-1-thumb.jpg","galleries_id":18511,"server_id":1,"link":"photo_205241.html","width":130,"caption":"one way","height":97});
															thumbnails[205245] = clik.newPhoto({"id":205245,"src":"SALAMANDER-2-thumb.jpg","galleries_id":18511,"server_id":1,"link":"photo_205245.html","width":130,"caption":"the other way","height":174});
															thumbnails[205910] = clik.newPhoto({"id":205910,"src":"wall_thumb.jpg","galleries_id":18507,"server_id":1,"link":"photo_205910.html","width":130,"caption":"","height":195});
															thumbnails[205924] = clik.newPhoto({"id":205924,"src":"PERMEABLE WALL detail_thumb.jpg","galleries_id":18507,"server_id":1,"link":"photo_205924.html","width":130,"caption":"detail","height":96});
															thumbnails[203992] = clik.newPhoto({"id":203992,"src":"UNFOLDING-1-thumb.jpg","galleries_id":18504,"server_id":1,"link":"photo_203992.html","width":130,"caption":"","height":196});
															thumbnails[203994] = clik.newPhoto({"id":203994,"src":"UNFOLDING-2-thumb.jpg","galleries_id":18504,"server_id":1,"link":"photo_203994.html","width":130,"caption":"detail","height":196});
															thumbnails[205678] = clik.newPhoto({"id":205678,"src":"twilight-thumb.jpg","galleries_id":18506,"server_id":1,"link":"photo_205678.html","width":130,"caption":"dark threads, light threads","height":195});
															thumbnails[205687] = clik.newPhoto({"id":205687,"src":"TWILIGHT with organ in background_thumb.jpg","galleries_id":18506,"server_id":1,"link":"photo_205687.html","width":130,"caption":"with ","height":174});
															thumbnails[205684] = clik.newPhoto({"id":205684,"src":"TWILIGHT detail_thumb.jpg","galleries_id":18506,"server_id":1,"link":"photo_205684.html","width":130,"caption":"close-up","height":172});
															thumbnails[205691] = clik.newPhoto({"id":205691,"src":"TWILIGHT bottom_thumb.jpg","galleries_id":18506,"server_id":1,"link":"photo_205691.html","width":130,"caption":"bottom","height":98});
															thumbnails[205695] = clik.newPhoto({"id":205695,"src":"xc pk stringed (34)_thumb.jpg","galleries_id":18506,"server_id":1,"link":"photo_205695.html","width":130,"caption":"top","height":98});
															thumbnails[205912] = clik.newPhoto({"id":205912,"src":"POLLEN-OF-WORDS-1-sabine-jg_thumb.jpg","galleries_id":18500,"server_id":1,"link":"photo_205912.html","width":130,"caption":"Pollen of Words","height":317});
															thumbnails[205908] = clik.newPhoto({"id":205908,"src":"POLLEN-OF-WORDS-2-sabine-jg_thumb.jpg","galleries_id":18500,"server_id":1,"link":"photo_205908.html","width":130,"caption":"close-up","height":195});
															thumbnails[205916] = clik.newPhoto({"id":205916,"src":"POLLEN-OF-WORDS-3-sabine-jg_thumb.jpg","galleries_id":18500,"server_id":1,"link":"photo_205916.html","width":130,"caption":"detail","height":143});
															thumbnails[340235] = clik.newPhoto({"id":340235,"src":"POLLEN-LIBRARY-sabine-j-bieli_thumb.jpg","galleries_id":18500,"server_id":1,"link":"photo_340235.html","width":130,"caption":"Central Library Hull","height":196});
															thumbnails[2623768] = clik.newPhoto({"id":2623768,"src":"website wordsc 022 cC_thumb.jpg","galleries_id":166521,"server_id":1,"link":"photo_2623768.html","width":130,"caption":"Wordscape","height":130});
															thumbnails[2647048] = clik.newPhoto({"id":2647048,"src":"Wordsc-joint-of-past-and-fu_thumb.jpg","galleries_id":166521,"server_id":1,"link":"photo_2647048.html","width":130,"caption":"Joint of past and present","height":130});
															thumbnails[2656501] = clik.newPhoto({"id":2656501,"src":"WORDS-detail-(future)550_thumb.jpg","galleries_id":166521,"server_id":1,"link":"photo_2656501.html","width":130,"caption":"Joint of Present and Future","height":130});
															thumbnails[2646999] = clik.newPhoto({"id":2646999,"src":"Wordsc-future-detail_thumb.jpg","galleries_id":166521,"server_id":1,"link":"photo_2646999.html","width":130,"caption":"Future \/ detail","height":130});
															thumbnails[2656504] = clik.newPhoto({"id":2656504,"src":"Wordsc-text-detail_thumb.jpg","galleries_id":166521,"server_id":1,"link":"photo_2656504.html","width":130,"caption":"Text detail","height":130});
															thumbnails[2656505] = clik.newPhoto({"id":2656505,"src":"Wordscape-center_thumb.jpg","galleries_id":166521,"server_id":1,"link":"photo_2656505.html","width":130,"caption":"Center","height":130});
															thumbnails[203977] = clik.newPhoto({"id":203977,"src":"NEST 2_thumb.jpg","galleries_id":18499,"server_id":1,"link":"photo_203977.html","width":130,"caption":"opaque","height":98});
															thumbnails[203986] = clik.newPhoto({"id":203986,"src":"NEST 1_thumb.jpg","galleries_id":18499,"server_id":1,"link":"photo_203986.html","width":130,"caption":"translucent","height":98});
															thumbnails[766865] = clik.newPhoto({"id":766865,"src":"Cradle-for-Thoughts-1-thumb-.jpg","galleries_id":59272,"server_id":1,"link":"photo_766865.html","width":130,"caption":"Cradle for Thoughts<br>inner life","height":130});
															thumbnails[766945] = clik.newPhoto({"id":766945,"src":"Cradle-for-Thoughts-2thumb.jpg","galleries_id":59272,"server_id":1,"link":"photo_766945.html","width":130,"caption":"Cradle for Thoughts<br>side view","height":130});
															thumbnails[204002] = clik.newPhoto({"id":204002,"src":"STARLIGHTnew_thumb.jpg","galleries_id":18508,"server_id":1,"link":"photo_204002.html","width":130,"caption":"DROPPED STARLIGHT","height":129});
															thumbnails[205927] = clik.newPhoto({"id":205927,"src":"VERTEBRAS-1-thumb-.jpg","galleries_id":18508,"server_id":1,"link":"photo_205927.html","width":130,"caption":"Vertebras","height":130});
															thumbnails[205926] = clik.newPhoto({"id":205926,"src":"VERTEBRAS-detail-thumb-1.jpg","galleries_id":18508,"server_id":1,"link":"photo_205926.html","width":130,"caption":"detail","height":130});
															thumbnails[205651] = clik.newPhoto({"id":205651,"src":"01-web_thumb.jpg","galleries_id":18509,"server_id":1,"link":"photo_205651.html","width":130,"caption":"","height":130});
															thumbnails[205653] = clik.newPhoto({"id":205653,"src":"PB0904281--web_thumb.jpg","galleries_id":18509,"server_id":1,"link":"photo_205653.html","width":130,"caption":"","height":130});
															thumbnails[205674] = clik.newPhoto({"id":205674,"src":"HPIM0452c-web_thumb.jpg","galleries_id":18509,"server_id":1,"link":"photo_205674.html","width":130,"caption":"","height":130});
															thumbnails[205659] = clik.newPhoto({"id":205659,"src":"HPIM0469c-web_thumb.jpg","galleries_id":18509,"server_id":1,"link":"photo_205659.html","width":130,"caption":"","height":130});
															thumbnails[205664] = clik.newPhoto({"id":205664,"src":"HPIM0474-web_thumb.jpg","galleries_id":18509,"server_id":1,"link":"photo_205664.html","width":130,"caption":"","height":130});
															thumbnails[205667] = clik.newPhoto({"id":205667,"src":"HPIM0475c-web_thumb.jpg","galleries_id":18509,"server_id":1,"link":"photo_205667.html","width":130,"caption":"","height":130});
															thumbnails[768644] = clik.newPhoto({"id":768644,"src":"2-PLUNGE-side-view-from-fro_thumb.jpg","galleries_id":59468,"server_id":1,"link":"photo_768644.html","width":130,"caption":"Plunge","height":130});
															thumbnails[205930] = clik.newPhoto({"id":205930,"src":"Stream-thumb.jpg","galleries_id":59470,"server_id":1,"link":"photo_205930.html","width":130,"caption":"Stream","height":130});
															thumbnails[205932] = clik.newPhoto({"id":205932,"src":"Stream-detail-thumb.jpg","galleries_id":59470,"server_id":1,"link":"photo_205932.html","width":130,"caption":"detail","height":130});
															thumbnails[205928] = clik.newPhoto({"id":205928,"src":"SILENT-WATER-thumb.jpg","galleries_id":59469,"server_id":1,"link":"photo_205928.html","width":130,"caption":"","height":130});
															thumbnails[783160] = clik.newPhoto({"id":783160,"src":"SILENT-WATER-detail-thumb.jpg","galleries_id":59469,"server_id":1,"link":"photo_783160.html","width":130,"caption":"detail","height":130});
															thumbnails[767081] = clik.newPhoto({"id":767081,"src":"Textbook-pages-thumb.jpg","galleries_id":59276,"server_id":1,"link":"photo_767081.html","width":130,"caption":"pages","height":130});
															thumbnails[767106] = clik.newPhoto({"id":767106,"src":"Textbook-inside-thumb-1.jpg","galleries_id":59276,"server_id":1,"link":"photo_767106.html","width":130,"caption":"Textbook \/ inside","height":130});
															thumbnails[767074] = clik.newPhoto({"id":767074,"src":"Textbook-outside-thumb.jpg","galleries_id":59276,"server_id":1,"link":"photo_767074.html","width":130,"caption":"outside","height":130});
															thumbnails[1947707] = clik.newPhoto({"id":1947707,"src":"web-DSCF0932 3sat_thumb.jpg","galleries_id":130240,"server_id":1,"link":"photo_1947707.html","width":130,"caption":"VICE versa","height":130});
															thumbnails[1950492] = clik.newPhoto({"id":1950492,"src":"web DSCF09371_thumb.jpg","galleries_id":130240,"server_id":1,"link":"photo_1950492.html","width":130,"caption":"Vice VERSA","height":130});
															thumbnails[1950496] = clik.newPhoto({"id":1950496,"src":"web DSCF0972_thumb.jpg","galleries_id":130240,"server_id":1,"link":"photo_1950496.html","width":130,"caption":"outside","height":130});
															thumbnails[1950499] = clik.newPhoto({"id":1950499,"src":"web-p-1-vice-cr_edited-1_thumb.jpg","galleries_id":130240,"server_id":1,"link":"photo_1950499.html","width":130,"caption":"page one","height":130});
															thumbnails[1954163] = clik.newPhoto({"id":1954163,"src":"web-p-5-vice-cr_edited-11_thumb.jpg","galleries_id":130240,"server_id":1,"link":"photo_1954163.html","width":130,"caption":"page five","height":130});
															thumbnails[1950511] = clik.newPhoto({"id":1950511,"src":"web-p-7-vice-cr_edited-1_thumb.jpg","galleries_id":130240,"server_id":1,"link":"photo_1950511.html","width":130,"caption":"page seven","height":130});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[310824] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Seascape          [Fr-Agile]","link":"section274494_310824.html","maxRecords":0.0,"photoIDs":[5550025.0,5550082.0,5550087.0,5550092.0,5550094.0,5550041.0,5550079.0,5550097.0],"skipIndex":0,"section_code":"section274494","featured_images":"5550092,5550025","id":310824,"singleSection":false});				  						galleries[314538] = clik.newGallery({"parentGallery":"","usePopups":false,"title":" Buoy [Fr-Agile]","link":"section274494_314538.html","maxRecords":0.0,"photoIDs":[5558805.0,5558808.0,5558810.0,5558813.0,5558816.0,5558387.0],"skipIndex":0,"section_code":"section274494","featured_images":"5558813,5558808","id":314538,"singleSection":false});				  						galleries[326222] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Video documentation [Fr-Agile]","link":"section274494_326222.html","maxRecords":0.0,"photoIDs":[5795591.0,5757636.0],"skipIndex":0,"section_code":"section274494","featured_images":5795591.0,"id":326222,"singleSection":false});				  						galleries[197592] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Fr-Agile [On Spurn]","link":"section274494_197592.html","maxRecords":0.0,"photoIDs":[3699372.0,3699377.0,3699400.0,3855952.0,3855791.0,3855796.0,3855856.0,3855833.0,3855815.0,3855820.0,3856090.0,3855772.0,3717991.0,3699443.0,3699441.0,3699446.0],"skipIndex":0,"section_code":"section274494","featured_images":"3856090,3855796,3855791,3855772,3699400","id":197592,"singleSection":false});				  						galleries[18472] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"AIRE - WAVE","link":"gallery_18472.html","maxRecords":0.0,"photoIDs":[203363.0,203642.0,203657.0,203664.0,203671.0,203793.0,203662.0,203668.0,203670.0],"skipIndex":0,"section_code":"gallery","featured_images":"203793,203671,203670,203664,203657,203642,203363","id":18472,"singleSection":false});				  						galleries[18498] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"ORGAN ","link":"gallery_18498.html","maxRecords":0.0,"photoIDs":[203947.0,203951.0,203966.0,203959.0],"skipIndex":0,"section_code":"gallery","featured_images":"203959,203947","id":18498,"singleSection":false});				  						galleries[18511] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"SALAMANDER","link":"gallery_18511.html","maxRecords":0.0,"photoIDs":[205241.0,205245.0],"skipIndex":0,"section_code":"gallery","featured_images":205241.0,"id":18511,"singleSection":false});				  						galleries[166521] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wordscape","link":"gallery_166521.html","maxRecords":0.0,"photoIDs":[2623768.0,2647048.0,2656501.0,2646999.0,2656504.0,2656505.0],"skipIndex":0,"section_code":"gallery","featured_images":"2656501,2647048,2646999,2623768","id":166521,"singleSection":false});				  						galleries[18507] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"PERMEABLE WALL","link":"gallery_18507.html","maxRecords":0.0,"photoIDs":[205910.0,205924.0],"skipIndex":0,"section_code":"gallery","featured_images":205910.0,"id":18507,"singleSection":false});				  						galleries[18504] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"UNFOLDING","link":"gallery_18504.html","maxRecords":0.0,"photoIDs":[203992.0,203994.0],"skipIndex":0,"section_code":"gallery","featured_images":203992.0,"id":18504,"singleSection":false});				  						galleries[18506] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"TWILIGHT","link":"gallery_18506.html","maxRecords":0.0,"photoIDs":[205678.0,205687.0,205684.0,205691.0,205695.0],"skipIndex":0,"section_code":"gallery","featured_images":"205687,205678","id":18506,"singleSection":false});				  						galleries[18500] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"POLLEN OF WORDS","link":"gallery_18500.html","maxRecords":0.0,"photoIDs":[205912.0,205908.0,205916.0,340235.0],"skipIndex":0,"section_code":"gallery","featured_images":"205916,205908","id":18500,"singleSection":false});				  						galleries[18499] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"NEST","link":"section565631_18499.html","maxRecords":0.0,"photoIDs":[203977.0,203986.0],"skipIndex":0,"section_code":"section565631","featured_images":"203986,203977","id":18499,"singleSection":false});				  						galleries[18509] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"GLOBE","link":"section565631_18509.html","maxRecords":0.0,"photoIDs":[205651.0,205653.0,205674.0,205659.0,205664.0,205667.0],"skipIndex":0,"section_code":"section565631","featured_images":"205667,205659,205653","id":18509,"singleSection":false});				  						galleries[59272] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"CRADLE FOR THOUGHTS","link":"section565631_59272.html","maxRecords":0.0,"photoIDs":[766865.0,766945.0],"skipIndex":0,"section_code":"section565631","featured_images":766865.0,"id":59272,"singleSection":false});				  						galleries[18508] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"VERTEBRAS","link":"section565631_18508.html","maxRecords":0.0,"photoIDs":[204002.0,205927.0,205926.0],"skipIndex":0,"section_code":"section565631","featured_images":205926.0,"id":18508,"singleSection":false});				  						galleries[59468] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"PLUNGE","link":"section565631_59468.html","maxRecords":0.0,"photoIDs":[768644.0],"skipIndex":0,"section_code":"section565631","featured_images":768644.0,"id":59468,"singleSection":false});				  						galleries[59276] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"TEXTBOOK","link":"section243392_59276.html","maxRecords":0.0,"photoIDs":[767081.0,767106.0,767074.0],"skipIndex":0,"section_code":"section243392","featured_images":"767106,767081","id":59276,"singleSection":false});				  						galleries[130240] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Vice Versa","link":"section243392_130240.html","maxRecords":0.0,"photoIDs":[1947707.0,1950492.0,1950496.0,1950499.0,1954163.0,1950511.0],"skipIndex":0,"section_code":"section243392","featured_images":"1954163,1950499,1950496,1947707","id":130240,"singleSection":false});				  						galleries[59469] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"SILENT WATERS","link":"section243392_59469.html","maxRecords":0.0,"photoIDs":[205928.0,783160.0],"skipIndex":0,"section_code":"section243392","featured_images":"783160,205928","id":59469,"singleSection":false});				  						galleries[59470] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"STREAM","link":"section243392_59470.html","maxRecords":0.0,"photoIDs":[205930.0,205932.0],"skipIndex":0,"section_code":"section243392","featured_images":"205932,205930","id":59470,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '203642,203657,203671,203793,205910,203992,205687,205916,2646999,205659,205667,1947707,3855791,5550025,5550092,5558816';
imageSets[2] = '203363,203642,203657,203664,203671,203793,203670,203947,203959,205241,203977,203986,205910,203992,205678,205687,205908,205916,766865,205926,2623768,2647048,2656501,2646999,205653,205659,205667,205930,205932,205928,783160,768644,768642,767081,767106,1947707,1950496,1950499,1954163,3699400,3855791,3855796,3856090,3855772,5550025,5550092,5558808,5558813,5795591';
imageSets[3] = '205684,2623768,2647048,2656501,2646999,2656504,2656505,783160,768644,767117,768640,768642,767106,1947707,1950492,1950496,1950499,1954163,1950511,3699372,3699377,3699400,3855952,3855791,3855796,3855856,3855833,3855815,3855820,3856090,3855772,3717991,3699443,3699441,3699446,5550025,5550082,5550087,5550092,5550094,5550041,5550079,5550097,5558805,5558808,5558810,5558813,5558816,5558387';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/jeanne/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/jeanne/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/jeanne/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/jeanne/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/jeanne/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/jeanne/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/jeanne/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/jeanne/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/jeanne/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/jeanne/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/jeanne/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/jeanne/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/jeanne/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/jeanne/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/jeanne/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/jeanne/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/jeanne/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/jeanne/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/jeanne/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/jeanne/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/jeanne/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/jeanne/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/jeanne/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/jeanne/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/jeanne/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/jeanne/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/jeanne/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 += 'section274494.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 && 'section274494' != '') {
					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 = 'Sabine Jeanne Bieli: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &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.item_price !== '') {
																		temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="sabinejbieli@gmail.com">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="sabinejbieli@gmail.com">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						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;
	}
}

			

