window.thumbnails = {};
															thumbnails[3215923] = clik.newPhoto({"id":3215923,"src":"art_of_living_thumb.jpg","galleries_id":196239,"server_id":5,"link":"photo_3215923.html","width":130,"caption":"","height":95});
															thumbnails[3213621] = clik.newPhoto({"id":3213621,"src":"Castlemilk4_thumb.jpg","galleries_id":196239,"server_id":5,"link":"photo_3213621.html","width":130,"caption":"","height":95});
															thumbnails[3235610] = clik.newPhoto({"id":3235610,"src":"hospital1_thumb.jpg","galleries_id":196251,"server_id":5,"link":"photo_3235610.html","width":127,"caption":"","height":95});
															thumbnails[3235616] = clik.newPhoto({"id":3235616,"src":"cultivar-outside_thumb.jpg","galleries_id":196268,"server_id":5,"link":"photo_3235616.html","width":130,"caption":"","height":95});
															thumbnails[3213622] = clik.newPhoto({"id":3213622,"src":"Castlemilk2_thumb.jpg","galleries_id":196239,"server_id":5,"link":"photo_3213622.html","width":130,"caption":"","height":98});
															thumbnails[3216481] = clik.newPhoto({"id":3216481,"src":"ice_bridge21_thumb.jpg","galleries_id":196269,"server_id":5,"link":"photo_3216481.html","width":130,"caption":"","height":95});
															thumbnails[3235611] = clik.newPhoto({"id":3235611,"src":"hospital2_thumb.jpg","galleries_id":196251,"server_id":5,"link":"photo_3235611.html","width":127,"caption":"","height":95});
															thumbnails[3235617] = clik.newPhoto({"id":3235617,"src":"orchbef_thumb.jpg","galleries_id":196268,"server_id":5,"link":"photo_3235617.html","width":130,"caption":"","height":95});
															thumbnails[3213646] = clik.newPhoto({"id":3213646,"src":"castlemilk3_thumb.jpg","galleries_id":196239,"server_id":5,"link":"photo_3213646.html","width":130,"caption":"","height":95});
															thumbnails[3216475] = clik.newPhoto({"id":3216475,"src":"ice_bridge11_thumb.jpg","galleries_id":196269,"server_id":5,"link":"photo_3216475.html","width":130,"caption":"","height":95});
															thumbnails[3235621] = clik.newPhoto({"id":3235621,"src":"Cultivar11_thumb.jpg","galleries_id":196268,"server_id":5,"link":"photo_3235621.html","width":130,"caption":"","height":95});
															thumbnails[3213631] = clik.newPhoto({"id":3213631,"src":"growingspace1_thumb.jpg","galleries_id":196239,"server_id":5,"link":"photo_3213631.html","width":130,"caption":"","height":98});
															thumbnails[3213686] = clik.newPhoto({"id":3213686,"src":"Churchill3_thumb.jpg","galleries_id":196251,"server_id":5,"link":"photo_3213686.html","width":130,"caption":"","height":64});
															thumbnails[3216552] = clik.newPhoto({"id":3216552,"src":"brighterorchard_thumb.jpg","galleries_id":196268,"server_id":5,"link":"photo_3216552.html","width":130,"caption":"","height":92});
															thumbnails[3216554] = clik.newPhoto({"id":3216554,"src":"cultivar7_thumb.jpg","galleries_id":196268,"server_id":5,"link":"photo_3216554.html","width":128,"caption":"","height":200});
															thumbnails[3215924] = clik.newPhoto({"id":3215924,"src":"art_of_living3_thumb.jpg","galleries_id":196239,"server_id":5,"link":"photo_3215924.html","width":130,"caption":"","height":98});
															thumbnails[3237117] = clik.newPhoto({"id":3237117,"src":"St-Helens_side_by_side_thumb.jpg","galleries_id":196251,"server_id":5,"link":"photo_3237117.html","width":130,"caption":"","height":47});
															thumbnails[3215925] = clik.newPhoto({"id":3215925,"src":"art_of_living2_thumb.jpg","galleries_id":196239,"server_id":5,"link":"photo_3215925.html","width":130,"caption":"","height":98});
															thumbnails[3216555] = clik.newPhoto({"id":3216555,"src":"cultivar2_thumb.jpg","galleries_id":196268,"server_id":5,"link":"photo_3216555.html","width":125,"caption":"","height":200});
															thumbnails[3215926] = clik.newPhoto({"id":3215926,"src":"art_of_living41_thumb.jpg","galleries_id":196239,"server_id":5,"link":"photo_3215926.html","width":130,"caption":"","height":95});
															thumbnails[3214365] = clik.newPhoto({"id":3214365,"src":"whiteorch2_thumb.jpg","galleries_id":196239,"server_id":5,"link":"photo_3214365.html","width":130,"caption":"","height":98});
															thumbnails[3216057] = clik.newPhoto({"id":3216057,"src":"windowsills9_thumb.jpg","galleries_id":196271,"server_id":5,"link":"photo_3216057.html","width":130,"caption":"","height":95});
															thumbnails[3217524] = clik.newPhoto({"id":3217524,"src":"trust4_thumb.jpg","galleries_id":196273,"server_id":5,"link":"photo_3217524.html","width":130,"caption":"","height":95});
															thumbnails[3217561] = clik.newPhoto({"id":3217561,"src":"flowchart11_thumb.jpg","galleries_id":196272,"server_id":5,"link":"photo_3217561.html","width":130,"caption":"","height":95});
															thumbnails[3235564] = clik.newPhoto({"id":3235564,"src":"infraredbetter_thumb.jpg","galleries_id":196270,"server_id":5,"link":"photo_3235564.html","width":100,"caption":"","height":95});
															thumbnails[3214308] = clik.newPhoto({"id":3214308,"src":"Arblabox_thumb.jpg","galleries_id":196270,"server_id":5,"link":"photo_3214308.html","width":130,"caption":"","height":98});
															thumbnails[3217530] = clik.newPhoto({"id":3217530,"src":"trust2_thumb.jpg","galleries_id":196273,"server_id":5,"link":"photo_3217530.html","width":130,"caption":"","height":95});
															thumbnails[3217562] = clik.newPhoto({"id":3217562,"src":"flowchart9_thumb.jpg","galleries_id":196272,"server_id":5,"link":"photo_3217562.html","width":130,"caption":"","height":95});
															thumbnails[3214333] = clik.newPhoto({"id":3214333,"src":"Arblab2_thumb.jpg","galleries_id":196270,"server_id":5,"link":"photo_3214333.html","width":130,"caption":"","height":98});
															thumbnails[3217533] = clik.newPhoto({"id":3217533,"src":"trust6_thumb.jpg","galleries_id":196273,"server_id":5,"link":"photo_3217533.html","width":130,"caption":"","height":95});
															thumbnails[3217564] = clik.newPhoto({"id":3217564,"src":"flowchart1_thumb.jpg","galleries_id":196272,"server_id":5,"link":"photo_3217564.html","width":130,"caption":"","height":95});
															thumbnails[3214335] = clik.newPhoto({"id":3214335,"src":"KW2_thumb.jpg","galleries_id":196270,"server_id":5,"link":"photo_3214335.html","width":130,"caption":"","height":98});
															thumbnails[3216060] = clik.newPhoto({"id":3216060,"src":"windowsills1_thumb.jpg","galleries_id":196271,"server_id":5,"link":"photo_3216060.html","width":130,"caption":"","height":95});
															thumbnails[3214334] = clik.newPhoto({"id":3214334,"src":"Arblab1_thumb.jpg","galleries_id":196270,"server_id":5,"link":"photo_3214334.html","width":130,"caption":"","height":98});
															thumbnails[3216068] = clik.newPhoto({"id":3216068,"src":"windowsills12_thumb.jpg","galleries_id":196271,"server_id":5,"link":"photo_3216068.html","width":130,"caption":"","height":92});
															thumbnails[3217534] = clik.newPhoto({"id":3217534,"src":"trust5_thumb.jpg","galleries_id":196273,"server_id":5,"link":"photo_3217534.html","width":130,"caption":"","height":95});
															thumbnails[3217565] = clik.newPhoto({"id":3217565,"src":"flowchart3_thumb.jpg","galleries_id":196272,"server_id":5,"link":"photo_3217565.html","width":130,"caption":"","height":95});
															thumbnails[3214356] = clik.newPhoto({"id":3214356,"src":"KW4_thumb.jpg","galleries_id":196270,"server_id":5,"link":"photo_3214356.html","width":130,"caption":"","height":98});
															thumbnails[3216062] = clik.newPhoto({"id":3216062,"src":"windowsills8_thumb.jpg","galleries_id":196271,"server_id":5,"link":"photo_3216062.html","width":130,"caption":"","height":92});
															thumbnails[3216058] = clik.newPhoto({"id":3216058,"src":"windowsills7_thumb.jpg","galleries_id":196271,"server_id":5,"link":"photo_3216058.html","width":130,"caption":"","height":95});
															thumbnails[3217537] = clik.newPhoto({"id":3217537,"src":"trust3_thumb.jpg","galleries_id":196273,"server_id":5,"link":"photo_3217537.html","width":130,"caption":"","height":95});
															thumbnails[3216063] = clik.newPhoto({"id":3216063,"src":"windowsills10_thumb.jpg","galleries_id":196271,"server_id":5,"link":"photo_3216063.html","width":130,"caption":"","height":95});
															thumbnails[3216072] = clik.newPhoto({"id":3216072,"src":"windowsills2_thumb.jpg","galleries_id":196271,"server_id":5,"link":"photo_3216072.html","width":130,"caption":"","height":95});
															thumbnails[3217539] = clik.newPhoto({"id":3217539,"src":"trust7_thumb.jpg","galleries_id":196273,"server_id":5,"link":"photo_3217539.html","width":130,"caption":"","height":95});
															thumbnails[3217568] = clik.newPhoto({"id":3217568,"src":"flowchart8_thumb.jpg","galleries_id":196272,"server_id":5,"link":"photo_3217568.html","width":130,"caption":"","height":95});
															thumbnails[3217569] = clik.newPhoto({"id":3217569,"src":"flowchart2_thumb.jpg","galleries_id":196272,"server_id":5,"link":"photo_3217569.html","width":130,"caption":"","height":95});
															thumbnails[3235567] = clik.newPhoto({"id":3235567,"src":"Squrrels-planting-22_thumb.jpg","galleries_id":196270,"server_id":5,"link":"photo_3235567.html","width":127,"caption":"","height":95});
															thumbnails[3235572] = clik.newPhoto({"id":3235572,"src":"fridge400_thumb.jpg","galleries_id":196272,"server_id":5,"link":"photo_3235572.html","width":71,"caption":"","height":95});
															thumbnails[3216075] = clik.newPhoto({"id":3216075,"src":"windowsills6_thumb.jpg","galleries_id":196271,"server_id":5,"link":"photo_3216075.html","width":130,"caption":"","height":95});
															thumbnails[3217571] = clik.newPhoto({"id":3217571,"src":"flowchart5_thumb.jpg","galleries_id":196272,"server_id":5,"link":"photo_3217571.html","width":130,"caption":"","height":95});
															thumbnails[3217538] = clik.newPhoto({"id":3217538,"src":"trust1_thumb.jpg","galleries_id":196273,"server_id":5,"link":"photo_3217538.html","width":130,"caption":"","height":95});
															thumbnails[3217572] = clik.newPhoto({"id":3217572,"src":"flowchart6_thumb.jpg","galleries_id":196272,"server_id":5,"link":"photo_3217572.html","width":130,"caption":"","height":95});
															thumbnails[3217574] = clik.newPhoto({"id":3217574,"src":"stolenwater_thumb.jpg","galleries_id":196272,"server_id":5,"link":"photo_3217574.html","width":130,"caption":"","height":95});
															thumbnails[3216073] = clik.newPhoto({"id":3216073,"src":"windowsills3_thumb.jpg","galleries_id":196271,"server_id":5,"link":"photo_3216073.html","width":130,"caption":"","height":86});
															thumbnails[3213691] = clik.newPhoto({"id":3213691,"src":"flightsoffancy1_thumb.jpg","galleries_id":196255,"server_id":5,"link":"photo_3213691.html","width":130,"caption":"Whilst ‘exotic’ plants are now commonly available across Europe, orchids are still able to inspire strong passions.  <br>\r\n<br>\r\nEdwina became so fascinated by orchid collectors and their obsessions, that she painstakingly replicated over 200 phalaenopsis (moth) orchids as an act of homage. <br>\r\n<br>\r\nThese 3d, life sized paper flowers are pinned to the gallery wall as though they’re 19th century butterfly specimens. ","height":98});
															thumbnails[3217909] = clik.newPhoto({"id":3217909,"src":"terra6_thumb.jpg","galleries_id":196266,"server_id":5,"link":"photo_3217909.html","width":130,"caption":"","height":92});
															thumbnails[3217948] = clik.newPhoto({"id":3217948,"src":"after-eden-cape005_thumb.jpg","galleries_id":196267,"server_id":5,"link":"photo_3217948.html","width":130,"caption":"","height":95});
															thumbnails[3217910] = clik.newPhoto({"id":3217910,"src":"terra2_thumb.jpg","galleries_id":196266,"server_id":5,"link":"photo_3217910.html","width":130,"caption":"","height":92});
															thumbnails[3214395] = clik.newPhoto({"id":3214395,"src":"orchids_thumb.jpg","galleries_id":196255,"server_id":5,"link":"photo_3214395.html","width":130,"caption":"","height":98});
															thumbnails[3214391] = clik.newPhoto({"id":3214391,"src":"flights2_thumb.jpg","galleries_id":196255,"server_id":5,"link":"photo_3214391.html","width":130,"caption":"","height":98});
															thumbnails[3217912] = clik.newPhoto({"id":3217912,"src":"terra5_thumb.jpg","galleries_id":196266,"server_id":5,"link":"photo_3217912.html","width":130,"caption":"","height":92});
															thumbnails[3217953] = clik.newPhoto({"id":3217953,"src":"after_eden3_thumb.jpg","galleries_id":196267,"server_id":5,"link":"photo_3217953.html","width":130,"caption":"","height":92});
															thumbnails[3217913] = clik.newPhoto({"id":3217913,"src":"terra1_thumb.jpg","galleries_id":196266,"server_id":5,"link":"photo_3217913.html","width":130,"caption":"","height":92});
															thumbnails[3217954] = clik.newPhoto({"id":3217954,"src":"after_eden2_thumb.jpg","galleries_id":196267,"server_id":5,"link":"photo_3217954.html","width":130,"caption":"","height":84});
															thumbnails[3235560] = clik.newPhoto({"id":3235560,"src":"smalltree_thumb.jpg","galleries_id":196267,"server_id":5,"link":"photo_3235560.html","width":61,"caption":"","height":95});
															thumbnails[3235562] = clik.newPhoto({"id":3235562,"src":"concept_thumb.jpg","galleries_id":196267,"server_id":5,"link":"photo_3235562.html","width":59,"caption":"","height":95});
															thumbnails[3214397] = clik.newPhoto({"id":3214397,"src":"uni-princess_thumb.jpg","galleries_id":196255,"server_id":5,"link":"photo_3214397.html","width":130,"caption":"","height":98});
															thumbnails[3214409] = clik.newPhoto({"id":3214409,"src":"candystripes1_thumb.jpg","galleries_id":196255,"server_id":5,"link":"photo_3214409.html","width":130,"caption":"","height":98});
															thumbnails[3214410] = clik.newPhoto({"id":3214410,"src":"candystripes2_thumb.jpg","galleries_id":196255,"server_id":5,"link":"photo_3214410.html","width":130,"caption":"","height":97});
															thumbnails[3235563] = clik.newPhoto({"id":3235563,"src":"after-eden-cape0012_thumb.jpg","galleries_id":196267,"server_id":5,"link":"photo_3235563.html","width":60,"caption":"","height":95});
															thumbnails[3214392] = clik.newPhoto({"id":3214392,"src":"genus_epithets_thumb.jpg","galleries_id":196255,"server_id":5,"link":"photo_3214392.html","width":93,"caption":"","height":95});
															thumbnails[3214396] = clik.newPhoto({"id":3214396,"src":"uniprincess_thumb.jpg","galleries_id":196255,"server_id":5,"link":"photo_3214396.html","width":130,"caption":"","height":133});
															thumbnails[6731060] = clik.newPhoto({"id":6731060,"src":"keir2_thumb.jpg","galleries_id":352583,"server_id":5,"link":"photo_6731060.html","width":130,"caption":"Keir Smith's Last Rays of an English Rose","height":87});
															thumbnails[6731063] = clik.newPhoto({"id":6731063,"src":"keith_wilson_thumb.jpg","galleries_id":352583,"server_id":5,"link":"photo_6731063.html","width":130,"caption":"Keith Wilson's Boat Race","height":87});
															thumbnails[6731066] = clik.newPhoto({"id":6731066,"src":"landscape_thumb.jpg","galleries_id":352583,"server_id":5,"link":"photo_6731066.html","width":127,"caption":"","height":95});
															thumbnails[6731068] = clik.newPhoto({"id":6731068,"src":"landscape2_thumb.jpg","galleries_id":352583,"server_id":5,"link":"photo_6731068.html","width":130,"caption":"","height":87});
															thumbnails[6738929] = clik.newPhoto({"id":6738929,"src":"Grizedaleviewsmall_thumb.jpg","galleries_id":352583,"server_id":5,"link":"photo_6738929.html","width":130,"caption":"","height":87});
															thumbnails[6355634] = clik.newPhoto({"id":6355634,"src":"Balloon_1001_thumb.jpg","galleries_id":366991,"server_id":5,"link":"photo_6355634.html","width":130,"caption":"","height":87});
															thumbnails[6371328] = clik.newPhoto({"id":6371328,"src":"lost_girl005_thumb.jpg","galleries_id":352583,"server_id":5,"link":"photo_6371328.html","width":130,"caption":"","height":87});
															thumbnails[6371335] = clik.newPhoto({"id":6371335,"src":"roots006_thumb.jpg","galleries_id":352583,"server_id":5,"link":"photo_6371335.html","width":127,"caption":"","height":95});
															thumbnails[6371348] = clik.newPhoto({"id":6371348,"src":"Baloon_arch_web003_thumb.jpg","galleries_id":366991,"server_id":5,"link":"photo_6371348.html","width":130,"caption":"","height":87});
															thumbnails[7717481] = clik.newPhoto({"id":7717481,"src":"RN1small_thumb.jpg","galleries_id":417708,"server_id":5,"link":"photo_7717481.html","width":130,"caption":"","height":73});
															thumbnails[7717485] = clik.newPhoto({"id":7717485,"src":"RN2_thumb.jpg","galleries_id":417708,"server_id":5,"link":"photo_7717485.html","width":130,"caption":"","height":73});
															thumbnails[7717490] = clik.newPhoto({"id":7717490,"src":"RN3_thumb.jpg","galleries_id":417708,"server_id":5,"link":"photo_7717490.html","width":130,"caption":"","height":73});
															thumbnails[7717494] = clik.newPhoto({"id":7717494,"src":"RN4_thumb.jpg","galleries_id":417708,"server_id":5,"link":"photo_7717494.html","width":130,"caption":"","height":73});
															thumbnails[7717497] = clik.newPhoto({"id":7717497,"src":"RN5_thumb.jpg","galleries_id":417708,"server_id":5,"link":"photo_7717497.html","width":130,"caption":"","height":73});
															thumbnails[7717503] = clik.newPhoto({"id":7717503,"src":"RN6_thumb.jpg","galleries_id":417708,"server_id":5,"link":"photo_7717503.html","width":130,"caption":"","height":73});
															thumbnails[7717507] = clik.newPhoto({"id":7717507,"src":"RN7_thumb.jpg","galleries_id":417708,"server_id":5,"link":"photo_7717507.html","width":130,"caption":"","height":73});
															thumbnails[7717512] = clik.newPhoto({"id":7717512,"src":"RN8_thumb.jpg","galleries_id":417708,"server_id":5,"link":"photo_7717512.html","width":130,"caption":"","height":73});
															thumbnails[7717517] = clik.newPhoto({"id":7717517,"src":"RN9_thumb.jpg","galleries_id":417708,"server_id":5,"link":"photo_7717517.html","width":130,"caption":"","height":73});
															thumbnails[6730533] = clik.newPhoto({"id":6730533,"src":"DSC02514jpg_thumb.jpg","galleries_id":366991,"server_id":5,"link":"photo_6730533.html","width":127,"caption":"","height":95});
															thumbnails[6730539] = clik.newPhoto({"id":6730539,"src":"DSC02665jpg_thumb.jpg","galleries_id":366992,"server_id":5,"link":"photo_6730539.html","width":96,"caption":"","height":95});
															thumbnails[6730550] = clik.newPhoto({"id":6730550,"src":"DSC02707jpg_thumb.jpg","galleries_id":366992,"server_id":5,"link":"photo_6730550.html","width":127,"caption":"","height":95});
															thumbnails[6730547] = clik.newPhoto({"id":6730547,"src":"DSC02693jpg_thumb.jpg","galleries_id":366992,"server_id":5,"link":"photo_6730547.html","width":127,"caption":"","height":95});
															thumbnails[6730536] = clik.newPhoto({"id":6730536,"src":"DSC02664jpg_thumb.jpg","galleries_id":366992,"server_id":5,"link":"photo_6730536.html","width":71,"caption":"","height":95});
															thumbnails[6731056] = clik.newPhoto({"id":6731056,"src":"balooncamera_thumb.jpg","galleries_id":366991,"server_id":5,"link":"photo_6731056.html","width":113,"caption":"","height":95});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[196255] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"an orchid collection ","link":"section241854_196255.html","maxRecords":0.0,"photoIDs":[3213691.0,3214395.0,3214391.0,3214397.0,3214409.0,3214410.0,3214392.0,3214396.0],"skipIndex":0,"section_code":"section241854","featured_images":3213691.0,"id":196255,"singleSection":false});				  						galleries[196270] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"arboreal lab","link":"section241862_196270.html","maxRecords":0.0,"photoIDs":[3235564.0,3214308.0,3214333.0,3214335.0,3214334.0,3214356.0,3235567.0],"skipIndex":0,"section_code":"section241862","featured_images":3235564.0,"id":196270,"singleSection":false});				  						galleries[196239] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"the art of living","link":"section241827_196239.html","maxRecords":0.0,"photoIDs":[3215923.0,3213621.0,3213622.0,3213646.0,3213631.0,3215924.0,3215925.0,3215926.0,3214365.0],"skipIndex":0,"section_code":"section241827","featured_images":3215923.0,"id":196239,"singleSection":false});				  						galleries[196267] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"after Eden project ","link":"section241854_196267.html","maxRecords":0.0,"photoIDs":[3217948.0,3217953.0,3217954.0,3235560.0,3235562.0,3235563.0],"skipIndex":0,"section_code":"section241854","featured_images":3217948.0,"id":196267,"singleSection":false});				  						galleries[196251] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"hospital commissions","link":"section241827_196251.html","maxRecords":0.0,"photoIDs":[3235610.0,3235611.0,3213686.0,3237117.0],"skipIndex":0,"section_code":"section241827","featured_images":3235610.0,"id":196251,"singleSection":false});				  						galleries[196271] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"windowsills:pollination","link":"section241862_196271.html","maxRecords":0.0,"photoIDs":[3216057.0,3216060.0,3216068.0,3216062.0,3216058.0,3216063.0,3216072.0,3216075.0,3216073.0],"skipIndex":0,"section_code":"section241862","featured_images":3216057.0,"id":196271,"singleSection":false});				  						galleries[196266] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"terra","link":"section241854_196266.html","maxRecords":0.0,"photoIDs":[3217909.0,3217910.0,3217912.0,3217913.0],"skipIndex":0,"section_code":"section241854","featured_images":3217909.0,"id":196266,"singleSection":false});				  						galleries[196268] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"cultivar","link":"section241827_196268.html","maxRecords":0.0,"photoIDs":[3235616.0,3235617.0,3235621.0,3216552.0,3216554.0,3216555.0],"skipIndex":0,"section_code":"section241827","featured_images":3235616.0,"id":196268,"singleSection":false});				  						galleries[196272] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"flow chart \/stolen water","link":"section241862_196272.html","maxRecords":0.0,"photoIDs":[3217561.0,3217562.0,3217564.0,3217565.0,3217568.0,3217569.0,3235572.0,3217571.0,3217572.0,3217574.0],"skipIndex":0,"section_code":"section241862","featured_images":3217561.0,"id":196272,"singleSection":false});				  						galleries[196269] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"ice bridge","link":"section241827_196269.html","maxRecords":0.0,"photoIDs":[3216481.0,3216475.0],"skipIndex":0,"section_code":"section241827","featured_images":3216481.0,"id":196269,"singleSection":false});				  						galleries[196273] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"trust","link":"section241862_196273.html","maxRecords":0.0,"photoIDs":[3217524.0,3217530.0,3217533.0,3217534.0,3217537.0,3217539.0,3217538.0],"skipIndex":0,"section_code":"section241862","featured_images":3217524.0,"id":196273,"singleSection":false});				  						galleries[352583] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Grizedale","link":"section420703_352583.html","maxRecords":0.0,"photoIDs":[6731060.0,6731063.0,6731066.0,6731068.0,6738929.0,6371328.0,6371335.0],"skipIndex":0,"section_code":"section420703","featured_images":6371335.0,"id":352583,"singleSection":false});				  						galleries[366991] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Experiment 1 ","link":"section420703_366991.html","maxRecords":0.0,"photoIDs":[6355634.0,6371348.0,6730533.0,6731056.0],"skipIndex":0,"section_code":"section420703","featured_images":6730533.0,"id":366991,"singleSection":false});				  						galleries[417708] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Experiment 2","link":"section420703_417708.html","maxRecords":0.0,"photoIDs":[7717481.0,7717485.0,7717490.0,7717494.0,7717497.0,7717503.0,7717507.0,7717512.0,7717517.0],"skipIndex":0,"section_code":"section420703","featured_images":7717512.0,"id":417708,"singleSection":false});				  						galleries[366992] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Experiment 3","link":"section420703_366992.html","maxRecords":0.0,"photoIDs":[6730539.0,6730550.0,6730547.0,6730536.0],"skipIndex":0,"section_code":"section420703","featured_images":6730547.0,"id":366992,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '6730547,6355634,3235611,3235567,3217954,3217953,3217912,3217574,3217572,3217571,3216555,3216554,3216475,3216073,3216063,3215924,3215923,3214397,3214395,3214391,3214365,3214335,3214334,3214333,3213686,3213646,3213631,3213622,3213621';
imageSets[2] = '7717512,6730547,6730533,6371335,3235616,3235610,3235564,3217948,3217909,3217561,3217524,3216481,3216057,3215923,3213691';
imageSets[3] = '6371348,6355634';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/edwina/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/edwina/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/edwina/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/edwina/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/edwina/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/edwina/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/edwina/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/edwina/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/edwina/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/edwina/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/edwina/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/edwina/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/edwina/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/edwina/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/edwina/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/edwina/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/edwina/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/edwina/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/edwina/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/edwina/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/edwina/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/edwina/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/edwina/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/edwina/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = backgrounds && backgrounds[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'section241827.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 && 'section241827' != '') {
					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 = 'Edwina fitzPatrick: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp += '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
	else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id),					title: galleries[gallery_id].title				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

