window.thumbnails = {};
															thumbnails[6363037] = clik.newPhoto({"id":6363037,"src":"DSC_0109_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":157});
															thumbnails[4405866] = clik.newPhoto({"id":4405866,"src":"ret_014_copy_thumb.jpg","galleries_id":258194,"server_id":15,"link":"photo_4405866.html","width":130,"caption":"SNOWY  OWL","height":86});
															thumbnails[4405875] = clik.newPhoto({"id":4405875,"src":"ret_034_copy_thumb.jpg","galleries_id":258194,"server_id":15,"link":"photo_4405875.html","width":130,"caption":"Kestrel","height":196});
															thumbnails[4405876] = clik.newPhoto({"id":4405876,"src":"ret_039_copy_thumb.jpg","galleries_id":258194,"server_id":15,"link":"photo_4405876.html","width":130,"caption":"Kestrel","height":196});
															thumbnails[4405877] = clik.newPhoto({"id":4405877,"src":"ret_042_copy_thumb.jpg","galleries_id":258194,"server_id":15,"link":"photo_4405877.html","width":130,"caption":"","height":196});
															thumbnails[4431051] = clik.newPhoto({"id":4431051,"src":"t12_copya_thumb.jpg","galleries_id":258655,"server_id":15,"link":"photo_4431051.html","width":130,"caption":"Tania Claire","height":125});
															thumbnails[4552697] = clik.newPhoto({"id":4552697,"src":"dave_butcher_014_thumb.jpg","galleries_id":261969,"server_id":15,"link":"photo_4552697.html","width":130,"caption":"","height":196});
															thumbnails[4552706] = clik.newPhoto({"id":4552706,"src":"dave_butcher_054_thumb.jpg","galleries_id":261969,"server_id":15,"link":"photo_4552706.html","width":130,"caption":"","height":196});
															thumbnails[4552711] = clik.newPhoto({"id":4552711,"src":"dave_butcher_060_thumb.jpg","galleries_id":261969,"server_id":15,"link":"photo_4552711.html","width":130,"caption":"","height":87});
															thumbnails[4552740] = clik.newPhoto({"id":4552740,"src":"dave_butcher_066_thumb.jpg","galleries_id":261969,"server_id":15,"link":"photo_4552740.html","width":130,"caption":"","height":106});
															thumbnails[4552749] = clik.newPhoto({"id":4552749,"src":"dave_butcher_067_thumb.jpg","galleries_id":261969,"server_id":15,"link":"photo_4552749.html","width":130,"caption":"AND NOW FOR THE NEWS","height":196});
															thumbnails[4552757] = clik.newPhoto({"id":4552757,"src":"dave_butcher_070_thumb.jpg","galleries_id":261969,"server_id":15,"link":"photo_4552757.html","width":130,"caption":"","height":87});
															thumbnails[4552765] = clik.newPhoto({"id":4552765,"src":"dave_butcher_071_thumb.jpg","galleries_id":261969,"server_id":15,"link":"photo_4552765.html","width":130,"caption":" HELLO !!!","height":95});
															thumbnails[4552791] = clik.newPhoto({"id":4552791,"src":"dave_butcher_072_thumb.jpg","galleries_id":261969,"server_id":15,"link":"photo_4552791.html","width":130,"caption":"","height":132});
															thumbnails[4552823] = clik.newPhoto({"id":4552823,"src":"dave_butcher_063_thumb.jpg","galleries_id":261969,"server_id":15,"link":"photo_4552823.html","width":130,"caption":"","height":196});
															thumbnails[4563041] = clik.newPhoto({"id":4563041,"src":"Wolf_copy_thumb.jpg","galleries_id":235807,"server_id":15,"link":"photo_4563041.html","width":130,"caption":"","height":87});
															thumbnails[4563044] = clik.newPhoto({"id":4563044,"src":"everything_574_copy_thumb.jpg","galleries_id":235807,"server_id":15,"link":"photo_4563044.html","width":130,"caption":"","height":87});
															thumbnails[4563048] = clik.newPhoto({"id":4563048,"src":"17_copy_thumb.jpg","galleries_id":235807,"server_id":15,"link":"photo_4563048.html","width":130,"caption":"","height":87});
															thumbnails[4563087] = clik.newPhoto({"id":4563087,"src":"wine_glass_023_copy_thumb.jpg","galleries_id":264717,"server_id":15,"link":"photo_4563087.html","width":130,"caption":"I took this while experimenting with various shutter speeds , quite like the results though.","height":196});
															thumbnails[4563185] = clik.newPhoto({"id":4563185,"src":"262_copy_thumb.jpg","galleries_id":235807,"server_id":15,"link":"photo_4563185.html","width":130,"caption":"","height":63});
															thumbnails[4563186] = clik.newPhoto({"id":4563186,"src":"100_copy_thumb.jpg","galleries_id":235807,"server_id":15,"link":"photo_4563186.html","width":130,"caption":"Japanese Crane","height":87});
															thumbnails[4563190] = clik.newPhoto({"id":4563190,"src":"241_copy12_thumb.jpg","galleries_id":235807,"server_id":15,"link":"photo_4563190.html","width":130,"caption":"Swans","height":88});
															thumbnails[4563260] = clik.newPhoto({"id":4563260,"src":"babyresized_thumb.jpg","galleries_id":257694,"server_id":15,"link":"photo_4563260.html","width":130,"caption":"Happy Child","height":89});
															thumbnails[4585919] = clik.newPhoto({"id":4585919,"src":"DSC_0784_copy_thumb.jpg","galleries_id":264717,"server_id":15,"link":"photo_4585919.html","width":130,"caption":"","height":196});
															thumbnails[4755036] = clik.newPhoto({"id":4755036,"src":"t52_copy_thumb.jpg","galleries_id":258655,"server_id":15,"link":"photo_4755036.html","width":130,"caption":"Tania Claire","height":161});
															thumbnails[4755181] = clik.newPhoto({"id":4755181,"src":"flickr_thumb.jpg","galleries_id":261969,"server_id":15,"link":"photo_4755181.html","width":130,"caption":"","height":87});
															thumbnails[4755191] = clik.newPhoto({"id":4755191,"src":"mallard_thumb.jpg","galleries_id":235807,"server_id":15,"link":"photo_4755191.html","width":130,"caption":"","height":87});
															thumbnails[4755196] = clik.newPhoto({"id":4755196,"src":"mantis_thumb.jpg","galleries_id":235807,"server_id":15,"link":"photo_4755196.html","width":130,"caption":"","height":87});
															thumbnails[4755204] = clik.newPhoto({"id":4755204,"src":"otter_thumb.jpg","galleries_id":235807,"server_id":15,"link":"photo_4755204.html","width":130,"caption":"","height":101});
															thumbnails[4755207] = clik.newPhoto({"id":4755207,"src":"portrait_thumb.jpg","galleries_id":258655,"server_id":15,"link":"photo_4755207.html","width":130,"caption":"Liz Williams","height":149});
															thumbnails[4796305] = clik.newPhoto({"id":4796305,"src":"DSC_0483_copysmall_thumb.jpg","galleries_id":265614,"server_id":15,"link":"photo_4796305.html","width":130,"caption":"","height":86});
															thumbnails[4796336] = clik.newPhoto({"id":4796336,"src":"mouse_thumb.jpg","galleries_id":261969,"server_id":15,"link":"photo_4796336.html","width":130,"caption":"Field Mouse.","height":196});
															thumbnails[4973643] = clik.newPhoto({"id":4973643,"src":"DSC_0003_thumb.jpg","galleries_id":278535,"server_id":15,"link":"photo_4973643.html","width":130,"caption":"","height":86});
															thumbnails[4973784] = clik.newPhoto({"id":4973784,"src":"b_thumb.jpg","galleries_id":278535,"server_id":15,"link":"photo_4973784.html","width":130,"caption":"Liz Williams<br>\r\n","height":86});
															thumbnails[5019632] = clik.newPhoto({"id":5019632,"src":"DSC_0462a_copy_thumb.jpg","galleries_id":286753,"server_id":15,"link":"photo_5019632.html","width":130,"caption":"MISTY STILL LAKE","height":196});
															thumbnails[5019651] = clik.newPhoto({"id":5019651,"src":"DSC_0505_copya_copyabc_thumb.jpg","galleries_id":265614,"server_id":15,"link":"photo_5019651.html","width":130,"caption":"","height":87});
															thumbnails[5128361] = clik.newPhoto({"id":5128361,"src":"ret_022_copy_thumb.jpg","galleries_id":258194,"server_id":15,"link":"photo_5128361.html","width":130,"caption":"","height":86});
															thumbnails[5244493] = clik.newPhoto({"id":5244493,"src":"Picture_914_copya_thumb.jpg","galleries_id":235807,"server_id":15,"link":"photo_5244493.html","width":130,"caption":"","height":136});
															thumbnails[5291786] = clik.newPhoto({"id":5291786,"src":"DSC_0456_copyb_thumb.jpg","galleries_id":258194,"server_id":15,"link":"photo_5291786.html","width":130,"caption":"","height":86});
															thumbnails[5334985] = clik.newPhoto({"id":5334985,"src":"snow1_thumb.jpg","galleries_id":235807,"server_id":15,"link":"photo_5334985.html","width":130,"caption":"Winter Wolf","height":86});
															thumbnails[5387506] = clik.newPhoto({"id":5387506,"src":"KELLY_SHOT_SMALLEST_copy_thumb.jpg","galleries_id":257694,"server_id":15,"link":"photo_5387506.html","width":130,"caption":"Kelly Nunn Martin Portrait drawn from a photo by Darin Basile","height":159});
															thumbnails[5622316] = clik.newPhoto({"id":5622316,"src":"DSCF0399_thumb.jpg","galleries_id":278535,"server_id":15,"link":"photo_5622316.html","width":130,"caption":"","height":173});
															thumbnails[5914459] = clik.newPhoto({"id":5914459,"src":"indianresized_thumb.jpg","galleries_id":257694,"server_id":15,"link":"photo_5914459.html","width":130,"caption":"Eastern Frontier Indian","height":188});
															thumbnails[6362895] = clik.newPhoto({"id":6362895,"src":"DSC_0095_thumb.jpg","galleries_id":278535,"server_id":15,"link":"photo_6362895.html","width":130,"caption":"Black Panther .","height":196});
															thumbnails[7400100] = clik.newPhoto({"id":7400100,"src":"DSC_0101_thumb.jpg","galleries_id":258655,"server_id":15,"link":"photo_7400100.html","width":130,"caption":"Viki","height":196});
															thumbnails[7400113] = clik.newPhoto({"id":7400113,"src":"DSC_0456_copya_copyc_EBCC3073-1EC9-DFB6-09A27854778C1DF7_thumb.jpg","galleries_id":258655,"server_id":15,"link":"photo_7400113.html","width":130,"caption":"","height":200});
															thumbnails[7400115] = clik.newPhoto({"id":7400115,"src":"Thats_the_last_time_Ester_asks_me_to_Baby_sit_thumb.jpg","galleries_id":258655,"server_id":15,"link":"photo_7400115.html","width":130,"caption":"FREEFALL !!!!!","height":71});
															thumbnails[7400118] = clik.newPhoto({"id":7400118,"src":"DSC_0432_copy_thumb.jpg","galleries_id":258655,"server_id":15,"link":"photo_7400118.html","width":130,"caption":"Battling Priest","height":157});
															thumbnails[7867602] = clik.newPhoto({"id":7867602,"src":"bw21_thumb.jpg","galleries_id":436479,"server_id":15,"link":"photo_7867602.html","width":130,"caption":"Angel Eyes","height":151});
															thumbnails[8331662] = clik.newPhoto({"id":8331662,"src":"Untitled2_DE33AC08-24E8-5EC4-4FCF57C28DBDA955_thumb.jpg","galleries_id":442884,"server_id":15,"link":"photo_8331662.html","width":130,"caption":"","height":184});
															thumbnails[6362470] = clik.newPhoto({"id":6362470,"src":"DSC_0094_thumb.jpg","galleries_id":352307,"server_id":15,"link":"photo_6362470.html","width":130,"caption":"Fine Art Wildlife Greeting Cards","height":86});
															thumbnails[6362967] = clik.newPhoto({"id":6362967,"src":"Untitled3_thumb.jpg","galleries_id":320049,"server_id":15,"link":"photo_6362967.html","width":130,"caption":"There was an Irishman an Englishman and A Scotsman","height":92});
															thumbnails[6998360] = clik.newPhoto({"id":6998360,"src":"Untitled5_thumb.jpg","galleries_id":320049,"server_id":15,"link":"photo_6998360.html","width":130,"caption":"Call Of The Wild  (almost completed)","height":184});
															thumbnails[8676960] = clik.newPhoto({"id":8676960,"src":"Picture_57ab_thumb.jpg","galleries_id":257694,"server_id":15,"link":"photo_8676960.html","width":130,"caption":"Work In Progress","height":294});
															thumbnails[6362477] = clik.newPhoto({"id":6362477,"src":"DSC_0083_thumb.jpg","galleries_id":352307,"server_id":15,"link":"photo_6362477.html","width":130,"caption":"Raptors Greeting Cards","height":86});
															thumbnails[6362478] = clik.newPhoto({"id":6362478,"src":"DSC_0084_thumb.jpg","galleries_id":352307,"server_id":15,"link":"photo_6362478.html","width":130,"caption":"Raptors 2","height":51});
															thumbnails[6362481] = clik.newPhoto({"id":6362481,"src":"DSC_0085_thumb.jpg","galleries_id":352307,"server_id":15,"link":"photo_6362481.html","width":130,"caption":"Big Cats ( Tigers)","height":86});
															thumbnails[6362483] = clik.newPhoto({"id":6362483,"src":"DSC_0086_thumb.jpg","galleries_id":352307,"server_id":15,"link":"photo_6362483.html","width":130,"caption":"Snow Leopard","height":86});
															thumbnails[6362486] = clik.newPhoto({"id":6362486,"src":"DSC_0087_thumb.jpg","galleries_id":352307,"server_id":15,"link":"photo_6362486.html","width":130,"caption":"Leopards","height":86});
															thumbnails[6362488] = clik.newPhoto({"id":6362488,"src":"DSC_0088_thumb.jpg","galleries_id":352307,"server_id":15,"link":"photo_6362488.html","width":130,"caption":"","height":86});
															thumbnails[6362617] = clik.newPhoto({"id":6362617,"src":"DSC_0089_thumb.jpg","galleries_id":352307,"server_id":15,"link":"photo_6362617.html","width":130,"caption":"Miscellaneous","height":86});
															thumbnails[6362788] = clik.newPhoto({"id":6362788,"src":"DSC_0090_thumb.jpg","galleries_id":352307,"server_id":15,"link":"photo_6362788.html","width":130,"caption":"Humour - Well we have to have a laugh with some of my drunken friends here (hic)","height":179});
															thumbnails[4405899] = clik.newPhoto({"id":4405899,"src":"Untitled1_thumb.jpg","galleries_id":436475,"server_id":15,"link":"photo_4405899.html","width":130,"caption":"Pals  ","height":92});
															thumbnails[4755189] = clik.newPhoto({"id":4755189,"src":"leopard_thumb.jpg","galleries_id":235807,"server_id":15,"link":"photo_4755189.html","width":130,"caption":"","height":87});
															thumbnails[4796285] = clik.newPhoto({"id":4796285,"src":"wolft_thumb.jpg","galleries_id":258194,"server_id":15,"link":"photo_4796285.html","width":130,"caption":"WILD TERRITORY","height":86});
															thumbnails[5019627] = clik.newPhoto({"id":5019627,"src":"DSC_0434_copya_copya_thumb.jpg","galleries_id":258194,"server_id":15,"link":"photo_5019627.html","width":130,"caption":"THE OLD DAYS","height":86});
															thumbnails[5296836] = clik.newPhoto({"id":5296836,"src":"DSC_0625_copya_thumb.jpg","galleries_id":258194,"server_id":15,"link":"photo_5296836.html","width":130,"caption":"LEAVE IT OUT MUM !!","height":172});
															thumbnails[7400024] = clik.newPhoto({"id":7400024,"src":"DSC_05411_thumb.jpg","galleries_id":320049,"server_id":15,"link":"photo_7400024.html","width":130,"caption":"Burning Bright","height":57});
															thumbnails[4430962] = clik.newPhoto({"id":4430962,"src":"cheeky_chap_copy_thumb.jpg","galleries_id":235807,"server_id":15,"link":"photo_4430962.html","width":130,"caption":"Cheeky Chap","height":86});
															thumbnails[5291779] = clik.newPhoto({"id":5291779,"src":"DSC_0456_copya_copyc_thumb.jpg","galleries_id":286753,"server_id":15,"link":"photo_5291779.html","width":130,"caption":"","height":200});
															thumbnails[4403565] = clik.newPhoto({"id":4403565,"src":"ziggy_908_thumb.jpg","galleries_id":235807,"server_id":15,"link":"photo_4403565.html","width":130,"caption":"Been Discovered!","height":86});
															thumbnails[4405891] = clik.newPhoto({"id":4405891,"src":"JOHHNY-CASH_copy_thumb.jpg","galleries_id":257694,"server_id":15,"link":"photo_4405891.html","width":130,"caption":"Johnny Cash","height":127});
															thumbnails[4796297] = clik.newPhoto({"id":4796297,"src":"nightt_thumb.jpg","galleries_id":258194,"server_id":15,"link":"photo_4796297.html","width":130,"caption":"THIS IS WHAT HAPPENS WHEN YOU SWITCH OFF THE BEDROOM LIGHT !","height":86});
															thumbnails[5625373] = clik.newPhoto({"id":5625373,"src":"DSCF0398_copy_4AB7B352-1EC9-D45B-1C8EB82761615F7B_thumb.jpg","galleries_id":320049,"server_id":15,"link":"photo_5625373.html","width":130,"caption":"A Happy Chap","height":98});
															thumbnails[5363028] = clik.newPhoto({"id":5363028,"src":"FRENCH_BARN_copy_thumb.jpg","galleries_id":436480,"server_id":15,"link":"photo_5363028.html","width":130,"caption":"FRENCH  BARN","height":81});
															thumbnails[4405878] = clik.newPhoto({"id":4405878,"src":"ret_045_copy_thumb.jpg","galleries_id":258194,"server_id":15,"link":"photo_4405878.html","width":130,"caption":"Snow Leapard","height":196});
															thumbnails[4405909] = clik.newPhoto({"id":4405909,"src":"my_best_side_copy_thumb.jpg","galleries_id":436475,"server_id":15,"link":"photo_4405909.html","width":130,"caption":"My Best Side","height":116});
															thumbnails[4430764] = clik.newPhoto({"id":4430764,"src":"ziggy_723_copy_thumb.jpg","galleries_id":235807,"server_id":15,"link":"photo_4430764.html","width":130,"caption":"Not A Happy Bunny (Scotish Wildcat)","height":86});
															thumbnails[5538491] = clik.newPhoto({"id":5538491,"src":"DSCF0386a_thumb.jpg","galleries_id":257694,"server_id":15,"link":"photo_5538491.html","width":130,"caption":"HANNAHS WEDDING","height":91});
															thumbnails[4405913] = clik.newPhoto({"id":4405913,"src":"White_Horse_copy_thumb.jpg","galleries_id":257694,"server_id":15,"link":"photo_4405913.html","width":130,"caption":"White Horse Pawnee Indian Scout","height":164});
															thumbnails[4431006] = clik.newPhoto({"id":4431006,"src":"ziggy_720_copy_thumb.jpg","galleries_id":235807,"server_id":15,"link":"photo_4431006.html","width":130,"caption":"Still Not A Happy Bunny","height":171});
															thumbnails[5313191] = clik.newPhoto({"id":5313191,"src":"DSC_0681_copy_thumb.jpg","galleries_id":320049,"server_id":15,"link":"photo_5313191.html","width":130,"caption":"Leopard","height":92});
															thumbnails[5513574] = clik.newPhoto({"id":5513574,"src":"otterresized_thumb.jpg","galleries_id":436475,"server_id":15,"link":"photo_5513574.html","width":130,"caption":" What The Devil Is That !!!","height":94});
															thumbnails[4556528] = clik.newPhoto({"id":4556528,"src":"DSCF0230_thumb.JPG","galleries_id":436475,"server_id":15,"link":"photo_4556528.html","width":130,"caption":"Giant Panda","height":98});
															thumbnails[5363029] = clik.newPhoto({"id":5363029,"src":"SHY_GIANT_copy_thumb.jpg","galleries_id":320049,"server_id":15,"link":"photo_5363029.html","width":130,"caption":"SHY AND GENTLE GIANT","height":183});
															thumbnails[7408068] = clik.newPhoto({"id":7408068,"src":"owla_thumb.jpg","galleries_id":436475,"server_id":15,"link":"photo_7408068.html","width":130,"caption":"I can see you","height":177});
															thumbnails[4405887] = clik.newPhoto({"id":4405887,"src":"bad_hair_day_copy_thumb.jpg","galleries_id":436475,"server_id":15,"link":"photo_4405887.html","width":130,"caption":"Bad Hair Day  ","height":117});
															thumbnails[4556488] = clik.newPhoto({"id":4556488,"src":"DSC_0415_thumb.JPG","galleries_id":436475,"server_id":15,"link":"photo_4556488.html","width":130,"caption":"Trouble and Strife","height":88});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[436475] = clik.newGallery({"parentGallery":436474,"usePopups":false,"title":"PEN AND INK WILDLIFE (Click to viewpictures)","link":"gallery_436475.html","maxRecords":0.0,"photoIDs":[4405899.0,4405909.0,5513574.0,4556528.0,7408068.0,4405887.0,4556488.0],"skipIndex":0,"section_code":"gallery","featured_images":4405899.0,"id":436475,"singleSection":false});				  						galleries[436470] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"GRAPHITE PENCIL DRAWINGS","link":"gallery_436470.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"6998360,5914459,5622316","id":436470,"singleSection":false});				  						galleries[320049] = clik.newGallery({"parentGallery":436470,"usePopups":false,"title":"WILDLIFE DRAWINGS click to view pictures)","link":"gallery_320049.html","maxRecords":0.0,"photoIDs":[6362967.0,6998360.0,7400024.0,5625373.0,5313191.0,5363029.0],"skipIndex":0,"section_code":"gallery","featured_images":6998360.0,"id":320049,"singleSection":false});				  						galleries[436474] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"PEN AND INK ART ","link":"gallery_436474.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"8331662,4405899","id":436474,"singleSection":false});				  						galleries[235807] = clik.newGallery({"parentGallery":436483,"usePopups":false,"title":"WILDLIFE PHOTOGRAPHY","link":"gallery_235807.html","maxRecords":0.0,"photoIDs":[4563041.0,4563044.0,4563048.0,4563185.0,4563186.0,4563190.0,4755191.0,4755196.0,4755204.0,5244493.0,5334985.0,4755189.0,4430962.0,4403565.0,4430764.0,4431006.0],"skipIndex":0,"section_code":"gallery","featured_images":"5334985,5244493,4755204,4755196,4755191,4755189,4563190,4563186,4563185,4563048","id":235807,"singleSection":false});				  						galleries[261969] = clik.newGallery({"parentGallery":436483,"usePopups":false,"title":"Macro Photography","link":"gallery_261969.html","maxRecords":0.0,"photoIDs":[4552697.0,4552706.0,4552711.0,4552740.0,4552749.0,4552757.0,4552765.0,4552791.0,4552823.0,4755181.0,4796336.0],"skipIndex":0,"section_code":"gallery","featured_images":"4796336,4755181,4552823,4552791,4552765,4552757,4552749,4552740,4552711,4552706","id":261969,"singleSection":false});				  						galleries[436479] = clik.newGallery({"parentGallery":436474,"usePopups":false,"title":"PEN AND INK PORTRAITS (Click to view pictures)","link":"gallery_436479.html","maxRecords":0.0,"photoIDs":[7867602.0],"skipIndex":0,"section_code":"gallery","featured_images":7867602.0,"id":436479,"singleSection":false});				  						galleries[436480] = clik.newGallery({"parentGallery":436474,"usePopups":false,"title":"PEN AND INK BUILDINGS (Click to view pictures)","link":"gallery_436480.html","maxRecords":0.0,"photoIDs":[5363028.0],"skipIndex":0,"section_code":"gallery","featured_images":5363028.0,"id":436480,"singleSection":false});				  						galleries[436483] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"PHOTOGRAPHY","link":"gallery_436483.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":7400115.0,"id":436483,"singleSection":false});				  						galleries[257694] = clik.newGallery({"parentGallery":436470,"usePopups":false,"title":"PORTRAIT DRAWINGS (CLICK TO VIEW PICTURES)","link":"gallery_257694.html","maxRecords":0.0,"photoIDs":[4563260.0,5387506.0,5914459.0,8676960.0,4405891.0,5538491.0,4405913.0],"skipIndex":0,"section_code":"gallery","featured_images":5914459.0,"id":257694,"singleSection":false});				  						galleries[442884] = clik.newGallery({"parentGallery":436474,"usePopups":false,"title":"PEN AND INK FINE ART NUDES","link":"gallery_442884.html","maxRecords":0.0,"photoIDs":[8331662.0],"skipIndex":0,"section_code":"gallery","featured_images":8331662.0,"id":442884,"singleSection":false});				  						galleries[286753] = clik.newGallery({"parentGallery":436483,"usePopups":false,"title":"MOODY THEMES (CLICK TO VIEW PICTURES)","link":"gallery_286753.html","maxRecords":0.0,"photoIDs":[5019632.0,5291779.0],"skipIndex":0,"section_code":"gallery","featured_images":"5291779,5019632","id":286753,"singleSection":false});				  						galleries[258194] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"DIGITAL ART ","link":"gallery_258194.html","maxRecords":0.0,"photoIDs":[4405866.0,4405875.0,4405876.0,4405877.0,5128361.0,5291786.0,4796285.0,5019627.0,5296836.0,4796297.0,4405878.0],"skipIndex":0,"section_code":"gallery","featured_images":5296836.0,"id":258194,"singleSection":false});				  						galleries[278535] = clik.newGallery({"parentGallery":436470,"usePopups":false,"title":"ONGOING PROJECTS (Click to view pictures)","link":"gallery_278535.html","maxRecords":0.0,"photoIDs":[4973643.0,4973784.0,5622316.0,6362895.0],"skipIndex":0,"section_code":"gallery","featured_images":5622316.0,"id":278535,"singleSection":false});				  						galleries[265614] = clik.newGallery({"parentGallery":436483,"usePopups":false,"title":"ARCHITECTURE","link":"gallery_265614.html","maxRecords":0.0,"photoIDs":[4796305.0,5019651.0],"skipIndex":0,"section_code":"gallery","featured_images":"5019651,4796305","id":265614,"singleSection":false});				  						galleries[264717] = clik.newGallery({"parentGallery":436483,"usePopups":false,"title":"ODDS AND SODS ","link":"gallery_264717.html","maxRecords":0.0,"photoIDs":[4563087.0,4585919.0],"skipIndex":0,"section_code":"gallery","featured_images":"4585919,4563087","id":264717,"singleSection":false});				  						galleries[453089] = clik.newGallery({"parentGallery":436470,"usePopups":false,"title":"GRAPHITE FINE ART NUDES","link":"gallery_453089.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"","id":453089,"singleSection":false});				  						galleries[352307] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"GREETING  CARDS","link":"gallery_352307.html","maxRecords":0.0,"photoIDs":[6362470.0,6362477.0,6362478.0,6362481.0,6362483.0,6362486.0,6362488.0,6362617.0,6362788.0],"skipIndex":0,"section_code":"gallery","featured_images":"6362788,6362617,6362488,6362486,6362483,6362481,6362478,6362477,6362470","id":352307,"singleSection":false});				  						galleries[258655] = clik.newGallery({"parentGallery":436483,"usePopups":false,"title":"PORTRAITURE","link":"gallery_258655.html","maxRecords":0.0,"photoIDs":[4431051.0,4755036.0,4755207.0,7400100.0,7400113.0,7400115.0,7400118.0],"skipIndex":0,"section_code":"gallery","featured_images":7400115.0,"id":258655,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '5914459,5291786,4563044,4552757,8676960,6998360,6362967,5019627,4405899,4430962,5363028,4405909,7408068';
imageSets[2] = '8331662,7400115,5914459,5622316,6998360,5296836,4405899';
imageSets[3] = '8676960,8331662,7867602,7408068,7400118,7400115,7400113,7400100,7400024,6998360,6363037,6362967,6362895,6362788,6362617,6362488,6362486,6362483,6362481,6362478,6362477,6362470,5914459,5625373,5622316,5538491,5513574,5387506,5363029,5363028,5334985,5313191,5296836,5291786,5291779,5244493,5128361,5019651,5019632,5019627,4973784,4973643,4796336,4796305,4796297,4796285,4755207,4755204,4755196,4755191';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/Davebs/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/Davebs/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/Davebs/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/Davebs/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/Davebs/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/Davebs/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/Davebs/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/Davebs/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/Davebs/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/Davebs/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/Davebs/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/Davebs/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/Davebs/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/Davebs/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/Davebs/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/Davebs/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/Davebs/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/Davebs/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/Davebs/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/Davebs/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/Davebs/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/Davebs/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/Davebs/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/Davebs/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/Davebs/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/Davebs/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/Davebs/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 = 'Wildart Drawings and Photography: ' + 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>ARTIST </strong>' + this.photographer + '</div>';
	}
				
	temp += this.fnGetPaymentInfo();
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
																		temp += '<p>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
		 									temp += '<select class="paymentlink" name="payment_options_id" onchange="updateCartValue($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
		else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
											temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm">';
			temp += '	<input type="hidden" name="item_option" value="' + item_option + '">';
			temp += '	<input type="hidden" name="site" value="DAVEBS">';
			temp += '	<input type="hidden" name="item_number" value="'+ this.id +'">';
			temp += '	<input type="hidden" name="quantity" value="1">';
						temp += '	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\'\;" onmouseout="this.className=\'button\'\;" type="Button">';
							temp += '	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';
			temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
			temp += '<div id="confirmContainer">';
			temp += '<div id="paymentConfirm">Item added to cart</div>';
			temp += '</div>';
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

