window.thumbnails = {};
															thumbnails[1958645] = clik.newPhoto({"id":1958645,"src":"mik atkinson clik_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":178});
															thumbnails[1958787] = clik.newPhoto({"id":1958787,"src":"DSCN0046_thumb.jpg","galleries_id":131631,"server_id":15,"link":"photo_1958787.html","width":130,"caption":"","height":173});
															thumbnails[1958806] = clik.newPhoto({"id":1958806,"src":"DSCN0047_thumb.jpg","galleries_id":131631,"server_id":15,"link":"photo_1958806.html","width":130,"caption":"","height":173});
															thumbnails[1958807] = clik.newPhoto({"id":1958807,"src":"DSCN0048_thumb.jpg","galleries_id":131631,"server_id":15,"link":"photo_1958807.html","width":130,"caption":"","height":173});
															thumbnails[1958808] = clik.newPhoto({"id":1958808,"src":"DSCN0056_thumb.jpg","galleries_id":131631,"server_id":15,"link":"photo_1958808.html","width":130,"caption":"","height":88});
															thumbnails[1958820] = clik.newPhoto({"id":1958820,"src":"DSCN0110_thumb.jpg","galleries_id":131631,"server_id":15,"link":"photo_1958820.html","width":130,"caption":"","height":98});
															thumbnails[1958821] = clik.newPhoto({"id":1958821,"src":"DSCN0111_thumb.jpg","galleries_id":131631,"server_id":15,"link":"photo_1958821.html","width":130,"caption":"","height":173});
															thumbnails[1960940] = clik.newPhoto({"id":1960940,"src":"VSCN0043_thumb.jpg","galleries_id":131631,"server_id":15,"link":"photo_1960940.html","width":130,"caption":"","height":173});
															thumbnails[1960944] = clik.newPhoto({"id":1960944,"src":"DSCN0128_thumb.jpg","galleries_id":131631,"server_id":15,"link":"photo_1960944.html","width":130,"caption":"","height":177});
															thumbnails[1960946] = clik.newPhoto({"id":1960946,"src":"VSCN0146_thumb.jpg","galleries_id":131631,"server_id":15,"link":"photo_1960946.html","width":130,"caption":"","height":175});
															thumbnails[1960956] = clik.newPhoto({"id":1960956,"src":"VSCN0121_thumb.jpg","galleries_id":131631,"server_id":15,"link":"photo_1960956.html","width":130,"caption":"","height":100});
															thumbnails[1960958] = clik.newPhoto({"id":1960958,"src":"VSCN0074_thumb.jpg","galleries_id":131631,"server_id":15,"link":"photo_1960958.html","width":130,"caption":"VSCN0074","height":170});
															thumbnails[1961233] = clik.newPhoto({"id":1961233,"src":"DSCN0125_thumb.jpg","galleries_id":131631,"server_id":15,"link":"photo_1961233.html","width":130,"caption":"","height":163});
															thumbnails[1965957] = clik.newPhoto({"id":1965957,"src":"VSCN0142_thumb.jpg","galleries_id":131631,"server_id":15,"link":"photo_1965957.html","width":130,"caption":"","height":165});
															thumbnails[1965958] = clik.newPhoto({"id":1965958,"src":"VSCN0148_thumb.jpg","galleries_id":131631,"server_id":15,"link":"photo_1965958.html","width":130,"caption":"","height":96});
															thumbnails[1965967] = clik.newPhoto({"id":1965967,"src":"DSCN0064_thumb.jpg","galleries_id":131631,"server_id":15,"link":"photo_1965967.html","width":130,"caption":"","height":178});
															thumbnails[1965969] = clik.newPhoto({"id":1965969,"src":"DSCN0084_thumb.jpg","galleries_id":131631,"server_id":15,"link":"photo_1965969.html","width":130,"caption":"","height":177});
															thumbnails[1965973] = clik.newPhoto({"id":1965973,"src":"VSCN0058A_thumb.jpg","galleries_id":131631,"server_id":15,"link":"photo_1965973.html","width":130,"caption":"","height":170});
															thumbnails[1965974] = clik.newPhoto({"id":1965974,"src":"VSCN0117_thumb.jpg","galleries_id":131631,"server_id":15,"link":"photo_1965974.html","width":130,"caption":"","height":173});
															thumbnails[1991676] = clik.newPhoto({"id":1991676,"src":"DSCN0228 clik_thumb.jpg","galleries_id":131631,"server_id":15,"link":"photo_1991676.html","width":130,"caption":"","height":181});
															thumbnails[1991710] = clik.newPhoto({"id":1991710,"src":"DSCN0233 clik_thumb.jpg","galleries_id":131631,"server_id":15,"link":"photo_1991710.html","width":130,"caption":"","height":171});
															thumbnails[3628788] = clik.newPhoto({"id":3628788,"src":"butterflies_clik_thumb.jpg","galleries_id":131631,"server_id":15,"link":"photo_3628788.html","width":130,"caption":"","height":92});
															thumbnails[1958819] = clik.newPhoto({"id":1958819,"src":"DSCN0066_thumb.jpg","galleries_id":131651,"server_id":15,"link":"photo_1958819.html","width":130,"caption":"","height":94});
															thumbnails[1960948] = clik.newPhoto({"id":1960948,"src":"DSCN0176_thumb.jpg","galleries_id":131651,"server_id":15,"link":"photo_1960948.html","width":130,"caption":"","height":98});
															thumbnails[1960950] = clik.newPhoto({"id":1960950,"src":"VSCN0138_thumb.jpg","galleries_id":131651,"server_id":15,"link":"photo_1960950.html","width":130,"caption":"","height":112});
															thumbnails[1960951] = clik.newPhoto({"id":1960951,"src":"VSCN0140_thumb.jpg","galleries_id":131651,"server_id":15,"link":"photo_1960951.html","width":130,"caption":"","height":112});
															thumbnails[1960963] = clik.newPhoto({"id":1960963,"src":"DSCN0216_thumb.jpg","galleries_id":131651,"server_id":15,"link":"photo_1960963.html","width":130,"caption":"","height":98});
															thumbnails[1961231] = clik.newPhoto({"id":1961231,"src":"DSCN0114_thumb.jpg","galleries_id":131651,"server_id":15,"link":"photo_1961231.html","width":130,"caption":"","height":98});
															thumbnails[1991703] = clik.newPhoto({"id":1991703,"src":"DSCN0232 clik_thumb.jpg","galleries_id":131651,"server_id":15,"link":"photo_1991703.html","width":130,"caption":"","height":112});
															thumbnails[1991853] = clik.newPhoto({"id":1991853,"src":"VSCN0224 clik_thumb.jpg","galleries_id":133720,"server_id":15,"link":"photo_1991853.html","width":130,"caption":"","height":98});
															thumbnails[1991855] = clik.newPhoto({"id":1991855,"src":"VSCN0226 clik_thumb.jpg","galleries_id":133720,"server_id":15,"link":"photo_1991855.html","width":130,"caption":"","height":98});
															thumbnails[1961004] = clik.newPhoto({"id":1961004,"src":"DSCN0183_thumb.jpg","galleries_id":131777,"server_id":15,"link":"photo_1961004.html","width":130,"caption":"","height":189});
															thumbnails[1961005] = clik.newPhoto({"id":1961005,"src":"VSCN0182_thumb.jpg","galleries_id":131777,"server_id":15,"link":"photo_1961005.html","width":130,"caption":"","height":66});
															thumbnails[1961007] = clik.newPhoto({"id":1961007,"src":"DSCN0184_thumb.jpg","galleries_id":131777,"server_id":15,"link":"photo_1961007.html","width":130,"caption":"","height":206});
															thumbnails[1961236] = clik.newPhoto({"id":1961236,"src":"VSCN0168_thumb.jpg","galleries_id":131777,"server_id":15,"link":"photo_1961236.html","width":130,"caption":"","height":78});
															thumbnails[1965937] = clik.newPhoto({"id":1965937,"src":"DSCN0166_thumb.JPG","galleries_id":131777,"server_id":15,"link":"photo_1965937.html","width":130,"caption":"","height":127});
															thumbnails[1965955] = clik.newPhoto({"id":1965955,"src":"DSCN0173_thumb.jpg","galleries_id":131777,"server_id":15,"link":"photo_1965955.html","width":130,"caption":"","height":160});
															thumbnails[1965960] = clik.newPhoto({"id":1965960,"src":"VSCN0165_thumb.jpg","galleries_id":131777,"server_id":15,"link":"photo_1965960.html","width":130,"caption":"","height":139});
															thumbnails[1965962] = clik.newPhoto({"id":1965962,"src":"VSCN0178_thumb.jpg","galleries_id":131777,"server_id":15,"link":"photo_1965962.html","width":130,"caption":"","height":129});
															thumbnails[1991857] = clik.newPhoto({"id":1991857,"src":"VSCN0230 clik_thumb.jpg","galleries_id":131777,"server_id":15,"link":"photo_1991857.html","width":130,"caption":"","height":173});
															thumbnails[1961027] = clik.newPhoto({"id":1961027,"src":"VSCN0108_thumb.jpg","galleries_id":131782,"server_id":15,"link":"photo_1961027.html","width":130,"caption":"","height":98});
															thumbnails[1961040] = clik.newPhoto({"id":1961040,"src":"DSCN0078_thumb.jpg","galleries_id":131782,"server_id":15,"link":"photo_1961040.html","width":130,"caption":"","height":100});
															thumbnails[1961043] = clik.newPhoto({"id":1961043,"src":"DSCN0099_thumb.jpg","galleries_id":131782,"server_id":15,"link":"photo_1961043.html","width":130,"caption":"","height":130});
															thumbnails[1965949] = clik.newPhoto({"id":1965949,"src":"DSCN0091_thumb.jpg","galleries_id":132112,"server_id":15,"link":"photo_1965949.html","width":130,"caption":"","height":188});
															thumbnails[1965953] = clik.newPhoto({"id":1965953,"src":"DSCN0151_thumb.jpg","galleries_id":132112,"server_id":15,"link":"photo_1965953.html","width":130,"caption":"","height":98});
															thumbnails[1965956] = clik.newPhoto({"id":1965956,"src":"VSCN0090_thumb.jpg","galleries_id":132112,"server_id":15,"link":"photo_1965956.html","width":130,"caption":"","height":185});
															thumbnails[1961019] = clik.newPhoto({"id":1961019,"src":"DSCN01321_thumb.jpg","galleries_id":131706,"server_id":15,"link":"photo_1961019.html","width":130,"caption":"","height":132});
															thumbnails[1961021] = clik.newPhoto({"id":1961021,"src":"DSCN0135_thumb.jpg","galleries_id":131706,"server_id":15,"link":"photo_1961021.html","width":130,"caption":"","height":134});
															thumbnails[1961022] = clik.newPhoto({"id":1961022,"src":"VSCN0131_thumb.jpg","galleries_id":131706,"server_id":15,"link":"photo_1961022.html","width":130,"caption":"","height":137});
															thumbnails[1961023] = clik.newPhoto({"id":1961023,"src":"VSCN0134_thumb.jpg","galleries_id":131706,"server_id":15,"link":"photo_1961023.html","width":130,"caption":"","height":132});
															thumbnails[1965961] = clik.newPhoto({"id":1965961,"src":"VSCN0172_thumb.jpg","galleries_id":131706,"server_id":15,"link":"photo_1965961.html","width":130,"caption":"","height":105});
															thumbnails[4865009] = clik.newPhoto({"id":4865009,"src":"1_thumb.jpg","galleries_id":277570,"server_id":15,"link":"photo_4865009.html","width":130,"caption":"","height":116});
															thumbnails[4865011] = clik.newPhoto({"id":4865011,"src":"2_thumb.jpg","galleries_id":277570,"server_id":15,"link":"photo_4865011.html","width":130,"caption":"","height":116});
															thumbnails[4865012] = clik.newPhoto({"id":4865012,"src":"3_thumb.jpg","galleries_id":277570,"server_id":15,"link":"photo_4865012.html","width":130,"caption":"","height":118});
															thumbnails[4865016] = clik.newPhoto({"id":4865016,"src":"4_thumb.jpg","galleries_id":277570,"server_id":15,"link":"photo_4865016.html","width":130,"caption":"","height":114});
															thumbnails[4073575] = clik.newPhoto({"id":4073575,"src":"DSCN0369clik1_thumb.jpg","galleries_id":244926,"server_id":15,"link":"photo_4073575.html","width":130,"caption":"","height":105});
															thumbnails[4073577] = clik.newPhoto({"id":4073577,"src":"DSCN0371clik_thumb.jpg","galleries_id":244926,"server_id":15,"link":"photo_4073577.html","width":130,"caption":"","height":109});
															thumbnails[4073578] = clik.newPhoto({"id":4073578,"src":"DSCN0387clik_thumb.jpg","galleries_id":244926,"server_id":15,"link":"photo_4073578.html","width":130,"caption":"","height":105});
															thumbnails[4073584] = clik.newPhoto({"id":4073584,"src":"DSCN0414clik_thumb.jpg","galleries_id":244926,"server_id":15,"link":"photo_4073584.html","width":130,"caption":"","height":112});
															thumbnails[4073586] = clik.newPhoto({"id":4073586,"src":"DSCN0415clik_thumb.jpg","galleries_id":244926,"server_id":15,"link":"photo_4073586.html","width":130,"caption":"","height":107});
															thumbnails[4073588] = clik.newPhoto({"id":4073588,"src":"DSCN0416clik_thumb.jpg","galleries_id":244926,"server_id":15,"link":"photo_4073588.html","width":130,"caption":"","height":115});
															thumbnails[4073591] = clik.newPhoto({"id":4073591,"src":"DSCN0417clik1_thumb.jpg","galleries_id":244926,"server_id":15,"link":"photo_4073591.html","width":130,"caption":"","height":118});
															thumbnails[4073593] = clik.newPhoto({"id":4073593,"src":"DSCN0427clik_thumb.jpg","galleries_id":244926,"server_id":15,"link":"photo_4073593.html","width":130,"caption":"","height":187});
															thumbnails[4073594] = clik.newPhoto({"id":4073594,"src":"DSCN0428clik_thumb.jpg","galleries_id":244926,"server_id":15,"link":"photo_4073594.html","width":130,"caption":"","height":177});
															thumbnails[4073596] = clik.newPhoto({"id":4073596,"src":"DSCN0429clik_thumb.jpg","galleries_id":244926,"server_id":15,"link":"photo_4073596.html","width":130,"caption":"","height":144});
															thumbnails[4073597] = clik.newPhoto({"id":4073597,"src":"DSCN0431clik_thumb.jpg","galleries_id":244926,"server_id":15,"link":"photo_4073597.html","width":130,"caption":"","height":119});
															thumbnails[4073598] = clik.newPhoto({"id":4073598,"src":"DSCN0432clik_thumb.jpg","galleries_id":244926,"server_id":15,"link":"photo_4073598.html","width":130,"caption":"","height":114});
															thumbnails[4073599] = clik.newPhoto({"id":4073599,"src":"DSCN0433clik_thumb.jpg","galleries_id":244926,"server_id":15,"link":"photo_4073599.html","width":130,"caption":"","height":91});
															thumbnails[4073600] = clik.newPhoto({"id":4073600,"src":"DSCN0434clik_thumb.jpg","galleries_id":244926,"server_id":15,"link":"photo_4073600.html","width":130,"caption":"","height":92});
															thumbnails[4073602] = clik.newPhoto({"id":4073602,"src":"DSCN0437clik_thumb.jpg","galleries_id":244926,"server_id":15,"link":"photo_4073602.html","width":130,"caption":"","height":107});
															thumbnails[4073604] = clik.newPhoto({"id":4073604,"src":"DSCN0438clik_thumb.jpg","galleries_id":244926,"server_id":15,"link":"photo_4073604.html","width":130,"caption":"","height":116});
															thumbnails[4073605] = clik.newPhoto({"id":4073605,"src":"DSCN0440clik_thumb.jpg","galleries_id":244926,"server_id":15,"link":"photo_4073605.html","width":130,"caption":"","height":119});
															thumbnails[3516360] = clik.newPhoto({"id":3516360,"src":"Tiger clik_thumb.jpg","galleries_id":215033,"server_id":15,"link":"photo_3516360.html","width":130,"caption":"","height":202});
															thumbnails[3516368] = clik.newPhoto({"id":3516368,"src":"DSCN0366clik_thumb.jpg","galleries_id":215033,"server_id":15,"link":"photo_3516368.html","width":130,"caption":"","height":168});
															thumbnails[3516370] = clik.newPhoto({"id":3516370,"src":"DSCN0364clik_thumb.jpg","galleries_id":215033,"server_id":15,"link":"photo_3516370.html","width":130,"caption":"","height":164});
															thumbnails[3516374] = clik.newPhoto({"id":3516374,"src":"DSCN0383clik_thumb.jpg","galleries_id":215033,"server_id":15,"link":"photo_3516374.html","width":130,"caption":"","height":173});
															thumbnails[3516377] = clik.newPhoto({"id":3516377,"src":"DSCN0357clik_thumb.jpg","galleries_id":215033,"server_id":15,"link":"photo_3516377.html","width":130,"caption":"","height":98});
															thumbnails[3516381] = clik.newPhoto({"id":3516381,"src":"DSCN0356clik_thumb.jpg","galleries_id":215033,"server_id":15,"link":"photo_3516381.html","width":130,"caption":"","height":98});
															thumbnails[3516383] = clik.newPhoto({"id":3516383,"src":"DSCN0378clik_thumb.jpg","galleries_id":215033,"server_id":15,"link":"photo_3516383.html","width":130,"caption":"","height":162});
															thumbnails[3516386] = clik.newPhoto({"id":3516386,"src":"DSCN0373clik_thumb.jpg","galleries_id":215033,"server_id":15,"link":"photo_3516386.html","width":130,"caption":"","height":129});
															thumbnails[3516389] = clik.newPhoto({"id":3516389,"src":"DSCN0369clik_thumb.jpg","galleries_id":215033,"server_id":15,"link":"photo_3516389.html","width":130,"caption":"","height":124});
															thumbnails[3516392] = clik.newPhoto({"id":3516392,"src":"DSCN0311 clik_thumb.jpg","galleries_id":215033,"server_id":15,"link":"photo_3516392.html","width":130,"caption":"","height":90});
															thumbnails[3516393] = clik.newPhoto({"id":3516393,"src":"DSCN0391clik_thumb.jpg","galleries_id":215033,"server_id":15,"link":"photo_3516393.html","width":130,"caption":"","height":173});
															thumbnails[3516402] = clik.newPhoto({"id":3516402,"src":"Last train to Wensleydale clik_thumb.jpg","galleries_id":215033,"server_id":15,"link":"photo_3516402.html","width":130,"caption":"","height":81});
															thumbnails[3516404] = clik.newPhoto({"id":3516404,"src":"H4 Class 4-6-2 clik_thumb.jpg","galleries_id":215033,"server_id":15,"link":"photo_3516404.html","width":130,"caption":"","height":31});
															thumbnails[3516412] = clik.newPhoto({"id":3516412,"src":"DSCN0396clik_thumb.jpg","galleries_id":215033,"server_id":15,"link":"photo_3516412.html","width":130,"caption":"","height":128});
															thumbnails[3628777] = clik.newPhoto({"id":3628777,"src":"owl_clik_thumb.jpg","galleries_id":215033,"server_id":15,"link":"photo_3628777.html","width":130,"caption":"","height":193});
															thumbnails[5164190] = clik.newPhoto({"id":5164190,"src":"dove_clikpic_thumb.jpg","galleries_id":215033,"server_id":15,"link":"photo_5164190.html","width":130,"caption":"","height":174});
															thumbnails[5164191] = clik.newPhoto({"id":5164191,"src":"magpie_clik_thumb.jpg","galleries_id":215033,"server_id":15,"link":"photo_5164191.html","width":130,"caption":"","height":178});
															thumbnails[3628762] = clik.newPhoto({"id":3628762,"src":"magpie1_thumb.jpg","galleries_id":215033,"server_id":15,"link":"photo_3628762.html","width":130,"caption":"","height":153});
															thumbnails[5395097] = clik.newPhoto({"id":5395097,"src":"fox_mike_at_thumb.jpg","galleries_id":304500,"server_id":15,"link":"photo_5395097.html","width":130,"caption":"","height":98});
															thumbnails[6313078] = clik.newPhoto({"id":6313078,"src":"index_001_thumb.jpg","galleries_id":304500,"server_id":15,"link":"photo_6313078.html","width":130,"caption":"","height":97});
															thumbnails[6313083] = clik.newPhoto({"id":6313083,"src":"index_002_thumb.jpg","galleries_id":304500,"server_id":15,"link":"photo_6313083.html","width":130,"caption":"","height":88});
															thumbnails[6313085] = clik.newPhoto({"id":6313085,"src":"index_004_thumb.jpg","galleries_id":304500,"server_id":15,"link":"photo_6313085.html","width":130,"caption":"","height":171});
															thumbnails[6313087] = clik.newPhoto({"id":6313087,"src":"index_003_thumb.jpg","galleries_id":304500,"server_id":15,"link":"photo_6313087.html","width":130,"caption":"","height":76});
															thumbnails[8403007] = clik.newPhoto({"id":8403007,"src":"1_2AF0626A-1E4F-37DC-71AAEBA9FE162F4C_thumb.jpg","galleries_id":445273,"server_id":19,"link":"photo_8403007.html","width":130,"caption":"","height":169});
															thumbnails[8403013] = clik.newPhoto({"id":8403013,"src":"2_2AF0BC5C-1E4F-37DC-713080EF87E9BA19_thumb.jpg","galleries_id":445273,"server_id":19,"link":"photo_8403013.html","width":130,"caption":"Natural History book illustration","height":169});
															thumbnails[8403015] = clik.newPhoto({"id":8403015,"src":"3_2AF0FDBF-1E4F-37DC-7105EEB291262E9F_thumb.jpg","galleries_id":445273,"server_id":19,"link":"photo_8403015.html","width":130,"caption":"","height":169});
															thumbnails[8403016] = clik.newPhoto({"id":8403016,"src":"4_2AF1428B-1E4F-37DC-71CFCE57036C1CC7_thumb.jpg","galleries_id":445273,"server_id":19,"link":"photo_8403016.html","width":130,"caption":"Natural History book illustration","height":169});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[304500] = clik.newGallery({"parentGallery":"","usePopups":false,"title":2010.0,"link":"section364406.html","maxRecords":0.0,"photoIDs":[5395097.0,6313078.0,6313083.0,6313085.0,6313087.0],"skipIndex":0,"section_code":"section364406","featured_images":"6313087,6313085,6313083,6313078,5395097","id":304500,"singleSection":true});				  						galleries[131651] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Animal Gallery","link":"section170909.html","maxRecords":0.0,"photoIDs":[1958819.0,1960948.0,1960950.0,1960951.0,1960963.0,1961231.0,1991703.0],"skipIndex":0,"section_code":"section170909","featured_images":"1991703,1961231,1960963,1960951,1960950,1960948,1958819","id":131651,"singleSection":true});				  						galleries[277570] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Exhibition","link":"section333479.html","maxRecords":0.0,"photoIDs":[4865009.0,4865011.0,4865012.0,4865016.0],"skipIndex":0,"section_code":"section333479","featured_images":"4865016,4865012,4865011,4865009","id":277570,"singleSection":true});				  						galleries[132112] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Flowers","link":"section171377.html","maxRecords":0.0,"photoIDs":[1965949.0,1965953.0,1965956.0],"skipIndex":0,"section_code":"section171377","featured_images":"1965956,1965953,1965949","id":132112,"singleSection":true});				  						galleries[244926] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"June 2009","link":"section297356.html","maxRecords":0.0,"photoIDs":[4073575.0,4073577.0,4073578.0,4073584.0,4073586.0,4073588.0,4073591.0,4073593.0,4073594.0,4073596.0,4073597.0,4073598.0,4073599.0,4073600.0,4073602.0,4073604.0,4073605.0],"skipIndex":0,"section_code":"section297356","featured_images":"4073605,4073604,4073602,4073600,4073599,4073598,4073597,4073596,4073594,4073593","id":244926,"singleSection":true});				  						galleries[131782] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Marine Life","link":"section171055.html","maxRecords":0.0,"photoIDs":[1961027.0,1961040.0,1961043.0],"skipIndex":0,"section_code":"section171055","featured_images":"1961043,1961040,1961027","id":131782,"singleSection":true});				  						galleries[133720] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Motors","link":"section173212.html","maxRecords":0.0,"photoIDs":[1991853.0,1991855.0],"skipIndex":0,"section_code":"section173212","featured_images":"1991855,1991853","id":133720,"singleSection":true});				  						galleries[445273] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Natural History","link":"section535263.html","maxRecords":0.0,"photoIDs":[8403007.0,8403013.0,8403015.0,8403016.0],"skipIndex":0,"section_code":"section535263","featured_images":"8403016,8403015,8403013,8403007","id":445273,"singleSection":true});				  						galleries[215033] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"New for 2009","link":"section264241.html","maxRecords":0.0,"photoIDs":[3516360.0,3516368.0,3516370.0,3516374.0,3516377.0,3516381.0,3516383.0,3516386.0,3516389.0,3516392.0,3516393.0,3516402.0,3516404.0,3516412.0,3628777.0,5164190.0,5164191.0,3628762.0],"skipIndex":0,"section_code":"section264241","featured_images":"5164191,5164190,3628777,3628762,3516412,3516404,3516402,3516393,3516392,3516389","id":215033,"singleSection":true});				  						galleries[131706] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Recent ","link":"section170959.html","maxRecords":0.0,"photoIDs":[1961019.0,1961021.0,1961022.0,1961023.0,1965961.0],"skipIndex":0,"section_code":"section170959","featured_images":"1965961,1961023,1961022,1961021,1961019","id":131706,"singleSection":true});				  						galleries[131777] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Special ","link":"section171048.html","maxRecords":0.0,"photoIDs":[1961004.0,1961005.0,1961007.0,1961236.0,1965937.0,1965955.0,1965960.0,1965962.0,1991857.0],"skipIndex":0,"section_code":"section171048","featured_images":"1991857,1965962,1965960,1965955,1965937,1961236,1961007,1961005,1961004","id":131777,"singleSection":true});				  						galleries[131631] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wildlife birds","link":"gallery.html","maxRecords":0.0,"photoIDs":[1958787.0,1958806.0,1958807.0,1958808.0,1958820.0,1958821.0,1960940.0,1960944.0,1960946.0,1960956.0,1960958.0,1961233.0,1965957.0,1965958.0,1965967.0,1965969.0,1965973.0,1965974.0,1991676.0,1991710.0,3628788.0],"skipIndex":0,"section_code":"gallery","featured_images":"3628788,1991710,1991676,1965974,1965973,1965969,1965967,1965958,1965957,1961233","id":131631,"singleSection":true});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '1991676,1965967,1961236,1960948,1960940,1958645';
imageSets[3] = '8403016,8403015,8403013,8403007,6313087,6313085,6313083,6313078,5395097,5164191,5164190,4865016,4865012,4865011,4865009,4073605,4073604,4073602,4073600,4073599,4073598,4073597,4073596,4073594,4073593,4073591,4073588,4073586,4073584,4073578,4073577,4073575,3628788,3628777,3628762,3516412,3516404,3516402,3516393,3516392,3516389,3516386,3516383,3516381,3516377,3516374,3516370,3516368,3516360,1991857';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/Mikeatkinson/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/Mikeatkinson/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/Mikeatkinson/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/Mikeatkinson/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/Mikeatkinson/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/Mikeatkinson/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/Mikeatkinson/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/Mikeatkinson/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/Mikeatkinson/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/Mikeatkinson/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/Mikeatkinson/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/Mikeatkinson/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/Mikeatkinson/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/Mikeatkinson/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/Mikeatkinson/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/Mikeatkinson/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/Mikeatkinson/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/Mikeatkinson/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/Mikeatkinson/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/Mikeatkinson/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/Mikeatkinson/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/Mikeatkinson/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/Mikeatkinson/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 += '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 = 'Mike Atkinson Artist and Illustrator: ' + 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;
	}
}

			

