window.thumbnails = {};
thumbnails[9162317] = clik.newPhoto({"link":"photo_9162317.html","caption":"Sunrise over Loch Insh","height":173,"id":9162317,"server_id":31,"src":"6895313407_33b856516e_z_1_thumb.jpg","galleries_id":484092,"width":260});
thumbnails[9164574] = clik.newPhoto({"link":"photo_9164574.html","caption":"Soft Focus Caledonian Pine Forest","height":390,"id":9164574,"server_id":31,"src":"6904174363_ed38468f25_b_1_thumb.jpg","galleries_id":484092,"width":260});
thumbnails[9164582] = clik.newPhoto({"link":"photo_9164582.html","caption":"On the Wing","height":174,"id":9164582,"server_id":31,"src":"6904177855_fe3e3c54ed_b_1_thumb.jpg","galleries_id":484092,"width":260});
thumbnails[9164618] = clik.newPhoto({"link":"photo_9164618.html","caption":"Capercaillie defends its Territory","height":174,"id":9164618,"server_id":31,"src":"6904201227_1428779b67_b_1_thumb.jpg","galleries_id":484092,"width":260});
thumbnails[9164632] = clik.newPhoto({"link":"photo_9164632.html","caption":"Golden Hour, Loch Insh","height":174,"id":9164632,"server_id":31,"src":"6904238557_c6d0fc0030_b_1_thumb.jpg","galleries_id":484092,"width":260});
thumbnails[9171919] = clik.newPhoto({"link":"photo_9171919.html","caption":"","height":173,"id":9171919,"server_id":31,"src":"new11_2_thumb.jpg","galleries_id":484092,"width":260});
thumbnails[9171921] = clik.newPhoto({"link":"photo_9171921.html","caption":"","height":173,"id":9171921,"server_id":31,"src":"new2_1_thumb.jpg","galleries_id":484092,"width":260});
thumbnails[9171922] = clik.newPhoto({"link":"photo_9171922.html","caption":"","height":173,"id":9171922,"server_id":31,"src":"new3_2_thumb.jpg","galleries_id":484092,"width":260});
thumbnails[9171926] = clik.newPhoto({"link":"photo_9171926.html","caption":"","height":390,"id":9171926,"server_id":31,"src":"new4_2_thumb.jpg","galleries_id":484092,"width":260});
thumbnails[9171927] = clik.newPhoto({"link":"photo_9171927.html","caption":"","height":173,"id":9171927,"server_id":31,"src":"new5_2_thumb.jpg","galleries_id":484092,"width":260});
thumbnails[9171928] = clik.newPhoto({"link":"photo_9171928.html","caption":"","height":173,"id":9171928,"server_id":31,"src":"new8_1_thumb.jpg","galleries_id":484092,"width":260});
thumbnails[9171929] = clik.newPhoto({"link":"photo_9171929.html","caption":"","height":173,"id":9171929,"server_id":31,"src":"new10_2_thumb.jpg","galleries_id":484092,"width":260});
thumbnails[9171930] = clik.newPhoto({"link":"photo_9171930.html","caption":"","height":173,"id":9171930,"server_id":31,"src":"new11_3_thumb.jpg","galleries_id":484092,"width":260});
thumbnails[9171931] = clik.newPhoto({"link":"photo_9171931.html","caption":"","height":173,"id":9171931,"server_id":31,"src":"new12_2_thumb.jpg","galleries_id":484092,"width":260});
thumbnails[9171933] = clik.newPhoto({"link":"photo_9171933.html","caption":"","height":173,"id":9171933,"server_id":31,"src":"new13_2_thumb.jpg","galleries_id":484092,"width":260});
thumbnails[9171936] = clik.newPhoto({"link":"photo_9171936.html","caption":"","height":173,"id":9171936,"server_id":31,"src":"new14_2_thumb.jpg","galleries_id":484092,"width":260});
thumbnails[9171937] = clik.newPhoto({"link":"photo_9171937.html","caption":"","height":390,"id":9171937,"server_id":31,"src":"new15_2_thumb.jpg","galleries_id":484092,"width":260});
thumbnails[9171939] = clik.newPhoto({"link":"photo_9171939.html","caption":"","height":390,"id":9171939,"server_id":31,"src":"new17_1_thumb.jpg","galleries_id":484092,"width":260});
thumbnails[9171941] = clik.newPhoto({"link":"photo_9171941.html","caption":"","height":173,"id":9171941,"server_id":31,"src":"new18_2_thumb.jpg","galleries_id":484092,"width":260});
thumbnails[9171944] = clik.newPhoto({"link":"photo_9171944.html","caption":"","height":173,"id":9171944,"server_id":31,"src":"new19_2_thumb.jpg","galleries_id":484092,"width":260});
thumbnails[9162316] = clik.newPhoto({"link":"photo_9162316.html","caption":"Dawn breaks over Loch Insh, Highlands","height":173,"id":9162316,"server_id":31,"src":"6895263177_824b3d91fd_z_1_thumb.jpg","galleries_id":484092,"width":260});
thumbnails[9164640] = clik.newPhoto({"link":"photo_9164640.html","caption":"Night draws in over Loch Insh","height":174,"id":9164640,"server_id":31,"src":"6904249235_227ced8e99_b_1_thumb.jpg","galleries_id":484092,"width":260});
thumbnails[9164635] = clik.newPhoto({"link":"photo_9164635.html","caption":"Head of Capercaillie","height":179,"id":9164635,"server_id":31,"src":"6904221709_efbe816a36_b_1_thumb.jpg","galleries_id":484092,"width":260});
thumbnails[8431277] = clik.newPhoto({"link":"photo_8431277.html","caption":"","height":130,"id":8431277,"server_id":31,"src":"1435_t_thumb.jpg","galleries_id":445572,"width":130});
thumbnails[8431279] = clik.newPhoto({"link":"photo_8431279.html","caption":"","height":130,"id":8431279,"server_id":31,"src":"nikon-d5000-dslr_thumb.jpg","galleries_id":445572,"width":130});
thumbnails[8431282] = clik.newPhoto({"link":"photo_8431282.html","caption":"","height":130,"id":8431282,"server_id":31,"src":"DSLR_extmic_thumb.jpg","galleries_id":445574,"width":130});
thumbnails[8431324] = clik.newPhoto({"link":"photo_8431324.html","caption":"","height":130,"id":8431324,"server_id":31,"src":"index-gal-1_thumb.jpg","galleries_id":445574,"width":130});
thumbnails[8779633] = clik.newPhoto({"link":"photo_8779633.html","caption":"","height":130,"id":8779633,"server_id":31,"src":"Photography_Boot_Camp_thumb.jpg","galleries_id":462363,"width":130});
thumbnails[8779635] = clik.newPhoto({"link":"photo_8779635.html","caption":"","height":130,"id":8779635,"server_id":31,"src":"Photography_Boot_Camp1_thumb.jpg","galleries_id":462363,"width":130});
thumbnails[8473722] = clik.newPhoto({"link":"photo_8473722.html","caption":"","height":125,"id":8473722,"server_id":31,"src":"e-flexible_learning_cardnew1_1_thumb.jpg","galleries_id":448244,"width":200});
thumbnails[8473762] = clik.newPhoto({"link":"photo_8473762.html","caption":"","height":125,"id":8473762,"server_id":31,"src":"e-flexible_learning_card_2new_1_thumb.jpg","galleries_id":448244,"width":200});
thumbnails[8473779] = clik.newPhoto({"link":"photo_8473779.html","caption":"","height":125,"id":8473779,"server_id":31,"src":"e-flexible_learning_card_3new_1_thumb.jpg","galleries_id":448244,"width":200});
thumbnails[8473792] = clik.newPhoto({"link":"photo_8473792.html","caption":"","height":125,"id":8473792,"server_id":31,"src":"e-flexible_learning_card_4new_1_thumb.jpg","galleries_id":448244,"width":200});
thumbnails[8473886] = clik.newPhoto({"link":"photo_8473886.html","caption":"","height":125,"id":8473886,"server_id":31,"src":"e-flexible_learning_card_5new_2_thumb.jpg","galleries_id":448244,"width":200});
thumbnails[8473892] = clik.newPhoto({"link":"photo_8473892.html","caption":"","height":125,"id":8473892,"server_id":31,"src":"e-flexible_learning_card_6new_1_thumb.jpg","galleries_id":448244,"width":200});
thumbnails[8473896] = clik.newPhoto({"link":"photo_8473896.html","caption":"","height":125,"id":8473896,"server_id":31,"src":"e-flexible_learning_card_7new_2_thumb.jpg","galleries_id":448244,"width":200});
thumbnails[8473927] = clik.newPhoto({"link":"photo_8473927.html","caption":"","height":125,"id":8473927,"server_id":31,"src":"e-flexible_learning_card_8new_1_thumb.jpg","galleries_id":448244,"width":200});
thumbnails[8473944] = clik.newPhoto({"link":"photo_8473944.html","caption":"","height":125,"id":8473944,"server_id":31,"src":"e-flexible_learning_card_9new_1_thumb.jpg","galleries_id":448244,"width":200});
thumbnails[8473959] = clik.newPhoto({"link":"photo_8473959.html","caption":"","height":125,"id":8473959,"server_id":31,"src":"e-flexible_learning_card_10new_1_thumb.jpg","galleries_id":448244,"width":200});
thumbnails[8483252] = clik.newPhoto({"link":"photo_8483252.html","caption":"","height":125,"id":8483252,"server_id":31,"src":"e-flexible_learning_card_11new_1_thumb.jpg","galleries_id":448244,"width":200});
thumbnails[8483254] = clik.newPhoto({"link":"photo_8483254.html","caption":"","height":125,"id":8483254,"server_id":31,"src":"e-flexible_learning_card_12new_1_thumb.jpg","galleries_id":448244,"width":200});
thumbnails[8483256] = clik.newPhoto({"link":"photo_8483256.html","caption":"","height":125,"id":8483256,"server_id":31,"src":"e-flexible_learning_card_13new_1_thumb.jpg","galleries_id":448244,"width":200});
thumbnails[8483258] = clik.newPhoto({"link":"photo_8483258.html","caption":"","height":125,"id":8483258,"server_id":31,"src":"e-flexible_learning_card_14new_1_thumb.jpg","galleries_id":448244,"width":200});
thumbnails[8483260] = clik.newPhoto({"link":"photo_8483260.html","caption":"","height":125,"id":8483260,"server_id":31,"src":"e-flexible_learning_card_15new_1_thumb.jpg","galleries_id":448244,"width":200});
thumbnails[8483261] = clik.newPhoto({"link":"photo_8483261.html","caption":"","height":125,"id":8483261,"server_id":31,"src":"e-flexible_learning_card_16new_1_thumb.jpg","galleries_id":448244,"width":200});
thumbnails[8483262] = clik.newPhoto({"link":"photo_8483262.html","caption":"","height":125,"id":8483262,"server_id":31,"src":"e-flexible_learning_card_17new_1_thumb.jpg","galleries_id":448244,"width":200});
thumbnails[8516527] = clik.newPhoto({"link":"photo_8516527.html","caption":"","height":125,"id":8516527,"server_id":31,"src":"e-flexible_learning_card_18new_1_thumb.jpg","galleries_id":448244,"width":200});
thumbnails[8516528] = clik.newPhoto({"link":"photo_8516528.html","caption":"","height":125,"id":8516528,"server_id":31,"src":"e-flexible_learning_card_19new_1_thumb.jpg","galleries_id":448244,"width":200});
thumbnails[8516529] = clik.newPhoto({"link":"photo_8516529.html","caption":"","height":125,"id":8516529,"server_id":31,"src":"e-flexible_learning_card_20new_1_thumb.jpg","galleries_id":448244,"width":200});
thumbnails[8516530] = clik.newPhoto({"link":"photo_8516530.html","caption":"","height":125,"id":8516530,"server_id":31,"src":"e-flexible_learning_card_21new_1_thumb.jpg","galleries_id":448244,"width":200});
thumbnails[8516531] = clik.newPhoto({"link":"photo_8516531.html","caption":"","height":125,"id":8516531,"server_id":31,"src":"e-flexible_learning_card_22new_1_thumb.jpg","galleries_id":448244,"width":200});
thumbnails[8988674] = clik.newPhoto({"link":"photo_8988674.html","caption":"","height":133,"id":8988674,"server_id":31,"src":"1_2_1_DSLR_Voucher_Weekdaynew_1_thumb.jpg","galleries_id":473379,"width":200});
thumbnails[8988691] = clik.newPhoto({"link":"photo_8988691.html","caption":"","height":133,"id":8988691,"server_id":31,"src":"1_2_1_DSLR_Voucher_Weekendnew_1_thumb.jpg","galleries_id":473379,"width":200});
thumbnails[8988693] = clik.newPhoto({"link":"photo_8988693.html","caption":"","height":133,"id":8988693,"server_id":31,"src":"1_2_1_HDSLR_Voucher_Weekdaynew_1_thumb.jpg","galleries_id":473379,"width":200});
thumbnails[8988695] = clik.newPhoto({"link":"photo_8988695.html","caption":"","height":133,"id":8988695,"server_id":31,"src":"1_2_1_HDSLR_Voucher_Weekendnew_1_thumb.jpg","galleries_id":473379,"width":200});
thumbnails[8988723] = clik.newPhoto({"link":"photo_8988723.html","caption":"","height":133,"id":8988723,"server_id":31,"src":"Two_Weekday_Boot_Campnew_1_thumb.jpg","galleries_id":473379,"width":200});
thumbnails[8988724] = clik.newPhoto({"link":"photo_8988724.html","caption":"","height":133,"id":8988724,"server_id":31,"src":"Weekend_Boot_Campnew_1_thumb.jpg","galleries_id":473379,"width":200});
thumbnails[8988733] = clik.newPhoto({"link":"photo_8988733.html","caption":"","height":133,"id":8988733,"server_id":31,"src":"Engagement_Option_1_Vouchernew_1_thumb.jpg","galleries_id":473379,"width":200});
thumbnails[8988734] = clik.newPhoto({"link":"photo_8988734.html","caption":"","height":133,"id":8988734,"server_id":31,"src":"Engagement_Option_2_Vouchernew_1_thumb.jpg","galleries_id":473379,"width":200});
thumbnails[8988740] = clik.newPhoto({"link":"photo_8988740.html","caption":"","height":133,"id":8988740,"server_id":31,"src":"Engagement_Option_3_Vouchernew_1_thumb.jpg","galleries_id":473379,"width":200});
thumbnails[8988788] = clik.newPhoto({"link":"photo_8988788.html","caption":"","height":133,"id":8988788,"server_id":31,"src":"Bronze_Wedding__Vouchernew_1_thumb.jpg","galleries_id":473379,"width":200});
thumbnails[8988810] = clik.newPhoto({"link":"photo_8988810.html","caption":"","height":133,"id":8988810,"server_id":31,"src":"silver_Wedding__Vouchernew_1_thumb.jpg","galleries_id":473379,"width":200});
thumbnails[8988815] = clik.newPhoto({"link":"photo_8988815.html","caption":"","height":133,"id":8988815,"server_id":31,"src":"Gold_Wedding__Vouchernew_1_thumb.jpg","galleries_id":473379,"width":200});
thumbnails[8988836] = clik.newPhoto({"link":"photo_8988836.html","caption":"","height":133,"id":8988836,"server_id":31,"src":"Platinum_Wedding__Vouchernew_1_thumb.jpg","galleries_id":473379,"width":200});
thumbnails[9090547] = clik.newPhoto({"link":"photo_9090547.html","caption":"","height":173,"id":9090547,"server_id":31,"src":"splash_image_3_thumb1_1.jpg","galleries_id":444583,"width":260});
thumbnails[9091966] = clik.newPhoto({"link":"photo_9091966.html","caption":"","height":390,"id":9091966,"server_id":31,"src":"portrait_clikpic_2_thumb.jpg","galleries_id":444583,"width":260});
thumbnails[9091974] = clik.newPhoto({"link":"photo_9091974.html","caption":"","height":390,"id":9091974,"server_id":31,"src":"portrait_clikpic_4_thumb.jpg","galleries_id":444583,"width":260});
thumbnails[9092047] = clik.newPhoto({"link":"photo_9092047.html","caption":"","height":390,"id":9092047,"server_id":31,"src":"portrait_clikpic_13_thumb.jpg","galleries_id":444583,"width":260});
thumbnails[9091972] = clik.newPhoto({"link":"photo_9091972.html","caption":"","height":390,"id":9091972,"server_id":31,"src":"portrait_clikpic_22_thumb.jpg","galleries_id":444583,"width":260});
thumbnails[9091975] = clik.newPhoto({"link":"photo_9091975.html","caption":"","height":174,"id":9091975,"server_id":31,"src":"portrait_clikpic_42_thumb1_1.jpg","galleries_id":444583,"width":260});
thumbnails[9091978] = clik.newPhoto({"link":"photo_9091978.html","caption":"","height":390,"id":9091978,"server_id":31,"src":"portrait_clikpic5_1_thumb.jpg","galleries_id":444583,"width":260});
thumbnails[9091983] = clik.newPhoto({"link":"photo_9091983.html","caption":"","height":390,"id":9091983,"server_id":31,"src":"portrait_clickpic_7_thumb.jpg","galleries_id":444583,"width":260});
thumbnails[9091988] = clik.newPhoto({"link":"photo_9091988.html","caption":"","height":390,"id":9091988,"server_id":31,"src":"portrait_clikpic7_1_thumb.jpg","galleries_id":444583,"width":260});
thumbnails[9092033] = clik.newPhoto({"link":"photo_9092033.html","caption":"","height":390,"id":9092033,"server_id":31,"src":"portrait_clickpic_72_thumb.jpg","galleries_id":444583,"width":260});
thumbnails[9092034] = clik.newPhoto({"link":"photo_9092034.html","caption":"","height":390,"id":9092034,"server_id":31,"src":"portrait_clikpic_10_thumb.jpg","galleries_id":444583,"width":260});
thumbnails[9092037] = clik.newPhoto({"link":"photo_9092037.html","caption":"","height":173,"id":9092037,"server_id":31,"src":"portrait_clikpic_102_thumb.jpg","galleries_id":444583,"width":260});
thumbnails[9092049] = clik.newPhoto({"link":"photo_9092049.html","caption":"","height":390,"id":9092049,"server_id":31,"src":"portrait_clikpic_12_thumb.jpg","galleries_id":444583,"width":260});
thumbnails[9092119] = clik.newPhoto({"link":"photo_9092119.html","caption":"Newly Engaged Couple by White Lodge","height":174,"id":9092119,"server_id":31,"src":"eng_clikpic_4_thumb.jpg","galleries_id":479179,"width":260});
thumbnails[9092121] = clik.newPhoto({"link":"photo_9092121.html","caption":"Just got Engaged ","height":173,"id":9092121,"server_id":31,"src":"eng_clikpic_2_thumb.jpg","galleries_id":479179,"width":260});
thumbnails[9092122] = clik.newPhoto({"link":"photo_9092122.html","caption":"","height":174,"id":9092122,"server_id":31,"src":"eng_clikpic_42_thumb.jpg","galleries_id":479179,"width":260});
thumbnails[9092124] = clik.newPhoto({"link":"photo_9092124.html","caption":"","height":173,"id":9092124,"server_id":31,"src":"eng_clikpic_7_thumb.jpg","galleries_id":479179,"width":260});
thumbnails[9092125] = clik.newPhoto({"link":"photo_9092125.html","caption":"Happy Engagement","height":390,"id":9092125,"server_id":31,"src":"eng_clikpic_22_thumb.jpg","galleries_id":479179,"width":260});
thumbnails[8409699] = clik.newPhoto({"link":"photo_8409699.html","caption":"","height":173,"id":8409699,"server_id":31,"src":"3982453709_978911c370_3_thumb.jpg","galleries_id":445567,"width":260});
thumbnails[9089050] = clik.newPhoto({"link":"photo_9089050.html","caption":"Newly Engaged Couple, Embankment","height":325,"id":9089050,"server_id":31,"src":"5299752439_ef6024101c_2_thumb.jpg","galleries_id":445567,"width":260});
thumbnails[8409705] = clik.newPhoto({"link":"photo_8409705.html","caption":"","height":173,"id":8409705,"server_id":31,"src":"eng_clikpic_8_thumb.jpg","galleries_id":445567,"width":260});
thumbnails[9169802] = clik.newPhoto({"link":"photo_9169802.html","caption":"","height":390,"id":9169802,"server_id":31,"src":"new0_1_thumb.jpg","galleries_id":444582,"width":260});
thumbnails[9169974] = clik.newPhoto({"link":"photo_9169974.html","caption":"","height":173,"id":9169974,"server_id":31,"src":"cp2_1_thumb.jpg","galleries_id":444582,"width":260});
thumbnails[9169834] = clik.newPhoto({"link":"photo_9169834.html","caption":"","height":173,"id":9169834,"server_id":31,"src":"new4_1_thumb.jpg","galleries_id":444582,"width":260});
thumbnails[9169907] = clik.newPhoto({"link":"photo_9169907.html","caption":"","height":173,"id":9169907,"server_id":31,"src":"new27_1_thumb.jpg","galleries_id":444582,"width":260});
thumbnails[9169894] = clik.newPhoto({"link":"photo_9169894.html","caption":"","height":173,"id":9169894,"server_id":31,"src":"new14_1_thumb.jpg","galleries_id":444582,"width":260});
thumbnails[9169931] = clik.newPhoto({"link":"photo_9169931.html","caption":"","height":173,"id":9169931,"server_id":31,"src":"new43_1_thumb.jpg","galleries_id":444582,"width":260});
thumbnails[9169830] = clik.newPhoto({"link":"photo_9169830.html","caption":"","height":390,"id":9169830,"server_id":31,"src":"new03_1_thumb.jpg","galleries_id":444582,"width":260});
thumbnails[9169895] = clik.newPhoto({"link":"photo_9169895.html","caption":"","height":173,"id":9169895,"server_id":31,"src":"new15_1_thumb.jpg","galleries_id":444582,"width":260});
thumbnails[9169878] = clik.newPhoto({"link":"photo_9169878.html","caption":"","height":173,"id":9169878,"server_id":31,"src":"new10_1_thumb.jpg","galleries_id":444582,"width":260});
thumbnails[9169892] = clik.newPhoto({"link":"photo_9169892.html","caption":"","height":173,"id":9169892,"server_id":31,"src":"new13_1_thumb.jpg","galleries_id":444582,"width":260});
thumbnails[9169973] = clik.newPhoto({"link":"photo_9169973.html","caption":"","height":173,"id":9169973,"server_id":31,"src":"cp13_1_thumb.jpg","galleries_id":444582,"width":260});
thumbnails[9169851] = clik.newPhoto({"link":"photo_9169851.html","caption":"","height":173,"id":9169851,"server_id":31,"src":"new05_1_thumb.jpg","galleries_id":444582,"width":260});
thumbnails[9169841] = clik.newPhoto({"link":"photo_9169841.html","caption":"","height":173,"id":9169841,"server_id":31,"src":"new04_1_thumb.jpg","galleries_id":444582,"width":260});
thumbnails[9169872] = clik.newPhoto({"link":"photo_9169872.html","caption":"","height":173,"id":9169872,"server_id":31,"src":"new9_1_thumb.jpg","galleries_id":444582,"width":260});
thumbnails[9169945] = clik.newPhoto({"link":"photo_9169945.html","caption":"","height":173,"id":9169945,"server_id":31,"src":"new55_1_thumb.jpg","galleries_id":444582,"width":260});
thumbnails[9169921] = clik.newPhoto({"link":"photo_9169921.html","caption":"","height":173,"id":9169921,"server_id":31,"src":"new36_1_thumb.jpg","galleries_id":444582,"width":260});
thumbnails[9169941] = clik.newPhoto({"link":"photo_9169941.html","caption":"","height":173,"id":9169941,"server_id":31,"src":"new51_1_thumb.jpg","galleries_id":444582,"width":260});
thumbnails[9169905] = clik.newPhoto({"link":"photo_9169905.html","caption":"","height":173,"id":9169905,"server_id":31,"src":"new25_1_thumb.jpg","galleries_id":444582,"width":260});
thumbnails[9169896] = clik.newPhoto({"link":"photo_9169896.html","caption":"","height":173,"id":9169896,"server_id":31,"src":"new16_1_thumb.jpg","galleries_id":444582,"width":260});
thumbnails[9169900] = clik.newPhoto({"link":"photo_9169900.html","caption":"","height":173,"id":9169900,"server_id":31,"src":"new19_1_thumb.jpg","galleries_id":444582,"width":260});
thumbnails[9169825] = clik.newPhoto({"link":"photo_9169825.html","caption":"","height":173,"id":9169825,"server_id":31,"src":"new3_1_thumb.jpg","galleries_id":444582,"width":260});
thumbnails[9169916] = clik.newPhoto({"link":"photo_9169916.html","caption":"","height":390,"id":9169916,"server_id":31,"src":"new34_1_thumb.jpg","galleries_id":444582,"width":260});
thumbnails[9169939] = clik.newPhoto({"link":"photo_9169939.html","caption":"","height":173,"id":9169939,"server_id":31,"src":"new49_1_thumb.jpg","galleries_id":444582,"width":260});
thumbnails[9169940] = clik.newPhoto({"link":"photo_9169940.html","caption":"","height":390,"id":9169940,"server_id":31,"src":"new50_1_thumb.jpg","galleries_id":444582,"width":260});
thumbnails[9169943] = clik.newPhoto({"link":"photo_9169943.html","caption":"","height":173,"id":9169943,"server_id":31,"src":"new52_1_thumb.jpg","galleries_id":444582,"width":260});
thumbnails[9169927] = clik.newPhoto({"link":"photo_9169927.html","caption":"","height":390,"id":9169927,"server_id":31,"src":"new41_1_thumb.jpg","galleries_id":444582,"width":260});
thumbnails[9169918] = clik.newPhoto({"link":"photo_9169918.html","caption":"","height":173,"id":9169918,"server_id":31,"src":"new35_1_thumb.jpg","galleries_id":444582,"width":260});
thumbnails[9169914] = clik.newPhoto({"link":"photo_9169914.html","caption":"","height":173,"id":9169914,"server_id":31,"src":"new33_1_thumb.jpg","galleries_id":444582,"width":260});
thumbnails[9169903] = clik.newPhoto({"link":"photo_9169903.html","caption":"","height":173,"id":9169903,"server_id":31,"src":"new23_1_thumb.jpg","galleries_id":444582,"width":260});
thumbnails[9169861] = clik.newPhoto({"link":"photo_9169861.html","caption":"","height":173,"id":9169861,"server_id":31,"src":"new7_1_thumb.jpg","galleries_id":444582,"width":260});
thumbnails[9169891] = clik.newPhoto({"link":"photo_9169891.html","caption":"","height":173,"id":9169891,"server_id":31,"src":"new12_1_thumb.jpg","galleries_id":444582,"width":260});
thumbnails[9169902] = clik.newPhoto({"link":"photo_9169902.html","caption":"","height":173,"id":9169902,"server_id":31,"src":"new21_1_thumb.jpg","galleries_id":444582,"width":260});
thumbnails[9169932] = clik.newPhoto({"link":"photo_9169932.html","caption":"","height":173,"id":9169932,"server_id":31,"src":"new44_1_thumb.jpg","galleries_id":444582,"width":260});
thumbnails[9169807] = clik.newPhoto({"link":"photo_9169807.html","caption":"","height":173,"id":9169807,"server_id":31,"src":"new11_1_thumb.jpg","galleries_id":444582,"width":260});
thumbnails[9169935] = clik.newPhoto({"link":"photo_9169935.html","caption":"","height":390,"id":9169935,"server_id":31,"src":"new47_1_thumb.jpg","galleries_id":444582,"width":260});
thumbnails[9169909] = clik.newPhoto({"link":"photo_9169909.html","caption":"","height":173,"id":9169909,"server_id":31,"src":"new30_1_thumb.jpg","galleries_id":444582,"width":260});
thumbnails[9169855] = clik.newPhoto({"link":"photo_9169855.html","caption":"","height":390,"id":9169855,"server_id":31,"src":"new06_1_thumb.jpg","galleries_id":444582,"width":260});
thumbnails[9169897] = clik.newPhoto({"link":"photo_9169897.html","caption":"","height":390,"id":9169897,"server_id":31,"src":"new18_1_thumb.jpg","galleries_id":444582,"width":260});
thumbnails[9169813] = clik.newPhoto({"link":"photo_9169813.html","caption":"","height":173,"id":9169813,"server_id":31,"src":"new01_1_thumb.jpg","galleries_id":444582,"width":260});
thumbnails[9169901] = clik.newPhoto({"link":"photo_9169901.html","caption":"","height":390,"id":9169901,"server_id":31,"src":"new20_1_thumb.jpg","galleries_id":444582,"width":260});
thumbnails[9169847] = clik.newPhoto({"link":"photo_9169847.html","caption":"","height":390,"id":9169847,"server_id":31,"src":"new5_1_thumb.jpg","galleries_id":444582,"width":260});
thumbnails[9169934] = clik.newPhoto({"link":"photo_9169934.html","caption":"","height":390,"id":9169934,"server_id":31,"src":"new46_1_thumb.jpg","galleries_id":444582,"width":260});
thumbnails[9169819] = clik.newPhoto({"link":"photo_9169819.html","caption":"","height":390,"id":9169819,"server_id":31,"src":"new02_1_thumb.jpg","galleries_id":444582,"width":260});
thumbnails[9169923] = clik.newPhoto({"link":"photo_9169923.html","caption":"","height":173,"id":9169923,"server_id":31,"src":"new38_1_thumb.jpg","galleries_id":444582,"width":260});
thumbnails[9169937] = clik.newPhoto({"link":"photo_9169937.html","caption":"","height":173,"id":9169937,"server_id":31,"src":"new48_1_thumb.jpg","galleries_id":444582,"width":260});
thumbnails[9169925] = clik.newPhoto({"link":"photo_9169925.html","caption":"","height":390,"id":9169925,"server_id":31,"src":"new40_1_thumb.jpg","galleries_id":444582,"width":260});
thumbnails[9169929] = clik.newPhoto({"link":"photo_9169929.html","caption":"","height":173,"id":9169929,"server_id":31,"src":"new42_1_thumb.jpg","galleries_id":444582,"width":260});
thumbnails[9169906] = clik.newPhoto({"link":"photo_9169906.html","caption":"","height":173,"id":9169906,"server_id":31,"src":"new26_1_thumb.jpg","galleries_id":444582,"width":260});
thumbnails[9169924] = clik.newPhoto({"link":"photo_9169924.html","caption":"","height":173,"id":9169924,"server_id":31,"src":"new39_1_thumb.jpg","galleries_id":444582,"width":260});
thumbnails[9169908] = clik.newPhoto({"link":"photo_9169908.html","caption":"","height":390,"id":9169908,"server_id":31,"src":"new29_1_thumb.jpg","galleries_id":444582,"width":260});
thumbnails[9169944] = clik.newPhoto({"link":"photo_9169944.html","caption":"","height":390,"id":9169944,"server_id":31,"src":"new54_1_thumb.jpg","galleries_id":444582,"width":260});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
galleries[484092] = clik.newGallery({"photoIDs":[9162317,9164574,9164582,9164618,9164632,9171919,9171921,9171922,9171926,9171927,9171928,9171929,9171930,9171931,9171933,9171936,9171937,9171939,9171941,9171944,9162316,9164640,9164635],"link":"section590632.html","skipIndex":0,"section_code":"section590632","id":484092,"parentGallery":"","featured_images":9164582,"maxRecords":0,"usePopups":true,"singleSection":true,"title":"Portfolio"});galleries[444582] = clik.newGallery({"photoIDs":[9169802,9169974,9169834,9169907,9169894,9169931,9169830,9169895,9169878,9169892,9169973,9169851,9169841,9169872,9169945,9169921,9169941,9169905,9169896,9169900,9169825,9169916,9169939,9169940,9169943,9169927,9169918,9169914,9169903,9169861,9169891,9169902,9169932,9169807,9169935,9169909,9169855,9169897,9169813,9169901,9169847,9169934,9169819,9169923,9169937,9169925,9169929,9169906,9169924,9169908,9169944],"link":"section515165.html","skipIndex":0,"section_code":"section515165","id":444582,"parentGallery":"","featured_images":9169802,"maxRecords":0,"usePopups":true,"singleSection":true,"title":"Weddings "});galleries[479179] = clik.newGallery({"photoIDs":[9092119,9092121,9092122,9092124,9092125],"link":"section583811.html","skipIndex":0,"section_code":"section583811","id":479179,"parentGallery":"","featured_images":"9092125,9092119","maxRecords":0,"usePopups":true,"singleSection":true,"title":"Engagement Gallery "});galleries[445567] = clik.newGallery({"photoIDs":[8409699,9089050,8409705],"link":"section535587.html","skipIndex":0,"section_code":"section535587","id":445567,"parentGallery":"","featured_images":"9089050,8409705,8409699","maxRecords":0,"usePopups":false,"singleSection":true,"title":"Engagement Packages"});galleries[444583] = clik.newGallery({"photoIDs":[9090547,9091966,9091974,9092047,9091972,9091975,9091978,9091983,9091988,9092033,9092034,9092037,9092049],"link":"section514121.html","skipIndex":0,"section_code":"section514121","id":444583,"parentGallery":"","featured_images":"9091966,9090547","maxRecords":0,"usePopups":true,"singleSection":true,"title":"Portraits"});galleries[445572] = clik.newGallery({"photoIDs":[8431277,8431279],"link":"section535594.html","skipIndex":0,"section_code":"section535594","id":445572,"parentGallery":"","featured_images":"8431279,8431277","maxRecords":0,"usePopups":false,"singleSection":true,"title":"DSLR Training"});galleries[473379] = clik.newGallery({"photoIDs":[8988674,8988691,8988693,8988695,8988723,8988724,8988733,8988734,8988740,8988788,8988810,8988815,8988836],"link":"section575594.html","skipIndex":0,"section_code":"section575594","id":473379,"parentGallery":"","featured_images":"8988836,8988815,8988810,8988788,8988740,8988734,8988733,8988724,8988723,8988695","maxRecords":0,"usePopups":false,"singleSection":true,"title":"Vouchers"});galleries[445574] = clik.newGallery({"photoIDs":[8431282,8431324],"link":"section535595.html","skipIndex":0,"section_code":"section535595","id":445574,"parentGallery":"","featured_images":"8431324,8431282","maxRecords":0,"usePopups":false,"singleSection":true,"title":"DSLR Video Camera Training"});galleries[462363] = clik.newGallery({"photoIDs":[8779633,8779635],"link":"section559858.html","skipIndex":0,"section_code":"section559858","id":462363,"parentGallery":"","featured_images":"8779635,8779633","maxRecords":0,"usePopups":false,"singleSection":true,"title":"Photography Boot Camp"});galleries[448244] = clik.newGallery({"photoIDs":[8473722,8473762,8473779,8473792,8473886,8473892,8473896,8473927,8473944,8473959,8483252,8483254,8483256,8483258,8483260,8483261,8483262,8516527,8516528,8516529,8516530,8516531],"link":"section539249.html","skipIndex":0,"section_code":"section539249","id":448244,"parentGallery":"","featured_images":"8516531,8516530,8516529,8516528,8516527,8483262,8483261,8483260,8483258,8483256","maxRecords":0,"usePopups":false,"singleSection":true,"title":"Online Learning"});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[3] = '9171944,9171941,9171939,9171937,9171936,9171933,9171931,9171930,9171929,9171928,9171927,9171926,9171922,9171921,9171919,9169974,9169973,9169945,9169944,9169943,9169941,9169940,9169939,9169937,9169935,9169934,9169932,9169931,9169929,9169927,9169925,9169924,9169923,9169921,9169918,9169916,9169914,9169909,9169908,9169907,9169906,9169905,9169903,9169902,9169901,9169900,9169897,9169896,9169895,9169894';
imageSets[2] = '9164582,9090547,9169802,9092119,9091966,9092125';
imageSets[1] = '9162316';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/stevesphotography/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/stevesphotography/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/stevesphotography/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/stevesphotography/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/stevesphotography/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/stevesphotography/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/stevesphotography/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/stevesphotography/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/stevesphotography/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/stevesphotography/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/stevesphotography/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/stevesphotography/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/stevesphotography/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/stevesphotography/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/stevesphotography/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/stevesphotography/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/stevesphotography/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/stevesphotography/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/stevesphotography/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/stevesphotography/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/stevesphotography/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/stevesphotography/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/stevesphotography/images';
		break;
	}
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/stevesphotography/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/stevesphotography/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/stevesphotography/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/stevesphotography/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = (backgrounds || photos || {})[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'section590632.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 && 'section590632' != '') {
					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 = 'Steve McLaren Photography 2012: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
			
	temp += this.fnGetPaymentInfo();
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.item_price !== '') {
					temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm">';
			temp += '	<input type="hidden" name="item_option" value="' + item_option + '">';
			temp += '	<input type="hidden" name="site" value="STEVESPHOTOGRAPHY">';
			temp += '	<input type="hidden" name="item_number" value="'+ this.id +'">';
			temp += '	<input type="hidden" name="quantity" value="1">';
						temp += '	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\'\;" onmouseout="this.className=\'button\'\;" type="Button">';
							temp += '	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';
			temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
			temp += '<div id="confirmContainer">';
			temp += '<div id="paymentConfirm">Item added to cart</div>';
			temp += '</div>';
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

		

