window.thumbnails = {};
															thumbnails[3193760] = clik.newPhoto({"id":3193760,"src":"Approaching Storm - pastel002_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Approaching Storm ","height":100});
															thumbnails[3193768] = clik.newPhoto({"id":3193768,"src":"ApricotSunset003_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Apricot Sunset ","height":93});
															thumbnails[3193776] = clik.newPhoto({"id":3193776,"src":"FirstLight007_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"First Light ","height":88});
															thumbnails[3193783] = clik.newPhoto({"id":3193783,"src":"GoldenMist008_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Golden Mist","height":93});
															thumbnails[3193805] = clik.newPhoto({"id":3193805,"src":"Lagoon009_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Lagoon","height":84});
															thumbnails[3193808] = clik.newPhoto({"id":3193808,"src":"MaldivianMemory011_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Disappearing Islands ","height":98});
															thumbnails[3193813] = clik.newPhoto({"id":3193813,"src":"RedBeach013_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Red Beach","height":128});
															thumbnails[3193816] = clik.newPhoto({"id":3193816,"src":"Rooftops014_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Rooftops","height":99});
															thumbnails[3193827] = clik.newPhoto({"id":3193827,"src":"Sunburst017_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Sunburst ","height":91});
															thumbnails[3194065] = clik.newPhoto({"id":3194065,"src":"Amber1_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Amber 1 ","height":162});
															thumbnails[3194091] = clik.newPhoto({"id":3194091,"src":"Supernova005_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Supernova ","height":119});
															thumbnails[3194106] = clik.newPhoto({"id":3194106,"src":"Dunes003_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Dunes ","height":83});
															thumbnails[3194152] = clik.newPhoto({"id":3194152,"src":"Antelope002_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Antelope ","height":171});
															thumbnails[3194216] = clik.newPhoto({"id":3194216,"src":"Amber2002_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Amber 2 ","height":259});
															thumbnails[3318980] = clik.newPhoto({"id":3318980,"src":"August Hillside, watercolour ink, height 34cm, width 26cm_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"The Blaze of Noon ","height":169});
															thumbnails[3318985] = clik.newPhoto({"id":3318985,"src":"Blue Beach, pastel, height 26cm, width 26cm_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Blue Beach","height":127});
															thumbnails[3319002] = clik.newPhoto({"id":3319002,"src":"Purple Beach, pastel, height 26cm, width 26cm_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Purple Beach","height":127});
															thumbnails[3319007] = clik.newPhoto({"id":3319007,"src":"Sea, watercolour, height 44cm, width 26cm_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Sea","height":173});
															thumbnails[3561826] = clik.newPhoto({"id":3561826,"src":"The_wings_of_the_wiind_watercolour_image_height_33cm_width_50cm_Framed_pewterjpg_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"The wings of the wind","height":93});
															thumbnails[3598135] = clik.newPhoto({"id":3598135,"src":"Amethyst_Aurora_watercolour_Image_height_41cm_image_width_51cm_Framed_height_72cm_width_83cmjpg_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Amethyst Aurora","height":96});
															thumbnails[4771074] = clik.newPhoto({"id":4771074,"src":"Trunk_Line_watercolourjpg_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Trunk Line","height":95});
															thumbnails[5143590] = clik.newPhoto({"id":5143590,"src":"TheCooloftheEvening_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"The Cool of the Evening","height":102});
															thumbnails[5976437] = clik.newPhoto({"id":5976437,"src":"Barley_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Barley","height":191});
															thumbnails[6546912] = clik.newPhoto({"id":6546912,"src":"Verity_Darby_Seascape_resized_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Seascape","height":87});
															thumbnails[7795349] = clik.newPhoto({"id":7795349,"src":"Rocky_Path_mixed_media_image_height_24cm_width_18cm_framed_height_54cm_width_47cm72dpi_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Rocky Path","height":190});
															thumbnails[7795353] = clik.newPhoto({"id":7795353,"src":"Hibiscus_hearts_acrylic_ink_by_Verity_Darby_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Hibiscus Heart","height":166});
															thumbnails[7795448] = clik.newPhoto({"id":7795448,"src":"Shellscape_acrylic_ink_by_Verity_Darby_image_height_27cm_width_57cm_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Shellscape","height":60});
															thumbnails[8503454] = clik.newPhoto({"id":8503454,"src":"Acers_acrylic_ink_on_canvas_resized_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Acers (on canvas)","height":124});
															thumbnails[8503477] = clik.newPhoto({"id":8503477,"src":"Terracotta_Chestnuts_acrylic_ink_height_32cm_width_89cm_resized1_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Terracotta Chestnuts","height":48});
															thumbnails[3193742] = clik.newPhoto({"id":3193742,"src":"AmberMoor001_thumb.jpg","galleries_id":195222,"server_id":32,"link":"photo_3193742.html","width":130,"caption":"Amber Moor","height":57});
															thumbnails[3193758] = clik.newPhoto({"id":3193758,"src":"Lava010_thumb.jpg","galleries_id":195222,"server_id":32,"link":"photo_3193758.html","width":130,"caption":"Lava ","height":91});
															thumbnails[3193772] = clik.newPhoto({"id":3193772,"src":"Beach004_thumb.jpg","galleries_id":195181,"server_id":32,"link":"photo_3193772.html","width":130,"caption":"Beach","height":129});
															thumbnails[3193773] = clik.newPhoto({"id":3193773,"src":"CoralScape005_thumb.jpg","galleries_id":195222,"server_id":32,"link":"photo_3193773.html","width":130,"caption":"Coral Scape ","height":132});
															thumbnails[3193774] = clik.newPhoto({"id":3193774,"src":"DawnStreak006_thumb.jpg","galleries_id":449463,"server_id":32,"link":"photo_3193774.html","width":130,"caption":"Dawn Streak","height":85});
															thumbnails[3193811] = clik.newPhoto({"id":3193811,"src":"Neptune012_thumb.jpg","galleries_id":195221,"server_id":32,"link":"photo_3193811.html","width":130,"caption":"Neptune","height":98});
															thumbnails[3193818] = clik.newPhoto({"id":3193818,"src":"Rose Dawn015_thumb.jpg","galleries_id":195181,"server_id":32,"link":"photo_3193818.html","width":130,"caption":"Rose Dawn","height":169});
															thumbnails[3193820] = clik.newPhoto({"id":3193820,"src":"Sandbanks016_thumb.jpg","galleries_id":195221,"server_id":32,"link":"photo_3193820.html","width":130,"caption":"Sandbanks","height":83});
															thumbnails[3193830] = clik.newPhoto({"id":3193830,"src":"Sunset Reflections018_thumb.jpg","galleries_id":449463,"server_id":32,"link":"photo_3193830.html","width":130,"caption":"Sunset Reflections ","height":183});
															thumbnails[3193833] = clik.newPhoto({"id":3193833,"src":"TerracottaDawn019_thumb.jpg","galleries_id":195181,"server_id":32,"link":"photo_3193833.html","width":130,"caption":"Terracotta Dawn ","height":87});
															thumbnails[3193839] = clik.newPhoto({"id":3193839,"src":"TerracottaSunset020_thumb.jpg","galleries_id":449463,"server_id":32,"link":"photo_3193839.html","width":130,"caption":"Terracotta Sunset ","height":163});
															thumbnails[3319001] = clik.newPhoto({"id":3319001,"src":"On the beach, pastel,, height 56cm, width 46cm_thumb.jpg","galleries_id":195221,"server_id":32,"link":"photo_3319001.html","width":130,"caption":"On the Beach ","height":161});
															thumbnails[3561817] = clik.newPhoto({"id":3561817,"src":"Arctic_Wonder_watercolour_image_height_47cm_width_67cmjpg_thumb.jpg","galleries_id":195181,"server_id":32,"link":"photo_3561817.html","width":130,"caption":"Arctic Wonder ","height":96});
															thumbnails[3561833] = clik.newPhoto({"id":3561833,"src":"Dreamtime_2_watercolour_image_height_12cm_width_12cmjpg_thumb.jpg","galleries_id":195222,"server_id":32,"link":"photo_3561833.html","width":130,"caption":"Dreamtime 2 ","height":128});
															thumbnails[3561839] = clik.newPhoto({"id":3561839,"src":"Dreamtime_I_image_height_16cm_width_19cmjpg_thumb.jpg","galleries_id":195222,"server_id":32,"link":"photo_3561839.html","width":130,"caption":"Dreamtime 1 ","height":102});
															thumbnails[3598140] = clik.newPhoto({"id":3598140,"src":"Snow_mixed_media_image_height_50cm_image_width_33cm_Framed__height_83cm_width_64cmjpg_thumb.jpg","galleries_id":195181,"server_id":32,"link":"photo_3598140.html","width":130,"caption":"Snow ","height":192});
															thumbnails[4770935] = clik.newPhoto({"id":4770935,"src":"Beachcombing_acrylic_ink_by_Verity_Darbyjpg_thumb.jpg","galleries_id":195221,"server_id":32,"link":"photo_4770935.html","width":130,"caption":"Beachcombing ","height":126});
															thumbnails[4770956] = clik.newPhoto({"id":4770956,"src":"Ferns_acrylic_ink_by_Verity_Darbyjpg_thumb.jpg","galleries_id":273103,"server_id":32,"link":"photo_4770956.html","width":130,"caption":"Ferns ","height":178});
															thumbnails[4770963] = clik.newPhoto({"id":4770963,"src":"Hidden_Depths_acrylic_ink_by_Verity_Darbyjpg_thumb.jpg","galleries_id":195221,"server_id":32,"link":"photo_4770963.html","width":130,"caption":"Hidden Depths","height":91});
															thumbnails[4770970] = clik.newPhoto({"id":4770970,"src":"Unfathomable_acrylic_ink_by_Verity_Darbyjpg_thumb.jpg","galleries_id":195222,"server_id":32,"link":"photo_4770970.html","width":130,"caption":"Unfathomable","height":133});
															thumbnails[4771082] = clik.newPhoto({"id":4771082,"src":"Solar_Flare_acrylic_ink_by_Verity_Darbyjpg_thumb.jpg","galleries_id":449463,"server_id":32,"link":"photo_4771082.html","width":130,"caption":"Solar Flare","height":90});
															thumbnails[4789822] = clik.newPhoto({"id":4789822,"src":"Nordic_Magic_watercolour_thumb.jpg","galleries_id":195181,"server_id":32,"link":"photo_4789822.html","width":130,"caption":"Nordic Magic","height":95});
															thumbnails[5143580] = clik.newPhoto({"id":5143580,"src":"GentleBreeze_thumb.jpg","galleries_id":449463,"server_id":32,"link":"photo_5143580.html","width":130,"caption":"Gentle Breeze","height":42});
															thumbnails[5143586] = clik.newPhoto({"id":5143586,"src":"Peaceandquiet_thumb.jpg","galleries_id":449463,"server_id":32,"link":"photo_5143586.html","width":130,"caption":"Peace and Quiet ","height":47});
															thumbnails[5976378] = clik.newPhoto({"id":5976378,"src":"Chestnuts_thumb.jpg","galleries_id":273103,"server_id":32,"link":"photo_5976378.html","width":130,"caption":"Chestnuts ","height":173});
															thumbnails[5976422] = clik.newPhoto({"id":5976422,"src":"AutumnLakeStourhead_thumb.jpg","galleries_id":195181,"server_id":32,"link":"photo_5976422.html","width":130,"caption":"Autumn Lake, Stourhead ","height":178});
															thumbnails[5976443] = clik.newPhoto({"id":5976443,"src":"Blue_shells1_thumb.jpg","galleries_id":195221,"server_id":32,"link":"photo_5976443.html","width":130,"caption":"Blue Shells","height":94});
															thumbnails[5976448] = clik.newPhoto({"id":5976448,"src":"Coral_Glow_thumb.jpg","galleries_id":195222,"server_id":32,"link":"photo_5976448.html","width":130,"caption":"Coral Glow ","height":131});
															thumbnails[5976841] = clik.newPhoto({"id":5976841,"src":"Flame_Hills_thumb.jpg","galleries_id":195181,"server_id":32,"link":"photo_5976841.html","width":130,"caption":"Flame Hills","height":84});
															thumbnails[5976855] = clik.newPhoto({"id":5976855,"src":"Jurassic_Sunset_thumb.jpg","galleries_id":449463,"server_id":32,"link":"photo_5976855.html","width":130,"caption":"Jurassic Sunset","height":86});
															thumbnails[5976863] = clik.newPhoto({"id":5976863,"src":"Nemos_Garden_thumb.jpg","galleries_id":195221,"server_id":32,"link":"photo_5976863.html","width":130,"caption":"Nemo's Garden","height":128});
															thumbnails[5976877] = clik.newPhoto({"id":5976877,"src":"Winter_Glen_thumb.jpg","galleries_id":195181,"server_id":32,"link":"photo_5976877.html","width":130,"caption":"Winter Glen ","height":93});
															thumbnails[6546909] = clik.newPhoto({"id":6546909,"src":"Verity_Darby_Ocean_Fantasy_resized_thumb.jpg","galleries_id":195221,"server_id":32,"link":"photo_6546909.html","width":130,"caption":"Ocean Fantasy","height":87});
															thumbnails[7795330] = clik.newPhoto({"id":7795330,"src":"arielsview1_thumb.jpg","galleries_id":195221,"server_id":32,"link":"photo_7795330.html","width":130,"caption":"Arial's View 1","height":191});
															thumbnails[7795331] = clik.newPhoto({"id":7795331,"src":"arielsview2_thumb.jpg","galleries_id":195221,"server_id":32,"link":"photo_7795331.html","width":130,"caption":"Arial's View 2","height":220});
															thumbnails[7795338] = clik.newPhoto({"id":7795338,"src":"dragonsfireveritydarby_thumb.jpg","galleries_id":195222,"server_id":32,"link":"photo_7795338.html","width":130,"caption":"Dragon's Fire","height":95});
															thumbnails[7795342] = clik.newPhoto({"id":7795342,"src":"reefsedge_thumb.jpg","galleries_id":195221,"server_id":32,"link":"photo_7795342.html","width":130,"caption":"Reef's Edge","height":169});
															thumbnails[7795344] = clik.newPhoto({"id":7795344,"src":"Acers_acrylic_ink_image_height_57cm_width_76cm72dpi_thumb.jpg","galleries_id":273103,"server_id":32,"link":"photo_7795344.html","width":130,"caption":"Acers","height":97});
															thumbnails[7795362] = clik.newPhoto({"id":7795362,"src":"Along_the_Shore_mixed_media_height_50cm_width_33cm_thumb.jpg","galleries_id":195181,"server_id":32,"link":"photo_7795362.html","width":130,"caption":"Along the Shore","height":197});
															thumbnails[7795379] = clik.newPhoto({"id":7795379,"src":"Rockpools_2_acrylic_ink_by_Verity_Darby_thumb.jpg","galleries_id":195221,"server_id":32,"link":"photo_7795379.html","width":130,"caption":"Rockpools 2","height":429});
															thumbnails[7795401] = clik.newPhoto({"id":7795401,"src":"Rockpools_1_acrylic_inkresized_thumb.jpg","galleries_id":195221,"server_id":32,"link":"photo_7795401.html","width":130,"caption":"Rockpools  1","height":448});
															thumbnails[7795437] = clik.newPhoto({"id":7795437,"src":"Ocean_Blues_I_acrylic_ink_by_Verity_Darby_image_height46cm_width_29cm_framed_height_78cm_width_61cm_thumb.jpg","galleries_id":195221,"server_id":32,"link":"photo_7795437.html","width":130,"caption":"Ocean Blues 1","height":177});
															thumbnails[7795440] = clik.newPhoto({"id":7795440,"src":"Ocean_Blues_II_acrylic_ink_by_Verity_Darby_image_height46cm_width_29cm_framed_height_78cm_width_61cm_thumb.jpg","galleries_id":195221,"server_id":32,"link":"photo_7795440.html","width":130,"caption":"Ocean Blues 2","height":197});
															thumbnails[7795445] = clik.newPhoto({"id":7795445,"src":"Blue_shells_acrylic_ink_by_Verity_Darby_image_height_44cm_width_61cm_framed_height_80cm_width_97cm_thumb.jpg","galleries_id":195221,"server_id":32,"link":"photo_7795445.html","width":130,"caption":"Blue Shells","height":94});
															thumbnails[7795470] = clik.newPhoto({"id":7795470,"src":"Paradise_Pinks_III_acrylic_ink_by_Verity_Darby_image_height_22cm_width_22cm_framed_height_44cm_width_44cm_thumb.jpg","galleries_id":195222,"server_id":32,"link":"photo_7795470.html","width":130,"caption":"Paradise Pinks 3","height":135});
															thumbnails[7795476] = clik.newPhoto({"id":7795476,"src":"Paradise_Pinks_I_acrylic_ink_by_Verity_Darby_image_height_29cm_width11_cm_framed_height_49cm_width_29cm_thumb.jpg","galleries_id":195222,"server_id":32,"link":"photo_7795476.html","width":130,"caption":"Paradise Pinks 1 ","height":350});
															thumbnails[7795477] = clik.newPhoto({"id":7795477,"src":"Paradise_Pinks_II_acrylic_ink_by_Verity_Darby_image_height_29cm_width11_cm_framed_height_49cm_width_29cm_thumb.jpg","galleries_id":195222,"server_id":32,"link":"photo_7795477.html","width":130,"caption":"Paradise Pinks 2 ","height":335});
															thumbnails[8503409] = clik.newPhoto({"id":8503409,"src":"Supernova_acrylic_ink_on_canvas_height_39cm_width_42cm_resized_thumb.jpg","galleries_id":449463,"server_id":32,"link":"photo_8503409.html","width":130,"caption":"Supernova 2","height":117});
															thumbnails[8503457] = clik.newPhoto({"id":8503457,"src":"Ferns_acrylic_ink_on_canvasresized_thumb.jpg","galleries_id":273103,"server_id":32,"link":"photo_8503457.html","width":130,"caption":"Autumn","height":108});
															thumbnails[8503466] = clik.newPhoto({"id":8503466,"src":"Aralia_acrylic_ink_height_48cm_width_48cm_resized_thumb.jpg","galleries_id":273103,"server_id":32,"link":"photo_8503466.html","width":130,"caption":"Aralia","height":119});
															thumbnails[8503467] = clik.newPhoto({"id":8503467,"src":"Sepia_Chestnut_acrylic_ink_height_52cm_width_39cm_resized_thumb.jpg","galleries_id":273103,"server_id":32,"link":"photo_8503467.html","width":130,"caption":"Sepia Chestnut","height":173});
															thumbnails[4771061] = clik.newPhoto({"id":4771061,"src":"IMG_2415_edited-1jpg_thumb.jpg","galleries_id":195221,"server_id":32,"link":"photo_4771061.html","width":130,"caption":"Cornish Shore","height":196});
															thumbnails[5976870] = clik.newPhoto({"id":5976870,"src":"On_the_rocks_thumb.jpg","galleries_id":195221,"server_id":32,"link":"photo_5976870.html","width":130,"caption":"On the Rocks ","height":196});
															thumbnails[5976860] = clik.newPhoto({"id":5976860,"src":"Light_on_the_horizon_thumb.jpg","galleries_id":195221,"server_id":32,"link":"photo_5976860.html","width":130,"caption":"Light on the Horizon","height":191});
															thumbnails[5976499] = clik.newPhoto({"id":5976499,"src":"Cornish_Coastline_thumb.jpg","galleries_id":195221,"server_id":32,"link":"photo_5976499.html","width":130,"caption":"Cornish Coastline ","height":96});
															thumbnails[3561847] = clik.newPhoto({"id":3561847,"src":"Winter_Shore_mixed_media_image_height_24cm_width_15cmjpg_thumb.jpg","galleries_id":195221,"server_id":32,"link":"photo_3561847.html","width":130,"caption":"Winter Shore ","height":200});
															thumbnails[5137051] = clik.newPhoto({"id":5137051,"src":"Sqwonkstoolresized_thumb.jpg","galleries_id":290320,"server_id":32,"link":"photo_5137051.html","width":130,"caption":"'Sqwonk' stool","height":165});
															thumbnails[5137060] = clik.newPhoto({"id":5137060,"src":"teddyandcheeseboard2resized_thumb.jpg","galleries_id":290320,"server_id":32,"link":"photo_5137060.html","width":130,"caption":"Teddy Bear plaque and chequered cheeseboard","height":91});
															thumbnails[5137065] = clik.newPhoto({"id":5137065,"src":"Teddyplaqueresized_thumb.jpg","galleries_id":290320,"server_id":32,"link":"photo_5137065.html","width":130,"caption":"Teddy Bear plaque","height":150});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[273103] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Foliage","link":"gallery_273103.html","maxRecords":0.0,"photoIDs":[4770956.0,5976378.0,7795344.0,8503457.0,8503466.0,8503467.0],"skipIndex":0,"section_code":"gallery","featured_images":8503457.0,"id":273103,"singleSection":false});				  						galleries[449463] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Skies","link":"gallery_449463.html","maxRecords":0.0,"photoIDs":[3193774.0,3193830.0,3193839.0,4771082.0,5143580.0,5143586.0,5976855.0,8503409.0],"skipIndex":0,"section_code":"gallery","featured_images":"8503409,5976855,3193774","id":449463,"singleSection":false});				  						galleries[195221] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Seas","link":"gallery_195221.html","maxRecords":0.0,"photoIDs":[3193811.0,3193820.0,3319001.0,4770935.0,4770963.0,5976443.0,5976863.0,6546909.0,7795330.0,7795331.0,7795342.0,7795379.0,7795401.0,7795437.0,7795440.0,7795445.0,4771061.0,5976870.0,5976860.0,5976499.0,3561847.0],"skipIndex":0,"section_code":"gallery","featured_images":"5976499,4770963,4770935,3561847,3193820","id":195221,"singleSection":false});				  						galleries[195181] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Landscapes","link":"gallery_195181.html","maxRecords":0.0,"photoIDs":[3193772.0,3193818.0,3193833.0,3561817.0,3598140.0,4789822.0,5976422.0,5976841.0,5976877.0,7795362.0],"skipIndex":0,"section_code":"gallery","featured_images":"5976841,5976422,3561817,3193772","id":195181,"singleSection":false});				  						galleries[195222] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Abstracts","link":"gallery_195222.html","maxRecords":0.0,"photoIDs":[3193742.0,3193758.0,3193773.0,3561833.0,3561839.0,4770970.0,5976448.0,7795338.0,7795470.0,7795476.0,7795477.0],"skipIndex":0,"section_code":"gallery","featured_images":"3561833,3193758","id":195222,"singleSection":false});				  						galleries[290320] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Pyrography by Peter Darby","link":"section347860.html","maxRecords":0.0,"photoIDs":[5137051.0,5137060.0,5137065.0],"skipIndex":0,"section_code":"section347860","featured_images":"5137065,5137060,5137051","id":290320,"singleSection":true});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8503466,8503457,5976378,4770963';
imageSets[2] = '8503457,8503409,5976855,5976841,5976422,4770963,4770935,3561833,3561817,3194091,3193820,3193774,3193772,3193758,5976499,3561847';
imageSets[3] = '8503477,8503467,8503466,8503457,8503454,8503409,7795477,7795476,7795470,7795448,7795445,7795440,7795437,7795401,7795379,7795362,7795353,7795349,7795344,7795342,7795338,7795331,7795330,6546912,6546909,5976877,5976870,5976863,5976860,5976855,5976841,5976499,5976448,5976443,5976437,5976422,5976378,5143590,5143586,5143580,5137065,5137060,5137051,4789822,4771082,4771074,4771061,4770970,4770963,4770956';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/verityd/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/verityd/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/verityd/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/verityd/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/verityd/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/verityd/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/verityd/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/verityd/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/verityd/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/verityd/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/verityd/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/verityd/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/verityd/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/verityd/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/verityd/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/verityd/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/verityd/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/verityd/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/verityd/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/verityd/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/verityd/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/verityd/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/verityd/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/verityd/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/verityd/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/verityd/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/verityd/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 = 'Verity Darby Art: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.item_price !== '') {
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

