window.thumbnails = {};
															thumbnails[2767997] = clik.newPhoto({"id":2767997,"src":"IMG_0521w_1_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":87});
															thumbnails[2881312] = clik.newPhoto({"id":2881312,"src":"IMG_0811b_1_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":195});
															thumbnails[3800524] = clik.newPhoto({"id":3800524,"src":"IMG_1536b_1_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":130});
															thumbnails[2767983] = clik.newPhoto({"id":2767983,"src":"IMG_0066w_1_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":195});
															thumbnails[3993617] = clik.newPhoto({"id":3993617,"src":"IMG_2245a_1_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":127});
															thumbnails[3993627] = clik.newPhoto({"id":3993627,"src":"IMG_2317a_1_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":124});
															thumbnails[3993622] = clik.newPhoto({"id":3993622,"src":"IMG_2305a_1_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Backwater Reflections","height":137});
															thumbnails[3993641] = clik.newPhoto({"id":3993641,"src":"IMG_2426a_1_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":56});
															thumbnails[3993624] = clik.newPhoto({"id":3993624,"src":"IMG_2313a_1_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":184});
															thumbnails[3993635] = clik.newPhoto({"id":3993635,"src":"IMG_2391a_1_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":189});
															thumbnails[3993655] = clik.newPhoto({"id":3993655,"src":"IMG_2502b_1_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":191});
															thumbnails[2766413] = clik.newPhoto({"id":2766413,"src":"IMG_9999wtrim_1_thumb.jpg","galleries_id":173248,"server_id":5,"link":"photo_2766413.html","width":130,"caption":"","height":80});
															thumbnails[2768008] = clik.newPhoto({"id":2768008,"src":"IMG_0563w_1_thumb.jpg","galleries_id":173447,"server_id":5,"link":"photo_2768008.html","width":130,"caption":"","height":87});
															thumbnails[2768009] = clik.newPhoto({"id":2768009,"src":"IMG_0564w_1_thumb.jpg","galleries_id":173447,"server_id":5,"link":"photo_2768009.html","width":130,"caption":"","height":87});
															thumbnails[7672168] = clik.newPhoto({"id":7672168,"src":"IMG_7204b_1_thumb.jpg","galleries_id":319967,"server_id":5,"link":"photo_7672168.html","width":130,"caption":"Wintry Eiffel Tower","height":195});
															thumbnails[7672169] = clik.newPhoto({"id":7672169,"src":"IMG_7236b_1_thumb.jpg","galleries_id":319967,"server_id":5,"link":"photo_7672169.html","width":130,"caption":"Misty Eiffel Tower","height":195});
															thumbnails[7672213] = clik.newPhoto({"id":7672213,"src":"IMG_7247b_1_thumb.jpg","galleries_id":319967,"server_id":5,"link":"photo_7672213.html","width":130,"caption":"Peeking at The Louvre","height":130});
															thumbnails[7672214] = clik.newPhoto({"id":7672214,"src":"IMG_7287b_1_thumb.jpg","galleries_id":319967,"server_id":5,"link":"photo_7672214.html","width":130,"caption":"Paris street","height":130});
															thumbnails[2767979] = clik.newPhoto({"id":2767979,"src":"IMG_0072_1_thumb.jpg","galleries_id":173443,"server_id":5,"link":"photo_2767979.html","width":130,"caption":"","height":195});
															thumbnails[2767992] = clik.newPhoto({"id":2767992,"src":"IMG_0418_1_thumb.jpg","galleries_id":173445,"server_id":5,"link":"photo_2767992.html","width":130,"caption":"","height":87});
															thumbnails[2768004] = clik.newPhoto({"id":2768004,"src":"IMG_0548w_2_thumb.jpg","galleries_id":173446,"server_id":5,"link":"photo_2768004.html","width":130,"caption":"","height":87});
															thumbnails[3800535] = clik.newPhoto({"id":3800535,"src":"IMG_1975a_1_thumb.jpg","galleries_id":231608,"server_id":5,"link":"photo_3800535.html","width":130,"caption":"","height":60});
															thumbnails[4391018] = clik.newPhoto({"id":4391018,"src":"IMG_2052a_1_thumb.jpg","galleries_id":257601,"server_id":5,"link":"photo_4391018.html","width":130,"caption":"Keswick Landing","height":130});
															thumbnails[2767970] = clik.newPhoto({"id":2767970,"src":"IMG_0063w_1_thumb.jpg","galleries_id":173443,"server_id":5,"link":"photo_2767970.html","width":130,"caption":"","height":195});
															thumbnails[2767994] = clik.newPhoto({"id":2767994,"src":"IMG_0431_1_thumb.jpg","galleries_id":173445,"server_id":5,"link":"photo_2767994.html","width":130,"caption":"","height":87});
															thumbnails[2768006] = clik.newPhoto({"id":2768006,"src":"IMG_0549w_1_thumb.jpg","galleries_id":173446,"server_id":5,"link":"photo_2768006.html","width":130,"caption":"","height":87});
															thumbnails[2768010] = clik.newPhoto({"id":2768010,"src":"IMG_9999w_1_thumb.jpg","galleries_id":173248,"server_id":5,"link":"photo_2768010.html","width":130,"caption":"","height":176});
															thumbnails[3800537] = clik.newPhoto({"id":3800537,"src":"IMG_1970a_1_thumb.jpg","galleries_id":231608,"server_id":5,"link":"photo_3800537.html","width":130,"caption":"","height":60});
															thumbnails[4391022] = clik.newPhoto({"id":4391022,"src":"IMG_2110a_1_thumb.jpg","galleries_id":257601,"server_id":5,"link":"photo_4391022.html","width":130,"caption":"Crummock Water from Rannerdale","height":130});
															thumbnails[5647074] = clik.newPhoto({"id":5647074,"src":"IMG_4093a_1_thumb.jpg","galleries_id":319967,"server_id":5,"link":"photo_5647074.html","width":130,"caption":"New York - The City Which Never Sleeps","height":121});
															thumbnails[7149698] = clik.newPhoto({"id":7149698,"src":"IMG_4085a_1_thumb.jpg","galleries_id":319967,"server_id":5,"link":"photo_7149698.html","width":130,"caption":"Manhattan Bridge - moody New York City","height":130});
															thumbnails[2768000] = clik.newPhoto({"id":2768000,"src":"IMG_0547aw_2_thumb.jpg","galleries_id":173446,"server_id":5,"link":"photo_2768000.html","width":130,"caption":"","height":87});
															thumbnails[2768067] = clik.newPhoto({"id":2768067,"src":"IMG_0538a_1_thumb.jpg","galleries_id":173443,"server_id":5,"link":"photo_2768067.html","width":130,"caption":"","height":188});
															thumbnails[3344658] = clik.newPhoto({"id":3344658,"src":"IMG_1232_1_thumb.jpg","galleries_id":173248,"server_id":5,"link":"photo_3344658.html","width":130,"caption":"Mounted and Framed","height":195});
															thumbnails[3800539] = clik.newPhoto({"id":3800539,"src":"IMG_1614_1_thumb.jpg","galleries_id":231608,"server_id":5,"link":"photo_3800539.html","width":130,"caption":"","height":86});
															thumbnails[4391008] = clik.newPhoto({"id":4391008,"src":"IMG_9998_1_thumb.jpg","galleries_id":257601,"server_id":5,"link":"photo_4391008.html","width":130,"caption":"Derwent Water from Ashness","height":86});
															thumbnails[5647014] = clik.newPhoto({"id":5647014,"src":"4081a_thumb.jpg","galleries_id":319967,"server_id":5,"link":"photo_5647014.html","width":130,"caption":"Skyline from Brooklyn Bridge","height":44});
															thumbnails[2767991] = clik.newPhoto({"id":2767991,"src":"IMG_0383_1_thumb.jpg","galleries_id":173445,"server_id":5,"link":"photo_2767991.html","width":130,"caption":"","height":87});
															thumbnails[2767999] = clik.newPhoto({"id":2767999,"src":"IMG_0539qw_1_thumb.jpg","galleries_id":173446,"server_id":5,"link":"photo_2767999.html","width":130,"caption":"","height":130});
															thumbnails[2881313] = clik.newPhoto({"id":2881313,"src":"IMG_0822a_1_thumb.jpg","galleries_id":173443,"server_id":5,"link":"photo_2881313.html","width":129,"caption":"","height":188});
															thumbnails[4005245] = clik.newPhoto({"id":4005245,"src":"IMG_2245b_1_thumb.jpg","galleries_id":241492,"server_id":5,"link":"photo_4005245.html","width":130,"caption":"Grand Canal Gondolas","height":130});
															thumbnails[2767985] = clik.newPhoto({"id":2767985,"src":"IMG_0146w_1_thumb.jpg","galleries_id":173445,"server_id":5,"link":"photo_2767985.html","width":130,"caption":"","height":87});
															thumbnails[3800515] = clik.newPhoto({"id":3800515,"src":"IMG_1632a_1_thumb.jpg","galleries_id":173445,"server_id":5,"link":"photo_3800515.html","width":130,"caption":"","height":130});
															thumbnails[3993619] = clik.newPhoto({"id":3993619,"src":"IMG_2303a_1_thumb.jpg","galleries_id":241492,"server_id":5,"link":"photo_3993619.html","width":130,"caption":"Venice awaits","height":125});
															thumbnails[4390997] = clik.newPhoto({"id":4390997,"src":"IMG_0066e_1_thumb.jpg","galleries_id":173443,"server_id":5,"link":"photo_4390997.html","width":130,"caption":"","height":130});
															thumbnails[2767978] = clik.newPhoto({"id":2767978,"src":"IMG_0044cw_11_thumb.jpg","galleries_id":173443,"server_id":5,"link":"photo_2767978.html","width":130,"caption":"","height":130});
															thumbnails[3800519] = clik.newPhoto({"id":3800519,"src":"IMG_1722a_1_thumb.jpg","galleries_id":173445,"server_id":5,"link":"photo_3800519.html","width":130,"caption":"","height":130});
															thumbnails[3993623] = clik.newPhoto({"id":3993623,"src":"IMG_2311b_1_thumb.jpg","galleries_id":241492,"server_id":5,"link":"photo_3993623.html","width":130,"caption":"Trattoria Sempione","height":125});
															thumbnails[2881289] = clik.newPhoto({"id":2881289,"src":"IMG_0778a_1_thumb.jpg","galleries_id":173443,"server_id":5,"link":"photo_2881289.html","width":130,"caption":"","height":129});
															thumbnails[3800518] = clik.newPhoto({"id":3800518,"src":"IMG_1696a_1_thumb.jpg","galleries_id":173445,"server_id":5,"link":"photo_3800518.html","width":130,"caption":"","height":130});
															thumbnails[3993633] = clik.newPhoto({"id":3993633,"src":"IMG_2349b_1_thumb.jpg","galleries_id":241492,"server_id":5,"link":"photo_3993633.html","width":130,"caption":"Hotel Lisbona","height":130});
															thumbnails[2881283] = clik.newPhoto({"id":2881283,"src":"IMG_0771a_1_thumb.jpg","galleries_id":173443,"server_id":5,"link":"photo_2881283.html","width":130,"caption":"","height":130});
															thumbnails[3800520] = clik.newPhoto({"id":3800520,"src":"IMG_1726a_1_thumb.jpg","galleries_id":173445,"server_id":5,"link":"photo_3800520.html","width":130,"caption":"","height":130});
															thumbnails[4005487] = clik.newPhoto({"id":4005487,"src":"IMG_2317b_1_thumb.jpg","galleries_id":241492,"server_id":5,"link":"photo_4005487.html","width":130,"caption":"Ponte dei Bareteri","height":130});
															thumbnails[2881290] = clik.newPhoto({"id":2881290,"src":"IMG_0781b_1_thumb.jpg","galleries_id":173443,"server_id":5,"link":"photo_2881290.html","width":129,"caption":"","height":285});
															thumbnails[3993636] = clik.newPhoto({"id":3993636,"src":"IMG_2406a_1_thumb.jpg","galleries_id":241492,"server_id":5,"link":"photo_3993636.html","width":130,"caption":"Sunset Silhouette","height":127});
															thumbnails[2881277] = clik.newPhoto({"id":2881277,"src":"IMG_0735_1_thumb.jpg","galleries_id":173445,"server_id":5,"link":"photo_2881277.html","width":130,"caption":"","height":195});
															thumbnails[3630598] = clik.newPhoto({"id":3630598,"src":"IMG_1538a_1_thumb.jpg","galleries_id":173443,"server_id":5,"link":"photo_3630598.html","width":130,"caption":"","height":259});
															thumbnails[4007017] = clik.newPhoto({"id":4007017,"src":"IMG_2305b_1_thumb.jpg","galleries_id":241492,"server_id":5,"link":"photo_4007017.html","width":130,"caption":"Backwater Reflections","height":130});
															thumbnails[2881307] = clik.newPhoto({"id":2881307,"src":"IMG_0801b_1_thumb.jpg","galleries_id":173443,"server_id":5,"link":"photo_2881307.html","width":129,"caption":"","height":283});
															thumbnails[3993652] = clik.newPhoto({"id":3993652,"src":"IMG_2488a_1_thumb.jpg","galleries_id":241492,"server_id":5,"link":"photo_3993652.html","width":130,"caption":"Grand Canal 1","height":118});
															thumbnails[2881281] = clik.newPhoto({"id":2881281,"src":"IMG_0741b_1_thumb.jpg","galleries_id":173445,"server_id":5,"link":"photo_2881281.html","width":130,"caption":"","height":130});
															thumbnails[3800530] = clik.newPhoto({"id":3800530,"src":"IMG_1820_1_thumb.jpg","galleries_id":173443,"server_id":5,"link":"photo_3800530.html","width":130,"caption":"","height":86});
															thumbnails[3993638] = clik.newPhoto({"id":3993638,"src":"IMG_2430a_1_thumb.jpg","galleries_id":241492,"server_id":5,"link":"photo_3993638.html","width":130,"caption":"Evening Clouds Gathering","height":96});
															thumbnails[3993607] = clik.newPhoto({"id":3993607,"src":"IMG_2226a_1_thumb.jpg","galleries_id":241492,"server_id":5,"link":"photo_3993607.html","width":130,"caption":"Grand Canal 2","height":90});
															thumbnails[3993615] = clik.newPhoto({"id":3993615,"src":"IMG_2241a_1_thumb.jpg","galleries_id":241492,"server_id":5,"link":"photo_3993615.html","width":130,"caption":"Grand Canal 3","height":93});
															thumbnails[3993631] = clik.newPhoto({"id":3993631,"src":"IMG_2334a_1_thumb.jpg","galleries_id":241492,"server_id":5,"link":"photo_3993631.html","width":130,"caption":"Palazzo Ducale","height":106});
															thumbnails[6929185] = clik.newPhoto({"id":6929185,"src":"IMG_6127a_1_thumb.jpg","galleries_id":173445,"server_id":5,"link":"photo_6929185.html","width":130,"caption":"","height":130});
															thumbnails[6929188] = clik.newPhoto({"id":6929188,"src":"IMG_6120m_1_thumb.jpg","galleries_id":173445,"server_id":5,"link":"photo_6929188.html","width":130,"caption":"","height":129});
															thumbnails[3993634] = clik.newPhoto({"id":3993634,"src":"IMG_2389a_1_thumb.jpg","galleries_id":241492,"server_id":5,"link":"photo_3993634.html","width":130,"caption":"Giudecca Evening Light","height":54});
															thumbnails[4005668] = clik.newPhoto({"id":4005668,"src":"IMG_2426b_1_thumb.jpg","galleries_id":241492,"server_id":5,"link":"photo_4005668.html","width":130,"caption":"Campanile Sunset","height":54});
															thumbnails[3993644] = clik.newPhoto({"id":3993644,"src":"IMG_2436a_thumb.jpg","galleries_id":241492,"server_id":5,"link":"photo_3993644.html","width":130,"caption":"Evening Skyline 1","height":54});
															thumbnails[3993639] = clik.newPhoto({"id":3993639,"src":"IMG_2408a_1_thumb.jpg","galleries_id":241492,"server_id":5,"link":"photo_3993639.html","width":130,"caption":"Evening Skyline 2","height":59});
															thumbnails[3993645] = clik.newPhoto({"id":3993645,"src":"IMG_2437a_1_thumb.jpg","galleries_id":241492,"server_id":5,"link":"photo_3993645.html","width":130,"caption":"Evening Skyline 3","height":60});
															thumbnails[3993642] = clik.newPhoto({"id":3993642,"src":"IMG_2434a_1_thumb.jpg","galleries_id":241492,"server_id":5,"link":"photo_3993642.html","width":130,"caption":"Evening Skyline 4","height":46});
															thumbnails[3993658] = clik.newPhoto({"id":3993658,"src":"IMG_2478a_1_thumb.jpg","galleries_id":241492,"server_id":5,"link":"photo_3993658.html","width":130,"caption":"Salute","height":78});
															thumbnails[3993646] = clik.newPhoto({"id":3993646,"src":"IMG_2473a_1_thumb.jpg","galleries_id":241492,"server_id":5,"link":"photo_3993646.html","width":130,"caption":"San Giorgio Maggiore","height":85});
															thumbnails[4005535] = clik.newPhoto({"id":4005535,"src":"IMG_2313b_1_thumb.jpg","galleries_id":241492,"server_id":5,"link":"photo_4005535.html","width":130,"caption":"Ponte dei Bareteri","height":195});
															thumbnails[4005548] = clik.newPhoto({"id":4005548,"src":"IMG_2391b_1_thumb.jpg","galleries_id":241492,"server_id":5,"link":"photo_4005548.html","width":130,"caption":"Masts","height":195});
															thumbnails[4005567] = clik.newPhoto({"id":4005567,"src":"IMG_2502c_1_thumb.jpg","galleries_id":241492,"server_id":5,"link":"photo_4005567.html","width":130,"caption":"Ponte Storto","height":195});
															thumbnails[3993651] = clik.newPhoto({"id":3993651,"src":"IMG_2481a_1_thumb.jpg","galleries_id":241492,"server_id":5,"link":"photo_3993651.html","width":130,"caption":"Morning Tranquility","height":146});
															thumbnails[2881421] = clik.newPhoto({"id":2881421,"src":"IMG_0383_1_1_thumb.jpg","galleries_id":178838,"server_id":5,"link":"photo_2881421.html","width":130,"caption":"","height":59});
															thumbnails[2881424] = clik.newPhoto({"id":2881424,"src":"IMG_0434_1_1_thumb.jpg","galleries_id":178838,"server_id":5,"link":"photo_2881424.html","width":130,"caption":"","height":59});
															thumbnails[2881425] = clik.newPhoto({"id":2881425,"src":"IMG_0146_1_1_thumb.jpg","galleries_id":178838,"server_id":5,"link":"photo_2881425.html","width":130,"caption":"","height":59});
															thumbnails[3140134] = clik.newPhoto({"id":3140134,"src":"IMG_0845acd_1_thumb.jpg","galleries_id":231637,"server_id":5,"link":"photo_3140134.html","width":130,"caption":"Rockfish Cards","height":183});
															thumbnails[2881285] = clik.newPhoto({"id":2881285,"src":"IMG_0773a_1_thumb.jpg","galleries_id":178825,"server_id":5,"link":"photo_2881285.html","width":130,"caption":"Panorama","height":84});
															thumbnails[2881402] = clik.newPhoto({"id":2881402,"src":"IMG_0774a_1_thumb.jpg","galleries_id":178827,"server_id":5,"link":"photo_2881402.html","width":130,"caption":"","height":282});
															thumbnails[3140087] = clik.newPhoto({"id":3140087,"src":"IMG_0548acd_1_thumb.jpg","galleries_id":192576,"server_id":5,"link":"photo_3140087.html","width":130,"caption":"","height":93});
															thumbnails[3140119] = clik.newPhoto({"id":3140119,"src":"IMG_0555cd_1_thumb.jpg","galleries_id":192568,"server_id":5,"link":"photo_3140119.html","width":130,"caption":"","height":182});
															thumbnails[6730360] = clik.newPhoto({"id":6730360,"src":"IMG_6673a_1_thumb.jpg","galleries_id":367011,"server_id":5,"link":"photo_6730360.html","width":130,"caption":"Washbag £6.99","height":130});
															thumbnails[3140089] = clik.newPhoto({"id":3140089,"src":"IMG_0549cd_1_thumb.jpg","galleries_id":192576,"server_id":5,"link":"photo_3140089.html","width":130,"caption":"","height":93});
															thumbnails[3140102] = clik.newPhoto({"id":3140102,"src":"IMG_0781bCD_thumb.jpg","galleries_id":178827,"server_id":5,"link":"photo_3140102.html","width":130,"caption":"","height":286});
															thumbnails[3140124] = clik.newPhoto({"id":3140124,"src":"IMG_0562acd2_1_thumb.jpg","galleries_id":192568,"server_id":5,"link":"photo_3140124.html","width":130,"caption":"","height":183});
															thumbnails[6730477] = clik.newPhoto({"id":6730477,"src":"IMG_6672a_1_thumb.jpg","galleries_id":367011,"server_id":5,"link":"photo_6730477.html","width":130,"caption":"Teeny Bag £9.99","height":130});
															thumbnails[3140082] = clik.newPhoto({"id":3140082,"src":"IMG_0547acd_1_thumb.jpg","galleries_id":192576,"server_id":5,"link":"photo_3140082.html","width":130,"caption":"","height":93});
															thumbnails[3140105] = clik.newPhoto({"id":3140105,"src":"IMG_0801bCD_thumb.jpg","galleries_id":178827,"server_id":5,"link":"photo_3140105.html","width":130,"caption":"","height":282});
															thumbnails[6730358] = clik.newPhoto({"id":6730358,"src":"IMG_6671a_thumb.jpg","galleries_id":367011,"server_id":5,"link":"photo_6730358.html","width":130,"caption":"Annie Bag £17.99","height":130});
															thumbnails[3140104] = clik.newPhoto({"id":3140104,"src":"IMG_0800aCD_thumb.jpg","galleries_id":178827,"server_id":5,"link":"photo_3140104.html","width":130,"caption":"","height":285});
															thumbnails[2881416] = clik.newPhoto({"id":2881416,"src":"IMG_0640_1_1_thumb.jpg","galleries_id":178827,"server_id":5,"link":"photo_2881416.html","width":130,"caption":"","height":282});
															thumbnails[2881303] = clik.newPhoto({"id":2881303,"src":"IMG_0798a_1_thumb.jpg","galleries_id":178825,"server_id":5,"link":"photo_2881303.html","width":130,"caption":"","height":129});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[241492] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Simply Venice","link":"gallery_241492.html","maxRecords":0.0,"photoIDs":[4005245.0,3993619.0,3993623.0,3993633.0,4005487.0,3993636.0,4007017.0,3993652.0,3993638.0,3993607.0,3993615.0,3993631.0,3993634.0,4005668.0,3993644.0,3993639.0,3993645.0,3993642.0,3993658.0,3993646.0,4005535.0,4005548.0,4005567.0,3993651.0],"skipIndex":0,"section_code":"gallery","featured_images":3993633.0,"id":241492,"singleSection":false});				  						galleries[173443] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Architectural","link":"gallery_173443.html","maxRecords":0.0,"photoIDs":[2767979.0,2767970.0,2768067.0,2881313.0,4390997.0,2767978.0,2881289.0,2881283.0,2881290.0,3630598.0,2881307.0,3800530.0],"skipIndex":0,"section_code":"gallery","featured_images":2767978.0,"id":173443,"singleSection":false});				  						galleries[178825] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Alfama","link":"section222291_178825.html","maxRecords":0.0,"photoIDs":[2881285.0,2881303.0],"skipIndex":0,"section_code":"section222291","featured_images":2881303.0,"id":178825,"singleSection":false});				  						galleries[257601] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"The Lakes","link":"gallery_257601.html","maxRecords":0.0,"photoIDs":[4391018.0,4391022.0,4391008.0],"skipIndex":0,"section_code":"gallery","featured_images":4391018.0,"id":257601,"singleSection":false});				  						galleries[173445] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Botanics","link":"gallery_173445.html","maxRecords":0.0,"photoIDs":[2767992.0,2767994.0,2767991.0,2767985.0,3800515.0,3800519.0,3800518.0,3800520.0,2881277.0,2881281.0,6929185.0,6929188.0],"skipIndex":0,"section_code":"gallery","featured_images":6929188.0,"id":173445,"singleSection":false});				  						galleries[231608] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Seascape","link":"gallery_231608.html","maxRecords":0.0,"photoIDs":[3800535.0,3800537.0,3800539.0],"skipIndex":0,"section_code":"gallery","featured_images":3800539.0,"id":231608,"singleSection":false});				  						galleries[173446] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Mosaics","link":"gallery_173446.html","maxRecords":0.0,"photoIDs":[2768004.0,2768006.0,2768000.0,2767999.0],"skipIndex":0,"section_code":"gallery","featured_images":2768000.0,"id":173446,"singleSection":false});				  						galleries[173447] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Dining","link":"gallery_173447.html","maxRecords":0.0,"photoIDs":[2768008.0,2768009.0],"skipIndex":0,"section_code":"gallery","featured_images":2768008.0,"id":173447,"singleSection":false});				  						galleries[178827] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Cards - Collection 1","link":"section222291_178827.html","maxRecords":0.0,"photoIDs":[2881402.0,3140102.0,3140105.0,3140104.0,2881416.0],"skipIndex":0,"section_code":"section222291","featured_images":"3140102,2881416","id":178827,"singleSection":false});				  						galleries[173248] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Signature","link":"gallery_173248.html","maxRecords":0.0,"photoIDs":[2766413.0,2768010.0,3344658.0],"skipIndex":0,"section_code":"gallery","featured_images":2766413.0,"id":173248,"singleSection":false});				  						galleries[178838] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Cards - Collection 2","link":"section222291_178838.html","maxRecords":0.0,"photoIDs":[2881421.0,2881424.0,2881425.0],"skipIndex":0,"section_code":"section222291","featured_images":2881424.0,"id":178838,"singleSection":false});				  						galleries[319967] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Cityscapes","link":"gallery_319967.html","maxRecords":0.0,"photoIDs":[7672168.0,7672169.0,7672213.0,7672214.0,5647074.0,7149698.0,5647014.0],"skipIndex":0,"section_code":"gallery","featured_images":7149698.0,"id":319967,"singleSection":false});				  						galleries[367011] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Rockfish Bags","link":"section222291_367011.html","maxRecords":0.0,"photoIDs":[6730360.0,6730477.0,6730358.0],"skipIndex":0,"section_code":"section222291","featured_images":6730360.0,"id":367011,"singleSection":false});				  						galleries[192568] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Cards - Collection 3","link":"section222291_192568.html","maxRecords":0.0,"photoIDs":[3140119.0,3140124.0],"skipIndex":0,"section_code":"section222291","featured_images":3140119.0,"id":192568,"singleSection":false});				  						galleries[192576] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Cards - Collection 4","link":"section222291_192576.html","maxRecords":0.0,"photoIDs":[3140087.0,3140089.0,3140082.0],"skipIndex":0,"section_code":"section222291","featured_images":"3140089,3140087,3140082","id":192576,"singleSection":false});				  						galleries[231637] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Events","link":"section222291_231637.html","maxRecords":0.0,"photoIDs":[3140134.0],"skipIndex":0,"section_code":"section222291","featured_images":3140134.0,"id":231637,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '2766413';
imageSets[2] = '2881424,2768008,2766413,6730360,4391018,3140119,7149698,3140102,3800539,2768000,2881416,2767978,3993633,2881303,6929188';
imageSets[3] = '7672214,7672213,7672169,7672168,7149698,6929188,6929185,6730477,6730360,6730358,5647074,5647014,4391022,4391018,4391008,4390997,4007017,4005668,4005567,4005548,4005535,4005487,4005245,3993658,3993655,3993652,3993651,3993646,3993645,3993644,3993642,3993641,3993639,3993638,3993636,3993635,3993634,3993633,3993631,3993627,3993624,3993623,3993622,3993619,3993617,3993615,3993607,3800539,3800537,3800535';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/martinw/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/martinw/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/martinw/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/martinw/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/martinw/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/martinw/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/martinw/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/martinw/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/martinw/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/martinw/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/martinw/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/martinw/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/martinw/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/martinw/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/martinw/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/martinw/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/martinw/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/martinw/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/martinw/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/martinw/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/martinw/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/martinw/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/martinw/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/martinw/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/martinw/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/martinw/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/martinw/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 = 'Rockfish 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>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.payment_groups_id !== '') {
		temp += '<p>Buy 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="MARTINW">';
			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;
	}
}

			

