window.thumbnails = {};
															thumbnails[6870260] = clik.newPhoto({"id":6870260,"src":"_MG_2317_thumb.jpg","galleries_id":260688,"server_id":18,"link":"photo_6870260.html","width":130,"caption":"","height":195});
															thumbnails[6870300] = clik.newPhoto({"id":6870300,"src":"_MG_2367_thumb.jpg","galleries_id":260688,"server_id":18,"link":"photo_6870300.html","width":130,"caption":"","height":195});
															thumbnails[6870305] = clik.newPhoto({"id":6870305,"src":"_MG_2613_thumb.jpg","galleries_id":260688,"server_id":18,"link":"photo_6870305.html","width":130,"caption":"","height":195});
															thumbnails[6870307] = clik.newPhoto({"id":6870307,"src":"_MG_2638-01_thumb.jpg","galleries_id":260688,"server_id":18,"link":"photo_6870307.html","width":130,"caption":"","height":152});
															thumbnails[6870313] = clik.newPhoto({"id":6870313,"src":"_MG_3075_1_thumb.jpg","galleries_id":260688,"server_id":18,"link":"photo_6870313.html","width":130,"caption":"","height":163});
															thumbnails[4463270] = clik.newPhoto({"id":4463270,"src":"Jump_thumb.jpg","galleries_id":260688,"server_id":18,"link":"photo_4463270.html","width":130,"caption":"Jumping Girls","height":88});
															thumbnails[4463280] = clik.newPhoto({"id":4463280,"src":"Sitting_thumb.jpg","galleries_id":260688,"server_id":18,"link":"photo_4463280.html","width":130,"caption":"Sitting","height":86});
															thumbnails[4463292] = clik.newPhoto({"id":4463292,"src":"Emily01_thumb.jpg","galleries_id":260688,"server_id":18,"link":"photo_4463292.html","width":130,"caption":"Emily Black & White","height":195});
															thumbnails[4463363] = clik.newPhoto({"id":4463363,"src":"emily02_thumb.jpg","galleries_id":260688,"server_id":18,"link":"photo_4463363.html","width":130,"caption":"Emily","height":195});
															thumbnails[4463364] = clik.newPhoto({"id":4463364,"src":"girls_thumb.jpg","galleries_id":260688,"server_id":18,"link":"photo_4463364.html","width":130,"caption":"The Girls","height":181});
															thumbnails[4463365] = clik.newPhoto({"id":4463365,"src":"laura_thumb.jpg","galleries_id":260688,"server_id":18,"link":"photo_4463365.html","width":130,"caption":"Laura","height":130});
															thumbnails[4463366] = clik.newPhoto({"id":4463366,"src":"Lauren_thumb.jpg","galleries_id":260688,"server_id":18,"link":"photo_4463366.html","width":130,"caption":"Lauren","height":196});
															thumbnails[4463367] = clik.newPhoto({"id":4463367,"src":"libby_thumb.jpg","galleries_id":260688,"server_id":18,"link":"photo_4463367.html","width":130,"caption":"Mother","height":182});
															thumbnails[4463368] = clik.newPhoto({"id":4463368,"src":"arther_thumb.jpg","galleries_id":260688,"server_id":18,"link":"photo_4463368.html","width":130,"caption":"Trixie","height":87});
															thumbnails[4463370] = clik.newPhoto({"id":4463370,"src":"Luke_thumb.jpg","galleries_id":260688,"server_id":18,"link":"photo_4463370.html","width":130,"caption":"Luke","height":195});
															thumbnails[4463405] = clik.newPhoto({"id":4463405,"src":"artsale_thumb.jpg","galleries_id":260689,"server_id":18,"link":"photo_4463405.html","width":130,"caption":"Art Sale","height":92});
															thumbnails[4463415] = clik.newPhoto({"id":4463415,"src":"blackpond_thumb.jpg","galleries_id":260689,"server_id":18,"link":"photo_4463415.html","width":130,"caption":"The Black Pond","height":86});
															thumbnails[4463420] = clik.newPhoto({"id":4463420,"src":"crane_thumb.jpg","galleries_id":260689,"server_id":18,"link":"photo_4463420.html","width":130,"caption":"The Crane","height":90});
															thumbnails[4463425] = clik.newPhoto({"id":4463425,"src":"IncomingShowers_thumb.jpg","galleries_id":260689,"server_id":18,"link":"photo_4463425.html","width":130,"caption":"Incoming Showers","height":86});
															thumbnails[4463443] = clik.newPhoto({"id":4463443,"src":"KingstonBridge_thumb.jpg","galleries_id":260689,"server_id":18,"link":"photo_4463443.html","width":130,"caption":"Kingston Bridge Surrey","height":127});
															thumbnails[4463573] = clik.newPhoto({"id":4463573,"src":"lock_thumb.jpg","galleries_id":260689,"server_id":18,"link":"photo_4463573.html","width":130,"caption":"The Lock","height":86});
															thumbnails[4463577] = clik.newPhoto({"id":4463577,"src":"sailing_thumb.jpg","galleries_id":260689,"server_id":18,"link":"photo_4463577.html","width":130,"caption":"Sailing","height":86});
															thumbnails[4463578] = clik.newPhoto({"id":4463578,"src":"SailngHDR_thumb.jpg","galleries_id":260689,"server_id":18,"link":"photo_4463578.html","width":130,"caption":"Sailing02","height":86});
															thumbnails[4463583] = clik.newPhoto({"id":4463583,"src":"ShiningThrough_thumb.jpg","galleries_id":260689,"server_id":18,"link":"photo_4463583.html","width":130,"caption":"Shining Through","height":106});
															thumbnails[4463585] = clik.newPhoto({"id":4463585,"src":"StMartherths_thumb.jpg","galleries_id":260689,"server_id":18,"link":"photo_4463585.html","width":130,"caption":"St Marthers Church","height":86});
															thumbnails[4463591] = clik.newPhoto({"id":4463591,"src":"stones_thumb.jpg","galleries_id":260689,"server_id":18,"link":"photo_4463591.html","width":130,"caption":"Stepping Stones","height":87});
															thumbnails[4463594] = clik.newPhoto({"id":4463594,"src":"Tower_thumb.jpg","galleries_id":260689,"server_id":18,"link":"photo_4463594.html","width":130,"caption":"The Tower","height":195});
															thumbnails[4463599] = clik.newPhoto({"id":4463599,"src":"Whereismy_Maiden_thumb.jpg","galleries_id":260689,"server_id":18,"link":"photo_4463599.html","width":130,"caption":"Folly Tower","height":195});
															thumbnails[4463630] = clik.newPhoto({"id":4463630,"src":"_MG_0340_thumb.jpg","galleries_id":260728,"server_id":18,"link":"photo_4463630.html","width":130,"caption":"Laura","height":195});
															thumbnails[4463633] = clik.newPhoto({"id":4463633,"src":"_MG_0786-01_thumb.jpg","galleries_id":260728,"server_id":18,"link":"photo_4463633.html","width":130,"caption":"Model, Angel Dust, 1","height":195});
															thumbnails[4463639] = clik.newPhoto({"id":4463639,"src":"_MG_0823-02_thumb.jpg","galleries_id":260728,"server_id":18,"link":"photo_4463639.html","width":130,"caption":"Model, Angel Dust","height":87});
															thumbnails[4463640] = clik.newPhoto({"id":4463640,"src":"_MG_0864-01_thumb.jpg","galleries_id":260728,"server_id":18,"link":"photo_4463640.html","width":130,"caption":"Model, Angel Dust, 3","height":193});
															thumbnails[4463642] = clik.newPhoto({"id":4463642,"src":"_MG_1187-01_thumb.jpg","galleries_id":260728,"server_id":18,"link":"photo_4463642.html","width":130,"caption":"Model, Clair","height":151});
															thumbnails[4463644] = clik.newPhoto({"id":4463644,"src":"_MG_2678_04_thumb.jpg","galleries_id":260728,"server_id":18,"link":"photo_4463644.html","width":130,"caption":"Model, Ruth Aurelia","height":151});
															thumbnails[4463647] = clik.newPhoto({"id":4463647,"src":"_MG_3160_thumb.jpg","galleries_id":260728,"server_id":18,"link":"photo_4463647.html","width":130,"caption":"Model, SiobhanG","height":195});
															thumbnails[4463649] = clik.newPhoto({"id":4463649,"src":"_MG_3290_thumb.jpg","galleries_id":260728,"server_id":18,"link":"photo_4463649.html","width":130,"caption":"Model, Angel of Darkness","height":207});
															thumbnails[4463653] = clik.newPhoto({"id":4463653,"src":"_MG_3851-01_thumb.jpg","galleries_id":260728,"server_id":18,"link":"photo_4463653.html","width":130,"caption":"Model, Selene","height":199});
															thumbnails[4463654] = clik.newPhoto({"id":4463654,"src":"_MG_3929_thumb.jpg","galleries_id":260728,"server_id":18,"link":"photo_4463654.html","width":130,"caption":"Model Selene","height":195});
															thumbnails[4463657] = clik.newPhoto({"id":4463657,"src":"_MG_4449_1_thumb.jpg","galleries_id":260728,"server_id":18,"link":"photo_4463657.html","width":130,"caption":"Model, Lady Ameranth","height":195});
															thumbnails[4463659] = clik.newPhoto({"id":4463659,"src":"_MG_4654-01_thumb.jpg","galleries_id":260728,"server_id":18,"link":"photo_4463659.html","width":130,"caption":"Model, Lady Ameranth","height":103});
															thumbnails[4463698] = clik.newPhoto({"id":4463698,"src":"_MG_4731_thumb.jpg","galleries_id":260728,"server_id":18,"link":"photo_4463698.html","width":130,"caption":"Model, Lady Ameranth","height":195});
															thumbnails[4463714] = clik.newPhoto({"id":4463714,"src":"_MG_5978_thumb.jpg","galleries_id":260728,"server_id":18,"link":"photo_4463714.html","width":130,"caption":"Model, Serena Falls's ","height":195});
															thumbnails[4463715] = clik.newPhoto({"id":4463715,"src":"_MG_6251_thumb.jpg","galleries_id":260728,"server_id":18,"link":"photo_4463715.html","width":130,"caption":"Model. Serena Falls's ","height":157});
															thumbnails[4463718] = clik.newPhoto({"id":4463718,"src":"_MG_6324_thumb.jpg","galleries_id":260728,"server_id":18,"link":"photo_4463718.html","width":130,"caption":"Model, Serena Falls's ","height":195});
															thumbnails[4463720] = clik.newPhoto({"id":4463720,"src":"_MG_7707-01_thumb.jpg","galleries_id":260728,"server_id":18,"link":"photo_4463720.html","width":130,"caption":"Model, Tank Girl","height":173});
															thumbnails[4463721] = clik.newPhoto({"id":4463721,"src":"_MG_8225-01_thumb.jpg","galleries_id":260728,"server_id":18,"link":"photo_4463721.html","width":130,"caption":"Model, Carmilla Viscera           ","height":87});
															thumbnails[4463722] = clik.newPhoto({"id":4463722,"src":"_MG_8868_thumb.jpg","galleries_id":260728,"server_id":18,"link":"photo_4463722.html","width":130,"caption":"Model, Angel of Darkness","height":89});
															thumbnails[4463796] = clik.newPhoto({"id":4463796,"src":"Alien_Lifeform_thumb.jpg","galleries_id":260740,"server_id":18,"link":"photo_4463796.html","width":130,"caption":"Alian Lifeform","height":86});
															thumbnails[4463799] = clik.newPhoto({"id":4463799,"src":"Colour_Lilly_thumb.jpg","galleries_id":260740,"server_id":18,"link":"photo_4463799.html","width":130,"caption":"Colour Lilly","height":196});
															thumbnails[4463800] = clik.newPhoto({"id":4463800,"src":"Daffs_thumb.jpg","galleries_id":260740,"server_id":18,"link":"photo_4463800.html","width":130,"caption":"Daffs","height":162});
															thumbnails[4463801] = clik.newPhoto({"id":4463801,"src":"Freesia_thumb.jpg","galleries_id":260740,"server_id":18,"link":"photo_4463801.html","width":130,"caption":"Fressia","height":86});
															thumbnails[4463802] = clik.newPhoto({"id":4463802,"src":"Mini_Magnolia_thumb.jpg","galleries_id":260740,"server_id":18,"link":"photo_4463802.html","width":130,"caption":"Mini Magnolia","height":195});
															thumbnails[4463803] = clik.newPhoto({"id":4463803,"src":"Orange_thumb.jpg","galleries_id":260740,"server_id":18,"link":"photo_4463803.html","width":130,"caption":"Orange","height":87});
															thumbnails[4463804] = clik.newPhoto({"id":4463804,"src":"Orange_Lilly_thumb.jpg","galleries_id":260740,"server_id":18,"link":"photo_4463804.html","width":130,"caption":"Orange Lilly","height":159});
															thumbnails[4463805] = clik.newPhoto({"id":4463805,"src":"Pink_Orchid_thumb.jpg","galleries_id":260740,"server_id":18,"link":"photo_4463805.html","width":130,"caption":"Pink Orchid","height":94});
															thumbnails[4463806] = clik.newPhoto({"id":4463806,"src":"Pink_Water_Lilly_thumb.jpg","galleries_id":260740,"server_id":18,"link":"photo_4463806.html","width":130,"caption":"Pink Water Lilly","height":86});
															thumbnails[4463807] = clik.newPhoto({"id":4463807,"src":"Purple_thumb.jpg","galleries_id":260740,"server_id":18,"link":"photo_4463807.html","width":130,"caption":"Purple","height":86});
															thumbnails[4463808] = clik.newPhoto({"id":4463808,"src":"Red_Rose_thumb.jpg","galleries_id":260740,"server_id":18,"link":"photo_4463808.html","width":130,"caption":"Red Rose","height":195});
															thumbnails[4463809] = clik.newPhoto({"id":4463809,"src":"Red_with_Yellow_Stamen_thumb.jpg","galleries_id":260740,"server_id":18,"link":"photo_4463809.html","width":130,"caption":"Yellow Stamen","height":86});
															thumbnails[4463810] = clik.newPhoto({"id":4463810,"src":"Sunny_Poppys_thumb.jpg","galleries_id":260740,"server_id":18,"link":"photo_4463810.html","width":130,"caption":"Sunny Poppys","height":197});
															thumbnails[4463811] = clik.newPhoto({"id":4463811,"src":"Violet_Water_Lilly_thumb.jpg","galleries_id":260740,"server_id":18,"link":"photo_4463811.html","width":130,"caption":"Violet Water Lilly","height":86});
															thumbnails[4463812] = clik.newPhoto({"id":4463812,"src":"White_Lilly_thumb.jpg","galleries_id":260740,"server_id":18,"link":"photo_4463812.html","width":130,"caption":"White Lilly","height":86});
															thumbnails[4463813] = clik.newPhoto({"id":4463813,"src":"Yelow_Stamen_02_thumb.jpg","galleries_id":260740,"server_id":18,"link":"photo_4463813.html","width":130,"caption":"yellow Stamen 02","height":86});
															thumbnails[4468439] = clik.newPhoto({"id":4468439,"src":"_MG_4225_thumb.jpg","galleries_id":260688,"server_id":18,"link":"photo_4468439.html","width":130,"caption":"Kartina & Bridesmaid","height":195});
															thumbnails[4468443] = clik.newPhoto({"id":4468443,"src":"_MG_4284_thumb.jpg","galleries_id":260688,"server_id":18,"link":"photo_4468443.html","width":130,"caption":"","height":195});
															thumbnails[4468446] = clik.newPhoto({"id":4468446,"src":"_MG_4292_thumb.jpg","galleries_id":260688,"server_id":18,"link":"photo_4468446.html","width":130,"caption":"Kartina & Sam","height":195});
															thumbnails[4468452] = clik.newPhoto({"id":4468452,"src":"_MG_4398_thumb.jpg","galleries_id":260688,"server_id":18,"link":"photo_4468452.html","width":130,"caption":"Katrina & Bridesmaid","height":195});
															thumbnails[4468454] = clik.newPhoto({"id":4468454,"src":"_MG_4406_bw_thumb.jpg","galleries_id":260688,"server_id":18,"link":"photo_4468454.html","width":130,"caption":"Kartina & Sam","height":195});
															thumbnails[4468827] = clik.newPhoto({"id":4468827,"src":"_MG_5045_1_thumb.jpg","galleries_id":260870,"server_id":18,"link":"photo_4468827.html","width":130,"caption":"The Clocks","height":195});
															thumbnails[4468837] = clik.newPhoto({"id":4468837,"src":"chapel_thumb.jpg","galleries_id":260870,"server_id":18,"link":"photo_4468837.html","width":130,"caption":"The Chappel","height":86});
															thumbnails[4468972] = clik.newPhoto({"id":4468972,"src":"crane_bw_thumb.jpg","galleries_id":260870,"server_id":18,"link":"photo_4468972.html","width":130,"caption":"Crane, Black and White","height":90});
															thumbnails[4468982] = clik.newPhoto({"id":4468982,"src":"Dinner_Anyone_thumb.jpg","galleries_id":260870,"server_id":18,"link":"photo_4468982.html","width":130,"caption":"Dinner anyone !","height":88});
															thumbnails[4468989] = clik.newPhoto({"id":4468989,"src":"Hampton_Court_thumb.jpg","galleries_id":260870,"server_id":18,"link":"photo_4468989.html","width":130,"caption":"Hampton Court","height":87});
															thumbnails[4468991] = clik.newPhoto({"id":4468991,"src":"Hamton_Court_South_Side_thumb.jpg","galleries_id":260870,"server_id":18,"link":"photo_4468991.html","width":130,"caption":"Hampton Court, stormy day","height":86});
															thumbnails[4469052] = clik.newPhoto({"id":4469052,"src":"Looks_Like_Rain_thumb.jpg","galleries_id":260870,"server_id":18,"link":"photo_4469052.html","width":130,"caption":"Looks like rain.","height":87});
															thumbnails[4469055] = clik.newPhoto({"id":4469055,"src":"Lunch_Time_thumb.jpg","galleries_id":260870,"server_id":18,"link":"photo_4469055.html","width":130,"caption":"Lunch time.","height":86});
															thumbnails[4469154] = clik.newPhoto({"id":4469154,"src":"Modern_Countryside_thumb.jpg","galleries_id":260870,"server_id":18,"link":"photo_4469154.html","width":130,"caption":"Modern Countyside","height":86});
															thumbnails[4469164] = clik.newPhoto({"id":4469164,"src":"Navel_College_02_thumb.jpg","galleries_id":260870,"server_id":18,"link":"photo_4469164.html","width":130,"caption":"Royal Navy College","height":83});
															thumbnails[4469168] = clik.newPhoto({"id":4469168,"src":"Navy_College_thumb.jpg","galleries_id":260870,"server_id":18,"link":"photo_4469168.html","width":130,"caption":"Royal Navy college","height":96});
															thumbnails[5433455] = clik.newPhoto({"id":5433455,"src":"_MG_8888-014_thumb.jpg","galleries_id":260728,"server_id":18,"link":"photo_5433455.html","width":130,"caption":"Model,  Emma","height":195});
															thumbnails[5954196] = clik.newPhoto({"id":5954196,"src":"_MG_9051_1_thumb.jpg","galleries_id":260688,"server_id":18,"link":"photo_5954196.html","width":130,"caption":"Jump","height":195});
															thumbnails[5954198] = clik.newPhoto({"id":5954198,"src":"_MG_9145_1_thumb.jpg","galleries_id":260688,"server_id":18,"link":"photo_5954198.html","width":130,"caption":"Boy & Baby","height":152});
															thumbnails[5954222] = clik.newPhoto({"id":5954222,"src":"_MG_9524-02_thumb.jpg","galleries_id":260728,"server_id":18,"link":"photo_5954222.html","width":130,"caption":"Flown Away","height":153});
															thumbnails[5954224] = clik.newPhoto({"id":5954224,"src":"_MG_9566-01_thumb.jpg","galleries_id":260728,"server_id":18,"link":"photo_5954224.html","width":130,"caption":"Alt Fashion","height":152});
															thumbnails[6440190] = clik.newPhoto({"id":6440190,"src":"Stacey_thumb.jpg","galleries_id":260688,"server_id":18,"link":"photo_6440190.html","width":130,"caption":"Stacey","height":87});
															thumbnails[6440194] = clik.newPhoto({"id":6440194,"src":"Patsy__Dino_1_thumb.jpg","galleries_id":260688,"server_id":18,"link":"photo_6440194.html","width":130,"caption":"Patsy & Dino 1","height":195});
															thumbnails[6440201] = clik.newPhoto({"id":6440201,"src":"Patsy__Dino_2_thumb.jpg","galleries_id":260688,"server_id":18,"link":"photo_6440201.html","width":130,"caption":"Patsy & Dino 2","height":195});
															thumbnails[6440203] = clik.newPhoto({"id":6440203,"src":"Patsy__Dino_3_thumb.jpg","galleries_id":260688,"server_id":18,"link":"photo_6440203.html","width":130,"caption":"Patst & Dino 3","height":87});
															thumbnails[8344731] = clik.newPhoto({"id":8344731,"src":"Miss_Dynamite_thumb.jpg","galleries_id":260728,"server_id":35,"link":"photo_8344731.html","width":130,"caption":"Miss Dynamite","height":87});
															thumbnails[8432340] = clik.newPhoto({"id":8432340,"src":"_MG_8594_thumb.jpg","galleries_id":260728,"server_id":37,"link":"photo_8432340.html","width":130,"caption":"Model, Ilona, Make-Up, Lucy Madgwick","height":195});
															thumbnails[8432357] = clik.newPhoto({"id":8432357,"src":"_MG_2826-02_thumb.jpg","galleries_id":260728,"server_id":37,"link":"photo_8432357.html","width":130,"caption":"Model, Wendalene","height":152});
															thumbnails[8432393] = clik.newPhoto({"id":8432393,"src":"west-edit_thumb.jpg","galleries_id":260728,"server_id":37,"link":"photo_8432393.html","width":130,"caption":"The Wild West 1","height":195});
															thumbnails[8432396] = clik.newPhoto({"id":8432396,"src":"_MG_3721-01_thumb.jpg","galleries_id":260728,"server_id":37,"link":"photo_8432396.html","width":130,"caption":"The Wild West 2","height":195});
															thumbnails[8432397] = clik.newPhoto({"id":8432397,"src":"_MG_3545_thumb.jpg","galleries_id":260728,"server_id":37,"link":"photo_8432397.html","width":130,"caption":"The Wild West 3","height":195});
															thumbnails[8432398] = clik.newPhoto({"id":8432398,"src":"_MG_3637_thumb.jpg","galleries_id":260728,"server_id":37,"link":"photo_8432398.html","width":130,"caption":"The Wild West 4","height":195});
															thumbnails[8432460] = clik.newPhoto({"id":8432460,"src":"_MG_4376_thumb.jpg","galleries_id":260728,"server_id":37,"link":"photo_8432460.html","width":130,"caption":"Mofel, Lady Amaranth","height":87});
															thumbnails[8432464] = clik.newPhoto({"id":8432464,"src":"_MG_4450_thumb.jpg","galleries_id":260728,"server_id":37,"link":"photo_8432464.html","width":130,"caption":"Model, Lady Amaranth","height":195});
															thumbnails[8432465] = clik.newPhoto({"id":8432465,"src":"_MG_4501_thumb.jpg","galleries_id":260728,"server_id":37,"link":"photo_8432465.html","width":130,"caption":"Model, Lady Amaranth","height":195});
															thumbnails[8432467] = clik.newPhoto({"id":8432467,"src":"_MG_5876-01_thumb.jpg","galleries_id":260728,"server_id":37,"link":"photo_8432467.html","width":130,"caption":"Model, Danni Divine","height":194});
															thumbnails[8432469] = clik.newPhoto({"id":8432469,"src":"_MG_1179-02_thumb.jpg","galleries_id":260728,"server_id":37,"link":"photo_8432469.html","width":130,"caption":"Model, Vivian","height":195});
															thumbnails[8432471] = clik.newPhoto({"id":8432471,"src":"_MG_1267-01_thumb.jpg","galleries_id":260728,"server_id":37,"link":"photo_8432471.html","width":130,"caption":"Model, Vivian","height":112});
															thumbnails[8432473] = clik.newPhoto({"id":8432473,"src":"_MG_1987_thumb.jpg","galleries_id":260728,"server_id":37,"link":"photo_8432473.html","width":130,"caption":"Model, Shelly Dinferno","height":195});
															thumbnails[8432474] = clik.newPhoto({"id":8432474,"src":"_MG_2109_thumb.jpg","galleries_id":260728,"server_id":37,"link":"photo_8432474.html","width":130,"caption":"Model, Shelly Dinferno","height":195});
															thumbnails[8432476] = clik.newPhoto({"id":8432476,"src":"_MG_7888_thumb.jpg","galleries_id":260728,"server_id":37,"link":"photo_8432476.html","width":130,"caption":"Model, Leanne Bisson","height":195});
															thumbnails[8432477] = clik.newPhoto({"id":8432477,"src":"_MG_8170-01_thumb.jpg","galleries_id":260728,"server_id":37,"link":"photo_8432477.html","width":130,"caption":"Model, Leanne Bisson","height":197});
															thumbnails[8432479] = clik.newPhoto({"id":8432479,"src":"_MG_5682_thumb.jpg","galleries_id":260728,"server_id":37,"link":"photo_8432479.html","width":130,"caption":"Model, Amie","height":195});
															thumbnails[8432480] = clik.newPhoto({"id":8432480,"src":"_MG_5711-01_thumb.jpg","galleries_id":260728,"server_id":37,"link":"photo_8432480.html","width":130,"caption":"Model, Amie","height":154});
															thumbnails[8432482] = clik.newPhoto({"id":8432482,"src":"_MG_4621-1_thumb.jpg","galleries_id":260728,"server_id":37,"link":"photo_8432482.html","width":130,"caption":"Model, Lady Amaranth","height":87});
															thumbnails[8432484] = clik.newPhoto({"id":8432484,"src":"_MG_4624_thumb.jpg","galleries_id":260728,"server_id":37,"link":"photo_8432484.html","width":130,"caption":"Model, Lady Amaranth","height":195});
															thumbnails[8432486] = clik.newPhoto({"id":8432486,"src":"_MG_4714_3_thumb.jpg","galleries_id":260728,"server_id":37,"link":"photo_8432486.html","width":130,"caption":"Model, Lady Amaranth","height":195});
															thumbnails[8432488] = clik.newPhoto({"id":8432488,"src":"_MG_6651_thumb.jpg","galleries_id":260728,"server_id":37,"link":"photo_8432488.html","width":130,"caption":"Model, Elizabeth Stanton","height":195});
															thumbnails[8432491] = clik.newPhoto({"id":8432491,"src":"_MG_6714_thumb.jpg","galleries_id":260728,"server_id":37,"link":"photo_8432491.html","width":130,"caption":"Model, Elizabeth Stanton","height":195});
															thumbnails[8432493] = clik.newPhoto({"id":8432493,"src":"_MG_6748_thumb.jpg","galleries_id":260728,"server_id":37,"link":"photo_8432493.html","width":130,"caption":"Model, Elizabeth Stanton","height":87});
															thumbnails[8432497] = clik.newPhoto({"id":8432497,"src":"_MG_6807_thumb.jpg","galleries_id":260728,"server_id":37,"link":"photo_8432497.html","width":130,"caption":"Model, Elizabeth Stanton","height":195});
															thumbnails[8432499] = clik.newPhoto({"id":8432499,"src":"_MG_8143_thumb.jpg","galleries_id":260728,"server_id":37,"link":"photo_8432499.html","width":130,"caption":"Model, Elizabeth Stanton","height":195});
															thumbnails[8432519] = clik.newPhoto({"id":8432519,"src":"_MG_7720-crop_thumb.jpg","galleries_id":260728,"server_id":37,"link":"photo_8432519.html","width":130,"caption":"Model, Angel of Darkness","height":165});
															thumbnails[8432523] = clik.newPhoto({"id":8432523,"src":"_MG_7811m_thumb.jpg","galleries_id":260728,"server_id":37,"link":"photo_8432523.html","width":130,"caption":"Model, Angel of Darkness","height":195});
															thumbnails[8432526] = clik.newPhoto({"id":8432526,"src":"_MG_8220-Edit_thumb.jpg","galleries_id":260728,"server_id":37,"link":"photo_8432526.html","width":130,"caption":"Opossite Colours","height":191});
															thumbnails[8432536] = clik.newPhoto({"id":8432536,"src":"_MG_7380-edit_thumb.jpg","galleries_id":260728,"server_id":37,"link":"photo_8432536.html","width":130,"caption":"Model, Lady Amaranth","height":191});
															thumbnails[8432540] = clik.newPhoto({"id":8432540,"src":"_MG_7430_thumb.jpg","galleries_id":260728,"server_id":37,"link":"photo_8432540.html","width":130,"caption":"Model, Lady Amaranth","height":195});
															thumbnails[8432543] = clik.newPhoto({"id":8432543,"src":"_MG_7563_thumb.jpg","galleries_id":260728,"server_id":37,"link":"photo_8432543.html","width":130,"caption":"Model, Lady Amaranth","height":87});
															thumbnails[8432549] = clik.newPhoto({"id":8432549,"src":"_MG_8823_1_thumb.jpg","galleries_id":260728,"server_id":37,"link":"photo_8432549.html","width":130,"caption":"Model, Sharuzen","height":195});
															thumbnails[8432939] = clik.newPhoto({"id":8432939,"src":"_MG_6828_thumb.jpg","galleries_id":260728,"server_id":37,"link":"photo_8432939.html","width":130,"caption":"Model, Lady Amaranth","height":195});
															thumbnails[8432943] = clik.newPhoto({"id":8432943,"src":"_MG_6936_thumb.jpg","galleries_id":260728,"server_id":37,"link":"photo_8432943.html","width":130,"caption":"Model, Lady Amaranth","height":87});
															thumbnails[8432946] = clik.newPhoto({"id":8432946,"src":"_MG_7011_thumb.jpg","galleries_id":260728,"server_id":37,"link":"photo_8432946.html","width":130,"caption":"Model, Lady Amaranth","height":195});
															thumbnails[8433168] = clik.newPhoto({"id":8433168,"src":"_MG_7895_thumb.jpg","galleries_id":260728,"server_id":37,"link":"photo_8433168.html","width":130,"caption":"Model, Elizabeth Stanton","height":87});
															thumbnails[8433173] = clik.newPhoto({"id":8433173,"src":"_MG_8044-crop_thumb.jpg","galleries_id":260728,"server_id":37,"link":"photo_8433173.html","width":130,"caption":"Model, Elizabeth Stanton","height":151});
															thumbnails[8433186] = clik.newPhoto({"id":8433186,"src":"_MG_8055-crop_thumb.jpg","galleries_id":260728,"server_id":37,"link":"photo_8433186.html","width":130,"caption":"Model, Elizabeth Stanton","height":87});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[260688] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portraits","link":"gallery_260688.html","maxRecords":0.0,"photoIDs":[6870260.0,6870300.0,6870305.0,6870307.0,6870313.0,4463270.0,4463280.0,4463292.0,4463363.0,4463364.0,4463365.0,4463366.0,4463367.0,4463368.0,4463370.0,4468439.0,4468443.0,4468446.0,4468452.0,4468454.0,5954196.0,5954198.0,6440190.0,6440194.0,6440201.0,6440203.0],"skipIndex":0,"section_code":"gallery","featured_images":"6870313,6870307,6870305,6870300,6870260,6440203,6440201,6440194,6440190,5954198","id":260688,"singleSection":false});				  						galleries[260728] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"My Work with Models","link":"gallery_260728.html","maxRecords":0.0,"photoIDs":[4463630.0,4463633.0,4463639.0,4463640.0,4463642.0,4463644.0,4463647.0,4463649.0,4463653.0,4463654.0,4463657.0,4463659.0,4463698.0,4463714.0,4463715.0,4463718.0,4463720.0,4463721.0,4463722.0,5433455.0,5954222.0,5954224.0,8344731.0,8432340.0,8432357.0,8432393.0,8432396.0,8432397.0,8432398.0,8432460.0,8432464.0,8432465.0,8432467.0,8432469.0,8432471.0,8432473.0,8432474.0,8432476.0,8432477.0,8432479.0,8432480.0,8432482.0,8432484.0,8432486.0,8432488.0,8432491.0,8432493.0,8432497.0,8432499.0,8432519.0,8432523.0,8432526.0,8432536.0,8432540.0,8432543.0,8432549.0,8432939.0,8432943.0,8432946.0,8433168.0,8433173.0,8433186.0],"skipIndex":0,"section_code":"gallery","featured_images":"8433186,8433173,8433168,8432946,8432943,8432939,8432549,8432543,8432540,8432536","id":260728,"singleSection":false});				  						galleries[260740] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Flowers","link":"gallery_260740.html","maxRecords":0.0,"photoIDs":[4463796.0,4463799.0,4463800.0,4463801.0,4463802.0,4463803.0,4463804.0,4463805.0,4463806.0,4463807.0,4463808.0,4463809.0,4463810.0,4463811.0,4463812.0,4463813.0],"skipIndex":0,"section_code":"gallery","featured_images":"4463813,4463812,4463811,4463810,4463809,4463808,4463807,4463806,4463805,4463804","id":260740,"singleSection":false});				  						galleries[260689] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Landscapes","link":"gallery_260689.html","maxRecords":0.0,"photoIDs":[4463405.0,4463415.0,4463420.0,4463425.0,4463443.0,4463573.0,4463577.0,4463578.0,4463583.0,4463585.0,4463591.0,4463594.0,4463599.0],"skipIndex":0,"section_code":"gallery","featured_images":"4463599,4463594,4463591,4463585,4463583,4463578,4463577,4463573,4463443,4463425","id":260689,"singleSection":false});				  						galleries[260870] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Architecture & Cityscapes","link":"gallery_260870.html","maxRecords":0.0,"photoIDs":[4468827.0,4468837.0,4468972.0,4468982.0,4468989.0,4468991.0,4469052.0,4469055.0,4469154.0,4469164.0,4469168.0],"skipIndex":0,"section_code":"gallery","featured_images":"4469168,4469164,4469154,4469055,4469052,4468991,4468989,4468982,4468972,4468837","id":260870,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '6870313,6870307,6870305,6870300,6870260,5954198,4463368,4463367';
imageSets[3] = '8433186,8433173,8433168,8432946,8432943,8432939,8432549,8432543,8432540,8432536,8432526,8432523,8432519,8432499,8432497,8432493,8432491,8432488,8432486,8432484,8432482,8432480,8432479,8432477,8432476,8432474,8432473,8432471,8432469,8432467,8432465,8432464,8432460,8432398,8432397,8432396,8432393,8432357,8432340,8344731,6870313,6870307,6870305,6870300,6870260,6440203,6440201,6440194,6440190,5954224';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/markperry/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/markperry/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/markperry/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/markperry/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/markperry/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/markperry/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/markperry/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/markperry/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/markperry/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/markperry/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/markperry/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/markperry/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/markperry/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/markperry/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/markperry/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/markperry/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/markperry/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/markperry/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/markperry/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/markperry/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/markperry/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/markperry/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/markperry/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = backgrounds && backgrounds[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'Mark Perry 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>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp += '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
	else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					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;
	}
}

			

