window.thumbnails = {};
															thumbnails[198774] = clik.newPhoto({"id":198774,"src":"adriana3_thumb.jpg","galleries_id":18139,"server_id":1,"link":"photo_198774.html","width":130,"caption":"Adriana","height":190});
															thumbnails[975704] = clik.newPhoto({"id":975704,"src":"LightHouse_night12_thumb.JPG","galleries_id":73259,"server_id":1,"link":"photo_975704.html","width":130,"caption":" The Beach Lighthouse Fleetwood.","height":98});
															thumbnails[976133] = clik.newPhoto({"id":976133,"src":"Stena Pioneer0001_thumb.JPG","galleries_id":73259,"server_id":1,"link":"photo_976133.html","width":130,"caption":"Stena Pioneer Morecambe Bay Fleetwood.","height":98});
															thumbnails[976162] = clik.newPhoto({"id":976162,"src":"Arcade0001_thumb.JPG","galleries_id":73259,"server_id":1,"link":"photo_976162.html","width":130,"caption":" Slot-Machine Arcade Fleetwood.","height":98});
															thumbnails[976378] = clik.newPhoto({"id":976378,"src":"2seagulls_thumb.JPG","galleries_id":73259,"server_id":1,"link":"photo_976378.html","width":130,"caption":"Two Seagulls Morecambe Bay  Fleetwood.","height":98});
															thumbnails[992497] = clik.newPhoto({"id":992497,"src":"Breakwater0001_thumb.JPG","galleries_id":73259,"server_id":1,"link":"photo_992497.html","width":130,"caption":"Breakwater Morecame Bay Fleetwood.","height":98});
															thumbnails[2934394] = clik.newPhoto({"id":2934394,"src":"Houghton Web_thumb.jpg","galleries_id":181345,"server_id":1,"link":"photo_2934394.html","width":130,"caption":"Ribblehead Viaduct<br>\r\nChapel-le-Dale. ","height":89});
															thumbnails[3649940] = clik.newPhoto({"id":3649940,"src":"D40_thumb.jpg","galleries_id":222771,"server_id":1,"link":"photo_3649940.html","width":130,"caption":"Nikon D40","height":107});
															thumbnails[4025689] = clik.newPhoto({"id":4025689,"src":"Clapham_Village1_thumb.jpg","galleries_id":181345,"server_id":1,"link":"photo_4025689.html","width":130,"caption":"Clapham Village.","height":98});
															thumbnails[4873154] = clik.newPhoto({"id":4873154,"src":"Pub-web_thumb.jpg","galleries_id":74635,"server_id":1,"link":"photo_4873154.html","width":130,"caption":"CrowTrees Inn","height":104});
															thumbnails[4881682] = clik.newPhoto({"id":4881682,"src":"sunset-web_thumb.jpg","galleries_id":74635,"server_id":1,"link":"photo_4881682.html","width":130,"caption":"Crowtrees Sunset","height":98});
															thumbnails[6651830] = clik.newPhoto({"id":6651830,"src":"chapel-2_thumb.jpg","galleries_id":74635,"server_id":1,"link":"photo_6651830.html","width":130,"caption":"Giggleswick School Chapel","height":98});
															thumbnails[7810015] = clik.newPhoto({"id":7810015,"src":"sunrise-web_thumb.jpg","galleries_id":74635,"server_id":1,"link":"photo_7810015.html","width":130,"caption":"Sun Rise Over Malham","height":86});
															thumbnails[7810075] = clik.newPhoto({"id":7810075,"src":"hel-crop-web_thumb.jpg","galleries_id":74635,"server_id":1,"link":"photo_7810075.html","width":130,"caption":"Yorkshire Air Ambulance Over Halifax","height":104});
															thumbnails[8679319] = clik.newPhoto({"id":8679319,"src":"wn5_thumb.jpg","galleries_id":458003,"server_id":1,"link":"photo_8679319.html","width":130,"caption":"Steph","height":194});
															thumbnails[8731871] = clik.newPhoto({"id":8731871,"src":"LaWallColo_thumb.jpg","galleries_id":458003,"server_id":1,"link":"photo_8731871.html","width":130,"caption":"Darling","height":87});
															thumbnails[8731879] = clik.newPhoto({"id":8731879,"src":"ArtNude2jpg_thumb.jpg","galleries_id":460535,"server_id":1,"link":"photo_8731879.html","width":130,"caption":"Darling Art Nude","height":194});
															thumbnails[8734779] = clik.newPhoto({"id":8734779,"src":"artNude3_thumb.jpg","galleries_id":460535,"server_id":1,"link":"photo_8734779.html","width":130,"caption":"Darling","height":194});
															thumbnails[8739828] = clik.newPhoto({"id":8739828,"src":"topless1_thumb.jpg","galleries_id":458003,"server_id":1,"link":"photo_8739828.html","width":130,"caption":"Darling","height":189});
															thumbnails[8740317] = clik.newPhoto({"id":8740317,"src":"GlamourLandscape_thumb.jpg","galleries_id":458003,"server_id":1,"link":"photo_8740317.html","width":130,"caption":"Darling","height":87});
															thumbnails[8741708] = clik.newPhoto({"id":8741708,"src":"ArtNude4_thumb.jpg","galleries_id":460535,"server_id":1,"link":"photo_8741708.html","width":130,"caption":"Darling Art Nude","height":194});
															thumbnails[8741719] = clik.newPhoto({"id":8741719,"src":"ArtNude5_thumb.jpg","galleries_id":460535,"server_id":1,"link":"photo_8741719.html","width":130,"caption":"Darling Art Nude","height":87});
															thumbnails[8743734] = clik.newPhoto({"id":8743734,"src":"artnude6_thumb.jpg","galleries_id":460535,"server_id":1,"link":"photo_8743734.html","width":130,"caption":"Darling Art Nude","height":194});
															thumbnails[8743745] = clik.newPhoto({"id":8743745,"src":"artnude7jpg_thumb.jpg","galleries_id":460535,"server_id":1,"link":"photo_8743745.html","width":130,"caption":"Darling Art Nude","height":194});
															thumbnails[8754335] = clik.newPhoto({"id":8754335,"src":"w1hs_thumb.jpg","galleries_id":458003,"server_id":1,"link":"photo_8754335.html","width":130,"caption":"Steph Head Shot","height":194});
															thumbnails[8941416] = clik.newPhoto({"id":8941416,"src":"photoshop25_thumb.jpg","galleries_id":18139,"server_id":1,"link":"photo_8941416.html","width":130,"caption":"Steph\/Glowing Edges","height":194});
															thumbnails[9002962] = clik.newPhoto({"id":9002962,"src":"nwhip_thumb.jpg","galleries_id":458003,"server_id":1,"link":"photo_9002962.html","width":130,"caption":"Kirsty","height":196});
															thumbnails[9002965] = clik.newPhoto({"id":9002965,"src":"colourBum_thumb.jpg","galleries_id":458003,"server_id":1,"link":"photo_9002965.html","width":130,"caption":"Kirsty","height":95});
															thumbnails[9022010] = clik.newPhoto({"id":9022010,"src":"10_thumb_3CD7886B-1EC9-D45B-1C9EEDE48366A932.jpg","galleries_id":458003,"server_id":1,"link":"photo_9022010.html","width":130,"caption":"Kirsty","height":218});
															thumbnails[9022034] = clik.newPhoto({"id":9022034,"src":"101_thumb.jpg","galleries_id":458003,"server_id":1,"link":"photo_9022034.html","width":130,"caption":"Kirsty","height":237});
															thumbnails[9037275] = clik.newPhoto({"id":9037275,"src":"14_thumb_D6927BA6-1EC9-D45B-1CD7238FD79F0405.jpg","galleries_id":18139,"server_id":1,"link":"photo_9037275.html","width":130,"caption":"Kirsty","height":196});
															thumbnails[645973] = clik.newPhoto({"id":645973,"src":"templeview7w_thumb.jpg","galleries_id":48114,"server_id":1,"link":"photo_645973.html","width":130,"caption":"The Temple Pillers  Heaton Park.<br>\r\n","height":174});
															thumbnails[975375] = clik.newPhoto({"id":975375,"src":"Low_Light0001_1_thumb.JPG","galleries_id":73259,"server_id":1,"link":"photo_975375.html","width":130,"caption":"The Beach Lighthouse   Fleetwood.","height":98});
															thumbnails[2934392] = clik.newPhoto({"id":2934392,"src":"Settle Sunday web_thumb.jpg","galleries_id":74635,"server_id":1,"link":"photo_2934392.html","width":130,"caption":"Settle Sunday","height":99});
															thumbnails[3644281] = clik.newPhoto({"id":3644281,"src":"D60_thumb.jpg","galleries_id":222771,"server_id":1,"link":"photo_3644281.html","width":130,"caption":"Nikon D60","height":121});
															thumbnails[4137597] = clik.newPhoto({"id":4137597,"src":"Jennife_web_thumb.jpg","galleries_id":18139,"server_id":1,"link":"photo_4137597.html","width":130,"caption":"Jennife.","height":192});
															thumbnails[4141095] = clik.newPhoto({"id":4141095,"src":"Jennifer_thumb.jpg","galleries_id":18139,"server_id":1,"link":"photo_4141095.html","width":130,"caption":"Jennife.","height":192});
															thumbnails[4749356] = clik.newPhoto({"id":4749356,"src":"The-Folly-web_thumb.jpg","galleries_id":74635,"server_id":1,"link":"photo_4749356.html","width":130,"caption":"The Folly-Settle","height":98});
															thumbnails[4750091] = clik.newPhoto({"id":4750091,"src":"stown8-web_thumb.jpg","galleries_id":74635,"server_id":1,"link":"photo_4750091.html","width":130,"caption":"Town Centre Settle ","height":98});
															thumbnails[8678720] = clik.newPhoto({"id":8678720,"src":"w2_thumb.jpg","galleries_id":458003,"server_id":1,"link":"photo_8678720.html","width":130,"caption":"Steph Head Shot","height":194});
															thumbnails[629606] = clik.newPhoto({"id":629606,"src":"LionJPG_thumb.jpg","galleries_id":48114,"server_id":1,"link":"photo_629606.html","width":130,"caption":"The Lioness   Heaton Hall.","height":173});
															thumbnails[975389] = clik.newPhoto({"id":975389,"src":"SunSet 10001_thumb.JPG","galleries_id":73259,"server_id":1,"link":"photo_975389.html","width":130,"caption":"  Winter SunSet Morecambe Bay Fleetwood.","height":173});
															thumbnails[645979] = clik.newPhoto({"id":645979,"src":"templeview6w_thumb.jpg","galleries_id":48114,"server_id":1,"link":"photo_645979.html","width":130,"caption":"The Temple<br>\r\n<br>\r\nHeaton Park.","height":174});
															thumbnails[976277] = clik.newPhoto({"id":976277,"src":"Low Light Lighthouse 30001_thumb.JPG","galleries_id":73259,"server_id":1,"link":"photo_976277.html","width":130,"caption":"The Beach Lighthouse Fleetwood.","height":173});
															thumbnails[2934393] = clik.newPhoto({"id":2934393,"src":"Ingbrough snow web_thumb.jpg","galleries_id":74635,"server_id":1,"link":"photo_2934393.html","width":130,"caption":"Ingleborough In Snow","height":97});
															thumbnails[3644291] = clik.newPhoto({"id":3644291,"src":"D80_thumb.jpg","galleries_id":222771,"server_id":1,"link":"photo_3644291.html","width":130,"caption":"Nikon D80","height":105});
															thumbnails[4137605] = clik.newPhoto({"id":4137605,"src":"Wendy_thumb.jpg","galleries_id":18139,"server_id":1,"link":"photo_4137605.html","width":130,"caption":"Jane.","height":193});
															thumbnails[4295483] = clik.newPhoto({"id":4295483,"src":"pen_y_ghent_thumb.JPG","galleries_id":74635,"server_id":1,"link":"photo_4295483.html","width":130,"caption":"Pen Y Ghent Mountain From Rathmell.","height":79});
															thumbnails[976152] = clik.newPhoto({"id":976152,"src":"Pharos Light0001_thumb.JPG","galleries_id":73259,"server_id":1,"link":"photo_976152.html","width":130,"caption":"Pharos Lighthouse at SunSet","height":173});
															thumbnails[629792] = clik.newPhoto({"id":629792,"src":"parktrees_thumb.JPG","galleries_id":48114,"server_id":1,"link":"photo_629792.html","width":130,"caption":"Autumn Trees  Heaton Park.","height":98});
															thumbnails[629631] = clik.newPhoto({"id":629631,"src":"Lion_2_South_Side_thumb.JPG","galleries_id":48114,"server_id":1,"link":"photo_629631.html","width":130,"caption":"The Lion South Side  Heaton Hall.","height":86});
															thumbnails[3644315] = clik.newPhoto({"id":3644315,"src":"d200_thumb.jpg","galleries_id":222771,"server_id":1,"link":"photo_3644315.html","width":130,"caption":"Nikon D200","height":95});
															thumbnails[629618] = clik.newPhoto({"id":629618,"src":"Trees_thumb.JPG","galleries_id":48114,"server_id":1,"link":"photo_629618.html","width":130,"caption":"Park View Heaton Park.","height":98});
															thumbnails[629629] = clik.newPhoto({"id":629629,"src":"Clock_Tower_thumb.JPG","galleries_id":48114,"server_id":1,"link":"photo_629629.html","width":130,"caption":"Clock Tower Heaton Park.","height":86});
															thumbnails[2979837] = clik.newPhoto({"id":2979837,"src":"Tosside_villace_thumb.jpg","galleries_id":74635,"server_id":1,"link":"photo_2979837.html","width":130,"caption":"Tosside Village Yorks\/Lancs<br>\r\n","height":98});
															thumbnails[4011642] = clik.newPhoto({"id":4011642,"src":"Clapham_Church_mod_webjpg_thumb.jpg","galleries_id":181345,"server_id":1,"link":"photo_4011642.html","width":130,"caption":" St James Church.<br>\r\nClapham ","height":98});
															thumbnails[4137795] = clik.newPhoto({"id":4137795,"src":"Tatiane1_thumb.jpg","galleries_id":18139,"server_id":1,"link":"photo_4137795.html","width":130,"caption":"G-String.","height":91});
															thumbnails[197889] = clik.newPhoto({"id":197889,"src":"Zhanna1_thumb.jpg","galleries_id":18139,"server_id":1,"link":"photo_197889.html","width":130,"caption":"Zhanna.","height":75});
															thumbnails[198781] = clik.newPhoto({"id":198781,"src":"Karen_thumb.jpg","galleries_id":18139,"server_id":1,"link":"photo_198781.html","width":130,"caption":"Karen.","height":86});
															thumbnails[4012318] = clik.newPhoto({"id":4012318,"src":"Clapham_church_yard_web_thumb.jpg","galleries_id":181345,"server_id":1,"link":"photo_4012318.html","width":130,"caption":"St James Church Yard.<br>\r\nClapham","height":98});
															thumbnails[4137642] = clik.newPhoto({"id":4137642,"src":"Carmen_web1234_thumb.jpg","galleries_id":18139,"server_id":1,"link":"photo_4137642.html","width":130,"caption":"Carmen.","height":137});
															thumbnails[197954] = clik.newPhoto({"id":197954,"src":"Morgan_thumb.jpg","galleries_id":18139,"server_id":1,"link":"photo_197954.html","width":130,"caption":"Morgan.","height":88});
															thumbnails[198779] = clik.newPhoto({"id":198779,"src":"Victoria_thumb.jpg","galleries_id":18139,"server_id":1,"link":"photo_198779.html","width":130,"caption":"Stephanie","height":163});
															thumbnails[629767] = clik.newPhoto({"id":629767,"src":"Heaton_Hall_Roof_North_Side_thumb.JPG","galleries_id":48114,"server_id":1,"link":"photo_629767.html","width":130,"caption":"Chimney Stacks Heaton Hall.","height":86});
															thumbnails[4028823] = clik.newPhoto({"id":4028823,"src":"Clapham_Bridge_web_thumb.jpg","galleries_id":181345,"server_id":1,"link":"photo_4028823.html","width":130,"caption":"Clapham Beck.","height":98});
															thumbnails[4373075] = clik.newPhoto({"id":4373075,"src":"353_25565_P5000_34l_thumb.jpg","galleries_id":222771,"server_id":1,"link":"photo_4373075.html","width":130,"caption":"Nikon P5000 Pro Compact.","height":111});
															thumbnails[4373187] = clik.newPhoto({"id":4373187,"src":"353_26135_P6000_34l_thumb.jpg","galleries_id":222771,"server_id":1,"link":"photo_4373187.html","width":130,"caption":"Nikon P6000 Pro Compact.","height":111});
															thumbnails[197950] = clik.newPhoto({"id":197950,"src":"Pennelope21_thumb.jpg","galleries_id":18139,"server_id":1,"link":"photo_197950.html","width":130,"caption":"Pennelope 2","height":99});
															thumbnails[198125] = clik.newPhoto({"id":198125,"src":"Rebecca1_thumb.jpg","galleries_id":18139,"server_id":1,"link":"photo_198125.html","width":130,"caption":"Rebecca.","height":93});
															thumbnails[645956] = clik.newPhoto({"id":645956,"src":"templeview8w_thumb.jpg","galleries_id":48114,"server_id":1,"link":"photo_645956.html","width":130,"caption":"The Temple Dome  Heaton Park.","height":98});
															thumbnails[4111303] = clik.newPhoto({"id":4111303,"src":"Ingleton_village12_thumb.jpg","galleries_id":181345,"server_id":1,"link":"photo_4111303.html","width":130,"caption":"Ingleton Village.","height":98});
															thumbnails[3648206] = clik.newPhoto({"id":3648206,"src":"55-200mm__thumb.jpg","galleries_id":222771,"server_id":1,"link":"photo_3648206.html","width":130,"caption":"Nikon 55-200mm VR","height":106});
															thumbnails[4116926] = clik.newPhoto({"id":4116926,"src":"Ingleton_church_tower_web__thumb.jpg","galleries_id":181345,"server_id":1,"link":"photo_4116926.html","width":130,"caption":"St Mary's Church<br>\r\nIngleton.","height":98});
															thumbnails[6656338] = clik.newPhoto({"id":6656338,"src":"church-1_thumb.jpg","galleries_id":74635,"server_id":1,"link":"photo_6656338.html","width":130,"caption":"St Alkelda Church Gigglewick     ","height":173});
															thumbnails[198778] = clik.newPhoto({"id":198778,"src":"Rebecca_web_copy1_thumb.jpg","galleries_id":18139,"server_id":1,"link":"photo_198778.html","width":130,"caption":"Rebecca","height":127});
															thumbnails[3580210] = clik.newPhoto({"id":3580210,"src":"Church_thumb.jpg","galleries_id":181345,"server_id":1,"link":"photo_3580210.html","width":130,"caption":"St Mary's Church Ingleton.","height":98});
															thumbnails[4116179] = clik.newPhoto({"id":4116179,"src":"Ingleton_Viaduct_web_thumb.jpg","galleries_id":181345,"server_id":1,"link":"photo_4116179.html","width":130,"caption":"Ingleton Viaduct.","height":98});
															thumbnails[6656347] = clik.newPhoto({"id":6656347,"src":"church-2_thumb.jpg","galleries_id":74635,"server_id":1,"link":"photo_6656347.html","width":130,"caption":"St Alkelda Church Giggleswick ","height":173});
															thumbnails[4116272] = clik.newPhoto({"id":4116272,"src":"Ingleton_Viaduct_web2_thumb.jpg","galleries_id":181345,"server_id":1,"link":"photo_4116272.html","width":130,"caption":"Ingleton Viaduct.","height":98});
															thumbnails[6656409] = clik.newPhoto({"id":6656409,"src":"Bolton-By-Boland-006_thumb.jpg","galleries_id":74635,"server_id":1,"link":"photo_6656409.html","width":130,"caption":"Bolton By Bowland","height":173});
															thumbnails[3645294] = clik.newPhoto({"id":3645294,"src":"18_55mmvr_thumb.jpg","galleries_id":222771,"server_id":1,"link":"photo_3645294.html","width":130,"caption":"Nikon 18-55mm VR","height":107});
															thumbnails[4116831] = clik.newPhoto({"id":4116831,"src":"Ingleton_viaduct_web3_thumb.jpg","galleries_id":181345,"server_id":1,"link":"photo_4116831.html","width":130,"caption":"Ingleton Viaduct.","height":98});
															thumbnails[4123158] = clik.newPhoto({"id":4123158,"src":"Ingleton_Viaduct_4_thumb.jpg","galleries_id":181345,"server_id":1,"link":"photo_4123158.html","width":130,"caption":"Ingleton Viaduct.","height":87});
															thumbnails[4799242] = clik.newPhoto({"id":4799242,"src":"1_thumb.jpg","galleries_id":181345,"server_id":1,"link":"photo_4799242.html","width":130,"caption":"Ingleton Viaduct","height":98});
															thumbnails[4211201] = clik.newPhoto({"id":4211201,"src":"Hort_in_Ribb_church_thumb.jpg","galleries_id":181345,"server_id":1,"link":"photo_4211201.html","width":130,"caption":"St Oswald Church,<br>\r\nHorton in Ribblesdale.","height":94});
															thumbnails[4227632] = clik.newPhoto({"id":4227632,"src":"low_tide_thumb.JPG","galleries_id":73259,"server_id":1,"link":"photo_4227632.html","width":130,"caption":"Low Tide Morecambe Bay Fleetwood.","height":98});
															thumbnails[4211366] = clik.newPhoto({"id":4211366,"src":"Pen-y-ghent_thumb.jpg","galleries_id":181345,"server_id":1,"link":"photo_4211366.html","width":130,"caption":"Pen-y-ghent From<br>\r\nHorton in Ribblesdale.","height":98});
															thumbnails[199773] = clik.newPhoto({"id":199773,"src":"Jacqueline copy_thumb.jpg","galleries_id":18139,"server_id":1,"link":"photo_199773.html","width":130,"caption":"Jacqueline","height":100});
															thumbnails[4226255] = clik.newPhoto({"id":4226255,"src":"Heaton_Hall_South_Side_3_thumb.JPG","galleries_id":48114,"server_id":1,"link":"photo_4226255.html","width":130,"caption":"South Side Heaton Hall.","height":86});
															thumbnails[4707190] = clik.newPhoto({"id":4707190,"src":"chaple-le-dale-web_thumb.jpg","galleries_id":181345,"server_id":1,"link":"photo_4707190.html","width":130,"caption":"St Leonards Chapel Chapel Le Dale","height":98});
															thumbnails[4707274] = clik.newPhoto({"id":4707274,"src":"Ingleborough_web_thumb.jpg","galleries_id":181345,"server_id":1,"link":"photo_4707274.html","width":130,"caption":"Ingleborough Mountain From Chapel Le Dale","height":98});
															thumbnails[976171] = clik.newPhoto({"id":976171,"src":"Low Light0001_thumb.JPG","galleries_id":73259,"server_id":1,"link":"photo_976171.html","width":130,"caption":"The Beach Lighthouse Fleetwood.","height":173});
															thumbnails[4257933] = clik.newPhoto({"id":4257933,"src":"Phaross_day_thumb.JPG","galleries_id":73259,"server_id":1,"link":"photo_4257933.html","width":130,"caption":"Pharos lighthouse Fleetwood.","height":173});
															thumbnails[4750573] = clik.newPhoto({"id":4750573,"src":"chapel-le-dale12-web_thumb.jpg","galleries_id":181345,"server_id":1,"link":"photo_4750573.html","width":130,"caption":"Chapel Le Dale","height":98});
															thumbnails[4794864] = clik.newPhoto({"id":4794864,"src":"wirneside-web_thumb.jpg","galleries_id":181345,"server_id":1,"link":"photo_4794864.html","width":130,"caption":"Whernside","height":98});
															thumbnails[4796242] = clik.newPhoto({"id":4796242,"src":"ingleborough_thumb.jpg","galleries_id":181345,"server_id":1,"link":"photo_4796242.html","width":130,"caption":"Inglebourgh","height":98});
															thumbnails[4212335] = clik.newPhoto({"id":4212335,"src":"Pen-Y_Ghent_thumb.jpg","galleries_id":181345,"server_id":1,"link":"photo_4212335.html","width":130,"caption":"Pen-Y-Ghent  ","height":98});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[460535] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Art Nude Modeling","link":"gallery_460535.html","maxRecords":0.0,"photoIDs":[8731879.0,8734779.0,8741708.0,8741719.0,8743734.0,8743745.0],"skipIndex":0,"section_code":"gallery","featured_images":"8743745,8741719,8741708,8734779,8731879","id":460535,"singleSection":false});				  						galleries[458003] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Glamour modeling","link":"gallery_458003.html","maxRecords":0.0,"photoIDs":[8679319.0,8731871.0,8739828.0,8740317.0,8754335.0,9002962.0,9002965.0,9022010.0,9022034.0,8678720.0],"skipIndex":0,"section_code":"gallery","featured_images":"9002965,9002962,8754335,8740317,8731871,8679319,8678720","id":458003,"singleSection":false});				  						galleries[18139] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Photoshop Digital  Glamour.","link":"gallery_18139.html","maxRecords":0.0,"photoIDs":[198774.0,8941416.0,9037275.0,4137597.0,4141095.0,4137605.0,4137795.0,197889.0,198781.0,4137642.0,197954.0,198779.0,197950.0,198125.0,198778.0,199773.0],"skipIndex":0,"section_code":"gallery","featured_images":"4137642,199773,198778","id":18139,"singleSection":false});				  						galleries[73259] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Fleetwood Lancashire","link":"gallery_73259.html","maxRecords":0.0,"photoIDs":[975704.0,976133.0,976162.0,976378.0,992497.0,975375.0,975389.0,976277.0,976152.0,4227632.0,976171.0,4257933.0],"skipIndex":0,"section_code":"gallery","featured_images":"4227632,992497,976378,976133,975704,975375","id":73259,"singleSection":false});				  						galleries[48114] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Heaton Park Manchester","link":"gallery_48114.html","maxRecords":0.0,"photoIDs":[645973.0,629606.0,645979.0,629792.0,629631.0,629618.0,629629.0,629767.0,645956.0,4226255.0],"skipIndex":0,"section_code":"gallery","featured_images":"645956,629792,629767,629631,629629","id":48114,"singleSection":false});				  						galleries[181345] = clik.newGallery({"parentGallery":"","usePopups":false,"title":" Yorkshire Dales One.   ","link":"gallery_181345.html","maxRecords":0.0,"photoIDs":[2934394.0,4025689.0,4011642.0,4012318.0,4028823.0,4111303.0,4116926.0,3580210.0,4116179.0,4116272.0,4116831.0,4123158.0,4799242.0,4211201.0,4211366.0,4707190.0,4707274.0,4750573.0,4794864.0,4796242.0,4212335.0],"skipIndex":0,"section_code":"gallery","featured_images":"4796242,4794864,4707190,4211366,4211201,4116926,4116831,4116179,4028823,4025689,4012318,4011642,3580210,2934394","id":181345,"singleSection":false});				  						galleries[74635] = clik.newGallery({"parentGallery":"","usePopups":false,"title":" Yorkshire Dales Two.","link":"gallery_74635.html","maxRecords":0.0,"photoIDs":[4873154.0,4881682.0,6651830.0,7810015.0,7810075.0,2934392.0,4749356.0,4750091.0,2934393.0,4295483.0,2979837.0,6656338.0,6656347.0,6656409.0],"skipIndex":0,"section_code":"gallery","featured_images":"4881682,4873154,4750091,4749356","id":74635,"singleSection":false});				  						galleries[222771] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Digital Equipment Sales","link":"gallery_222771.html","maxRecords":0.0,"photoIDs":[3649940.0,3644281.0,3644291.0,3644315.0,4373075.0,4373187.0,3648206.0,3645294.0],"skipIndex":0,"section_code":"gallery","featured_images":"4373187,4373075,3644281","id":222771,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8740317,7810075,7810015,6651830,4881682,2934394,4749356,2934392,975375,3644291,4137795,4011642,4012318,198781,197889,4028823,197954,197950,4111303,4116926,198778,4211201,4211366,4707190,4796242,4212335';
imageSets[2] = '9002965,9002962,8754335,8743745,8741719,8741708,8740317,8734779,8731879,8731871,8679319,4881682,4873154,4025689,2934394,992497,976378,976133,975704,8678720,4750091,4749356,3644281,975375,629792,629631,4011642,629629,4137642,4012318,4028823,629767,4373187,4373075,645956,4116926,4116179,3580210,198778,4116831,4227632,4211201,4211366,199773,4707190,4794864,4796242';
imageSets[3] = '9037275,9022034,9022010,9002965,9002962,8941416,8754335,8743745,8743734,8741719,8741708,8740317,8739828,8734779,8731879,8731871,8679319,8678720,7810075,7810015,6656409,6656347,6656338,6651830,4881682,4873154,4799242,4796242,4794864,4750573,4750091,4749356,4707274,4707190,4373187,4373075,4295483,4257933,4227632,4226255,4212335,4211366,4211201,4141095,4137795,4137642,4137605,4137597,4123158,4116926';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/dbflynn/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/dbflynn/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/dbflynn/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/dbflynn/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/dbflynn/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/dbflynn/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/dbflynn/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/dbflynn/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/dbflynn/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/dbflynn/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/dbflynn/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/dbflynn/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/dbflynn/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/dbflynn/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/dbflynn/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/dbflynn/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/dbflynn/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/dbflynn/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/dbflynn/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/dbflynn/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/dbflynn/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/dbflynn/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/dbflynn/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/dbflynn/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/dbflynn/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/dbflynn/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/dbflynn/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 = 'The  Digital  Image: ' + 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>';
	}
				
	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.item_price !== '') {
																		temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="dbflynn@hotmail.com">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="dbflynn@hotmail.com">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

