window.thumbnails = {};
															thumbnails[2239427] = clik.newPhoto({"id":2239427,"src":"Cyclone_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":86});
															thumbnails[2239449] = clik.newPhoto({"id":2239449,"src":"port0744_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":86});
															thumbnails[2230746] = clik.newPhoto({"id":2230746,"src":"Passing Time_thumb..jpg","galleries_id":146992,"server_id":32,"link":"photo_2230746.html","width":130,"caption":"Passing Time","height":86});
															thumbnails[2235332] = clik.newPhoto({"id":2235332,"src":"4a_thumb.jpg","galleries_id":147242,"server_id":32,"link":"photo_2235332.html","width":130,"caption":"","height":216});
															thumbnails[2235333] = clik.newPhoto({"id":2235333,"src":"5a_thumb.jpg","galleries_id":147242,"server_id":32,"link":"photo_2235333.html","width":130,"caption":"","height":166});
															thumbnails[2235334] = clik.newPhoto({"id":2235334,"src":"6a_thumb.jpg","galleries_id":147242,"server_id":32,"link":"photo_2235334.html","width":130,"caption":"","height":195});
															thumbnails[2270312] = clik.newPhoto({"id":2270312,"src":"Exhibition 11_thumb.jpg","galleries_id":149075,"server_id":32,"link":"photo_2270312.html","width":130,"caption":"Gamble Gallery St.Helens.","height":89});
															thumbnails[2284384] = clik.newPhoto({"id":2284384,"src":"DSC_2966_thumb.jpg","galleries_id":149968,"server_id":32,"link":"photo_2284384.html","width":130,"caption":"","height":92});
															thumbnails[2284385] = clik.newPhoto({"id":2284385,"src":"DSC_2968_thumb.jpg","galleries_id":149968,"server_id":32,"link":"photo_2284385.html","width":130,"caption":"","height":86});
															thumbnails[2284386] = clik.newPhoto({"id":2284386,"src":"DSC_2970_thumb.jpg","galleries_id":149968,"server_id":32,"link":"photo_2284386.html","width":130,"caption":"","height":222});
															thumbnails[2284387] = clik.newPhoto({"id":2284387,"src":"DSC_2981_thumb.jpg","galleries_id":149968,"server_id":32,"link":"photo_2284387.html","width":130,"caption":"","height":98});
															thumbnails[2284389] = clik.newPhoto({"id":2284389,"src":"DSC_3006_thumb.jpg","galleries_id":149968,"server_id":32,"link":"photo_2284389.html","width":130,"caption":"","height":169});
															thumbnails[2284390] = clik.newPhoto({"id":2284390,"src":"DSC_3011A_thumb.jpg","galleries_id":149968,"server_id":32,"link":"photo_2284390.html","width":130,"caption":"","height":161});
															thumbnails[2720125] = clik.newPhoto({"id":2720125,"src":"1A_thumb.jpg","galleries_id":146992,"server_id":32,"link":"photo_2720125.html","width":130,"caption":"Let sleeping dogs...","height":195});
															thumbnails[2720780] = clik.newPhoto({"id":2720780,"src":"1C1_thumb.jpg","galleries_id":224132,"server_id":32,"link":"photo_2720780.html","width":130,"caption":"Please Help","height":196});
															thumbnails[2720783] = clik.newPhoto({"id":2720783,"src":"1D1_thumb.jpg","galleries_id":224132,"server_id":32,"link":"photo_2720783.html","width":130,"caption":"Jacko","height":195});
															thumbnails[2720833] = clik.newPhoto({"id":2720833,"src":"DSC_0985a_thumb.jpg","galleries_id":146992,"server_id":32,"link":"photo_2720833.html","width":130,"caption":"Eleanor","height":195});
															thumbnails[2720984] = clik.newPhoto({"id":2720984,"src":"1F_thumb.jpg","galleries_id":146992,"server_id":32,"link":"photo_2720984.html","width":130,"caption":"Homeless Lady-Madrid","height":195});
															thumbnails[2720995] = clik.newPhoto({"id":2720995,"src":"madrid_0696_thumb.jpg","galleries_id":146992,"server_id":32,"link":"photo_2720995.html","width":130,"caption":"Prayer","height":195});
															thumbnails[2724880] = clik.newPhoto({"id":2724880,"src":"Edge of eden2 copy1_thumb.jpg","galleries_id":147372,"server_id":32,"link":"photo_2724880.html","width":130,"caption":"Edge of Eden 1","height":192});
															thumbnails[2724883] = clik.newPhoto({"id":2724883,"src":"Edge of eden copy1_thumb.jpg","galleries_id":147372,"server_id":32,"link":"photo_2724883.html","width":130,"caption":"Edge of Eden 2","height":195});
															thumbnails[2726061] = clik.newPhoto({"id":2726061,"src":"walker32_thumb.jpg","galleries_id":147372,"server_id":32,"link":"photo_2726061.html","width":130,"caption":"Smoking Man","height":195});
															thumbnails[2727321] = clik.newPhoto({"id":2727321,"src":"pillars copy_thumb.jpg","galleries_id":147126,"server_id":32,"link":"photo_2727321.html","width":130,"caption":"Pillars of Hercules","height":195});
															thumbnails[2787064] = clik.newPhoto({"id":2787064,"src":"Lunatics_thumb.jpg","galleries_id":147372,"server_id":32,"link":"photo_2787064.html","width":130,"caption":"Lunatics","height":195});
															thumbnails[2787075] = clik.newPhoto({"id":2787075,"src":"Flaming Pie_thumb.jpg","galleries_id":147372,"server_id":32,"link":"photo_2787075.html","width":130,"caption":"Flaming Pie","height":195});
															thumbnails[2787139] = clik.newPhoto({"id":2787139,"src":"End Of The Line1_thumb.jpg","galleries_id":147126,"server_id":32,"link":"photo_2787139.html","width":130,"caption":"End of The Line","height":87});
															thumbnails[2873114] = clik.newPhoto({"id":2873114,"src":"DSC_5050 copy_thumb.jpg","galleries_id":146992,"server_id":32,"link":"photo_2873114.html","width":129,"caption":"Charlie.","height":195});
															thumbnails[3637613] = clik.newPhoto({"id":3637613,"src":"em_thumb.jpg","galleries_id":147242,"server_id":32,"link":"photo_3637613.html","width":130,"caption":"em","height":179});
															thumbnails[3669526] = clik.newPhoto({"id":3669526,"src":"DSC_0018-1_copy_thumb.jpg","galleries_id":224132,"server_id":32,"link":"photo_3669526.html","width":130,"caption":"Spliff","height":87});
															thumbnails[3669555] = clik.newPhoto({"id":3669555,"src":"DSC_0158_copy_copy_thumb.jpg","galleries_id":224132,"server_id":32,"link":"photo_3669555.html","width":130,"caption":"Busker","height":87});
															thumbnails[3669565] = clik.newPhoto({"id":3669565,"src":"DSC_0161_copy_thumb.jpg","galleries_id":224132,"server_id":32,"link":"photo_3669565.html","width":130,"caption":"Busker","height":194});
															thumbnails[3673241] = clik.newPhoto({"id":3673241,"src":"DSC_0061_thumb.jpg","galleries_id":224132,"server_id":32,"link":"photo_3673241.html","width":130,"caption":"Passing Strangers","height":87});
															thumbnails[3673244] = clik.newPhoto({"id":3673244,"src":"S__T_4414_thumb.jpg","galleries_id":146992,"server_id":32,"link":"photo_3673244.html","width":130,"caption":"Sarah & Tash","height":196});
															thumbnails[3691797] = clik.newPhoto({"id":3691797,"src":"DSC_3467_copy_thumb.jpg","galleries_id":147126,"server_id":32,"link":"photo_3691797.html","width":130,"caption":"The Rock","height":196});
															thumbnails[3691862] = clik.newPhoto({"id":3691862,"src":"DSC_3526_copy_thumb.jpg","galleries_id":147126,"server_id":32,"link":"photo_3691862.html","width":130,"caption":"Chrysler","height":244});
															thumbnails[3844618] = clik.newPhoto({"id":3844618,"src":"Simon_1-08741_thumb.jpg","galleries_id":233937,"server_id":32,"link":"photo_3844618.html","width":130,"caption":"New Brighton Wirral","height":87});
															thumbnails[3844619] = clik.newPhoto({"id":3844619,"src":"Simon_2-08742_thumb.jpg","galleries_id":233937,"server_id":32,"link":"photo_3844619.html","width":130,"caption":"Thornton Hough Wirral","height":86});
															thumbnails[3844620] = clik.newPhoto({"id":3844620,"src":"Simon_3-08743_thumb.jpg","galleries_id":233937,"server_id":32,"link":"photo_3844620.html","width":130,"caption":"Birkenhead Park Wirral","height":87});
															thumbnails[3845993] = clik.newPhoto({"id":3845993,"src":"ormskirk_thumb.jpg","galleries_id":149075,"server_id":32,"link":"photo_3845993.html","width":130,"caption":"Chaple Gallery Ormskirk","height":104});
															thumbnails[3874169] = clik.newPhoto({"id":3874169,"src":"DSC_0036_thumb.jpg","galleries_id":235418,"server_id":32,"link":"photo_3874169.html","width":130,"caption":"","height":206});
															thumbnails[3874172] = clik.newPhoto({"id":3874172,"src":"DSC_0088_thumb.jpg","galleries_id":235418,"server_id":32,"link":"photo_3874172.html","width":130,"caption":"","height":179});
															thumbnails[3874177] = clik.newPhoto({"id":3874177,"src":"DSC_0104_thumb.jpg","galleries_id":235418,"server_id":32,"link":"photo_3874177.html","width":130,"caption":"","height":174});
															thumbnails[3874181] = clik.newPhoto({"id":3874181,"src":"DSC_0115_thumb.jpg","galleries_id":235418,"server_id":32,"link":"photo_3874181.html","width":130,"caption":"","height":194});
															thumbnails[3874183] = clik.newPhoto({"id":3874183,"src":"DSC_0137a_copy_thumb.jpg","galleries_id":235418,"server_id":32,"link":"photo_3874183.html","width":130,"caption":"","height":194});
															thumbnails[3874294] = clik.newPhoto({"id":3874294,"src":"DSC_0048_thumb.jpg","galleries_id":235418,"server_id":32,"link":"photo_3874294.html","width":130,"caption":"","height":194});
															thumbnails[4415317] = clik.newPhoto({"id":4415317,"src":"199steps_thumb.jpg","galleries_id":147126,"server_id":32,"link":"photo_4415317.html","width":130,"caption":"199 steps","height":196});
															thumbnails[4415355] = clik.newPhoto({"id":4415355,"src":"DSC_5711aa_copy_thumb.jpg","galleries_id":146992,"server_id":32,"link":"photo_4415355.html","width":130,"caption":"fireman 1","height":89});
															thumbnails[4415361] = clik.newPhoto({"id":4415361,"src":"DSC_5717a_copy_thumb.jpg","galleries_id":146992,"server_id":32,"link":"photo_4415361.html","width":130,"caption":"fireman 3","height":246});
															thumbnails[5265924] = clik.newPhoto({"id":5265924,"src":"DSCF0079a_thumb.jpg","galleries_id":149075,"server_id":32,"link":"photo_5265924.html","width":130,"caption":"","height":173});
															thumbnails[5265927] = clik.newPhoto({"id":5265927,"src":"DSCF0080a_thumb.jpg","galleries_id":149075,"server_id":32,"link":"photo_5265927.html","width":130,"caption":"","height":190});
															thumbnails[6019735] = clik.newPhoto({"id":6019735,"src":"_black7808_thumb.jpg","galleries_id":147126,"server_id":32,"link":"photo_6019735.html","width":130,"caption":"Glenfidden Viaduct","height":87});
															thumbnails[6019737] = clik.newPhoto({"id":6019737,"src":"_blackwhite0129_thumb.jpg","galleries_id":147126,"server_id":32,"link":"photo_6019737.html","width":130,"caption":"Buachaille Etive Mor","height":87});
															thumbnails[6019739] = clik.newPhoto({"id":6019739,"src":"_POSS0058_thumb.jpg","galleries_id":147126,"server_id":32,"link":"photo_6019739.html","width":130,"caption":"Aonach Mor","height":87});
															thumbnails[6019741] = clik.newPhoto({"id":6019741,"src":"_POSS7785_thumb.jpg","galleries_id":147126,"server_id":32,"link":"photo_6019741.html","width":130,"caption":"Storm over Aonach Mor","height":94});
															thumbnails[6019760] = clik.newPhoto({"id":6019760,"src":"_POSS7807_copy_thumb.jpg","galleries_id":147126,"server_id":32,"link":"photo_6019760.html","width":130,"caption":"Glenfinnan","height":87});
															thumbnails[6081040] = clik.newPhoto({"id":6081040,"src":"_MOL00831_thumb.jpg","galleries_id":341368,"server_id":32,"link":"photo_6081040.html","width":130,"caption":"Jim","height":87});
															thumbnails[6081042] = clik.newPhoto({"id":6081042,"src":"DSCF0028_thumb.jpg","galleries_id":341368,"server_id":32,"link":"photo_6081042.html","width":130,"caption":"Time out","height":98});
															thumbnails[6081043] = clik.newPhoto({"id":6081043,"src":"DSCF0036_thumb.jpg","galleries_id":341368,"server_id":32,"link":"photo_6081043.html","width":130,"caption":"Emos.","height":98});
															thumbnails[6081045] = clik.newPhoto({"id":6081045,"src":"DSCF0125_thumb.jpg","galleries_id":341368,"server_id":32,"link":"photo_6081045.html","width":130,"caption":"Callum and his Mates.","height":98});
															thumbnails[6081046] = clik.newPhoto({"id":6081046,"src":"DSCF0127_thumb.jpg","galleries_id":341368,"server_id":32,"link":"photo_6081046.html","width":130,"caption":"Callum","height":98});
															thumbnails[6081048] = clik.newPhoto({"id":6081048,"src":"DSCF0272ab_thumb.jpg","galleries_id":341368,"server_id":32,"link":"photo_6081048.html","width":130,"caption":"Gus.","height":72});
															thumbnails[6081049] = clik.newPhoto({"id":6081049,"src":"DSCF0276_thumb.jpg","galleries_id":341368,"server_id":32,"link":"photo_6081049.html","width":130,"caption":"Nadia.","height":98});
															thumbnails[6081050] = clik.newPhoto({"id":6081050,"src":"DSCF0309_thumb.jpg","galleries_id":341368,"server_id":32,"link":"photo_6081050.html","width":130,"caption":"Steve.","height":98});
															thumbnails[6081052] = clik.newPhoto({"id":6081052,"src":"DSCF0340_thumb.jpg","galleries_id":341368,"server_id":32,"link":"photo_6081052.html","width":130,"caption":"Steve Hoy Landlord Ye Hole in Ye Wall.","height":98});
															thumbnails[6081053] = clik.newPhoto({"id":6081053,"src":"DSCF0352aa_thumb.jpg","galleries_id":341368,"server_id":32,"link":"photo_6081053.html","width":130,"caption":"Baz.","height":92});
															thumbnails[6081055] = clik.newPhoto({"id":6081055,"src":"DSCF0456_thumb.jpg","galleries_id":341368,"server_id":32,"link":"photo_6081055.html","width":130,"caption":"Plinthers.","height":98});
															thumbnails[6081056] = clik.newPhoto({"id":6081056,"src":"DSCF0484_thumb.jpg","galleries_id":341368,"server_id":32,"link":"photo_6081056.html","width":130,"caption":"Rat catchers.","height":98});
															thumbnails[6161394] = clik.newPhoto({"id":6161394,"src":"DSC_7480_thumb.jpg","galleries_id":344463,"server_id":32,"link":"photo_6161394.html","width":130,"caption":"","height":196});
															thumbnails[6161395] = clik.newPhoto({"id":6161395,"src":"DSC_7493_thumb.jpg","galleries_id":344463,"server_id":32,"link":"photo_6161395.html","width":130,"caption":"","height":196});
															thumbnails[6161399] = clik.newPhoto({"id":6161399,"src":"DSC_7497_thumb.jpg","galleries_id":344463,"server_id":32,"link":"photo_6161399.html","width":130,"caption":"","height":196});
															thumbnails[6161401] = clik.newPhoto({"id":6161401,"src":"DSC_7504_thumb.jpg","galleries_id":344463,"server_id":32,"link":"photo_6161401.html","width":130,"caption":"","height":196});
															thumbnails[6161403] = clik.newPhoto({"id":6161403,"src":"DSC_7533_thumb.jpg","galleries_id":344463,"server_id":32,"link":"photo_6161403.html","width":130,"caption":"","height":201});
															thumbnails[6161405] = clik.newPhoto({"id":6161405,"src":"DSC_7516_thumb.jpg","galleries_id":344463,"server_id":32,"link":"photo_6161405.html","width":130,"caption":"","height":196});
															thumbnails[6172033] = clik.newPhoto({"id":6172033,"src":"DSC_7478_thumb.jpg","galleries_id":344463,"server_id":32,"link":"photo_6172033.html","width":130,"caption":"","height":196});
															thumbnails[6172037] = clik.newPhoto({"id":6172037,"src":"DSC_7537_thumb.jpg","galleries_id":344463,"server_id":32,"link":"photo_6172037.html","width":130,"caption":"","height":203});
															thumbnails[6172051] = clik.newPhoto({"id":6172051,"src":"DSC_7519_thumb.jpg","galleries_id":344463,"server_id":32,"link":"photo_6172051.html","width":130,"caption":"","height":196});
															thumbnails[6724173] = clik.newPhoto({"id":6724173,"src":"DSC_7799_thumb.jpg","galleries_id":146992,"server_id":32,"link":"photo_6724173.html","width":130,"caption":"Mick Hands","height":200});
															thumbnails[7218169] = clik.newPhoto({"id":7218169,"src":"i00014a_thumb.jpg","galleries_id":147126,"server_id":32,"link":"photo_7218169.html","width":130,"caption":"Hay Bales 1","height":87});
															thumbnails[7218171] = clik.newPhoto({"id":7218171,"src":"i00025aatif_thumb.jpg","galleries_id":147126,"server_id":32,"link":"photo_7218171.html","width":130,"caption":"Telagraph Pole","height":196});
															thumbnails[7218174] = clik.newPhoto({"id":7218174,"src":"i00015_thumb.jpg","galleries_id":147126,"server_id":32,"link":"photo_7218174.html","width":130,"caption":"Hay Bales 2","height":87});
															thumbnails[7713627] = clik.newPhoto({"id":7713627,"src":"Nathan6-16292_thumb.jpg","galleries_id":233937,"server_id":32,"link":"photo_7713627.html","width":130,"caption":"Where did the Night Go","height":128});
															thumbnails[7713629] = clik.newPhoto({"id":7713629,"src":"Nathan5-16288_thumb.jpg","galleries_id":233937,"server_id":32,"link":"photo_7713629.html","width":130,"caption":"Side By Side","height":128});
															thumbnails[7713637] = clik.newPhoto({"id":7713637,"src":"Nathan1-16274_thumb.jpg","galleries_id":233937,"server_id":32,"link":"photo_7713637.html","width":130,"caption":"Follow the Fellow Who Follows A Dream","height":126});
															thumbnails[7745269] = clik.newPhoto({"id":7745269,"src":"DSC_8328_thumb.jpg","galleries_id":418793,"server_id":32,"link":"photo_7745269.html","width":130,"caption":"","height":196});
															thumbnails[7745270] = clik.newPhoto({"id":7745270,"src":"DSC_8335_thumb.jpg","galleries_id":418793,"server_id":32,"link":"photo_7745270.html","width":130,"caption":"","height":196});
															thumbnails[7745273] = clik.newPhoto({"id":7745273,"src":"DSC_8337_copy_thumb.jpg","galleries_id":418793,"server_id":32,"link":"photo_7745273.html","width":130,"caption":"","height":87});
															thumbnails[7745274] = clik.newPhoto({"id":7745274,"src":"DSC_8354_thumb.jpg","galleries_id":418793,"server_id":32,"link":"photo_7745274.html","width":130,"caption":"","height":196});
															thumbnails[7745275] = clik.newPhoto({"id":7745275,"src":"DSC_8365_thumb.jpg","galleries_id":418793,"server_id":32,"link":"photo_7745275.html","width":130,"caption":"","height":87});
															thumbnails[7745276] = clik.newPhoto({"id":7745276,"src":"DSC_8387_thumb.jpg","galleries_id":418793,"server_id":32,"link":"photo_7745276.html","width":130,"caption":"","height":196});
															thumbnails[7752604] = clik.newPhoto({"id":7752604,"src":"nessie_copy_thumb.jpg","galleries_id":147126,"server_id":32,"link":"photo_7752604.html","width":130,"caption":"Nessie","height":119});
															thumbnails[7753775] = clik.newPhoto({"id":7753775,"src":"scotland_copy_thumb.jpg","galleries_id":147126,"server_id":32,"link":"photo_7753775.html","width":130,"caption":"Carn Mor Dearg","height":91});
															thumbnails[8525408] = clik.newPhoto({"id":8525408,"src":"NDC_2260_copy_thumb.jpg","galleries_id":147126,"server_id":32,"link":"photo_8525408.html","width":130,"caption":"Perissa Santorini","height":86});
															thumbnails[8525457] = clik.newPhoto({"id":8525457,"src":"NDC_2499_copy_thumb.jpg","galleries_id":146992,"server_id":32,"link":"photo_8525457.html","width":130,"caption":"old lady of Emporio","height":196});
															thumbnails[8525478] = clik.newPhoto({"id":8525478,"src":"windmilla_copy_thumb.jpg","galleries_id":147126,"server_id":32,"link":"photo_8525478.html","width":130,"caption":"windmill santorini","height":206});
															thumbnails[8694277] = clik.newPhoto({"id":8694277,"src":"hdr_test_thumb.jpg","galleries_id":147126,"server_id":32,"link":"photo_8694277.html","width":130,"caption":"Glenfinnan","height":87});
															thumbnails[8694387] = clik.newPhoto({"id":8694387,"src":"_BET3524-hdr_thumb.jpg","galleries_id":147126,"server_id":32,"link":"photo_8694387.html","width":130,"caption":"Snowdonia","height":60});
															thumbnails[8815156] = clik.newPhoto({"id":8815156,"src":"DSC_8551_copy_thumb.jpg","galleries_id":147126,"server_id":32,"link":"photo_8815156.html","width":130,"caption":"Road to Ffestiniog 2","height":83});
															thumbnails[8815158] = clik.newPhoto({"id":8815158,"src":"DSC_8553_copy_thumb.jpg","galleries_id":147126,"server_id":32,"link":"photo_8815158.html","width":130,"caption":"Road to Ffestiniog 3","height":82});
															thumbnails[8816340] = clik.newPhoto({"id":8816340,"src":"the_vally-8539a2_copy_thumb.jpg","galleries_id":147126,"server_id":32,"link":"photo_8816340.html","width":130,"caption":"The Valley","height":79});
															thumbnails[8923010] = clik.newPhoto({"id":8923010,"src":"YOKO-3715A_thumb.jpg","galleries_id":146992,"server_id":32,"link":"photo_8923010.html","width":130,"caption":"Yoko","height":125});
															thumbnails[8923016] = clik.newPhoto({"id":8923016,"src":"YOKO-3717aaa_thumb.jpg","galleries_id":146992,"server_id":32,"link":"photo_8923016.html","width":130,"caption":"Yoko","height":148});
															thumbnails[8926489] = clik.newPhoto({"id":8926489,"src":"NDC_2754_thumb.jpg","galleries_id":147372,"server_id":32,"link":"photo_8926489.html","width":130,"caption":"Liverbuilding","height":193});
															thumbnails[8926508] = clik.newPhoto({"id":8926508,"src":"NDC_2765_thumb.jpg","galleries_id":147372,"server_id":32,"link":"photo_8926508.html","width":130,"caption":"Titanic Liverbuilding","height":196});
															thumbnails[8926545] = clik.newPhoto({"id":8926545,"src":"NDC_2784_thumb.jpg","galleries_id":147372,"server_id":32,"link":"photo_8926545.html","width":130,"caption":"Museum of Liverpool","height":86});
															thumbnails[8963393] = clik.newPhoto({"id":8963393,"src":"DSC_8611a_thumb.jpg","galleries_id":147126,"server_id":32,"link":"photo_8963393.html","width":130,"caption":"Formby Coast","height":93});
															thumbnails[8963394] = clik.newPhoto({"id":8963394,"src":"DSC_8630_thumb.jpg","galleries_id":147126,"server_id":32,"link":"photo_8963394.html","width":130,"caption":"Formby Point","height":86});
															thumbnails[8963395] = clik.newPhoto({"id":8963395,"src":"DSC_8634_thumb.jpg","galleries_id":147126,"server_id":32,"link":"photo_8963395.html","width":130,"caption":"Formby Footprints","height":86});
															thumbnails[8963396] = clik.newPhoto({"id":8963396,"src":"DSC_8643_thumb.jpg","galleries_id":147126,"server_id":32,"link":"photo_8963396.html","width":130,"caption":"Formby Sand Dunes","height":86});
															thumbnails[8968280] = clik.newPhoto({"id":8968280,"src":"Priest_0717_thumb.jpg","galleries_id":146992,"server_id":32,"link":"photo_8968280.html","width":130,"caption":"","height":196});
															thumbnails[9055175] = clik.newPhoto({"id":9055175,"src":"Road_to_Ffestiniog_1_8554_acopy_thumb.jpg","galleries_id":147126,"server_id":32,"link":"photo_9055175.html","width":130,"caption":"Road to Ffestiniog","height":87});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[147372] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Abstract","link":"gallery_147372.html","maxRecords":0.0,"photoIDs":[2724880.0,2724883.0,2726061.0,2787064.0,2787075.0,8926489.0,8926508.0,8926545.0],"skipIndex":0,"section_code":"gallery","featured_images":2724880.0,"id":147372,"singleSection":false});				  						galleries[233937] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Commissions","link":"gallery_233937.html","maxRecords":0.0,"photoIDs":[3844618.0,3844619.0,3844620.0,7713627.0,7713629.0,7713637.0],"skipIndex":0,"section_code":"gallery","featured_images":"7713637,7713629,7713627,3844620,3844619,3844618","id":233937,"singleSection":false});				  						galleries[149075] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Exhibitions","link":"gallery_149075.html","maxRecords":0.0,"photoIDs":[2270312.0,3845993.0,5265924.0,5265927.0],"skipIndex":0,"section_code":"gallery","featured_images":3845993.0,"id":149075,"singleSection":false});				  						galleries[344463] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"IRONSIDE ROAD","link":"gallery_344463.html","maxRecords":0.0,"photoIDs":[6161394.0,6161395.0,6161399.0,6161401.0,6161403.0,6161405.0,6172033.0,6172037.0,6172051.0],"skipIndex":0,"section_code":"gallery","featured_images":"6172051,6172037,6172033,6161405,6161403,6161401,6161399,6161395,6161394","id":344463,"singleSection":false});				  						galleries[147126] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Landscapes","link":"gallery_147126.html","maxRecords":0.0,"photoIDs":[2727321.0,2787139.0,3691797.0,3691862.0,4415317.0,6019735.0,6019737.0,6019739.0,6019741.0,6019760.0,7218169.0,7218171.0,7218174.0,7752604.0,7753775.0,8525408.0,8525478.0,8694277.0,8694387.0,8815156.0,8815158.0,8816340.0,8963393.0,8963394.0,8963395.0,8963396.0,9055175.0],"skipIndex":0,"section_code":"gallery","featured_images":8694277.0,"id":147126,"singleSection":false});				  						galleries[146992] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portraits","link":"gallery_146992.html","maxRecords":0.0,"photoIDs":[2230746.0,2720125.0,2720833.0,2720984.0,2720995.0,2873114.0,3673244.0,4415355.0,4415361.0,6724173.0,8525457.0,8923010.0,8923016.0,8968280.0],"skipIndex":0,"section_code":"gallery","featured_images":6724173.0,"id":146992,"singleSection":false});				  						galleries[149968] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Royal Visit","link":"gallery_149968.html","maxRecords":0.0,"photoIDs":[2284384.0,2284385.0,2284386.0,2284387.0,2284389.0,2284390.0],"skipIndex":0,"section_code":"gallery","featured_images":2284386.0,"id":149968,"singleSection":false});				  						galleries[418793] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Royal Wedding Street Parties","link":"gallery_418793.html","maxRecords":0.0,"photoIDs":[7745269.0,7745270.0,7745273.0,7745274.0,7745275.0,7745276.0],"skipIndex":0,"section_code":"gallery","featured_images":"7745276,7745275,7745274,7745273,7745270,7745269","id":418793,"singleSection":false});				  						galleries[147242] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Sarah","link":"gallery_147242.html","maxRecords":0.0,"photoIDs":[2235332.0,2235333.0,2235334.0,3637613.0],"skipIndex":0,"section_code":"gallery","featured_images":3637613.0,"id":147242,"singleSection":false});				  						galleries[341368] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Shanghai Expo 2010","link":"gallery_341368.html","maxRecords":0.0,"photoIDs":[6081040.0,6081042.0,6081043.0,6081045.0,6081046.0,6081048.0,6081049.0,6081050.0,6081052.0,6081053.0,6081055.0,6081056.0],"skipIndex":0,"section_code":"gallery","featured_images":"6081056,6081055,6081053,6081052,6081050,6081049,6081048,6081046,6081045,6081043","id":341368,"singleSection":false});				  						galleries[224132] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Street People","link":"gallery_224132.html","maxRecords":0.0,"photoIDs":[2720780.0,2720783.0,3669526.0,3669555.0,3669565.0,3673241.0],"skipIndex":0,"section_code":"gallery","featured_images":3669565.0,"id":224132,"singleSection":false});				  						galleries[235418] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wedding","link":"gallery_235418.html","maxRecords":0.0,"photoIDs":[3874169.0,3874172.0,3874177.0,3874181.0,3874183.0,3874294.0],"skipIndex":0,"section_code":"gallery","featured_images":3874169.0,"id":235418,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '9055175';
imageSets[2] = '8694277,6724173,3874169,3845993,3669565,3637613,2724880,2284386';
imageSets[3] = '9055175,8968280,8963396,8963395,8963394,8963393,8926545,8926508,8926489,8923016,8923010,8816340,8815158,8815156,8694387,8694277,8525478,8525457,8525408,7753775,7752604,7745276,7745275,7745274,7745273,7745270,7745269,7713637,7713629,7713627,7218174,7218171,7218169,6724173,6172051,6172037,6172033,6161405,6161403,6161401,6161399,6161395,6161394,6081056,6081055,6081053,6081052,6081050,6081049,6081048';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/keiths/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/keiths/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/keiths/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/keiths/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/keiths/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/keiths/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/keiths/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/keiths/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/keiths/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/keiths/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/keiths/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/keiths/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/keiths/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/keiths/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/keiths/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/keiths/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/keiths/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/keiths/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/keiths/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/keiths/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/keiths/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/keiths/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/keiths/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/keiths/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/keiths/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/keiths/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/keiths/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 = 'Keith Sweeney 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 Pay Pal</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp += '<select class="paymentlink" name="payment_options_id" onchange="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 += '<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="keith.sweeney@tesco.net">';
					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="keith.sweeney@tesco.net">';
				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;
	}
}

		

