window.thumbnails = {};
															thumbnails[1194045] = clik.newPhoto({"id":1194045,"src":"8_thumb.jpg","galleries_id":85811,"server_id":1,"link":"photo_1194045.html","width":130,"caption":"Fontainebleau Sloper","height":98});
															thumbnails[1194078] = clik.newPhoto({"id":1194078,"src":"22_thumb.jpg","galleries_id":85814,"server_id":1,"link":"photo_1194078.html","width":130,"caption":"Highland Cow","height":104});
															thumbnails[1324514] = clik.newPhoto({"id":1324514,"src":"42_thumb.jpg","galleries_id":84238,"server_id":1,"link":"photo_1324514.html","width":130,"caption":"Cast A Shadow","height":88});
															thumbnails[8292397] = clik.newPhoto({"id":8292397,"src":"1_thumb.jpg","galleries_id":441224,"server_id":1,"link":"photo_8292397.html","width":87,"caption":"M50 3UB  I","height":130});
															thumbnails[1318117] = clik.newPhoto({"id":1318117,"src":"20_thumb.jpg","galleries_id":85811,"server_id":1,"link":"photo_1318117.html","width":130,"caption":"Climber Abstract","height":130});
															thumbnails[1324516] = clik.newPhoto({"id":1324516,"src":"14_1_thumb.jpg","galleries_id":84238,"server_id":1,"link":"photo_1324516.html","width":130,"caption":"Red Arrows","height":130});
															thumbnails[6222560] = clik.newPhoto({"id":6222560,"src":"12_thumb.jpg","galleries_id":88078,"server_id":1,"link":"photo_6222560.html","width":130,"caption":"Cloud Catching","height":130});
															thumbnails[6621831] = clik.newPhoto({"id":6621831,"src":"horse2_thumb.jpg","galleries_id":85814,"server_id":1,"link":"photo_6621831.html","width":130,"caption":"White Horse","height":86});
															thumbnails[8292400] = clik.newPhoto({"id":8292400,"src":"2_thumb.jpg","galleries_id":441224,"server_id":1,"link":"photo_8292400.html","width":87,"caption":"M17 1TZ","height":130});
															thumbnails[1194098] = clik.newPhoto({"id":1194098,"src":"61_thumb.jpg","galleries_id":85814,"server_id":1,"link":"photo_1194098.html","width":130,"caption":"Mallard","height":88});
															thumbnails[1324511] = clik.newPhoto({"id":1324511,"src":"43_thumb.jpg","galleries_id":84238,"server_id":1,"link":"photo_1324511.html","width":130,"caption":"Lake Tekapo","height":87});
															thumbnails[6222310] = clik.newPhoto({"id":6222310,"src":"13_6F7E99EA-1EC9-D45B-1C97D00264E3CE8F_thumb.jpg","galleries_id":85811,"server_id":1,"link":"photo_6222310.html","width":87,"caption":"L'Apinerie","height":130});
															thumbnails[8292402] = clik.newPhoto({"id":8292402,"src":"3_thumb.jpg","galleries_id":441224,"server_id":1,"link":"photo_8292402.html","width":87,"caption":"M3 1BD  I","height":130});
															thumbnails[1194103] = clik.newPhoto({"id":1194103,"src":"11_thumb.jpg","galleries_id":85814,"server_id":1,"link":"photo_1194103.html","width":130,"caption":"Squirrel","height":86});
															thumbnails[1213701] = clik.newPhoto({"id":1213701,"src":"21_6FB56959-1EC9-D45B-1C762778D2812D0C_thumb.jpg","galleries_id":84238,"server_id":1,"link":"photo_1213701.html","width":130,"caption":"By the canal","height":98});
															thumbnails[6222312] = clik.newPhoto({"id":6222312,"src":"21_6F8161C5-1EC9-D45B-1C8DC79D906439F2_thumb.jpg","galleries_id":85811,"server_id":1,"link":"photo_6222312.html","width":130,"caption":"Gargantoit","height":86});
															thumbnails[6222579] = clik.newPhoto({"id":6222579,"src":"21_6FE151A5-1EC9-D45B-1CB2AC3A52E25C3A_thumb.jpg","galleries_id":88078,"server_id":1,"link":"photo_6222579.html","width":130,"caption":"Ripples","height":86});
															thumbnails[8292418] = clik.newPhoto({"id":8292418,"src":"4_thumb.jpg","galleries_id":441224,"server_id":1,"link":"photo_8292418.html","width":130,"caption":"M50 2HE  I","height":87});
															thumbnails[1194020] = clik.newPhoto({"id":1194020,"src":"6_thumb.jpg","galleries_id":84238,"server_id":1,"link":"photo_1194020.html","width":130,"caption":"Baldwin Street","height":86});
															thumbnails[1194052] = clik.newPhoto({"id":1194052,"src":"21_thumb.jpg","galleries_id":85811,"server_id":1,"link":"photo_1194052.html","width":130,"caption":"Aegialis","height":92});
															thumbnails[1324573] = clik.newPhoto({"id":1324573,"src":"26_thumb.jpg","galleries_id":85814,"server_id":1,"link":"photo_1324573.html","width":130,"caption":"Black Swans","height":87});
															thumbnails[8292420] = clik.newPhoto({"id":8292420,"src":"5_thumb.jpg","galleries_id":441224,"server_id":1,"link":"photo_8292420.html","width":130,"caption":"M50 3AZ  IV","height":86});
															thumbnails[1231906] = clik.newPhoto({"id":1231906,"src":"72_thumb.jpg","galleries_id":85814,"server_id":1,"link":"photo_1231906.html","width":130,"caption":"White Horses","height":88});
															thumbnails[6222314] = clik.newPhoto({"id":6222314,"src":"23_6F845236-1EC9-D45B-1C4E9C24237BB5ED_thumb.jpg","galleries_id":85811,"server_id":1,"link":"photo_6222314.html","width":130,"caption":"Montdauphin","height":87});
															thumbnails[6222463] = clik.newPhoto({"id":6222463,"src":"23_6FB6ADB0-1EC9-D45B-1C88D8F441CDBDE1_thumb.jpg","galleries_id":84238,"server_id":1,"link":"photo_6222463.html","width":130,"caption":"Honfleur Reflections","height":98});
															thumbnails[8292430] = clik.newPhoto({"id":8292430,"src":"6_C2E5FAAF-1EC9-D45B-1CACFB20D409BDCE_thumb.jpg","galleries_id":441224,"server_id":1,"link":"photo_8292430.html","width":130,"caption":"M15 6JH","height":87});
															thumbnails[1194016] = clik.newPhoto({"id":1194016,"src":"7_thumb.jpg","galleries_id":84238,"server_id":1,"link":"photo_1194016.html","width":86,"caption":"Aoraki","height":130});
															thumbnails[1213797] = clik.newPhoto({"id":1213797,"src":"32_thumb.jpg","galleries_id":85814,"server_id":1,"link":"photo_1213797.html","width":130,"caption":"Kea and Pylon","height":127});
															thumbnails[1318105] = clik.newPhoto({"id":1318105,"src":"116_thumb.jpg","galleries_id":85811,"server_id":1,"link":"photo_1318105.html","width":87,"caption":"Cutting Loose","height":130});
															thumbnails[6222596] = clik.newPhoto({"id":6222596,"src":"31_thumb.jpg","galleries_id":88078,"server_id":1,"link":"photo_6222596.html","width":86,"caption":"Over the road","height":130});
															thumbnails[8292455] = clik.newPhoto({"id":8292455,"src":"10_thumb.jpg","galleries_id":441224,"server_id":1,"link":"photo_8292455.html","width":130,"caption":"M1 2PG","height":54});
															thumbnails[1194085] = clik.newPhoto({"id":1194085,"src":"41_thumb.jpg","galleries_id":85814,"server_id":1,"link":"photo_1194085.html","width":130,"caption":"Open","height":104});
															thumbnails[1213728] = clik.newPhoto({"id":1213728,"src":"102_thumb.jpg","galleries_id":85811,"server_id":1,"link":"photo_1213728.html","width":86,"caption":"Technical Master","height":130});
															thumbnails[1231785] = clik.newPhoto({"id":1231785,"src":"25_thumb.jpg","galleries_id":84238,"server_id":1,"link":"photo_1231785.html","width":130,"caption":"Spittle Hill","height":86});
															thumbnails[8637326] = clik.newPhoto({"id":8637326,"src":"32_M50_2HE_II_thumb.jpg","galleries_id":441224,"server_id":1,"link":"photo_8637326.html","width":130,"caption":"M50 2HE  II","height":98});
															thumbnails[1318099] = clik.newPhoto({"id":1318099,"src":"191_thumb.jpg","galleries_id":85811,"server_id":1,"link":"photo_1318099.html","width":87,"caption":"Hanging Around","height":130});
															thumbnails[1324519] = clik.newPhoto({"id":1324519,"src":"82_thumb.jpg","galleries_id":84238,"server_id":1,"link":"photo_1324519.html","width":86,"caption":"Long White Cloud","height":130});
															thumbnails[6222431] = clik.newPhoto({"id":6222431,"src":"23_6FA66BA4-1EC9-D45B-1C7899815390FBAD_thumb.jpg","galleries_id":85814,"server_id":1,"link":"photo_6222431.html","width":130,"caption":"Penny","height":130});
															thumbnails[8292465] = clik.newPhoto({"id":8292465,"src":"12_5D954959-1EC9-DFB6-0998192C9FEF05C0_thumb.jpg","galleries_id":441224,"server_id":1,"link":"photo_8292465.html","width":130,"caption":"M1 2GH","height":54});
															thumbnails[6621656] = clik.newPhoto({"id":6621656,"src":"36_thumb.jpg","galleries_id":85811,"server_id":1,"link":"photo_6621656.html","width":86,"caption":"Cratcliff","height":130});
															thumbnails[6621667] = clik.newPhoto({"id":6621667,"src":"37_thumb.jpg","galleries_id":85811,"server_id":1,"link":"photo_6621667.html","width":130,"caption":"Razor Roof Traverse","height":98});
															thumbnails[6621677] = clik.newPhoto({"id":6621677,"src":"38_thumb.jpg","galleries_id":85811,"server_id":1,"link":"photo_6621677.html","width":86,"caption":"Carnage","height":130});
															thumbnails[1194057] = clik.newPhoto({"id":1194057,"src":"41_35A3A192-24E8-5EC4-4F12FE312FD1A1DB_thumb.jpg","galleries_id":85811,"server_id":1,"link":"photo_1194057.html","width":130,"caption":"Wimberry at night","height":98});
															thumbnails[1194124] = clik.newPhoto({"id":1194124,"src":"101_thumb.jpg","galleries_id":84238,"server_id":1,"link":"photo_1194124.html","width":130,"caption":"Places to go","height":86});
															thumbnails[8292438] = clik.newPhoto({"id":8292438,"src":"7_C2E6E7FD-1EC9-D45B-1CEAF989960C4388_thumb.jpg","galleries_id":441224,"server_id":1,"link":"photo_8292438.html","width":87,"caption":"M2 5PD","height":130});
															thumbnails[1231783] = clik.newPhoto({"id":1231783,"src":"103_thumb.jpg","galleries_id":84238,"server_id":1,"link":"photo_1231783.html","width":130,"caption":"Millenium Bridge","height":86});
															thumbnails[6222319] = clik.newPhoto({"id":6222319,"src":"42_35A526BA-24E8-5EC4-4F93B6FE3078303B_thumb.jpg","galleries_id":85811,"server_id":1,"link":"photo_6222319.html","width":130,"caption":"Fish Dish","height":98});
															thumbnails[6222699] = clik.newPhoto({"id":6222699,"src":"42_6FEE9054-1EC9-D45B-1CF869FC446B305C_thumb.jpg","galleries_id":88078,"server_id":1,"link":"photo_6222699.html","width":130,"caption":"Square Stair","height":130});
															thumbnails[8292445] = clik.newPhoto({"id":8292445,"src":"8_C2E8D47C-1EC9-D45B-1CE08CA62B4EE294_thumb.jpg","galleries_id":441224,"server_id":1,"link":"photo_8292445.html","width":130,"caption":"M50 3AZ","height":98});
															thumbnails[6222328] = clik.newPhoto({"id":6222328,"src":"43_35A67D05-24E8-5EC4-4FE583D47ADD9737_thumb.jpg","galleries_id":85811,"server_id":1,"link":"photo_6222328.html","width":130,"caption":"Earpache","height":98});
															thumbnails[6222466] = clik.newPhoto({"id":6222466,"src":"43_6FB8D7F3-1EC9-D45B-1C2E06C66B22558E_thumb.jpg","galleries_id":84238,"server_id":1,"link":"photo_6222466.html","width":130,"caption":"Eilean Donan","height":87});
															thumbnails[8292449] = clik.newPhoto({"id":8292449,"src":"43_M1_5QS_thumb.jpg","galleries_id":441224,"server_id":1,"link":"photo_8292449.html","width":87,"caption":"M1 5QS","height":130});
															thumbnails[6621626] = clik.newPhoto({"id":6621626,"src":"46_thumb.jpg","galleries_id":84238,"server_id":1,"link":"photo_6621626.html","width":130,"caption":"Another Place","height":86});
															thumbnails[6621633] = clik.newPhoto({"id":6621633,"src":"47_thumb.jpg","galleries_id":84238,"server_id":1,"link":"photo_6621633.html","width":90,"caption":"Checkpoint Charlie","height":130});
															thumbnails[6621643] = clik.newPhoto({"id":6621643,"src":"48_thumb.jpg","galleries_id":84238,"server_id":1,"link":"photo_6621643.html","width":130,"caption":"The evening wind","height":87});
															thumbnails[6222380] = clik.newPhoto({"id":6222380,"src":"51_thumb.jpg","galleries_id":85811,"server_id":1,"link":"photo_6222380.html","width":98,"caption":"Neverland","height":130});
															thumbnails[6222728] = clik.newPhoto({"id":6222728,"src":"512_thumb.jpg","galleries_id":88078,"server_id":1,"link":"photo_6222728.html","width":130,"caption":"Cross the bridge","height":98});
															thumbnails[8637329] = clik.newPhoto({"id":8637329,"src":"51_M50_3AH_thumb.jpg","galleries_id":441224,"server_id":1,"link":"photo_8637329.html","width":130,"caption":"M17 1HH","height":98});
															thumbnails[1320343] = clik.newPhoto({"id":1320343,"src":"124_thumb.jpg","galleries_id":88078,"server_id":1,"link":"photo_1320343.html","width":130,"caption":"Diagonals","height":87});
															thumbnails[6222393] = clik.newPhoto({"id":6222393,"src":"52_thumb.jpg","galleries_id":85811,"server_id":1,"link":"photo_6222393.html","width":86,"caption":"Winter in the Peak","height":130});
															thumbnails[8637331] = clik.newPhoto({"id":8637331,"src":"52_M1_2PG_II_thumb.jpg","galleries_id":441224,"server_id":1,"link":"photo_8637331.html","width":130,"caption":"M1 2PG  II","height":87});
															thumbnails[1231773] = clik.newPhoto({"id":1231773,"src":"112_thumb.jpg","galleries_id":88078,"server_id":1,"link":"photo_1231773.html","width":130,"caption":"Perspective","height":86});
															thumbnails[6222397] = clik.newPhoto({"id":6222397,"src":"53_thumb.jpg","galleries_id":85811,"server_id":1,"link":"photo_6222397.html","width":97,"caption":"Total Eclipse","height":130});
															thumbnails[8292461] = clik.newPhoto({"id":8292461,"src":"11_C2ED1559-1EC9-D45B-1C8C117729DC3821_thumb.jpg","galleries_id":441224,"server_id":1,"link":"photo_8292461.html","width":130,"caption":"M3 3AP","height":87});
															thumbnails[1318120] = clik.newPhoto({"id":1318120,"src":"211_thumb.jpg","galleries_id":85811,"server_id":1,"link":"photo_1318120.html","width":98,"caption":"Resting","height":130});
															thumbnails[8637334] = clik.newPhoto({"id":8637334,"src":"61_M50_3AZ_II_thumb.jpg","galleries_id":441224,"server_id":1,"link":"photo_8637334.html","width":130,"caption":"M50 3AZ  II","height":87});
															thumbnails[6222398] = clik.newPhoto({"id":6222398,"src":"62_thumb.jpg","galleries_id":85811,"server_id":1,"link":"photo_6222398.html","width":87,"caption":"Cairn","height":130});
															thumbnails[8637337] = clik.newPhoto({"id":8637337,"src":"62_M50_3UB_II_thumb.jpg","galleries_id":441224,"server_id":1,"link":"photo_8637337.html","width":130,"caption":"M50 3UB  II","height":98});
															thumbnails[1194109] = clik.newPhoto({"id":1194109,"src":"14_thumb.jpg","galleries_id":85811,"server_id":1,"link":"photo_1194109.html","width":130,"caption":"Finished!","height":85});
															thumbnails[6222480] = clik.newPhoto({"id":6222480,"src":"63_thumb.jpg","galleries_id":84238,"server_id":1,"link":"photo_6222480.html","width":130,"caption":"In a field","height":98});
															thumbnails[6222744] = clik.newPhoto({"id":6222744,"src":"631_thumb.jpg","galleries_id":88078,"server_id":1,"link":"photo_6222744.html","width":130,"caption":"Let's dance","height":86});
															thumbnails[8637339] = clik.newPhoto({"id":8637339,"src":"63_M50_3AZ_I_thumb.jpg","galleries_id":441224,"server_id":1,"link":"photo_8637339.html","width":130,"caption":"M50 3AZ  I","height":87});
															thumbnails[1213779] = clik.newPhoto({"id":1213779,"src":"151_thumb.jpg","galleries_id":85811,"server_id":1,"link":"photo_1213779.html","width":130,"caption":"Evening Bouldering","height":93});
															thumbnails[1343273] = clik.newPhoto({"id":1343273,"src":"251_thumb.jpg","galleries_id":84238,"server_id":1,"link":"photo_1343273.html","width":130,"caption":"Milford Sound","height":130});
															thumbnails[6222765] = clik.newPhoto({"id":6222765,"src":"72_7001CCFA-1EC9-D45B-1CD8C54DE3DAD123_thumb.jpg","galleries_id":88078,"server_id":1,"link":"photo_6222765.html","width":130,"caption":"Swimming pool","height":98});
															thumbnails[8637368] = clik.newPhoto({"id":8637368,"src":"71_M50_2TJ_thumb.jpg","galleries_id":441224,"server_id":1,"link":"photo_8637368.html","width":87,"caption":"M50 2TJ","height":130});
															thumbnails[1231801] = clik.newPhoto({"id":1231801,"src":"121_thumb.jpg","galleries_id":88078,"server_id":1,"link":"photo_1231801.html","width":88,"caption":"A drop in the ocean","height":130});
															thumbnails[1318096] = clik.newPhoto({"id":1318096,"src":"181_thumb.jpg","galleries_id":85811,"server_id":1,"link":"photo_1318096.html","width":67,"caption":"Dropping In","height":160});
															thumbnails[6222485] = clik.newPhoto({"id":6222485,"src":"82_6FC26D71-1EC9-D45B-1CEBA35167CA458A_thumb.jpg","galleries_id":84238,"server_id":1,"link":"photo_6222485.html","width":130,"caption":"Into the forest","height":87});
															thumbnails[8637370] = clik.newPhoto({"id":8637370,"src":"72_M3_1BD_II_thumb.jpg","galleries_id":441224,"server_id":1,"link":"photo_8637370.html","width":130,"caption":"M3 1BD  II","height":130});
															thumbnails[1318142] = clik.newPhoto({"id":1318142,"src":"141_thumb.jpg","galleries_id":85811,"server_id":1,"link":"photo_1318142.html","width":130,"caption":"The Cave","height":86});
															thumbnails[6222771] = clik.newPhoto({"id":6222771,"src":"81_70047025-1EC9-D45B-1CE46C157CB0082E_thumb.jpg","galleries_id":88078,"server_id":1,"link":"photo_6222771.html","width":87,"caption":"Window framed","height":130});
															thumbnails[8637372] = clik.newPhoto({"id":8637372,"src":"73_M3_4NA_thumb.jpg","galleries_id":441224,"server_id":1,"link":"photo_8637372.html","width":87,"caption":"M3 4NA","height":130});
															thumbnails[1194065] = clik.newPhoto({"id":1194065,"src":"13_thumb.jpg","galleries_id":85811,"server_id":1,"link":"photo_1194065.html","width":86,"caption":"Bouldering at night","height":130});
															thumbnails[1324525] = clik.newPhoto({"id":1324525,"src":"132_thumb.jpg","galleries_id":88078,"server_id":1,"link":"photo_1324525.html","width":86,"caption":"Tate Modern","height":130});
															thumbnails[6222482] = clik.newPhoto({"id":6222482,"src":"73_thumb.jpg","galleries_id":84238,"server_id":1,"link":"photo_6222482.html","width":130,"caption":"Castle at night","height":86});
															thumbnails[8637375] = clik.newPhoto({"id":8637375,"src":"81_M3_4LQ_thumb.jpg","galleries_id":441224,"server_id":1,"link":"photo_8637375.html","width":87,"caption":"M3 4LQ","height":130});
															thumbnails[6222414] = clik.newPhoto({"id":6222414,"src":"82_6FA07CD8-1EC9-D45B-1CCB26116DAEF367_thumb.jpg","galleries_id":85811,"server_id":1,"link":"photo_6222414.html","width":130,"caption":"The next move...","height":98});
															thumbnails[6222783] = clik.newPhoto({"id":6222783,"src":"82_700823B6-1EC9-D45B-1C022CCED9296A5F_thumb.jpg","galleries_id":88078,"server_id":1,"link":"photo_6222783.html","width":130,"caption":"Waves","height":86});
															thumbnails[8637379] = clik.newPhoto({"id":8637379,"src":"82_M3_3ER_thumb.jpg","galleries_id":441224,"server_id":1,"link":"photo_8637379.html","width":87,"caption":"M3 3ER","height":130});
															thumbnails[1318136] = clik.newPhoto({"id":1318136,"src":"162_thumb.jpg","galleries_id":85811,"server_id":1,"link":"photo_1318136.html","width":87,"caption":"Buckstone Dyno","height":130});
															thumbnails[6222494] = clik.newPhoto({"id":6222494,"src":"83_6FC6EAAC-1EC9-D45B-1CCD6F4D0E21661A_thumb.jpg","galleries_id":84238,"server_id":1,"link":"photo_6222494.html","width":87,"caption":"Morning Fog","height":130});
															thumbnails[8637381] = clik.newPhoto({"id":8637381,"src":"83_M60_9DJ_thumb.jpg","galleries_id":441224,"server_id":1,"link":"photo_8637381.html","width":87,"caption":"M60 9DJ","height":130});
															thumbnails[6222518] = clik.newPhoto({"id":6222518,"src":"91_7369708B-24E8-5EC4-4F17FA2BBD192B47_thumb.jpg","galleries_id":84238,"server_id":1,"link":"photo_6222518.html","width":130,"caption":"Sunset Island","height":87});
															thumbnails[2050320] = clik.newPhoto({"id":2050320,"src":"los gatos_thumb.jpg","galleries_id":88078,"server_id":1,"link":"photo_2050320.html","width":130,"caption":"Los Gatos","height":101});
															thumbnails[2050330] = clik.newPhoto({"id":2050330,"src":"Te Puna Matauranga o Aotearoa_thumb.jpg","galleries_id":88078,"server_id":1,"link":"photo_2050330.html","width":130,"caption":"Te Puna Matauranga o Aotearoa","height":87});
															thumbnails[6222787] = clik.newPhoto({"id":6222787,"src":"101_700A5A3C-1EC9-D45B-1C3A1FE608A0051E_thumb.jpg","galleries_id":88078,"server_id":1,"link":"photo_6222787.html","width":98,"caption":"Saturn's Rings","height":130});
															thumbnails[6222791] = clik.newPhoto({"id":6222791,"src":"102_700B1E76-1EC9-D45B-1C704A3F292FBFB9_thumb.jpg","galleries_id":88078,"server_id":1,"link":"photo_6222791.html","width":98,"caption":"Staircase","height":130});
															thumbnails[6222792] = clik.newPhoto({"id":6222792,"src":"103_700C0616-1EC9-D45B-1CF331FE65F34F67_thumb.jpg","galleries_id":88078,"server_id":1,"link":"photo_6222792.html","width":54,"caption":"A Brief History","height":130});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[441224] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"'abstracts to architecture'","link":"gallery_441224.html","maxRecords":0.0,"photoIDs":[8292397.0,8292400.0,8292402.0,8292418.0,8292420.0,8292430.0,8292455.0,8637326.0,8292465.0,8292438.0,8292445.0,8292449.0,8637329.0,8637331.0,8292461.0,8637334.0,8637337.0,8637339.0,8637368.0,8637370.0,8637372.0,8637375.0,8637379.0,8637381.0],"skipIndex":0,"section_code":"gallery","featured_images":"8637381,8637379,8637375,8637372,8637370,8637368,8637339,8637337,8637334,8637331","id":441224,"singleSection":false});				  						galleries[85811] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Climbing","link":"gallery_85811.html","maxRecords":0.0,"photoIDs":[1194045.0,1318117.0,6222310.0,6222312.0,1194052.0,6222314.0,1318105.0,1213728.0,1318099.0,6621656.0,6621667.0,6621677.0,1194057.0,6222319.0,6222328.0,6222380.0,6222393.0,6222397.0,1318120.0,6222398.0,1194109.0,1213779.0,1318096.0,1318142.0,1194065.0,6222414.0,1318136.0],"skipIndex":0,"section_code":"gallery","featured_images":"1194109,1194052,1194045","id":85811,"singleSection":false});				  						galleries[84238] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Travels and Landscapes","link":"gallery_84238.html","maxRecords":0.0,"photoIDs":[1324514.0,1324516.0,1324511.0,1213701.0,1194020.0,6222463.0,1194016.0,1231785.0,1324519.0,1194124.0,1231783.0,6222466.0,6621626.0,6621633.0,6621643.0,6222480.0,1343273.0,6222485.0,6222482.0,6222494.0,6222518.0],"skipIndex":0,"section_code":"gallery","featured_images":"6222466,1324516,1324514,1324511,1194124,1194020","id":84238,"singleSection":false});				  						galleries[85814] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Nature","link":"gallery_85814.html","maxRecords":0.0,"photoIDs":[1194078.0,6621831.0,1194098.0,1194103.0,1324573.0,1231906.0,1213797.0,1194085.0,6222431.0],"skipIndex":0,"section_code":"gallery","featured_images":"1324573,1194103,1194085,1194078","id":85814,"singleSection":false});				  						galleries[88078] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Random Musings","link":"gallery_88078.html","maxRecords":0.0,"photoIDs":[6222560.0,6222579.0,6222596.0,6222699.0,6222728.0,1320343.0,1231773.0,6222744.0,6222765.0,1231801.0,6222771.0,1324525.0,6222783.0,2050320.0,2050330.0,6222787.0,6222791.0,6222792.0],"skipIndex":0,"section_code":"gallery","featured_images":2050330.0,"id":88078,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '1324514,1194078,1194045,1324516,1318117,1194052,1213797,1194085,1194124,6222466,1194109,2050330';
imageSets[2] = '1324514,1194078,1194045,1324516,1324511,1194103,1324573,1194052,1194020,1194085,1194124,6222466,1194109,2050330';
imageSets[3] = '1324514,1194078,1324516,1318117,1324511,1213701,1194103,1194052,1231906,1318105,1213797,1231785,1213728,1194085,1324519,1318099,1194124,1231783,1320343,1231773,1318120,1194109,1343273,1213779,1318096,1231801,1318142,1324525,1194065,1318136,2050320,2050330';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/stuartjmcneil/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/stuartjmcneil/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/stuartjmcneil/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/stuartjmcneil/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/stuartjmcneil/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/stuartjmcneil/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/stuartjmcneil/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/stuartjmcneil/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/stuartjmcneil/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/stuartjmcneil/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/stuartjmcneil/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/stuartjmcneil/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/stuartjmcneil/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/stuartjmcneil/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/stuartjmcneil/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/stuartjmcneil/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/stuartjmcneil/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/stuartjmcneil/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/stuartjmcneil/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/stuartjmcneil/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/stuartjmcneil/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/stuartjmcneil/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/stuartjmcneil/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/stuartjmcneil/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/stuartjmcneil/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/stuartjmcneil/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/stuartjmcneil/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 = 'stuart mcneil 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 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="stuartjmcneil@gmail.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="stuartjmcneil@gmail.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;
	}
}

			

