window.thumbnails = {};
															thumbnails[6409956] = clik.newPhoto({"id":6409956,"src":"Wedding_Photography_Aberdeen_Glentanar_1_thumb.jpg","galleries_id":"","server_id":38,"link":"#","width":130,"caption":"Wedding Photography Aberdeen Example 13","height":87});
															thumbnails[8426018] = clik.newPhoto({"id":8426018,"src":"Wedding_Photography_Aberdeen_Meldrum_House_1_thumb.jpg","galleries_id":"","server_id":38,"link":"#","width":130,"caption":"","height":195});
															thumbnails[8426095] = clik.newPhoto({"id":8426095,"src":"Wedding_Photography_Aberdeen_Meldrum_House_2_thumb.jpg","galleries_id":"","server_id":38,"link":"#","width":130,"caption":"","height":200});
															thumbnails[4514795] = clik.newPhoto({"id":4514795,"src":"Wedding_Photography_Aberdeen_Thainstone_House_2_thumb.jpg","galleries_id":"","server_id":38,"link":"#","width":130,"caption":"Cairn-Photography-Wedding-Photography-Example-0","height":87});
															thumbnails[8426110] = clik.newPhoto({"id":8426110,"src":"Wedding_Photography_Aberdeen_Banchory_Lodge_1_1_thumb.jpg","galleries_id":"","server_id":38,"link":"#","width":130,"caption":"","height":89});
															thumbnails[4463491] = clik.newPhoto({"id":4463491,"src":"Wedding_Photography_Aberdeen_Haddo_House_thumb.jpg","galleries_id":"","server_id":38,"link":"#","width":130,"caption":"Cairn-Photography-Wedding-Photography-Example-20","height":87});
															thumbnails[4463498] = clik.newPhoto({"id":4463498,"src":"Wedding_Photography_Aberdeen_Haddo_House_1_thumb.jpg","galleries_id":"","server_id":38,"link":"#","width":130,"caption":"Cairn-Photography-Wedding-Photography-Example-27","height":87});
															thumbnails[4463559] = clik.newPhoto({"id":4463559,"src":"Wedding_Photography_Aberdeen_Banchory_Lodge_21_thumb.jpg","galleries_id":"","server_id":38,"link":"#","width":130,"caption":"Cairn-Photography-Wedding-Photography-Example-30","height":87});
															thumbnails[6390142] = clik.newPhoto({"id":6390142,"src":"Wedding_Photography_Aberdeen_Example_8_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Wedding Photography Aberdeen Example 8","height":176});
															thumbnails[4463622] = clik.newPhoto({"id":4463622,"src":"Wedding_Photography_Aberdeen_Meldrum_House_thumb.jpg","galleries_id":"","server_id":38,"link":"#","width":130,"caption":"Cairn-Photography-Wedding-Photography-Example-37","height":87});
															thumbnails[6383201] = clik.newPhoto({"id":6383201,"src":"Wedding_Photography_Aberdeen_Example_3_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Wedding Photography Aberdeen Example 3","height":96});
															thumbnails[4463489] = clik.newPhoto({"id":4463489,"src":"Cairn-Photography-Wedding-Photography-Example-11_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Cairn-Photography-Wedding-Photography-Example-1","height":195});
															thumbnails[4463499] = clik.newPhoto({"id":4463499,"src":"Wedding_Photography_Aberdeen_Guests_thumb.jpg","galleries_id":"","server_id":38,"link":"#","width":130,"caption":"Cairn-Photography-Wedding-Photography-Example-28","height":87});
															thumbnails[4463501] = clik.newPhoto({"id":4463501,"src":"Wedding_Photography_Aberdeen_Meldrum_House_3_thumb.jpg","galleries_id":"","server_id":38,"link":"#","width":130,"caption":"Cairn-Photography-Wedding-Photography-Example-5","height":87});
															thumbnails[4547548] = clik.newPhoto({"id":4547548,"src":"press-pr--commercial-photography-101_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"press-pr--commercial-photography-10","height":92});
															thumbnails[6383199] = clik.newPhoto({"id":6383199,"src":"Wedding_Photography_Aberdeen_Example_1_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Wedding Photography Aberdeen Example 1","height":96});
															thumbnails[6390140] = clik.newPhoto({"id":6390140,"src":"Wedding_Photography_Aberdeen_Example_6_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Wedding Photography Aberdeen Example 6","height":96});
															thumbnails[6390141] = clik.newPhoto({"id":6390141,"src":"Wedding_Photography_Aberdeen_Ardoe_House_thumb.jpg","galleries_id":"","server_id":37,"link":"#","width":130,"caption":"Wedding Photography Aberdeen Example 7","height":195});
															thumbnails[6383200] = clik.newPhoto({"id":6383200,"src":"Wedding_Photography_Aberdeen_Dunnottar_Church_thumb.jpg","galleries_id":"","server_id":37,"link":"#","width":130,"caption":"Wedding Photography Aberdeen Example 2","height":87});
															thumbnails[4463502] = clik.newPhoto({"id":4463502,"src":"Cairn-Photography-Wedding-Photography-Example-61_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Cairn-Photography-Wedding-Photography-Example-6","height":195});
															thumbnails[4463588] = clik.newPhoto({"id":4463588,"src":"Cairn-Photography-Wedding-Photography-Example-35_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Cairn-Photography-Wedding-Photography-Example-35","height":195});
															thumbnails[4547546] = clik.newPhoto({"id":4547546,"src":"press--pr-photography-291_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"press--pr-photography-29","height":92});
															thumbnails[4646975] = clik.newPhoto({"id":4646975,"src":"Ardoe-House-Album-Sample-3_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Ardoe-House-Album-Sample-3","height":98});
															thumbnails[6409958] = clik.newPhoto({"id":6409958,"src":"Wedding_Photography_Aberdeen_Example_14_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Wedding Photography Aberdeen Example 14","height":176});
															thumbnails[4463587] = clik.newPhoto({"id":4463587,"src":"Wedding_Photography_Aberdeen_Banchory_Lodge_thumb.jpg","galleries_id":"","server_id":38,"link":"#","width":130,"caption":"Cairn-Photography-Wedding-Photography-Example-34","height":195});
															thumbnails[4463589] = clik.newPhoto({"id":4463589,"src":"Wedding_Photography_Aberdeen_Thainstone_House_thumb.jpg","galleries_id":"","server_id":37,"link":"#","width":130,"caption":"Cairn-Photography-Wedding-Photography-Example-36","height":195});
															thumbnails[4547549] = clik.newPhoto({"id":4547549,"src":"press-pr--commercial-photography-131_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"press-pr--commercial-photography-13","height":87});
															thumbnails[6383202] = clik.newPhoto({"id":6383202,"src":"Wedding_Photography_Aberdeen_Example_4_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Wedding Photography Aberdeen Example 4","height":176});
															thumbnails[4547550] = clik.newPhoto({"id":4547550,"src":"press-pr--commercial-photography-141_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"press-pr--commercial-photography-14","height":92});
															thumbnails[6383203] = clik.newPhoto({"id":6383203,"src":"Wedding_Photography_Aberdeen_Example_5_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Wedding Photography Aberdeen Example 5","height":176});
															thumbnails[6400634] = clik.newPhoto({"id":6400634,"src":"Wedding_Photography_Aberdeen_Example_10_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Wedding Photography Aberdeen Example 10","height":177});
															thumbnails[6400635] = clik.newPhoto({"id":6400635,"src":"Wedding_Photography_Aberdeen_Example_11_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Wedding Photography Aberdeen Example 11","height":96});
															thumbnails[4547551] = clik.newPhoto({"id":4547551,"src":"press-pr--commercial-photography-151_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"press-pr--commercial-photography-15","height":87});
															thumbnails[4646978] = clik.newPhoto({"id":4646978,"src":"Chapel-of-Garioch-Album-Sample-1_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Chapel-of-Garioch-Album-Sample-1","height":98});
															thumbnails[6400636] = clik.newPhoto({"id":6400636,"src":"Wedding_Photography_Aberdeen_Kings_College_Chapel_thumb.jpg","galleries_id":"","server_id":38,"link":"#","width":130,"caption":"Wedding Photography Aberdeen Example 9","height":87});
															thumbnails[4547553] = clik.newPhoto({"id":4547553,"src":"press-pr--commercial-photography-1611_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"press-pr--commercial-photography-161","height":195});
															thumbnails[4646979] = clik.newPhoto({"id":4646979,"src":"Chapel-of-Garioch-Album-Sample-2_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Chapel-of-Garioch-Album-Sample-2","height":98});
															thumbnails[4463560] = clik.newPhoto({"id":4463560,"src":"Wedding_Photography_Aberdeen_Fyvie_Castle_1_thumb.jpg","galleries_id":"","server_id":38,"link":"#","width":130,"caption":"Cairn-Photography-Wedding-Photography-Example-31","height":87});
															thumbnails[4463586] = clik.newPhoto({"id":4463586,"src":"Cairn-Photography-Wedding-Photography-Example-33_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Cairn-Photography-Wedding-Photography-Example-33","height":96});
															thumbnails[4547557] = clik.newPhoto({"id":4547557,"src":"press-pr--commercial-photography-1911_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"press-pr--commercial-photography-191","height":102});
															thumbnails[4546399] = clik.newPhoto({"id":4546399,"src":"wedding-photographers-aberdeen-example-781_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"wedding-photographers-aberdeen-example-78","height":87});
															thumbnails[4547554] = clik.newPhoto({"id":4547554,"src":"press-pr--commercial-photography-171_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"press-pr--commercial-photography-17","height":98});
															thumbnails[4463494] = clik.newPhoto({"id":4463494,"src":"Cairn-Photography-Wedding-Photography-Example-23_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Cairn-Photography-Wedding-Photography-Example-23","height":86});
															thumbnails[4547555] = clik.newPhoto({"id":4547555,"src":"press-pr--commercial-photography-181_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"press-pr--commercial-photography-18","height":88});
															thumbnails[4463495] = clik.newPhoto({"id":4463495,"src":"Wedding_Photography_Aberdeen_Meldrum_House_6_thumb.jpg","galleries_id":"","server_id":38,"link":"#","width":130,"caption":"Cairn-Photography-Wedding-Photography-Example-24","height":191});
															thumbnails[4547556] = clik.newPhoto({"id":4547556,"src":"press-pr--commercial-photography-191_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"press-pr--commercial-photography-19","height":88});
															thumbnails[4547585] = clik.newPhoto({"id":4547585,"src":"press_pr__commercial_photography_461_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"press pr  commercial photography 46","height":87});
															thumbnails[4463492] = clik.newPhoto({"id":4463492,"src":"Cairn-Photography-Wedding-Photography-Example-21_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Cairn-Photography-Wedding-Photography-Example-21","height":195});
															thumbnails[4547558] = clik.newPhoto({"id":4547558,"src":"press-pr--commercial-photography-211_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"press-pr--commercial-photography-21","height":186});
															thumbnails[4463517] = clik.newPhoto({"id":4463517,"src":"MPA_Logo_RGB_72dpi_500px_thumb.jpg","galleries_id":"","server_id":19,"link":"#","width":130,"caption":"Master Photographers Association MPA logo","height":67});
															thumbnails[4547559] = clik.newPhoto({"id":4547559,"src":"press-pr--commercial-photography-221_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"press-pr--commercial-photography-22","height":113});
															thumbnails[4547560] = clik.newPhoto({"id":4547560,"src":"press-pr--commercial-photography-231_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"press-pr--commercial-photography-23","height":118});
															thumbnails[4468287] = clik.newPhoto({"id":4468287,"src":"wedding-photographers-aberdeen-example-81_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"wedding-photographers-aberdeen-example-81","height":195});
															thumbnails[4547561] = clik.newPhoto({"id":4547561,"src":"press-pr--commercial-photography-241_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"press-pr--commercial-photography-24","height":89});
															thumbnails[4547562] = clik.newPhoto({"id":4547562,"src":"press-pr--commercial-photography-251_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"press-pr--commercial-photography-25","height":91});
															thumbnails[4546408] = clik.newPhoto({"id":4546408,"src":"wedding-photographers-aberdeen-example-881_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"wedding-photographers-aberdeen-example-88","height":195});
															thumbnails[4547563] = clik.newPhoto({"id":4547563,"src":"press-pr--commercial-photography-271_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"press-pr--commercial-photography-27","height":98});
															thumbnails[4545833] = clik.newPhoto({"id":4545833,"src":"wedding-photographers-aberdeen-example-90_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"wedding-photographers-aberdeen-example-90","height":92});
															thumbnails[4547564] = clik.newPhoto({"id":4547564,"src":"press-pr--commercial-photography-31_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"press-pr--commercial-photography-3","height":190});
															thumbnails[4547565] = clik.newPhoto({"id":4547565,"src":"press-pr--commercial-photography-321_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"press-pr--commercial-photography-32","height":87});
															thumbnails[4547566] = clik.newPhoto({"id":4547566,"src":"press-pr--commercial-photography-331_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"press-pr--commercial-photography-33","height":87});
															thumbnails[4547568] = clik.newPhoto({"id":4547568,"src":"press-pr--commercial-photography-381_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"press-pr--commercial-photography-38","height":87});
															thumbnails[4547569] = clik.newPhoto({"id":4547569,"src":"press-pr--commercial-photography-391_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"press-pr--commercial-photography-39","height":93});
															thumbnails[4547570] = clik.newPhoto({"id":4547570,"src":"press-pr--commercial-photography-412_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"press-pr--commercial-photography-4","height":195});
															thumbnails[4547571] = clik.newPhoto({"id":4547571,"src":"press-pr--commercial-photography-411_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"press-pr--commercial-photography-41","height":92});
															thumbnails[4547572] = clik.newPhoto({"id":4547572,"src":"press-pr--commercial-photography-421_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"press-pr--commercial-photography-42","height":99});
															thumbnails[4547573] = clik.newPhoto({"id":4547573,"src":"press-pr--commercial-photography-422_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"press-pr--commercial-photography-422","height":87});
															thumbnails[4547574] = clik.newPhoto({"id":4547574,"src":"press-pr--commercial-photography-471_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"press-pr--commercial-photography-47","height":91});
															thumbnails[4547575] = clik.newPhoto({"id":4547575,"src":"press-pr--commercial-photography-49-21_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"press-pr--commercial-photography-49-(2)","height":99});
															thumbnails[4547576] = clik.newPhoto({"id":4547576,"src":"press-pr--commercial-photography-491_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"press-pr--commercial-photography-49","height":177});
															thumbnails[4547577] = clik.newPhoto({"id":4547577,"src":"press-pr--commercial-photography-512_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"press-pr--commercial-photography-5","height":90});
															thumbnails[4547578] = clik.newPhoto({"id":4547578,"src":"press-pr--commercial-photography-501_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"press-pr--commercial-photography-50","height":93});
															thumbnails[4547579] = clik.newPhoto({"id":4547579,"src":"press-pr--commercial-photography-521_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"press-pr--commercial-photography-52","height":193});
															thumbnails[4547580] = clik.newPhoto({"id":4547580,"src":"press-pr--commercial-photography-541_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"press-pr--commercial-photography-54","height":182});
															thumbnails[4547581] = clik.newPhoto({"id":4547581,"src":"press-pr--commercial-photography-551_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"press-pr--commercial-photography-55","height":87});
															thumbnails[4547582] = clik.newPhoto({"id":4547582,"src":"press-pr--commercial-photography-561_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"press-pr--commercial-photography-56","height":179});
															thumbnails[4547583] = clik.newPhoto({"id":4547583,"src":"press-pr--commercial-photography-571_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"press-pr--commercial-photography-57","height":87});
															thumbnails[4547584] = clik.newPhoto({"id":4547584,"src":"press-pr--commercial-photography-591_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"press-pr--commercial-photography-59","height":166});
															thumbnails[4550401] = clik.newPhoto({"id":4550401,"src":"press--pr-photography-2912_thumb.jpg","galleries_id":263906,"server_id":18,"link":"photo_4550401.html","width":130,"caption":"press--pr-photography-29","height":92});
															thumbnails[4468272] = clik.newPhoto({"id":4468272,"src":"wedding-photographers-aberdeen-example-1_thumb.jpg","galleries_id":258033,"server_id":18,"link":"photo_4468272.html","width":130,"caption":"wedding-photographers-aberdeen-example-1","height":90});
															thumbnails[4468634] = clik.newPhoto({"id":4468634,"src":"wedding-photographers-aberdeen-example-111_thumb.jpg","galleries_id":258034,"server_id":18,"link":"photo_4468634.html","width":130,"caption":"wedding-photographers-aberdeen-example-111","height":195});
															thumbnails[4468777] = clik.newPhoto({"id":4468777,"src":"wedding-photographers-aberdeen-example-421_thumb.jpg","galleries_id":260405,"server_id":18,"link":"photo_4468777.html","width":130,"caption":"wedding-photographers-aberdeen-example-421","height":195});
															thumbnails[4550279] = clik.newPhoto({"id":4550279,"src":"wedding-photographers-aberdeen-example-7512_thumb.jpg","galleries_id":263901,"server_id":18,"link":"photo_4550279.html","width":130,"caption":"wedding-photographers-aberdeen-example-75","height":198});
															thumbnails[4550402] = clik.newPhoto({"id":4550402,"src":"press-pr--commercial-photography-112_thumb.jpg","galleries_id":263906,"server_id":18,"link":"photo_4550402.html","width":130,"caption":"press-pr--commercial-photography-1","height":87});
															thumbnails[4576225] = clik.newPhoto({"id":4576225,"src":"cairn-photography-portraiture-aberdeen-example-11123_thumb.jpg","galleries_id":265212,"server_id":18,"link":"photo_4576225.html","width":130,"caption":"cairn-photography-portraiture-aberdeen-example-11","height":94});
															thumbnails[5659768] = clik.newPhoto({"id":5659768,"src":"press-pr--commercial-photography-201_thumb.jpg","galleries_id":263906,"server_id":18,"link":"photo_5659768.html","width":130,"caption":"press-pr--commercial-photography-201","height":96});
															thumbnails[4468281] = clik.newPhoto({"id":4468281,"src":"wedding-photographers-aberdeen-example-2_thumb.jpg","galleries_id":258033,"server_id":18,"link":"photo_4468281.html","width":130,"caption":"wedding-photographers-aberdeen-example-2","height":195});
															thumbnails[4468646] = clik.newPhoto({"id":4468646,"src":"wedding-photographers-aberdeen-example-222_thumb.jpg","galleries_id":258034,"server_id":18,"link":"photo_4468646.html","width":130,"caption":"wedding-photographers-aberdeen-example-222","height":195});
															thumbnails[4468778] = clik.newPhoto({"id":4468778,"src":"wedding-photographers-aberdeen-example-422_thumb.jpg","galleries_id":260405,"server_id":18,"link":"photo_4468778.html","width":130,"caption":"wedding-photographers-aberdeen-example-422","height":87});
															thumbnails[4550274] = clik.newPhoto({"id":4550274,"src":"wedding-photographers-aberdeen-example-7012_thumb.jpg","galleries_id":263901,"server_id":18,"link":"photo_4550274.html","width":130,"caption":"wedding-photographers-aberdeen-example-70","height":192});
															thumbnails[4550436] = clik.newPhoto({"id":4550436,"src":"press-pr--commercial-photography-5912_thumb.jpg","galleries_id":263906,"server_id":18,"link":"photo_4550436.html","width":130,"caption":"press-pr--commercial-photography-59","height":166});
															thumbnails[4576227] = clik.newPhoto({"id":4576227,"src":"cairn-photography-portraiture-aberdeen-example-12123_thumb.jpg","galleries_id":265212,"server_id":18,"link":"photo_4576227.html","width":130,"caption":"cairn-photography-portraiture-aberdeen-example-12","height":87});
															thumbnails[5659769] = clik.newPhoto({"id":5659769,"src":"press-pr--commercial-photography-202_thumb.jpg","galleries_id":263906,"server_id":18,"link":"photo_5659769.html","width":130,"caption":"press-pr--commercial-photography-202","height":95});
															thumbnails[4468282] = clik.newPhoto({"id":4468282,"src":"wedding-photographers-aberdeen-example-3_thumb.jpg","galleries_id":258033,"server_id":18,"link":"photo_4468282.html","width":130,"caption":"wedding-photographers-aberdeen-example-3","height":195});
															thumbnails[4468648] = clik.newPhoto({"id":4468648,"src":"wedding-photographers-aberdeen-example-333_thumb.jpg","galleries_id":258034,"server_id":18,"link":"photo_4468648.html","width":130,"caption":"wedding-photographers-aberdeen-example-333","height":184});
															thumbnails[4468780] = clik.newPhoto({"id":4468780,"src":"wedding-photographers-aberdeen-example-424_thumb.jpg","galleries_id":260405,"server_id":18,"link":"photo_4468780.html","width":130,"caption":"wedding-photographers-aberdeen-example-424","height":195});
															thumbnails[4550280] = clik.newPhoto({"id":4550280,"src":"wedding-photographers-aberdeen-example-7612_thumb.jpg","galleries_id":263901,"server_id":18,"link":"photo_4550280.html","width":130,"caption":"wedding-photographers-aberdeen-example-76","height":198});
															thumbnails[4550403] = clik.newPhoto({"id":4550403,"src":"press-pr--commercial-photography-1012_thumb.jpg","galleries_id":263906,"server_id":18,"link":"photo_4550403.html","width":130,"caption":"press-pr--commercial-photography-10","height":92});
															thumbnails[4550437] = clik.newPhoto({"id":4550437,"src":"press_pr__commercial_photography_4612_thumb.jpg","galleries_id":263906,"server_id":18,"link":"photo_4550437.html","width":130,"caption":"press pr  commercial photography 46","height":87});
															thumbnails[4576228] = clik.newPhoto({"id":4576228,"src":"cairn-photography-portraiture-aberdeen-example-16123_thumb.jpg","galleries_id":265212,"server_id":18,"link":"photo_4576228.html","width":130,"caption":"cairn-photography-portraiture-aberdeen-example-16","height":93});
															thumbnails[5659770] = clik.newPhoto({"id":5659770,"src":"press-pr--commercial-photography-203_thumb.jpg","galleries_id":263906,"server_id":18,"link":"photo_5659770.html","width":130,"caption":"press-pr--commercial-photography-203","height":97});
															thumbnails[4468284] = clik.newPhoto({"id":4468284,"src":"wedding-photographers-aberdeen-example-5_thumb.jpg","galleries_id":258033,"server_id":18,"link":"photo_4468284.html","width":130,"caption":"wedding-photographers-aberdeen-example-5","height":195});
															thumbnails[4468649] = clik.newPhoto({"id":4468649,"src":"wedding-photographers-aberdeen-example-444_thumb.jpg","galleries_id":258034,"server_id":18,"link":"photo_4468649.html","width":130,"caption":"wedding-photographers-aberdeen-example-444","height":87});
															thumbnails[4468779] = clik.newPhoto({"id":4468779,"src":"wedding-photographers-aberdeen-example-423_thumb.jpg","galleries_id":260405,"server_id":18,"link":"photo_4468779.html","width":130,"caption":"wedding-photographers-aberdeen-example-423","height":195});
															thumbnails[4550281] = clik.newPhoto({"id":4550281,"src":"wedding-photographers-aberdeen-example-7712_thumb.jpg","galleries_id":263901,"server_id":18,"link":"photo_4550281.html","width":130,"caption":"wedding-photographers-aberdeen-example-77","height":89});
															thumbnails[4550404] = clik.newPhoto({"id":4550404,"src":"press-pr--commercial-photography-1312_thumb.jpg","galleries_id":263906,"server_id":18,"link":"photo_4550404.html","width":130,"caption":"press-pr--commercial-photography-13","height":87});
															thumbnails[4576229] = clik.newPhoto({"id":4576229,"src":"cairn-photography-portraiture-aberdeen-example-17123_thumb.jpg","galleries_id":265212,"server_id":18,"link":"photo_4576229.html","width":130,"caption":"cairn-photography-portraiture-aberdeen-example-17","height":87});
															thumbnails[5659771] = clik.newPhoto({"id":5659771,"src":"press-pr--commercial-photography-204_thumb.jpg","galleries_id":263906,"server_id":18,"link":"photo_5659771.html","width":130,"caption":"press-pr--commercial-photography-204","height":175});
															thumbnails[4468285] = clik.newPhoto({"id":4468285,"src":"wedding-photographers-aberdeen-example-6_thumb.jpg","galleries_id":258033,"server_id":18,"link":"photo_4468285.html","width":130,"caption":"wedding-photographers-aberdeen-example-6","height":84});
															thumbnails[4468650] = clik.newPhoto({"id":4468650,"src":"wedding-photographers-aberdeen-example-555_thumb.jpg","galleries_id":258034,"server_id":18,"link":"photo_4468650.html","width":130,"caption":"wedding-photographers-aberdeen-example-555","height":87});
															thumbnails[4468781] = clik.newPhoto({"id":4468781,"src":"wedding-photographers-aberdeen-example-425_thumb.jpg","galleries_id":260405,"server_id":18,"link":"photo_4468781.html","width":130,"caption":"wedding-photographers-aberdeen-example-425","height":195});
															thumbnails[4550282] = clik.newPhoto({"id":4550282,"src":"wedding-photographers-aberdeen-example-7812_thumb.jpg","galleries_id":263901,"server_id":18,"link":"photo_4550282.html","width":130,"caption":"wedding-photographers-aberdeen-example-78","height":87});
															thumbnails[4550405] = clik.newPhoto({"id":4550405,"src":"press-pr--commercial-photography-1412_thumb.jpg","galleries_id":263906,"server_id":18,"link":"photo_4550405.html","width":130,"caption":"press-pr--commercial-photography-14","height":92});
															thumbnails[5659772] = clik.newPhoto({"id":5659772,"src":"press-pr--commercial-photography-205_thumb.jpg","galleries_id":263906,"server_id":18,"link":"photo_5659772.html","width":130,"caption":"press-pr--commercial-photography-205","height":176});
															thumbnails[4468283] = clik.newPhoto({"id":4468283,"src":"wedding-photographers-aberdeen-example-4_thumb.jpg","galleries_id":258033,"server_id":18,"link":"photo_4468283.html","width":130,"caption":"wedding-photographers-aberdeen-example-4","height":195});
															thumbnails[4468652] = clik.newPhoto({"id":4468652,"src":"wedding-photographers-aberdeen-example-777_thumb.jpg","galleries_id":258034,"server_id":18,"link":"photo_4468652.html","width":130,"caption":"wedding-photographers-aberdeen-example-777","height":87});
															thumbnails[4468782] = clik.newPhoto({"id":4468782,"src":"wedding-photographers-aberdeen-example-426_thumb.jpg","galleries_id":260405,"server_id":18,"link":"photo_4468782.html","width":130,"caption":"wedding-photographers-aberdeen-example-426","height":195});
															thumbnails[4550283] = clik.newPhoto({"id":4550283,"src":"wedding-photographers-aberdeen-example-79123_thumb.jpg","galleries_id":263901,"server_id":18,"link":"photo_4550283.html","width":130,"caption":"wedding-photographers-aberdeen-example-79","height":87});
															thumbnails[4576231] = clik.newPhoto({"id":4576231,"src":"cairn-photography-portraiture-aberdeen-example-19123_thumb.jpg","galleries_id":265212,"server_id":18,"link":"photo_4576231.html","width":130,"caption":"cairn-photography-portraiture-aberdeen-example-19","height":182});
															thumbnails[5659773] = clik.newPhoto({"id":5659773,"src":"press-pr--commercial-photography-206_thumb.jpg","galleries_id":263906,"server_id":18,"link":"photo_5659773.html","width":130,"caption":"press-pr--commercial-photography-206","height":96});
															thumbnails[4468286] = clik.newPhoto({"id":4468286,"src":"wedding-photographers-aberdeen-example-8_thumb.jpg","galleries_id":258033,"server_id":18,"link":"photo_4468286.html","width":130,"caption":"wedding-photographers-aberdeen-example-8","height":195});
															thumbnails[4468653] = clik.newPhoto({"id":4468653,"src":"wedding-photographers-aberdeen-example-888_thumb.jpg","galleries_id":258034,"server_id":18,"link":"photo_4468653.html","width":130,"caption":"wedding-photographers-aberdeen-example-888","height":90});
															thumbnails[4468783] = clik.newPhoto({"id":4468783,"src":"wedding-photographers-aberdeen-example-427_thumb.jpg","galleries_id":260405,"server_id":18,"link":"photo_4468783.html","width":130,"caption":"wedding-photographers-aberdeen-example-427","height":89});
															thumbnails[4550284] = clik.newPhoto({"id":4550284,"src":"wedding-photographers-aberdeen-example-8012_thumb.jpg","galleries_id":263901,"server_id":18,"link":"photo_4550284.html","width":130,"caption":"wedding-photographers-aberdeen-example-80","height":195});
															thumbnails[4550407] = clik.newPhoto({"id":4550407,"src":"press-pr--commercial-photography-1612_thumb.jpg","galleries_id":263906,"server_id":18,"link":"photo_4550407.html","width":130,"caption":"press-pr--commercial-photography-16","height":195});
															thumbnails[5659774] = clik.newPhoto({"id":5659774,"src":"press-pr--commercial-photography-207_thumb.jpg","galleries_id":263906,"server_id":18,"link":"photo_5659774.html","width":130,"caption":"press-pr--commercial-photography-207","height":96});
															thumbnails[4550278] = clik.newPhoto({"id":4550278,"src":"wedding-photographers-aberdeen-example-7412_thumb.jpg","galleries_id":263901,"server_id":18,"link":"photo_4550278.html","width":130,"caption":"wedding-photographers-aberdeen-example-74","height":87});
															thumbnails[4468288] = clik.newPhoto({"id":4468288,"src":"wedding-photographers-aberdeen-example-9_thumb.jpg","galleries_id":258033,"server_id":18,"link":"photo_4468288.html","width":130,"caption":"wedding-photographers-aberdeen-example-9","height":195});
															thumbnails[4468651] = clik.newPhoto({"id":4468651,"src":"wedding-photographers-aberdeen-example-66_thumb.jpg","galleries_id":258034,"server_id":18,"link":"photo_4468651.html","width":130,"caption":"wedding-photographers-aberdeen-example-66","height":87});
															thumbnails[4468784] = clik.newPhoto({"id":4468784,"src":"wedding-photographers-aberdeen-example-428_thumb.jpg","galleries_id":260405,"server_id":18,"link":"photo_4468784.html","width":130,"caption":"wedding-photographers-aberdeen-example-428","height":182});
															thumbnails[4550277] = clik.newPhoto({"id":4550277,"src":"wedding-photographers-aberdeen-example-7312_thumb.jpg","galleries_id":263901,"server_id":18,"link":"photo_4550277.html","width":130,"caption":"wedding-photographers-aberdeen-example-73","height":87});
															thumbnails[4550408] = clik.newPhoto({"id":4550408,"src":"press-pr--commercial-photography-1712_thumb.jpg","galleries_id":263906,"server_id":18,"link":"photo_4550408.html","width":130,"caption":"press-pr--commercial-photography-17","height":98});
															thumbnails[4576233] = clik.newPhoto({"id":4576233,"src":"cairn-photography-portraiture-aberdeen-example-20123_thumb.jpg","galleries_id":265212,"server_id":18,"link":"photo_4576233.html","width":130,"caption":"cairn-photography-portraiture-aberdeen-example-20","height":87});
															thumbnails[5659775] = clik.newPhoto({"id":5659775,"src":"press-pr--commercial-photography-208_thumb.jpg","galleries_id":263906,"server_id":18,"link":"photo_5659775.html","width":130,"caption":"press-pr--commercial-photography-208","height":96});
															thumbnails[4468273] = clik.newPhoto({"id":4468273,"src":"wedding-photographers-aberdeen-example-10_thumb.jpg","galleries_id":258033,"server_id":18,"link":"photo_4468273.html","width":130,"caption":"wedding-photographers-aberdeen-example-10","height":87});
															thumbnails[4468654] = clik.newPhoto({"id":4468654,"src":"wedding-photographers-aberdeen-example-999_thumb.jpg","galleries_id":258034,"server_id":18,"link":"photo_4468654.html","width":130,"caption":"wedding-photographers-aberdeen-example-999","height":106});
															thumbnails[4468785] = clik.newPhoto({"id":4468785,"src":"wedding-photographers-aberdeen-example-429_thumb.jpg","galleries_id":260405,"server_id":18,"link":"photo_4468785.html","width":130,"caption":"wedding-photographers-aberdeen-example-429","height":182});
															thumbnails[4550276] = clik.newPhoto({"id":4550276,"src":"wedding-photographers-aberdeen-example-7212_thumb.jpg","galleries_id":263901,"server_id":18,"link":"photo_4550276.html","width":130,"caption":"wedding-photographers-aberdeen-example-72","height":90});
															thumbnails[4576234] = clik.newPhoto({"id":4576234,"src":"cairn-photography-portraiture-aberdeen-example-21123_thumb.jpg","galleries_id":265212,"server_id":18,"link":"photo_4576234.html","width":130,"caption":"cairn-photography-portraiture-aberdeen-example-21","height":195});
															thumbnails[5659776] = clik.newPhoto({"id":5659776,"src":"press-pr--commercial-photography-209_thumb.jpg","galleries_id":263906,"server_id":18,"link":"photo_5659776.html","width":130,"caption":"press-pr--commercial-photography-209","height":176});
															thumbnails[4468274] = clik.newPhoto({"id":4468274,"src":"wedding-photographers-aberdeen-example-13_thumb.jpg","galleries_id":258033,"server_id":18,"link":"photo_4468274.html","width":130,"caption":"wedding-photographers-aberdeen-example-13","height":195});
															thumbnails[4468633] = clik.newPhoto({"id":4468633,"src":"wedding-photographers-aberdeen-example-101010_thumb.jpg","galleries_id":258034,"server_id":18,"link":"photo_4468633.html","width":130,"caption":"wedding-photographers-aberdeen-example-101010","height":87});
															thumbnails[4468786] = clik.newPhoto({"id":4468786,"src":"wedding-photographers-aberdeen-example-430_thumb.jpg","galleries_id":260405,"server_id":18,"link":"photo_4468786.html","width":130,"caption":"wedding-photographers-aberdeen-example-430","height":96});
															thumbnails[4550275] = clik.newPhoto({"id":4550275,"src":"wedding-photographers-aberdeen-example-7112_thumb.jpg","galleries_id":263901,"server_id":18,"link":"photo_4550275.html","width":130,"caption":"wedding-photographers-aberdeen-example-71","height":195});
															thumbnails[4550410] = clik.newPhoto({"id":4550410,"src":"press-pr--commercial-photography-1912_thumb.jpg","galleries_id":263906,"server_id":18,"link":"photo_4550410.html","width":130,"caption":"press-pr--commercial-photography-19","height":88});
															thumbnails[4576235] = clik.newPhoto({"id":4576235,"src":"cairn-photography-portraiture-aberdeen-example-22123_thumb.jpg","galleries_id":265212,"server_id":18,"link":"photo_4576235.html","width":130,"caption":"cairn-photography-portraiture-aberdeen-example-22","height":97});
															thumbnails[4468275] = clik.newPhoto({"id":4468275,"src":"wedding-photographers-aberdeen-example-14_thumb.jpg","galleries_id":258033,"server_id":18,"link":"photo_4468275.html","width":130,"caption":"wedding-photographers-aberdeen-example-14","height":87});
															thumbnails[4468635] = clik.newPhoto({"id":4468635,"src":"wedding-photographers-aberdeen-example-111111_thumb.jpg","galleries_id":258034,"server_id":18,"link":"photo_4468635.html","width":130,"caption":"wedding-photographers-aberdeen-example-111111","height":99});
															thumbnails[4468787] = clik.newPhoto({"id":4468787,"src":"wedding-photographers-aberdeen-example-431_thumb.jpg","galleries_id":260405,"server_id":18,"link":"photo_4468787.html","width":130,"caption":"wedding-photographers-aberdeen-example-431","height":87});
															thumbnails[4550411] = clik.newPhoto({"id":4550411,"src":"press-pr--commercial-photography-19112_thumb.jpg","galleries_id":263906,"server_id":18,"link":"photo_4550411.html","width":130,"caption":"press-pr--commercial-photography-191","height":102});
															thumbnails[4576236] = clik.newPhoto({"id":4576236,"src":"cairn-photography-portraiture-aberdeen-example-23123_thumb.jpg","galleries_id":265212,"server_id":18,"link":"photo_4576236.html","width":130,"caption":"cairn-photography-portraiture-aberdeen-example-23","height":184});
															thumbnails[4468276] = clik.newPhoto({"id":4468276,"src":"wedding-photographers-aberdeen-example-15_thumb.jpg","galleries_id":258033,"server_id":18,"link":"photo_4468276.html","width":130,"caption":"wedding-photographers-aberdeen-example-15","height":195});
															thumbnails[4468636] = clik.newPhoto({"id":4468636,"src":"wedding-photographers-aberdeen-example-121212_thumb.jpg","galleries_id":258034,"server_id":18,"link":"photo_4468636.html","width":130,"caption":"wedding-photographers-aberdeen-example-121212","height":195});
															thumbnails[4468788] = clik.newPhoto({"id":4468788,"src":"wedding-photographers-aberdeen-example-432_thumb.jpg","galleries_id":260405,"server_id":18,"link":"photo_4468788.html","width":130,"caption":"wedding-photographers-aberdeen-example-432","height":87});
															thumbnails[4550285] = clik.newPhoto({"id":4550285,"src":"wedding-photographers-aberdeen-example-8112_thumb.jpg","galleries_id":263901,"server_id":18,"link":"photo_4550285.html","width":130,"caption":"wedding-photographers-aberdeen-example-81","height":195});
															thumbnails[4550412] = clik.newPhoto({"id":4550412,"src":"press-pr--commercial-photography-2112_thumb.jpg","galleries_id":263906,"server_id":18,"link":"photo_4550412.html","width":130,"caption":"press-pr--commercial-photography-21","height":186});
															thumbnails[4576237] = clik.newPhoto({"id":4576237,"src":"cairn-photography-portraiture-aberdeen-example-24123_thumb.jpg","galleries_id":265212,"server_id":18,"link":"photo_4576237.html","width":130,"caption":"cairn-photography-portraiture-aberdeen-example-24","height":181});
															thumbnails[4576232] = clik.newPhoto({"id":4576232,"src":"cairn-photography-portraiture-aberdeen-example-21234_thumb.jpg","galleries_id":265212,"server_id":18,"link":"photo_4576232.html","width":130,"caption":"cairn-photography-portraiture-aberdeen-example-2","height":178});
															thumbnails[4468277] = clik.newPhoto({"id":4468277,"src":"wedding-photographers-aberdeen-example-16_thumb.jpg","galleries_id":258033,"server_id":18,"link":"photo_4468277.html","width":130,"caption":"wedding-photographers-aberdeen-example-16","height":195});
															thumbnails[4468638] = clik.newPhoto({"id":4468638,"src":"wedding-photographers-aberdeen-example-141414_thumb.jpg","galleries_id":258034,"server_id":18,"link":"photo_4468638.html","width":130,"caption":"wedding-photographers-aberdeen-example-141414","height":195});
															thumbnails[4468789] = clik.newPhoto({"id":4468789,"src":"wedding-photographers-aberdeen-example-433_thumb.jpg","galleries_id":260405,"server_id":18,"link":"photo_4468789.html","width":130,"caption":"wedding-photographers-aberdeen-example-433","height":87});
															thumbnails[4550287] = clik.newPhoto({"id":4550287,"src":"wedding-photographers-aberdeen-example-8412_thumb.jpg","galleries_id":263901,"server_id":18,"link":"photo_4550287.html","width":130,"caption":"wedding-photographers-aberdeen-example-84","height":195});
															thumbnails[4550413] = clik.newPhoto({"id":4550413,"src":"press-pr--commercial-photography-2212_thumb.jpg","galleries_id":263906,"server_id":18,"link":"photo_4550413.html","width":130,"caption":"press-pr--commercial-photography-22","height":113});
															thumbnails[4576238] = clik.newPhoto({"id":4576238,"src":"cairn-photography-portraiture-aberdeen-example-3123_thumb.jpg","galleries_id":265212,"server_id":18,"link":"photo_4576238.html","width":130,"caption":"cairn-photography-portraiture-aberdeen-example-3","height":184});
															thumbnails[4468278] = clik.newPhoto({"id":4468278,"src":"wedding-photographers-aberdeen-example-17_thumb.jpg","galleries_id":258033,"server_id":18,"link":"photo_4468278.html","width":130,"caption":"wedding-photographers-aberdeen-example-17","height":92});
															thumbnails[4468637] = clik.newPhoto({"id":4468637,"src":"wedding-photographers-aberdeen-example-131313_thumb.jpg","galleries_id":258034,"server_id":18,"link":"photo_4468637.html","width":130,"caption":"wedding-photographers-aberdeen-example-131313","height":179});
															thumbnails[4468790] = clik.newPhoto({"id":4468790,"src":"wedding-photographers-aberdeen-example-434_thumb.jpg","galleries_id":260405,"server_id":18,"link":"photo_4468790.html","width":130,"caption":"wedding-photographers-aberdeen-example-434","height":195});
															thumbnails[4550286] = clik.newPhoto({"id":4550286,"src":"wedding-photographers-aberdeen-example-8312_thumb.jpg","galleries_id":263901,"server_id":18,"link":"photo_4550286.html","width":130,"caption":"wedding-photographers-aberdeen-example-83","height":87});
															thumbnails[4550414] = clik.newPhoto({"id":4550414,"src":"press-pr--commercial-photography-2312_thumb.jpg","galleries_id":263906,"server_id":18,"link":"photo_4550414.html","width":130,"caption":"press-pr--commercial-photography-23","height":118});
															thumbnails[4576239] = clik.newPhoto({"id":4576239,"src":"cairn-photography-portraiture-aberdeen-example-4123_thumb.jpg","galleries_id":265212,"server_id":18,"link":"photo_4576239.html","width":130,"caption":"cairn-photography-portraiture-aberdeen-example-4","height":195});
															thumbnails[4468279] = clik.newPhoto({"id":4468279,"src":"wedding-photographers-aberdeen-example-18_thumb.jpg","galleries_id":258033,"server_id":18,"link":"photo_4468279.html","width":130,"caption":"wedding-photographers-aberdeen-example-18","height":89});
															thumbnails[4468639] = clik.newPhoto({"id":4468639,"src":"wedding-photographers-aberdeen-example-151515_thumb.jpg","galleries_id":258034,"server_id":18,"link":"photo_4468639.html","width":130,"caption":"wedding-photographers-aberdeen-example-151515","height":88});
															thumbnails[4468791] = clik.newPhoto({"id":4468791,"src":"wedding-photographers-aberdeen-example-435_thumb.jpg","galleries_id":260405,"server_id":18,"link":"photo_4468791.html","width":130,"caption":"wedding-photographers-aberdeen-example-435","height":91});
															thumbnails[4550288] = clik.newPhoto({"id":4550288,"src":"wedding-photographers-aberdeen-example-851_thumb.jpg","galleries_id":263901,"server_id":18,"link":"photo_4550288.html","width":130,"caption":"wedding-photographers-aberdeen-example-85","height":195});
															thumbnails[4550415] = clik.newPhoto({"id":4550415,"src":"press-pr--commercial-photography-2412_thumb.jpg","galleries_id":263906,"server_id":18,"link":"photo_4550415.html","width":130,"caption":"press-pr--commercial-photography-24","height":89});
															thumbnails[4576240] = clik.newPhoto({"id":4576240,"src":"cairn-photography-portraiture-aberdeen-example-5_thumb.jpg","galleries_id":265212,"server_id":18,"link":"photo_4576240.html","width":130,"caption":"cairn-photography-portraiture-aberdeen-example-5","height":92});
															thumbnails[4468280] = clik.newPhoto({"id":4468280,"src":"wedding-photographers-aberdeen-example-19_thumb.jpg","galleries_id":258033,"server_id":18,"link":"photo_4468280.html","width":130,"caption":"wedding-photographers-aberdeen-example-19","height":190});
															thumbnails[4468640] = clik.newPhoto({"id":4468640,"src":"wedding-photographers-aberdeen-example-161616_thumb.jpg","galleries_id":258034,"server_id":18,"link":"photo_4468640.html","width":130,"caption":"wedding-photographers-aberdeen-example-161616","height":195});
															thumbnails[4468792] = clik.newPhoto({"id":4468792,"src":"wedding-photographers-aberdeen-example-436_thumb.jpg","galleries_id":260405,"server_id":18,"link":"photo_4468792.html","width":130,"caption":"wedding-photographers-aberdeen-example-436","height":195});
															thumbnails[4550289] = clik.newPhoto({"id":4550289,"src":"wedding-photographers-aberdeen-example-86123_thumb.jpg","galleries_id":263901,"server_id":18,"link":"photo_4550289.html","width":130,"caption":"wedding-photographers-aberdeen-example-86","height":195});
															thumbnails[4550416] = clik.newPhoto({"id":4550416,"src":"press-pr--commercial-photography-2512_thumb.jpg","galleries_id":263906,"server_id":18,"link":"photo_4550416.html","width":130,"caption":"press-pr--commercial-photography-25","height":91});
															thumbnails[4576245] = clik.newPhoto({"id":4576245,"src":"cairn_photography_portraiture_aberdeen_example_1123_thumb.jpg","galleries_id":265212,"server_id":18,"link":"photo_4576245.html","width":130,"caption":"cairn photography portraiture aberdeen example 1","height":87});
															thumbnails[4576241] = clik.newPhoto({"id":4576241,"src":"cairn-photography-portraiture-aberdeen-example-6123_thumb.jpg","galleries_id":265212,"server_id":18,"link":"photo_4576241.html","width":130,"caption":"cairn-photography-portraiture-aberdeen-example-6","height":87});
															thumbnails[4468641] = clik.newPhoto({"id":4468641,"src":"wedding-photographers-aberdeen-example-171717_thumb.jpg","galleries_id":258034,"server_id":18,"link":"photo_4468641.html","width":130,"caption":"wedding-photographers-aberdeen-example-171717","height":87});
															thumbnails[4468793] = clik.newPhoto({"id":4468793,"src":"wedding-photographers-aberdeen-example-437_thumb.jpg","galleries_id":260405,"server_id":18,"link":"photo_4468793.html","width":130,"caption":"wedding-photographers-aberdeen-example-437","height":87});
															thumbnails[4550290] = clik.newPhoto({"id":4550290,"src":"wedding-photographers-aberdeen-example-871_thumb.jpg","galleries_id":263901,"server_id":18,"link":"photo_4550290.html","width":130,"caption":"wedding-photographers-aberdeen-example-87","height":195});
															thumbnails[4550417] = clik.newPhoto({"id":4550417,"src":"press-pr--commercial-photography-2712_thumb.jpg","galleries_id":263906,"server_id":18,"link":"photo_4550417.html","width":130,"caption":"press-pr--commercial-photography-27","height":98});
															thumbnails[4576242] = clik.newPhoto({"id":4576242,"src":"cairn-photography-portraiture-aberdeen-example-7123_thumb.jpg","galleries_id":265212,"server_id":18,"link":"photo_4576242.html","width":130,"caption":"cairn-photography-portraiture-aberdeen-example-7","height":87});
															thumbnails[4468642] = clik.newPhoto({"id":4468642,"src":"wedding-photographers-aberdeen-example-181818_thumb.jpg","galleries_id":258034,"server_id":18,"link":"photo_4468642.html","width":130,"caption":"wedding-photographers-aberdeen-example-181818","height":195});
															thumbnails[4468794] = clik.newPhoto({"id":4468794,"src":"wedding-photographers-aberdeen-example-438_thumb.jpg","galleries_id":260405,"server_id":18,"link":"photo_4468794.html","width":130,"caption":"wedding-photographers-aberdeen-example-438","height":89});
															thumbnails[4550291] = clik.newPhoto({"id":4550291,"src":"wedding-photographers-aberdeen-example-8812_thumb.jpg","galleries_id":263901,"server_id":18,"link":"photo_4550291.html","width":130,"caption":"wedding-photographers-aberdeen-example-88","height":195});
															thumbnails[4550418] = clik.newPhoto({"id":4550418,"src":"press-pr--commercial-photography-312_thumb.jpg","galleries_id":263906,"server_id":18,"link":"photo_4550418.html","width":130,"caption":"press-pr--commercial-photography-3","height":191});
															thumbnails[4576243] = clik.newPhoto({"id":4576243,"src":"cairn-photography-portraiture-aberdeen-example-8123_thumb.jpg","galleries_id":265212,"server_id":18,"link":"photo_4576243.html","width":130,"caption":"cairn-photography-portraiture-aberdeen-example-8","height":188});
															thumbnails[4468644] = clik.newPhoto({"id":4468644,"src":"wedding-photographers-aberdeen-example-202020_thumb.jpg","galleries_id":258034,"server_id":18,"link":"photo_4468644.html","width":130,"caption":"wedding-photographers-aberdeen-example-202020","height":195});
															thumbnails[4468795] = clik.newPhoto({"id":4468795,"src":"wedding-photographers-aberdeen-example-439_thumb.jpg","galleries_id":260405,"server_id":18,"link":"photo_4468795.html","width":130,"caption":"wedding-photographers-aberdeen-example-439","height":186});
															thumbnails[4550292] = clik.newPhoto({"id":4550292,"src":"wedding-photographers-aberdeen-example-8912_thumb.jpg","galleries_id":263901,"server_id":18,"link":"photo_4550292.html","width":130,"caption":"wedding-photographers-aberdeen-example-89","height":195});
															thumbnails[4550419] = clik.newPhoto({"id":4550419,"src":"press-pr--commercial-photography-3212_thumb.jpg","galleries_id":263906,"server_id":18,"link":"photo_4550419.html","width":130,"caption":"press-pr--commercial-photography-32","height":87});
															thumbnails[4576244] = clik.newPhoto({"id":4576244,"src":"cairn-photography-portraiture-aberdeen-example-9123_thumb.jpg","galleries_id":265212,"server_id":18,"link":"photo_4576244.html","width":130,"caption":"cairn-photography-portraiture-aberdeen-example-9","height":191});
															thumbnails[4468645] = clik.newPhoto({"id":4468645,"src":"wedding-photographers-aberdeen-example-212121_thumb.jpg","galleries_id":258034,"server_id":18,"link":"photo_4468645.html","width":130,"caption":"wedding-photographers-aberdeen-example-212121","height":87});
															thumbnails[4468796] = clik.newPhoto({"id":4468796,"src":"wedding-photographers-aberdeen-example-440_thumb.jpg","galleries_id":260405,"server_id":18,"link":"photo_4468796.html","width":130,"caption":"wedding-photographers-aberdeen-example-440","height":195});
															thumbnails[4550293] = clik.newPhoto({"id":4550293,"src":"wedding-photographers-aberdeen-example-9012_thumb.jpg","galleries_id":263901,"server_id":18,"link":"photo_4550293.html","width":130,"caption":"wedding-photographers-aberdeen-example-90","height":92});
															thumbnails[4550420] = clik.newPhoto({"id":4550420,"src":"press-pr--commercial-photography-3312_thumb.jpg","galleries_id":263906,"server_id":18,"link":"photo_4550420.html","width":130,"caption":"press-pr--commercial-photography-33","height":87});
															thumbnails[4468643] = clik.newPhoto({"id":4468643,"src":"wedding-photographers-aberdeen-example-191919_thumb.jpg","galleries_id":258034,"server_id":18,"link":"photo_4468643.html","width":130,"caption":"wedding-photographers-aberdeen-example-191919","height":92});
															thumbnails[4468797] = clik.newPhoto({"id":4468797,"src":"wedding-photographers-aberdeen-example-441_thumb.jpg","galleries_id":260405,"server_id":18,"link":"photo_4468797.html","width":130,"caption":"wedding-photographers-aberdeen-example-441","height":188});
															thumbnails[4550294] = clik.newPhoto({"id":4550294,"src":"wedding-photographers-aberdeen-example-9112_thumb.jpg","galleries_id":263901,"server_id":18,"link":"photo_4550294.html","width":130,"caption":"wedding-photographers-aberdeen-example-91","height":87});
															thumbnails[4550421] = clik.newPhoto({"id":4550421,"src":"press-pr--commercial-photography-3712_thumb.jpg","galleries_id":263906,"server_id":18,"link":"photo_4550421.html","width":130,"caption":"press-pr--commercial-photography-37","height":87});
															thumbnails[4468647] = clik.newPhoto({"id":4468647,"src":"wedding-photographers-aberdeen-example-222222_thumb.jpg","galleries_id":258034,"server_id":18,"link":"photo_4468647.html","width":130,"caption":"wedding-photographers-aberdeen-example-222222","height":195});
															thumbnails[4468798] = clik.newPhoto({"id":4468798,"src":"wedding-photographers-aberdeen-example-442_thumb.jpg","galleries_id":260405,"server_id":18,"link":"photo_4468798.html","width":130,"caption":"wedding-photographers-aberdeen-example-442","height":195});
															thumbnails[4550295] = clik.newPhoto({"id":4550295,"src":"wedding-photographers-aberdeen-example-9212_thumb.jpg","galleries_id":263901,"server_id":18,"link":"photo_4550295.html","width":130,"caption":"wedding-photographers-aberdeen-example-92","height":195});
															thumbnails[4550422] = clik.newPhoto({"id":4550422,"src":"press-pr--commercial-photography-3812_thumb.jpg","galleries_id":263906,"server_id":18,"link":"photo_4550422.html","width":130,"caption":"press-pr--commercial-photography-38","height":87});
															thumbnails[4468799] = clik.newPhoto({"id":4468799,"src":"wedding-photographers-aberdeen-example-443_thumb.jpg","galleries_id":260405,"server_id":18,"link":"photo_4468799.html","width":130,"caption":"wedding-photographers-aberdeen-example-443","height":87});
															thumbnails[4550296] = clik.newPhoto({"id":4550296,"src":"wedding-photographers-aberdeen-example-9312_thumb.jpg","galleries_id":263901,"server_id":18,"link":"photo_4550296.html","width":130,"caption":"wedding-photographers-aberdeen-example-93","height":195});
															thumbnails[4550423] = clik.newPhoto({"id":4550423,"src":"press-pr--commercial-photography-3912_thumb.jpg","galleries_id":263906,"server_id":18,"link":"photo_4550423.html","width":130,"caption":"press-pr--commercial-photography-39","height":93});
															thumbnails[4550298] = clik.newPhoto({"id":4550298,"src":"wedding-photographers-aberdeen-example-96-2212_thumb.jpg","galleries_id":263901,"server_id":18,"link":"photo_4550298.html","width":130,"caption":"wedding-photographers-aberdeen-example-96-(2)(2)","height":87});
															thumbnails[4550424] = clik.newPhoto({"id":4550424,"src":"press-pr--commercial-photography-4123_thumb.jpg","galleries_id":263906,"server_id":18,"link":"photo_4550424.html","width":130,"caption":"press-pr--commercial-photography-4","height":195});
															thumbnails[4550297] = clik.newPhoto({"id":4550297,"src":"wedding-photographers-aberdeen-example-94212_thumb.jpg","galleries_id":263901,"server_id":18,"link":"photo_4550297.html","width":130,"caption":"wedding-photographers-aberdeen-example-94(2)","height":194});
															thumbnails[4550425] = clik.newPhoto({"id":4550425,"src":"press-pr--commercial-photography-4112_thumb.jpg","galleries_id":263906,"server_id":18,"link":"photo_4550425.html","width":130,"caption":"press-pr--commercial-photography-41","height":92});
															thumbnails[4550426] = clik.newPhoto({"id":4550426,"src":"press-pr--commercial-photography-4221_thumb.jpg","galleries_id":263906,"server_id":18,"link":"photo_4550426.html","width":130,"caption":"press-pr--commercial-photography-422","height":87});
															thumbnails[4550427] = clik.newPhoto({"id":4550427,"src":"press-pr--commercial-photography-4712_thumb.jpg","galleries_id":263906,"server_id":18,"link":"photo_4550427.html","width":130,"caption":"press-pr--commercial-photography-47","height":91});
															thumbnails[4550428] = clik.newPhoto({"id":4550428,"src":"press-pr--commercial-photography-49-212_thumb.jpg","galleries_id":263906,"server_id":18,"link":"photo_4550428.html","width":130,"caption":"press-pr--commercial-photography-49-(2)","height":99});
															thumbnails[4550429] = clik.newPhoto({"id":4550429,"src":"press-pr--commercial-photography-5123_thumb.jpg","galleries_id":263906,"server_id":18,"link":"photo_4550429.html","width":130,"caption":"press-pr--commercial-photography-5","height":90});
															thumbnails[4550430] = clik.newPhoto({"id":4550430,"src":"press-pr--commercial-photography-5012_thumb.jpg","galleries_id":263906,"server_id":18,"link":"photo_4550430.html","width":130,"caption":"press-pr--commercial-photography-50","height":93});
															thumbnails[4550431] = clik.newPhoto({"id":4550431,"src":"press-pr--commercial-photography-5212_thumb.jpg","galleries_id":263906,"server_id":18,"link":"photo_4550431.html","width":130,"caption":"press-pr--commercial-photography-52","height":193});
															thumbnails[4550432] = clik.newPhoto({"id":4550432,"src":"press-pr--commercial-photography-5412_thumb.jpg","galleries_id":263906,"server_id":18,"link":"photo_4550432.html","width":130,"caption":"press-pr--commercial-photography-54","height":182});
															thumbnails[4550433] = clik.newPhoto({"id":4550433,"src":"press-pr--commercial-photography-5512_thumb.jpg","galleries_id":263906,"server_id":18,"link":"photo_4550433.html","width":130,"caption":"press-pr--commercial-photography-55","height":87});
															thumbnails[4550434] = clik.newPhoto({"id":4550434,"src":"press-pr--commercial-photography-5612_thumb.jpg","galleries_id":263906,"server_id":18,"link":"photo_4550434.html","width":130,"caption":"press-pr--commercial-photography-56","height":179});
															thumbnails[4550435] = clik.newPhoto({"id":4550435,"src":"press-pr--commercial-photography-5712_thumb.jpg","galleries_id":263906,"server_id":18,"link":"photo_4550435.html","width":130,"caption":"press-pr--commercial-photography-57","height":87});
															thumbnails[4550409] = clik.newPhoto({"id":4550409,"src":"press-pr--commercial-photography-1812_thumb.jpg","galleries_id":263906,"server_id":18,"link":"photo_4550409.html","width":130,"caption":"press-pr--commercial-photography-18","height":88});
															thumbnails[4550406] = clik.newPhoto({"id":4550406,"src":"press-pr--commercial-photography-1512_thumb.jpg","galleries_id":263906,"server_id":18,"link":"photo_4550406.html","width":130,"caption":"press-pr--commercial-photography-15","height":87});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[258033] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wedding Gallery 1","link":"gallery_258033.html","maxRecords":0.0,"photoIDs":[4468272.0,4468281.0,4468282.0,4468284.0,4468285.0,4468283.0,4468286.0,4468288.0,4468273.0,4468274.0,4468275.0,4468276.0,4468277.0,4468278.0,4468279.0,4468280.0],"skipIndex":0,"section_code":"gallery","featured_images":"4468288,4468286,4468285,4468284,4468283,4468282,4468281,4468280,4468279,4468278","id":258033,"singleSection":false});				  						galleries[258034] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wedding Gallery 2","link":"gallery_258034.html","maxRecords":0.0,"photoIDs":[4468634.0,4468646.0,4468648.0,4468649.0,4468650.0,4468652.0,4468653.0,4468651.0,4468654.0,4468633.0,4468635.0,4468636.0,4468638.0,4468637.0,4468639.0,4468640.0,4468641.0,4468642.0,4468644.0,4468645.0,4468643.0,4468647.0],"skipIndex":0,"section_code":"gallery","featured_images":"4468654,4468653,4468652,4468651,4468650,4468649,4468648,4468647,4468646,4468645","id":258034,"singleSection":false});				  						galleries[260405] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wedding Gallery 3","link":"gallery_260405.html","maxRecords":0.0,"photoIDs":[4468777.0,4468778.0,4468780.0,4468779.0,4468781.0,4468782.0,4468783.0,4468784.0,4468785.0,4468786.0,4468787.0,4468788.0,4468789.0,4468790.0,4468791.0,4468792.0,4468793.0,4468794.0,4468795.0,4468796.0,4468797.0,4468798.0,4468799.0],"skipIndex":0,"section_code":"gallery","featured_images":"4468799,4468798,4468797,4468796,4468795,4468794,4468793,4468792,4468791,4468790","id":260405,"singleSection":false});				  						galleries[263901] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wedding Gallery 4","link":"gallery_263901.html","maxRecords":0.0,"photoIDs":[4550279.0,4550274.0,4550280.0,4550281.0,4550282.0,4550283.0,4550284.0,4550278.0,4550277.0,4550276.0,4550275.0,4550285.0,4550287.0,4550286.0,4550288.0,4550289.0,4550290.0,4550291.0,4550292.0,4550293.0,4550294.0,4550295.0,4550296.0,4550298.0,4550297.0],"skipIndex":0,"section_code":"gallery","featured_images":"4550298,4550297,4550296,4550295,4550294,4550293,4550292,4550291,4550290,4550289","id":263901,"singleSection":false});				  						galleries[263906] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Commercial Gallery","link":"gallery_263906.html","maxRecords":0.0,"photoIDs":[4550401.0,4550402.0,5659768.0,4550436.0,5659769.0,4550403.0,4550437.0,5659770.0,4550404.0,5659771.0,4550405.0,5659772.0,5659773.0,4550407.0,5659774.0,4550408.0,5659775.0,5659776.0,4550410.0,4550411.0,4550412.0,4550413.0,4550414.0,4550415.0,4550416.0,4550417.0,4550418.0,4550419.0,4550420.0,4550421.0,4550422.0,4550423.0,4550424.0,4550425.0,4550426.0,4550427.0,4550428.0,4550429.0,4550430.0,4550431.0,4550432.0,4550433.0,4550434.0,4550435.0,4550409.0,4550406.0],"skipIndex":0,"section_code":"gallery","featured_images":"5659776,5659775,5659774,5659773,5659772,5659771,5659770,5659769,5659768,4550437","id":263906,"singleSection":false});				  						galleries[265212] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portraiture Gallery","link":"gallery_265212.html","maxRecords":0.0,"photoIDs":[4576225.0,4576227.0,4576228.0,4576229.0,4576231.0,4576233.0,4576234.0,4576235.0,4576236.0,4576237.0,4576232.0,4576238.0,4576239.0,4576240.0,4576245.0,4576241.0,4576242.0,4576243.0,4576244.0],"skipIndex":0,"section_code":"gallery","featured_images":"4576245,4576244,4576243,4576242,4576241,4576240,4576239,4576238,4576237,4576236","id":265212,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[231920] = '4546408,4546399';
imageSets[1] = '8426110,8426095,8426018,6409958,6409956,6400636,6400635,6390142,6390141,6390140,6383203,6383202,6383201,6383200,6383199,4514795,4463622,4463589,4463588,4463587,4463586,4463560,4463559,4463517,4463502,4463501,4463499,4463498,4463495,4463494,4463492,4463491,4463489';
imageSets[3] = '4463622,4463589,4463588,4463587,4463559,4463517,4463501,4463499,4463498,4463495,4463492,4463491,4463489';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/rocky6330/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/rocky6330/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/rocky6330/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/rocky6330/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/rocky6330/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/rocky6330/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/rocky6330/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/rocky6330/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/rocky6330/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/rocky6330/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/rocky6330/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/rocky6330/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/rocky6330/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/rocky6330/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/rocky6330/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/rocky6330/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/rocky6330/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/rocky6330/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/rocky6330/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/rocky6330/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/rocky6330/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/rocky6330/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/rocky6330/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 = 'Wedding Photographers Aberdeen: ' + 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;
	}
}

			

