window.thumbnails = {};
															thumbnails[4254401] = clik.newPhoto({"id":4254401,"src":"Pet_web_44_of_65_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Pet web (44 of 65)","height":87});
															thumbnails[4254376] = clik.newPhoto({"id":4254376,"src":"Pet_web_3_of_65_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Pet web (3 of 65)","height":87});
															thumbnails[4251307] = clik.newPhoto({"id":4251307,"src":"Tina_10_of_66_thumb.jpg","galleries_id":251643,"server_id":5,"link":"photo_4251307.html","width":130,"caption":"Tina (10 of 66)","height":163});
															thumbnails[4254227] = clik.newPhoto({"id":4254227,"src":"Pet_web_1_of_1_thumb.jpg","galleries_id":251739,"server_id":5,"link":"photo_4254227.html","width":130,"caption":"Pet web (1 of 1)","height":195});
															thumbnails[4254372] = clik.newPhoto({"id":4254372,"src":"Pet_web_19_of_65_thumb.jpg","galleries_id":251740,"server_id":5,"link":"photo_4254372.html","width":130,"caption":"Pet web (19 of 65)","height":163});
															thumbnails[4254724] = clik.newPhoto({"id":4254724,"src":"Pet_web_35_of_65_thumb.jpg","galleries_id":251734,"server_id":5,"link":"photo_4254724.html","width":130,"caption":"Pet web (35 of 65)","height":87});
															thumbnails[4258984] = clik.newPhoto({"id":4258984,"src":"Margaret-Ann_and_Wullie_22_of_393_thumb.jpg","galleries_id":251762,"server_id":5,"link":"photo_4258984.html","width":130,"caption":"Margaret-Ann and Wullie (22 of 393)","height":163});
															thumbnails[5319899] = clik.newPhoto({"id":5319899,"src":"yellow_labrador_1_of_10_thumb.jpg","galleries_id":299519,"server_id":5,"link":"photo_5319899.html","width":130,"caption":"yellow labrador (1 of 10)","height":195});
															thumbnails[4259083] = clik.newPhoto({"id":4259083,"src":"Margaret-Ann_and_Wullie_24_of_393_thumb.jpg","galleries_id":251762,"server_id":5,"link":"photo_4259083.html","width":130,"caption":"Margaret-Ann and Wullie (24 of 393)","height":130});
															thumbnails[4259085] = clik.newPhoto({"id":4259085,"src":"Margaret-Ann_and_Wullie_26_of_393_thumb.jpg","galleries_id":251762,"server_id":5,"link":"photo_4259085.html","width":130,"caption":"Margaret-Ann and Wullie (26 of 393)","height":195});
															thumbnails[4254228] = clik.newPhoto({"id":4254228,"src":"Pet_web_12_of_65_thumb.jpg","galleries_id":251739,"server_id":5,"link":"photo_4254228.html","width":130,"caption":"Pet web (12 of 65)","height":163});
															thumbnails[4254373] = clik.newPhoto({"id":4254373,"src":"Pet_web_23_of_65_thumb.jpg","galleries_id":251740,"server_id":5,"link":"photo_4254373.html","width":130,"caption":"Pet web (23 of 65)","height":104});
															thumbnails[4254402] = clik.newPhoto({"id":4254402,"src":"Pet_web_46_of_65_thumb.jpg","galleries_id":251744,"server_id":5,"link":"photo_4254402.html","width":130,"caption":"Pet web (46 of 65)","height":87});
															thumbnails[4254726] = clik.newPhoto({"id":4254726,"src":"Pet_web_36_of_65_thumb.jpg","galleries_id":251734,"server_id":5,"link":"photo_4254726.html","width":130,"caption":"Pet web (36 of 65)","height":87});
															thumbnails[5319901] = clik.newPhoto({"id":5319901,"src":"yellow_labrador_2_of_10_thumb.jpg","galleries_id":299519,"server_id":5,"link":"photo_5319901.html","width":130,"caption":"yellow labrador (2 of 10)","height":195});
															thumbnails[4259084] = clik.newPhoto({"id":4259084,"src":"Margaret-Ann_and_Wullie_25_of_393_thumb.jpg","galleries_id":251762,"server_id":5,"link":"photo_4259084.html","width":130,"caption":"Margaret-Ann and Wullie (25 of 393)","height":104});
															thumbnails[4259086] = clik.newPhoto({"id":4259086,"src":"Margaret-Ann_and_Wullie_32_of_393_thumb.jpg","galleries_id":251762,"server_id":5,"link":"photo_4259086.html","width":130,"caption":"Margaret-Ann and Wullie (32 of 393)","height":195});
															thumbnails[4254229] = clik.newPhoto({"id":4254229,"src":"Pet_web_13_of_65_thumb.jpg","galleries_id":251739,"server_id":5,"link":"photo_4254229.html","width":130,"caption":"Pet web (13 of 65)","height":104});
															thumbnails[4254374] = clik.newPhoto({"id":4254374,"src":"Pet_web_26_of_65_thumb.jpg","galleries_id":251740,"server_id":5,"link":"photo_4254374.html","width":130,"caption":"Pet web (26 of 65)","height":163});
															thumbnails[4254403] = clik.newPhoto({"id":4254403,"src":"Pet_web_47_of_65_thumb.jpg","galleries_id":251744,"server_id":5,"link":"photo_4254403.html","width":130,"caption":"Pet web (47 of 65)","height":87});
															thumbnails[4254727] = clik.newPhoto({"id":4254727,"src":"Pet_web_37_of_65_thumb.jpg","galleries_id":251734,"server_id":5,"link":"photo_4254727.html","width":130,"caption":"Pet web (37 of 65)","height":87});
															thumbnails[4259087] = clik.newPhoto({"id":4259087,"src":"Margaret-Ann_and_Wullie_35_of_393_thumb.jpg","galleries_id":251762,"server_id":5,"link":"photo_4259087.html","width":130,"caption":"Margaret-Ann and Wullie (35 of 393)","height":195});
															thumbnails[4259089] = clik.newPhoto({"id":4259089,"src":"Margaret-Ann_and_Wullie_55_of_393_thumb.jpg","galleries_id":251762,"server_id":5,"link":"photo_4259089.html","width":130,"caption":"Margaret-Ann and Wullie (55 of 393)","height":195});
															thumbnails[4259090] = clik.newPhoto({"id":4259090,"src":"Margaret-Ann_and_Wullie_61_of_393_thumb.jpg","galleries_id":251762,"server_id":5,"link":"photo_4259090.html","width":130,"caption":"Margaret-Ann and Wullie (61 of 393)","height":87});
															thumbnails[4259088] = clik.newPhoto({"id":4259088,"src":"Margaret-Ann_and_Wullie_46_of_393_thumb.jpg","galleries_id":251762,"server_id":5,"link":"photo_4259088.html","width":130,"caption":"Margaret-Ann and Wullie (46 of 393)","height":87});
															thumbnails[4259091] = clik.newPhoto({"id":4259091,"src":"Margaret-Ann_and_Wullie_82_of_393_thumb.jpg","galleries_id":251762,"server_id":5,"link":"photo_4259091.html","width":130,"caption":"Margaret-Ann and Wullie (82 of 393)","height":104});
															thumbnails[4259092] = clik.newPhoto({"id":4259092,"src":"Margaret-Ann_and_Wullie_84_of_393_thumb.jpg","galleries_id":251762,"server_id":5,"link":"photo_4259092.html","width":130,"caption":"Margaret-Ann and Wullie (84 of 393)","height":163});
															thumbnails[4259093] = clik.newPhoto({"id":4259093,"src":"Margaret-Ann_and_Wullie_99_of_393_thumb.jpg","galleries_id":251762,"server_id":5,"link":"photo_4259093.html","width":130,"caption":"Margaret-Ann and Wullie (99 of 393)","height":104});
															thumbnails[4251310] = clik.newPhoto({"id":4251310,"src":"Tina_2_of_66_thumb.jpg","galleries_id":251643,"server_id":5,"link":"photo_4251310.html","width":130,"caption":"Tina (2 of 66)","height":195});
															thumbnails[4254230] = clik.newPhoto({"id":4254230,"src":"Pet_web_16_of_65_thumb.jpg","galleries_id":251739,"server_id":5,"link":"photo_4254230.html","width":130,"caption":"Pet web (16 of 65)","height":87});
															thumbnails[4254375] = clik.newPhoto({"id":4254375,"src":"Pet_web_28_of_65_thumb.jpg","galleries_id":251740,"server_id":5,"link":"photo_4254375.html","width":130,"caption":"Pet web (28 of 65)","height":195});
															thumbnails[4254404] = clik.newPhoto({"id":4254404,"src":"Pet_web_55_of_65_thumb.jpg","galleries_id":251744,"server_id":5,"link":"photo_4254404.html","width":130,"caption":"Pet web (55 of 65)","height":87});
															thumbnails[4254728] = clik.newPhoto({"id":4254728,"src":"Pet_web_38_of_65_thumb.jpg","galleries_id":251734,"server_id":5,"link":"photo_4254728.html","width":130,"caption":"Pet web (38 of 65)","height":104});
															thumbnails[4259081] = clik.newPhoto({"id":4259081,"src":"Margaret-Ann_and_Wullie_116_of_393_thumb.jpg","galleries_id":251762,"server_id":5,"link":"photo_4259081.html","width":130,"caption":"Margaret-Ann and Wullie (116 of 393)","height":104});
															thumbnails[5319902] = clik.newPhoto({"id":5319902,"src":"yellow_labrador_3_of_10_thumb.jpg","galleries_id":299519,"server_id":5,"link":"photo_5319902.html","width":130,"caption":"yellow labrador (3 of 10)","height":195});
															thumbnails[4259079] = clik.newPhoto({"id":4259079,"src":"Margaret-Ann_and_Wullie_114_of_393_thumb.jpg","galleries_id":251762,"server_id":5,"link":"photo_4259079.html","width":130,"caption":"Margaret-Ann and Wullie (114 of 393)","height":104});
															thumbnails[4254231] = clik.newPhoto({"id":4254231,"src":"Pet_web_29_of_65_thumb.jpg","galleries_id":251739,"server_id":5,"link":"photo_4254231.html","width":130,"caption":"Pet web (29 of 65)","height":195});
															thumbnails[4254405] = clik.newPhoto({"id":4254405,"src":"Pet_web_56_of_65_thumb.jpg","galleries_id":251744,"server_id":5,"link":"photo_4254405.html","width":130,"caption":"Pet web (56 of 65)","height":87});
															thumbnails[4254729] = clik.newPhoto({"id":4254729,"src":"Pet_web_39_of_65_thumb.jpg","galleries_id":251734,"server_id":5,"link":"photo_4254729.html","width":130,"caption":"Pet web (39 of 65)","height":195});
															thumbnails[5319903] = clik.newPhoto({"id":5319903,"src":"yellow_labrador_4_of_10_thumb.jpg","galleries_id":299519,"server_id":5,"link":"photo_5319903.html","width":130,"caption":"yellow labrador (4 of 10)","height":87});
															thumbnails[4259082] = clik.newPhoto({"id":4259082,"src":"Margaret-Ann_and_Wullie_117_of_393_thumb.jpg","galleries_id":251762,"server_id":5,"link":"photo_4259082.html","width":130,"caption":"Margaret-Ann and Wullie (117 of 393)","height":195});
															thumbnails[3857174] = clik.newPhoto({"id":3857174,"src":"gallerylou__6_of_24312_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857174.html","width":130,"caption":"gallerylou  (6 of 243)","height":104});
															thumbnails[4254232] = clik.newPhoto({"id":4254232,"src":"Pet_web_30_of_65_thumb.jpg","galleries_id":251739,"server_id":5,"link":"photo_4254232.html","width":130,"caption":"Pet web (30 of 65)","height":87});
															thumbnails[4254377] = clik.newPhoto({"id":4254377,"src":"Pet_web_7_of_65_thumb.jpg","galleries_id":251740,"server_id":5,"link":"photo_4254377.html","width":130,"caption":"Pet web (7 of 65)","height":87});
															thumbnails[4254406] = clik.newPhoto({"id":4254406,"src":"Pet_web_57_of_65_thumb.jpg","galleries_id":251744,"server_id":5,"link":"photo_4254406.html","width":130,"caption":"Pet web (57 of 65)","height":87});
															thumbnails[4254730] = clik.newPhoto({"id":4254730,"src":"Pet_web_40_of_65_thumb.jpg","galleries_id":251734,"server_id":5,"link":"photo_4254730.html","width":130,"caption":"Pet web (40 of 65)","height":87});
															thumbnails[5319904] = clik.newPhoto({"id":5319904,"src":"yellow_labrador_5_of_10_thumb.jpg","galleries_id":299519,"server_id":5,"link":"photo_5319904.html","width":130,"caption":"yellow labrador (5 of 10)","height":87});
															thumbnails[4259276] = clik.newPhoto({"id":4259276,"src":"Margaret-Ann_and_Wullie_123_of_393_thumb.jpg","galleries_id":251762,"server_id":5,"link":"photo_4259276.html","width":130,"caption":"Margaret-Ann and Wullie (123 of 393)","height":104});
															thumbnails[4259277] = clik.newPhoto({"id":4259277,"src":"Margaret-Ann_and_Wullie_126_of_393_thumb.jpg","galleries_id":251762,"server_id":5,"link":"photo_4259277.html","width":130,"caption":"Margaret-Ann and Wullie (126 of 393)","height":87});
															thumbnails[4259279] = clik.newPhoto({"id":4259279,"src":"Margaret-Ann_and_Wullie_136_of_393_thumb.jpg","galleries_id":251762,"server_id":5,"link":"photo_4259279.html","width":130,"caption":"Margaret-Ann and Wullie (136 of 393)","height":195});
															thumbnails[4259280] = clik.newPhoto({"id":4259280,"src":"Margaret-Ann_and_Wullie_137_of_393_thumb.jpg","galleries_id":251762,"server_id":5,"link":"photo_4259280.html","width":130,"caption":"Margaret-Ann and Wullie (137 of 393)","height":104});
															thumbnails[4251313] = clik.newPhoto({"id":4251313,"src":"Tina_36_of_66_thumb.jpg","galleries_id":251643,"server_id":5,"link":"photo_4251313.html","width":130,"caption":"Tina (36 of 66)","height":104});
															thumbnails[4254233] = clik.newPhoto({"id":4254233,"src":"Pet_web_4_of_65_thumb.jpg","galleries_id":251739,"server_id":5,"link":"photo_4254233.html","width":130,"caption":"Pet web (4 of 65)","height":195});
															thumbnails[4254378] = clik.newPhoto({"id":4254378,"src":"Pet_web_8_of_65_thumb.jpg","galleries_id":251740,"server_id":5,"link":"photo_4254378.html","width":130,"caption":"Pet web (8 of 65)","height":104});
															thumbnails[4254407] = clik.newPhoto({"id":4254407,"src":"Pet_web_58_of_65_thumb.jpg","galleries_id":251744,"server_id":5,"link":"photo_4254407.html","width":130,"caption":"Pet web (58 of 65)","height":87});
															thumbnails[5319905] = clik.newPhoto({"id":5319905,"src":"yellow_labrador_6_of_10_thumb.jpg","galleries_id":299519,"server_id":5,"link":"photo_5319905.html","width":130,"caption":"yellow labrador (6 of 10)","height":195});
															thumbnails[4259281] = clik.newPhoto({"id":4259281,"src":"Margaret-Ann_and_Wullie_139_of_393_thumb.jpg","galleries_id":251762,"server_id":5,"link":"photo_4259281.html","width":130,"caption":"Margaret-Ann and Wullie (139 of 393)","height":87});
															thumbnails[4259283] = clik.newPhoto({"id":4259283,"src":"Margaret-Ann_and_Wullie_142_of_393_thumb.jpg","galleries_id":251762,"server_id":5,"link":"photo_4259283.html","width":130,"caption":"Margaret-Ann and Wullie (142 of 393)","height":104});
															thumbnails[4259374] = clik.newPhoto({"id":4259374,"src":"Margaret-Ann_and_Wullie_170_of_393_thumb.jpg","galleries_id":251762,"server_id":5,"link":"photo_4259374.html","width":130,"caption":"Margaret-Ann and Wullie (170 of 393)","height":195});
															thumbnails[4259285] = clik.newPhoto({"id":4259285,"src":"Margaret-Ann_and_Wullie_154_of_393_thumb.jpg","galleries_id":251762,"server_id":5,"link":"photo_4259285.html","width":130,"caption":"Margaret-Ann and Wullie (154 of 393)","height":104});
															thumbnails[4259375] = clik.newPhoto({"id":4259375,"src":"Margaret-Ann_and_Wullie_177_of_393_thumb.jpg","galleries_id":251762,"server_id":5,"link":"photo_4259375.html","width":130,"caption":"Margaret-Ann and Wullie (177 of 393)","height":163});
															thumbnails[3857196] = clik.newPhoto({"id":3857196,"src":"gallerylou__8_of_2431_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857196.html","width":130,"caption":"gallerylou  (8 of 243)","height":87});
															thumbnails[4251314] = clik.newPhoto({"id":4251314,"src":"Tina_37_of_66_thumb.jpg","galleries_id":251643,"server_id":5,"link":"photo_4251314.html","width":130,"caption":"Tina (37 of 66)","height":195});
															thumbnails[4254234] = clik.newPhoto({"id":4254234,"src":"Pet_web_5_of_65_thumb.jpg","galleries_id":251739,"server_id":5,"link":"photo_4254234.html","width":130,"caption":"Pet web (5 of 65)","height":87});
															thumbnails[4254408] = clik.newPhoto({"id":4254408,"src":"Pet_web_59_of_65_thumb.jpg","galleries_id":251744,"server_id":5,"link":"photo_4254408.html","width":130,"caption":"Pet web (59 of 65)","height":87});
															thumbnails[5319906] = clik.newPhoto({"id":5319906,"src":"yellow_labrador_7_of_10_thumb.jpg","galleries_id":299519,"server_id":5,"link":"photo_5319906.html","width":130,"caption":"yellow labrador (7 of 10)","height":195});
															thumbnails[4259286] = clik.newPhoto({"id":4259286,"src":"Margaret-Ann_and_Wullie_165_of_393_thumb.jpg","galleries_id":251762,"server_id":5,"link":"photo_4259286.html","width":130,"caption":"Margaret-Ann and Wullie (165 of 393)","height":195});
															thumbnails[4259376] = clik.newPhoto({"id":4259376,"src":"Margaret-Ann_and_Wullie_182_of_393_thumb.jpg","galleries_id":251762,"server_id":5,"link":"photo_4259376.html","width":130,"caption":"Margaret-Ann and Wullie (182 of 393)","height":104});
															thumbnails[4259377] = clik.newPhoto({"id":4259377,"src":"Margaret-Ann_and_Wullie_184_of_393_thumb.jpg","galleries_id":251762,"server_id":5,"link":"photo_4259377.html","width":130,"caption":"Margaret-Ann and Wullie (184 of 393)","height":195});
															thumbnails[4259378] = clik.newPhoto({"id":4259378,"src":"Margaret-Ann_and_Wullie_186_of_393_thumb.jpg","galleries_id":251762,"server_id":5,"link":"photo_4259378.html","width":130,"caption":"Margaret-Ann and Wullie (186 of 393)","height":163});
															thumbnails[4259433] = clik.newPhoto({"id":4259433,"src":"Margaret-Ann_and_Wullie_193_of_393_thumb.jpg","galleries_id":251762,"server_id":5,"link":"photo_4259433.html","width":130,"caption":"Margaret-Ann and Wullie (193 of 393)","height":163});
															thumbnails[4259379] = clik.newPhoto({"id":4259379,"src":"Margaret-Ann_and_Wullie_189_of_393_thumb.jpg","galleries_id":251762,"server_id":5,"link":"photo_4259379.html","width":130,"caption":"Margaret-Ann and Wullie (189 of 393)","height":163});
															thumbnails[4259434] = clik.newPhoto({"id":4259434,"src":"Margaret-Ann_and_Wullie_208_of_393_thumb.jpg","galleries_id":251762,"server_id":5,"link":"photo_4259434.html","width":130,"caption":"Margaret-Ann and Wullie (208 of 393)","height":87});
															thumbnails[4259435] = clik.newPhoto({"id":4259435,"src":"Margaret-Ann_and_Wullie_211_of_393_thumb.jpg","galleries_id":251762,"server_id":5,"link":"photo_4259435.html","width":130,"caption":"Margaret-Ann and Wullie (211 of 393)","height":163});
															thumbnails[3857207] = clik.newPhoto({"id":3857207,"src":"gallerylou__9_of_2431_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857207.html","width":130,"caption":"gallerylou  (9 of 243)","height":104});
															thumbnails[4251315] = clik.newPhoto({"id":4251315,"src":"Tina_43_of_66_thumb.jpg","galleries_id":251643,"server_id":5,"link":"photo_4251315.html","width":130,"caption":"Tina (43 of 66)","height":195});
															thumbnails[4254235] = clik.newPhoto({"id":4254235,"src":"Pet_web_9_of_65_thumb.jpg","galleries_id":251739,"server_id":5,"link":"photo_4254235.html","width":130,"caption":"Pet web (9 of 65)","height":195});
															thumbnails[5319907] = clik.newPhoto({"id":5319907,"src":"yellow_labrador_8_of_10_thumb.jpg","galleries_id":299519,"server_id":5,"link":"photo_5319907.html","width":130,"caption":"yellow labrador (8 of 10)","height":195});
															thumbnails[3856975] = clik.newPhoto({"id":3856975,"src":"gallerylou__10_of_2431_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3856975.html","width":130,"caption":"gallerylou  (10 of 243)","height":130});
															thumbnails[4251316] = clik.newPhoto({"id":4251316,"src":"Tina_44_of_66_thumb.jpg","galleries_id":251643,"server_id":5,"link":"photo_4251316.html","width":130,"caption":"Tina (44 of 66)","height":163});
															thumbnails[5319900] = clik.newPhoto({"id":5319900,"src":"yellow_labrador_10_of_10_thumb.jpg","galleries_id":299519,"server_id":5,"link":"photo_5319900.html","width":130,"caption":"yellow labrador (10 of 10)","height":104});
															thumbnails[5319908] = clik.newPhoto({"id":5319908,"src":"yellow_labrador_9_of_10_thumb.jpg","galleries_id":299519,"server_id":5,"link":"photo_5319908.html","width":130,"caption":"yellow labrador (9 of 10)","height":163});
															thumbnails[4262928] = clik.newPhoto({"id":4262928,"src":"Margaret-Ann_and_Wullie_210_of_393_thumb.jpg","galleries_id":251762,"server_id":5,"link":"photo_4262928.html","width":130,"caption":"Margaret-Ann and Wullie (210 of 393)","height":87});
															thumbnails[4262929] = clik.newPhoto({"id":4262929,"src":"Margaret-Ann_and_Wullie_213_of_393_thumb.jpg","galleries_id":251762,"server_id":5,"link":"photo_4262929.html","width":130,"caption":"Margaret-Ann and Wullie (213 of 393)","height":104});
															thumbnails[4262930] = clik.newPhoto({"id":4262930,"src":"Margaret-Ann_and_Wullie_220_of_393_thumb.jpg","galleries_id":251762,"server_id":5,"link":"photo_4262930.html","width":130,"caption":"Margaret-Ann and Wullie (220 of 393)","height":87});
															thumbnails[4262931] = clik.newPhoto({"id":4262931,"src":"Margaret-Ann_and_Wullie_221_of_393_thumb.jpg","galleries_id":251762,"server_id":5,"link":"photo_4262931.html","width":130,"caption":"Margaret-Ann and Wullie (221 of 393)","height":163});
															thumbnails[4262935] = clik.newPhoto({"id":4262935,"src":"Margaret-Ann_and_Wullie_299_of_393_thumb.jpg","galleries_id":251762,"server_id":5,"link":"photo_4262935.html","width":130,"caption":"Margaret-Ann and Wullie (299 of 393)","height":104});
															thumbnails[4251317] = clik.newPhoto({"id":4251317,"src":"Tina_46_of_66_thumb.jpg","galleries_id":251643,"server_id":5,"link":"photo_4251317.html","width":130,"caption":"Tina (46 of 66)","height":104});
															thumbnails[4263101] = clik.newPhoto({"id":4263101,"src":"Margaret-Ann_and_Wullie_241_of_393_thumb.jpg","galleries_id":251762,"server_id":5,"link":"photo_4263101.html","width":130,"caption":"Margaret-Ann and Wullie (241 of 393)","height":78});
															thumbnails[4263103] = clik.newPhoto({"id":4263103,"src":"Margaret-Ann_and_Wullie_245_of_393_thumb.jpg","galleries_id":251762,"server_id":5,"link":"photo_4263103.html","width":130,"caption":"Margaret-Ann and Wullie (245 of 393)","height":78});
															thumbnails[4263102] = clik.newPhoto({"id":4263102,"src":"Margaret-Ann_and_Wullie_244_of_393_thumb.jpg","galleries_id":251762,"server_id":5,"link":"photo_4263102.html","width":130,"caption":"Margaret-Ann and Wullie (244 of 393)","height":104});
															thumbnails[4263100] = clik.newPhoto({"id":4263100,"src":"Margaret-Ann_and_Wullie_239_of_393_thumb.jpg","galleries_id":251762,"server_id":5,"link":"photo_4263100.html","width":130,"caption":"Margaret-Ann and Wullie (239 of 393)","height":163});
															thumbnails[4262933] = clik.newPhoto({"id":4262933,"src":"Margaret-Ann_and_Wullie_238_of_393_thumb.jpg","galleries_id":251762,"server_id":5,"link":"photo_4262933.html","width":130,"caption":"Margaret-Ann and Wullie (238 of 393)","height":163});
															thumbnails[4251318] = clik.newPhoto({"id":4251318,"src":"Tina_51_of_66_thumb.jpg","galleries_id":251643,"server_id":5,"link":"photo_4251318.html","width":130,"caption":"Tina (51 of 66)","height":104});
															thumbnails[4263105] = clik.newPhoto({"id":4263105,"src":"Margaret-Ann_and_Wullie_311_of_393_thumb.jpg","galleries_id":251762,"server_id":5,"link":"photo_4263105.html","width":130,"caption":"Margaret-Ann and Wullie (311 of 393)","height":195});
															thumbnails[4263107] = clik.newPhoto({"id":4263107,"src":"Margaret-Ann_and_Wullie_314_of_393_thumb.jpg","galleries_id":251762,"server_id":5,"link":"photo_4263107.html","width":130,"caption":"Margaret-Ann and Wullie (314 of 393)","height":87});
															thumbnails[4263106] = clik.newPhoto({"id":4263106,"src":"Margaret-Ann_and_Wullie_312_of_393_thumb.jpg","galleries_id":251762,"server_id":5,"link":"photo_4263106.html","width":130,"caption":"Margaret-Ann and Wullie (312 of 393)","height":87});
															thumbnails[4263108] = clik.newPhoto({"id":4263108,"src":"Margaret-Ann_and_Wullie_316_of_393_thumb.jpg","galleries_id":251762,"server_id":5,"link":"photo_4263108.html","width":130,"caption":"Margaret-Ann and Wullie (316 of 393)","height":87});
															thumbnails[4263284] = clik.newPhoto({"id":4263284,"src":"Margaret-Ann_and_Wullie_318_of_393_thumb.jpg","galleries_id":251762,"server_id":5,"link":"photo_4263284.html","width":130,"caption":"Margaret-Ann and Wullie (318 of 393)","height":87});
															thumbnails[4263285] = clik.newPhoto({"id":4263285,"src":"Margaret-Ann_and_Wullie_321_of_393_thumb.jpg","galleries_id":251762,"server_id":5,"link":"photo_4263285.html","width":130,"caption":"Margaret-Ann and Wullie (321 of 393)","height":195});
															thumbnails[4251319] = clik.newPhoto({"id":4251319,"src":"Tina_54_of_66_thumb.jpg","galleries_id":251643,"server_id":5,"link":"photo_4251319.html","width":130,"caption":"Tina (54 of 66)","height":87});
															thumbnails[4263282] = clik.newPhoto({"id":4263282,"src":"Margaret-Ann_and_Wullie_290_of_393_thumb.jpg","galleries_id":251762,"server_id":5,"link":"photo_4263282.html","width":130,"caption":"Margaret-Ann and Wullie (290 of 393)","height":104});
															thumbnails[4263283] = clik.newPhoto({"id":4263283,"src":"Margaret-Ann_and_Wullie_291_of_393_thumb.jpg","galleries_id":251762,"server_id":5,"link":"photo_4263283.html","width":130,"caption":"Margaret-Ann and Wullie (291 of 393)","height":87});
															thumbnails[4263274] = clik.newPhoto({"id":4263274,"src":"Margaret-Ann_and_Wullie_256_of_393_thumb.jpg","galleries_id":251762,"server_id":5,"link":"photo_4263274.html","width":130,"caption":"Margaret-Ann and Wullie (256 of 393)","height":195});
															thumbnails[4263275] = clik.newPhoto({"id":4263275,"src":"Margaret-Ann_and_Wullie_260_of_393_thumb.jpg","galleries_id":251762,"server_id":5,"link":"photo_4263275.html","width":130,"caption":"Margaret-Ann and Wullie (260 of 393)","height":195});
															thumbnails[3857019] = clik.newPhoto({"id":3857019,"src":"gallerylou__14_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857019.html","width":130,"caption":"gallerylou  (14 of 243)","height":104});
															thumbnails[4251320] = clik.newPhoto({"id":4251320,"src":"Tina_56_of_66_thumb.jpg","galleries_id":251643,"server_id":5,"link":"photo_4251320.html","width":130,"caption":"Tina (56 of 66)","height":93});
															thumbnails[4263276] = clik.newPhoto({"id":4263276,"src":"Margaret-Ann_and_Wullie_263_of_393_thumb.jpg","galleries_id":251762,"server_id":5,"link":"photo_4263276.html","width":130,"caption":"Margaret-Ann and Wullie (263 of 393)","height":104});
															thumbnails[4263278] = clik.newPhoto({"id":4263278,"src":"Margaret-Ann_and_Wullie_269_of_393_thumb.jpg","galleries_id":251762,"server_id":5,"link":"photo_4263278.html","width":130,"caption":"Margaret-Ann and Wullie (269 of 393)","height":195});
															thumbnails[4263279] = clik.newPhoto({"id":4263279,"src":"Margaret-Ann_and_Wullie_270_of_393_thumb.jpg","galleries_id":251762,"server_id":5,"link":"photo_4263279.html","width":130,"caption":"Margaret-Ann and Wullie (270 of 393)","height":195});
															thumbnails[4263363] = clik.newPhoto({"id":4263363,"src":"Margaret-Ann_and_Wullie_324_of_393_thumb.jpg","galleries_id":251762,"server_id":5,"link":"photo_4263363.html","width":130,"caption":"Margaret-Ann and Wullie (324 of 393)","height":195});
															thumbnails[4263365] = clik.newPhoto({"id":4263365,"src":"Margaret-Ann_and_Wullie_326_of_393_thumb.jpg","galleries_id":251762,"server_id":5,"link":"photo_4263365.html","width":130,"caption":"Margaret-Ann and Wullie (326 of 393)","height":195});
															thumbnails[4263364] = clik.newPhoto({"id":4263364,"src":"Margaret-Ann_and_Wullie_325_of_393_thumb.jpg","galleries_id":251762,"server_id":5,"link":"photo_4263364.html","width":130,"caption":"Margaret-Ann and Wullie (325 of 393)","height":195});
															thumbnails[4251321] = clik.newPhoto({"id":4251321,"src":"Tina_65_of_66_thumb.jpg","galleries_id":251643,"server_id":5,"link":"photo_4251321.html","width":130,"caption":"Tina (65 of 66)","height":195});
															thumbnails[4263366] = clik.newPhoto({"id":4263366,"src":"Margaret-Ann_and_Wullie_328_of_393_thumb.jpg","galleries_id":251762,"server_id":5,"link":"photo_4263366.html","width":130,"caption":"Margaret-Ann and Wullie (328 of 393)","height":87});
															thumbnails[3857054] = clik.newPhoto({"id":3857054,"src":"gallerylou__17_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857054.html","width":130,"caption":"gallerylou  (17 of 243)","height":130});
															thumbnails[3861629] = clik.newPhoto({"id":3861629,"src":"gallerylou__18_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3861629.html","width":130,"caption":"gallerylou  (18 of 243)","height":130});
															thumbnails[4251411] = clik.newPhoto({"id":4251411,"src":"Tina_40_of_66_thumb.jpg","galleries_id":251643,"server_id":5,"link":"photo_4251411.html","width":130,"caption":"Tina (40 of 66)","height":195});
															thumbnails[3857087] = clik.newPhoto({"id":3857087,"src":"gallerylou__20_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857087.html","width":130,"caption":"gallerylou  (20 of 243)","height":195});
															thumbnails[3857120] = clik.newPhoto({"id":3857120,"src":"gallerylou__23_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857120.html","width":130,"caption":"gallerylou  (23 of 243)","height":195});
															thumbnails[3857131] = clik.newPhoto({"id":3857131,"src":"gallerylou__24_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857131.html","width":130,"caption":"gallerylou  (24 of 243)","height":104});
															thumbnails[3857136] = clik.newPhoto({"id":3857136,"src":"gallerylou__25_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857136.html","width":130,"caption":"gallerylou  (25 of 243)","height":87});
															thumbnails[3857137] = clik.newPhoto({"id":3857137,"src":"gallerylou__26_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857137.html","width":130,"caption":"gallerylou  (26 of 243)","height":104});
															thumbnails[3857139] = clik.newPhoto({"id":3857139,"src":"gallerylou__28_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857139.html","width":130,"caption":"gallerylou  (28 of 243)","height":104});
															thumbnails[3857142] = clik.newPhoto({"id":3857142,"src":"gallerylou__30_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857142.html","width":130,"caption":"gallerylou  (30 of 243)","height":87});
															thumbnails[3857144] = clik.newPhoto({"id":3857144,"src":"gallerylou__32_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857144.html","width":130,"caption":"gallerylou  (32 of 243)","height":104});
															thumbnails[3857145] = clik.newPhoto({"id":3857145,"src":"gallerylou__33_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857145.html","width":130,"caption":"gallerylou  (33 of 243)","height":130});
															thumbnails[3857146] = clik.newPhoto({"id":3857146,"src":"gallerylou__34_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857146.html","width":130,"caption":"gallerylou  (34 of 243)","height":130});
															thumbnails[3857147] = clik.newPhoto({"id":3857147,"src":"gallerylou__35_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857147.html","width":130,"caption":"gallerylou  (35 of 243)","height":163});
															thumbnails[3857148] = clik.newPhoto({"id":3857148,"src":"gallerylou__36_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857148.html","width":130,"caption":"gallerylou  (36 of 243)","height":104});
															thumbnails[3857149] = clik.newPhoto({"id":3857149,"src":"gallerylou__37_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857149.html","width":130,"caption":"gallerylou  (37 of 243)","height":104});
															thumbnails[3857151] = clik.newPhoto({"id":3857151,"src":"gallerylou__39_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857151.html","width":130,"caption":"gallerylou  (39 of 243)","height":93});
															thumbnails[3857153] = clik.newPhoto({"id":3857153,"src":"gallerylou__40_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857153.html","width":130,"caption":"gallerylou  (40 of 243)","height":163});
															thumbnails[3857157] = clik.newPhoto({"id":3857157,"src":"gallerylou__44_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857157.html","width":130,"caption":"gallerylou  (44 of 243)","height":163});
															thumbnails[3857158] = clik.newPhoto({"id":3857158,"src":"gallerylou__45_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857158.html","width":130,"caption":"gallerylou  (45 of 243)","height":195});
															thumbnails[3857159] = clik.newPhoto({"id":3857159,"src":"gallerylou__46_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857159.html","width":130,"caption":"gallerylou  (46 of 243)","height":87});
															thumbnails[3857160] = clik.newPhoto({"id":3857160,"src":"gallerylou__47_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857160.html","width":130,"caption":"gallerylou  (47 of 243)","height":87});
															thumbnails[3857161] = clik.newPhoto({"id":3857161,"src":"gallerylou__48_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857161.html","width":130,"caption":"gallerylou  (48 of 243)","height":87});
															thumbnails[3857166] = clik.newPhoto({"id":3857166,"src":"gallerylou__52_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857166.html","width":130,"caption":"gallerylou  (52 of 243)","height":163});
															thumbnails[3857172] = clik.newPhoto({"id":3857172,"src":"gallerylou__58_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857172.html","width":130,"caption":"gallerylou  (58 of 243)","height":163});
															thumbnails[3857173] = clik.newPhoto({"id":3857173,"src":"gallerylou__59_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857173.html","width":130,"caption":"gallerylou  (59 of 243)","height":130});
															thumbnails[3857176] = clik.newPhoto({"id":3857176,"src":"gallerylou__61_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857176.html","width":130,"caption":"gallerylou  (61 of 243)","height":104});
															thumbnails[3857177] = clik.newPhoto({"id":3857177,"src":"gallerylou__62_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857177.html","width":130,"caption":"gallerylou  (62 of 243)","height":87});
															thumbnails[3857178] = clik.newPhoto({"id":3857178,"src":"gallerylou__63_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857178.html","width":130,"caption":"gallerylou  (63 of 243)","height":87});
															thumbnails[3857179] = clik.newPhoto({"id":3857179,"src":"gallerylou__64_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857179.html","width":130,"caption":"gallerylou  (64 of 243)","height":87});
															thumbnails[3857183] = clik.newPhoto({"id":3857183,"src":"gallerylou__68_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857183.html","width":130,"caption":"gallerylou  (68 of 243)","height":130});
															thumbnails[3857188] = clik.newPhoto({"id":3857188,"src":"gallerylou__72_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857188.html","width":130,"caption":"gallerylou  (72 of 243)","height":104});
															thumbnails[3857189] = clik.newPhoto({"id":3857189,"src":"gallerylou__73_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857189.html","width":130,"caption":"gallerylou  (73 of 243)","height":130});
															thumbnails[3857191] = clik.newPhoto({"id":3857191,"src":"gallerylou__75_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857191.html","width":130,"caption":"gallerylou  (75 of 243)","height":104});
															thumbnails[3857192] = clik.newPhoto({"id":3857192,"src":"gallerylou__76_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857192.html","width":130,"caption":"gallerylou  (76 of 243)","height":103});
															thumbnails[3857195] = clik.newPhoto({"id":3857195,"src":"gallerylou__79_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857195.html","width":130,"caption":"gallerylou  (79 of 243)","height":163});
															thumbnails[3857197] = clik.newPhoto({"id":3857197,"src":"gallerylou__80_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857197.html","width":130,"caption":"gallerylou  (80 of 243)","height":87});
															thumbnails[3857198] = clik.newPhoto({"id":3857198,"src":"gallerylou__81_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857198.html","width":130,"caption":"gallerylou  (81 of 243)","height":130});
															thumbnails[3857199] = clik.newPhoto({"id":3857199,"src":"gallerylou__82_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857199.html","width":130,"caption":"gallerylou  (82 of 243)","height":130});
															thumbnails[3857200] = clik.newPhoto({"id":3857200,"src":"gallerylou__83_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857200.html","width":130,"caption":"gallerylou  (83 of 243)","height":93});
															thumbnails[3857201] = clik.newPhoto({"id":3857201,"src":"gallerylou__84_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857201.html","width":130,"caption":"gallerylou  (84 of 243)","height":104});
															thumbnails[3857202] = clik.newPhoto({"id":3857202,"src":"gallerylou__85_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857202.html","width":130,"caption":"gallerylou  (85 of 243)","height":130});
															thumbnails[3857203] = clik.newPhoto({"id":3857203,"src":"gallerylou__86_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857203.html","width":130,"caption":"gallerylou  (86 of 243)","height":130});
															thumbnails[3857208] = clik.newPhoto({"id":3857208,"src":"gallerylou__90_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857208.html","width":130,"caption":"gallerylou  (90 of 243)","height":87});
															thumbnails[3857214] = clik.newPhoto({"id":3857214,"src":"gallerylou__96_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857214.html","width":130,"caption":"gallerylou  (96 of 243)","height":163});
															thumbnails[3857215] = clik.newPhoto({"id":3857215,"src":"gallerylou__97_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857215.html","width":130,"caption":"gallerylou  (97 of 243)","height":130});
															thumbnails[3856976] = clik.newPhoto({"id":3856976,"src":"gallerylou__100_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3856976.html","width":130,"caption":"gallerylou  (100 of 243)","height":104});
															thumbnails[3856977] = clik.newPhoto({"id":3856977,"src":"gallerylou__101_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3856977.html","width":130,"caption":"gallerylou  (101 of 243)","height":104});
															thumbnails[3856978] = clik.newPhoto({"id":3856978,"src":"gallerylou__102_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3856978.html","width":130,"caption":"gallerylou  (102 of 243)","height":104});
															thumbnails[3856981] = clik.newPhoto({"id":3856981,"src":"gallerylou__105_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3856981.html","width":130,"caption":"gallerylou  (105 of 243)","height":104});
															thumbnails[3856985] = clik.newPhoto({"id":3856985,"src":"gallerylou__109_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3856985.html","width":130,"caption":"gallerylou  (109 of 243)","height":104});
															thumbnails[3856988] = clik.newPhoto({"id":3856988,"src":"gallerylou__111_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3856988.html","width":130,"caption":"gallerylou  (111 of 243)","height":104});
															thumbnails[3856989] = clik.newPhoto({"id":3856989,"src":"gallerylou__112_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3856989.html","width":130,"caption":"gallerylou  (112 of 243)","height":104});
															thumbnails[3856991] = clik.newPhoto({"id":3856991,"src":"gallerylou__114_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3856991.html","width":130,"caption":"gallerylou  (114 of 243)","height":87});
															thumbnails[3856994] = clik.newPhoto({"id":3856994,"src":"gallerylou__117_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3856994.html","width":130,"caption":"gallerylou  (117 of 243)","height":130});
															thumbnails[3856998] = clik.newPhoto({"id":3856998,"src":"gallerylou__120_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3856998.html","width":130,"caption":"gallerylou  (120 of 243)","height":104});
															thumbnails[3857000] = clik.newPhoto({"id":3857000,"src":"gallerylou__122_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857000.html","width":130,"caption":"gallerylou  (122 of 243)","height":87});
															thumbnails[3857003] = clik.newPhoto({"id":3857003,"src":"gallerylou__125_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857003.html","width":130,"caption":"gallerylou  (125 of 243)","height":130});
															thumbnails[3857006] = clik.newPhoto({"id":3857006,"src":"gallerylou__128_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857006.html","width":130,"caption":"gallerylou  (128 of 243)","height":104});
															thumbnails[3857009] = clik.newPhoto({"id":3857009,"src":"gallerylou__130_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857009.html","width":130,"caption":"gallerylou  (130 of 243)","height":104});
															thumbnails[3857010] = clik.newPhoto({"id":3857010,"src":"gallerylou__131_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857010.html","width":130,"caption":"gallerylou  (131 of 243)","height":104});
															thumbnails[3857012] = clik.newPhoto({"id":3857012,"src":"gallerylou__133_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857012.html","width":130,"caption":"gallerylou  (133 of 243)","height":87});
															thumbnails[3857021] = clik.newPhoto({"id":3857021,"src":"gallerylou__141_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857021.html","width":130,"caption":"gallerylou  (141 of 243)","height":104});
															thumbnails[3857023] = clik.newPhoto({"id":3857023,"src":"gallerylou__143_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857023.html","width":130,"caption":"gallerylou  (143 of 243)","height":195});
															thumbnails[3857025] = clik.newPhoto({"id":3857025,"src":"gallerylou__145_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857025.html","width":130,"caption":"gallerylou  (145 of 243)","height":104});
															thumbnails[3857035] = clik.newPhoto({"id":3857035,"src":"gallerylou__153_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857035.html","width":130,"caption":"gallerylou  (153 of 243)","height":87});
															thumbnails[3857044] = clik.newPhoto({"id":3857044,"src":"gallerylou__160_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857044.html","width":130,"caption":"gallerylou  (160 of 243)","height":104});
															thumbnails[3857045] = clik.newPhoto({"id":3857045,"src":"gallerylou__161_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857045.html","width":130,"caption":"gallerylou  (161 of 243)","height":87});
															thumbnails[3857046] = clik.newPhoto({"id":3857046,"src":"gallerylou__162_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857046.html","width":130,"caption":"gallerylou  (162 of 243)","height":195});
															thumbnails[3857047] = clik.newPhoto({"id":3857047,"src":"gallerylou__163_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857047.html","width":130,"caption":"gallerylou  (163 of 243)","height":130});
															thumbnails[3857051] = clik.newPhoto({"id":3857051,"src":"gallerylou__167_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857051.html","width":130,"caption":"gallerylou  (167 of 243)","height":87});
															thumbnails[3857056] = clik.newPhoto({"id":3857056,"src":"gallerylou__171_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857056.html","width":130,"caption":"gallerylou  (171 of 243)","height":87});
															thumbnails[3857057] = clik.newPhoto({"id":3857057,"src":"gallerylou__172_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857057.html","width":130,"caption":"gallerylou  (172 of 243)","height":163});
															thumbnails[3857058] = clik.newPhoto({"id":3857058,"src":"gallerylou__173_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857058.html","width":130,"caption":"gallerylou  (173 of 243)","height":195});
															thumbnails[3857059] = clik.newPhoto({"id":3857059,"src":"gallerylou__174_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857059.html","width":130,"caption":"gallerylou  (174 of 243)","height":195});
															thumbnails[3857060] = clik.newPhoto({"id":3857060,"src":"gallerylou__175_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857060.html","width":130,"caption":"gallerylou  (175 of 243)","height":87});
															thumbnails[3857063] = clik.newPhoto({"id":3857063,"src":"gallerylou__178_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857063.html","width":130,"caption":"gallerylou  (178 of 243)","height":104});
															thumbnails[3857065] = clik.newPhoto({"id":3857065,"src":"gallerylou__180_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857065.html","width":130,"caption":"gallerylou  (180 of 243)","height":104});
															thumbnails[3857078] = clik.newPhoto({"id":3857078,"src":"gallerylou__192_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857078.html","width":130,"caption":"gallerylou  (192 of 243)","height":104});
															thumbnails[3857079] = clik.newPhoto({"id":3857079,"src":"gallerylou__193_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857079.html","width":130,"caption":"gallerylou  (193 of 243)","height":104});
															thumbnails[3857081] = clik.newPhoto({"id":3857081,"src":"gallerylou__195_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857081.html","width":130,"caption":"gallerylou  (195 of 243)","height":104});
															thumbnails[3857082] = clik.newPhoto({"id":3857082,"src":"gallerylou__196_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857082.html","width":130,"caption":"gallerylou  (196 of 243)","height":104});
															thumbnails[3857084] = clik.newPhoto({"id":3857084,"src":"gallerylou__198_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857084.html","width":130,"caption":"gallerylou  (198 of 243)","height":104});
															thumbnails[3857089] = clik.newPhoto({"id":3857089,"src":"gallerylou__201_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857089.html","width":130,"caption":"gallerylou  (201 of 243)","height":104});
															thumbnails[3857090] = clik.newPhoto({"id":3857090,"src":"gallerylou__202_of_243_thumb.jpg","galleries_id":234618,"server_id":5,"link":"photo_3857090.html","width":130,"caption":"gallerylou  (202 of 243)","height":93});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[234618] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"The Wedding of Karen and Nicky ","link":"gallery_234618.html","maxRecords":0.0,"photoIDs":[3857174.0,3857196.0,3857207.0,3856975.0,3857019.0,3857054.0,3861629.0,3857087.0,3857120.0,3857131.0,3857136.0,3857137.0,3857139.0,3857142.0,3857144.0,3857145.0,3857146.0,3857147.0,3857148.0,3857149.0,3857151.0,3857153.0,3857157.0,3857158.0,3857159.0,3857160.0,3857161.0,3857166.0,3857172.0,3857173.0,3857176.0,3857177.0,3857178.0,3857179.0,3857183.0,3857188.0,3857189.0,3857191.0,3857192.0,3857195.0,3857197.0,3857198.0,3857199.0,3857200.0,3857201.0,3857202.0,3857203.0,3857208.0,3857214.0,3857215.0,3856976.0,3856977.0,3856978.0,3856981.0,3856985.0,3856988.0,3856989.0,3856991.0,3856994.0,3856998.0,3857000.0,3857003.0,3857006.0,3857009.0,3857010.0,3857012.0,3857021.0,3857023.0,3857025.0,3857035.0,3857044.0,3857045.0,3857046.0,3857047.0,3857051.0,3857056.0,3857057.0,3857058.0,3857059.0,3857060.0,3857063.0,3857065.0,3857078.0,3857079.0,3857081.0,3857082.0,3857084.0,3857089.0,3857090.0],"skipIndex":0,"section_code":"gallery","featured_images":"3861629,3857215,3857214,3857208,3857207,3857203,3857202,3857201,3857200,3857199","id":234618,"singleSection":false});				  						galleries[251762] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"The Wedding of Margaret-Ann and William","link":"gallery_251762.html","maxRecords":0.0,"photoIDs":[4258984.0,4259083.0,4259085.0,4259084.0,4259086.0,4259087.0,4259089.0,4259090.0,4259088.0,4259091.0,4259092.0,4259093.0,4259081.0,4259079.0,4259082.0,4259276.0,4259277.0,4259279.0,4259280.0,4259281.0,4259283.0,4259374.0,4259285.0,4259375.0,4259286.0,4259376.0,4259377.0,4259378.0,4259433.0,4259379.0,4259434.0,4259435.0,4262928.0,4262929.0,4262930.0,4262931.0,4262935.0,4263101.0,4263103.0,4263102.0,4263100.0,4262933.0,4263105.0,4263107.0,4263106.0,4263108.0,4263284.0,4263285.0,4263282.0,4263283.0,4263274.0,4263275.0,4263276.0,4263278.0,4263279.0,4263363.0,4263365.0,4263364.0,4263366.0],"skipIndex":0,"section_code":"gallery","featured_images":"4263366,4263365,4263364,4263363,4263285,4263284,4263283,4263282,4263279,4263278","id":251762,"singleSection":false});				  						galleries[299519] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Yellow Labrador","link":"gallery_299519.html","maxRecords":0.0,"photoIDs":[5319899.0,5319901.0,5319902.0,5319903.0,5319904.0,5319905.0,5319906.0,5319907.0,5319900.0,5319908.0],"skipIndex":0,"section_code":"gallery","featured_images":"5319908,5319907,5319906,5319905,5319904,5319903,5319902,5319901,5319900,5319899","id":299519,"singleSection":false});				  						galleries[251643] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Flat Coated Retriever","link":"gallery_251643.html","maxRecords":0.0,"photoIDs":[4251307.0,4251310.0,4251313.0,4251314.0,4251315.0,4251316.0,4251317.0,4251318.0,4251319.0,4251320.0,4251321.0,4251411.0],"skipIndex":0,"section_code":"gallery","featured_images":"4251411,4251321,4251320,4251319,4251318,4251317,4251316,4251315,4251314,4251313","id":251643,"singleSection":false});				  						galleries[251740] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Schnauzer","link":"gallery_251740.html","maxRecords":0.0,"photoIDs":[4254372.0,4254373.0,4254374.0,4254375.0,4254377.0,4254378.0],"skipIndex":0,"section_code":"gallery","featured_images":"4254378,4254377,4254375,4254374,4254373,4254372","id":251740,"singleSection":false});				  						galleries[251739] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Spaniel","link":"gallery_251739.html","maxRecords":0.0,"photoIDs":[4254227.0,4254228.0,4254229.0,4254230.0,4254231.0,4254232.0,4254233.0,4254234.0,4254235.0],"skipIndex":0,"section_code":"gallery","featured_images":"4254235,4254234,4254233,4254232,4254231,4254230,4254229,4254228,4254227","id":251739,"singleSection":false});				  						galleries[251744] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Retriever ","link":"gallery_251744.html","maxRecords":0.0,"photoIDs":[4254402.0,4254403.0,4254404.0,4254405.0,4254406.0,4254407.0,4254408.0],"skipIndex":0,"section_code":"gallery","featured_images":"4254408,4254407,4254406,4254405,4254404,4254403,4254402","id":251744,"singleSection":false});				  						galleries[251734] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Horses","link":"gallery_251734.html","maxRecords":0.0,"photoIDs":[4254724.0,4254726.0,4254727.0,4254728.0,4254729.0,4254730.0],"skipIndex":0,"section_code":"gallery","featured_images":"4254730,4254729,4254728,4254727,4254726,4254724","id":251734,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '5319899,4259087,4259091,4254408,4263101,4263108,4263275,3857161,3857003,3857023';
imageSets[3] = '5319908,5319907,5319906,5319905,5319904,5319903,5319902,5319901,5319900,5319899,4263366,4263365,4263364,4263363,4263285,4263284,4263283,4263282,4263279,4263278,4263276,4263275,4263274,4263108,4263107,4263106,4263105,4263103,4263102,4263101,4263100,4262935,4262933,4262931,4262930,4262929,4262928,4259435,4259434,4259433,4259379,4259378,4259377,4259376,4259375,4259374,4259286,4259285,4259283,4259281';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/lsmcmilll/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/lsmcmilll/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/lsmcmilll/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/lsmcmilll/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/lsmcmilll/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/lsmcmilll/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/lsmcmilll/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/lsmcmilll/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/lsmcmilll/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/lsmcmilll/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/lsmcmilll/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/lsmcmilll/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/lsmcmilll/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/lsmcmilll/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/lsmcmilll/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/lsmcmilll/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/lsmcmilll/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/lsmcmilll/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/lsmcmilll/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/lsmcmilll/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/lsmcmilll/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/lsmcmilll/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/lsmcmilll/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/lsmcmilll/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/lsmcmilll/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/Pet Photography- Stirling, Falkirk, Alloa: ' + 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> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp += '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
	else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
																		temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

