window.thumbnails = {};
															thumbnails[7614091] = clik.newPhoto({"id":7614091,"src":"fallcolor01_thumb.jpg","galleries_id":412962,"server_id":1,"link":"photo_7614091.html","width":130,"caption":"","height":191});
															thumbnails[7614093] = clik.newPhoto({"id":7614093,"src":"fallcolor02_thumb.jpg","galleries_id":412962,"server_id":1,"link":"photo_7614093.html","width":130,"caption":"","height":89});
															thumbnails[7614094] = clik.newPhoto({"id":7614094,"src":"fallcolor03_thumb.jpg","galleries_id":412962,"server_id":1,"link":"photo_7614094.html","width":130,"caption":"","height":149});
															thumbnails[7614095] = clik.newPhoto({"id":7614095,"src":"fallcolor04_thumb.jpg","galleries_id":412962,"server_id":1,"link":"photo_7614095.html","width":130,"caption":"","height":190});
															thumbnails[7614096] = clik.newPhoto({"id":7614096,"src":"fallcolor05_thumb.jpg","galleries_id":412962,"server_id":1,"link":"photo_7614096.html","width":130,"caption":"","height":89});
															thumbnails[7614097] = clik.newPhoto({"id":7614097,"src":"fallcolor06_thumb.jpg","galleries_id":412962,"server_id":1,"link":"photo_7614097.html","width":130,"caption":"","height":120});
															thumbnails[7614099] = clik.newPhoto({"id":7614099,"src":"fallcolor07_thumb.jpg","galleries_id":412962,"server_id":1,"link":"photo_7614099.html","width":130,"caption":"","height":89});
															thumbnails[7614100] = clik.newPhoto({"id":7614100,"src":"fallcolor08_thumb.jpg","galleries_id":412962,"server_id":1,"link":"photo_7614100.html","width":130,"caption":"","height":86});
															thumbnails[7614101] = clik.newPhoto({"id":7614101,"src":"fallcolor09_thumb.jpg","galleries_id":412962,"server_id":1,"link":"photo_7614101.html","width":130,"caption":"","height":190});
															thumbnails[7614102] = clik.newPhoto({"id":7614102,"src":"forgotten1_thumb.jpg","galleries_id":412963,"server_id":1,"link":"photo_7614102.html","width":130,"caption":"","height":112});
															thumbnails[7614103] = clik.newPhoto({"id":7614103,"src":"forgotten2_thumb.jpg","galleries_id":412963,"server_id":1,"link":"photo_7614103.html","width":130,"caption":"","height":198});
															thumbnails[7614104] = clik.newPhoto({"id":7614104,"src":"forgotten3_thumb.jpg","galleries_id":412963,"server_id":1,"link":"photo_7614104.html","width":130,"caption":"","height":163});
															thumbnails[7614105] = clik.newPhoto({"id":7614105,"src":"forgotten4_thumb.jpg","galleries_id":412963,"server_id":1,"link":"photo_7614105.html","width":130,"caption":"","height":87});
															thumbnails[7614106] = clik.newPhoto({"id":7614106,"src":"forgotten5_thumb.jpg","galleries_id":412963,"server_id":1,"link":"photo_7614106.html","width":130,"caption":"","height":234});
															thumbnails[7614107] = clik.newPhoto({"id":7614107,"src":"forgotten6_thumb.jpg","galleries_id":412963,"server_id":1,"link":"photo_7614107.html","width":130,"caption":"","height":190});
															thumbnails[7614108] = clik.newPhoto({"id":7614108,"src":"forgotten7_thumb.jpg","galleries_id":412963,"server_id":1,"link":"photo_7614108.html","width":130,"caption":"","height":111});
															thumbnails[7614109] = clik.newPhoto({"id":7614109,"src":"forgotten8_thumb.jpg","galleries_id":412963,"server_id":1,"link":"photo_7614109.html","width":130,"caption":"","height":89});
															thumbnails[7614110] = clik.newPhoto({"id":7614110,"src":"forgotten9_thumb.jpg","galleries_id":412963,"server_id":1,"link":"photo_7614110.html","width":130,"caption":"","height":92});
															thumbnails[7614111] = clik.newPhoto({"id":7614111,"src":"forgotten10_thumb.jpg","galleries_id":412963,"server_id":1,"link":"photo_7614111.html","width":130,"caption":"","height":190});
															thumbnails[7614112] = clik.newPhoto({"id":7614112,"src":"forgotten11_thumb.jpg","galleries_id":412963,"server_id":1,"link":"photo_7614112.html","width":130,"caption":"","height":98});
															thumbnails[7614113] = clik.newPhoto({"id":7614113,"src":"gardensflowers01_thumb.jpg","galleries_id":412964,"server_id":1,"link":"photo_7614113.html","width":130,"caption":"","height":190});
															thumbnails[7614114] = clik.newPhoto({"id":7614114,"src":"gardensflowers02_thumb.jpg","galleries_id":412964,"server_id":1,"link":"photo_7614114.html","width":130,"caption":"","height":89});
															thumbnails[7614115] = clik.newPhoto({"id":7614115,"src":"gardensflowers03_thumb.jpg","galleries_id":412964,"server_id":1,"link":"photo_7614115.html","width":130,"caption":"","height":89});
															thumbnails[7614116] = clik.newPhoto({"id":7614116,"src":"gardensflowers04_thumb.jpg","galleries_id":412964,"server_id":1,"link":"photo_7614116.html","width":130,"caption":"","height":102});
															thumbnails[7614117] = clik.newPhoto({"id":7614117,"src":"gardensflowers05_thumb.jpg","galleries_id":412964,"server_id":1,"link":"photo_7614117.html","width":130,"caption":"","height":89});
															thumbnails[7614118] = clik.newPhoto({"id":7614118,"src":"gardensflowers06_thumb.jpg","galleries_id":412964,"server_id":1,"link":"photo_7614118.html","width":130,"caption":"","height":89});
															thumbnails[7614119] = clik.newPhoto({"id":7614119,"src":"gardensflowers07_thumb.jpg","galleries_id":412964,"server_id":1,"link":"photo_7614119.html","width":130,"caption":"","height":89});
															thumbnails[7614120] = clik.newPhoto({"id":7614120,"src":"gardensflowers08_thumb.jpg","galleries_id":412964,"server_id":1,"link":"photo_7614120.html","width":130,"caption":"","height":89});
															thumbnails[7614121] = clik.newPhoto({"id":7614121,"src":"gardensflowers09_thumb.jpg","galleries_id":412964,"server_id":1,"link":"photo_7614121.html","width":130,"caption":"","height":86});
															thumbnails[7614122] = clik.newPhoto({"id":7614122,"src":"gardensflowers10_thumb.jpg","galleries_id":412964,"server_id":1,"link":"photo_7614122.html","width":130,"caption":"","height":93});
															thumbnails[7614123] = clik.newPhoto({"id":7614123,"src":"gardensflowers11_thumb.jpg","galleries_id":412964,"server_id":1,"link":"photo_7614123.html","width":130,"caption":"","height":92});
															thumbnails[7614124] = clik.newPhoto({"id":7614124,"src":"gardensflowers12_thumb.jpg","galleries_id":412964,"server_id":1,"link":"photo_7614124.html","width":130,"caption":"","height":190});
															thumbnails[7614125] = clik.newPhoto({"id":7614125,"src":"gardensflowers13_thumb.jpg","galleries_id":412964,"server_id":1,"link":"photo_7614125.html","width":130,"caption":"","height":89});
															thumbnails[7614252] = clik.newPhoto({"id":7614252,"src":"grandlandscapes01_thumb.jpg","galleries_id":412966,"server_id":1,"link":"photo_7614252.html","width":130,"caption":"","height":89});
															thumbnails[7614253] = clik.newPhoto({"id":7614253,"src":"grandlandscapes02_thumb.jpg","galleries_id":412966,"server_id":1,"link":"photo_7614253.html","width":130,"caption":"","height":89});
															thumbnails[7614254] = clik.newPhoto({"id":7614254,"src":"grandlandscapes03_thumb.jpg","galleries_id":412966,"server_id":1,"link":"photo_7614254.html","width":130,"caption":"","height":99});
															thumbnails[7614255] = clik.newPhoto({"id":7614255,"src":"grandlandscapes04_thumb.jpg","galleries_id":412966,"server_id":1,"link":"photo_7614255.html","width":130,"caption":"","height":103});
															thumbnails[7614256] = clik.newPhoto({"id":7614256,"src":"grandlandscapes05_thumb.jpg","galleries_id":412966,"server_id":1,"link":"photo_7614256.html","width":130,"caption":"","height":80});
															thumbnails[7614257] = clik.newPhoto({"id":7614257,"src":"grandlandscapes06_thumb.jpg","galleries_id":412966,"server_id":1,"link":"photo_7614257.html","width":130,"caption":"","height":99});
															thumbnails[7614258] = clik.newPhoto({"id":7614258,"src":"grandlandscapes07_thumb.jpg","galleries_id":412966,"server_id":1,"link":"photo_7614258.html","width":130,"caption":"","height":89});
															thumbnails[7614259] = clik.newPhoto({"id":7614259,"src":"grandlandscapes08_thumb.jpg","galleries_id":412966,"server_id":1,"link":"photo_7614259.html","width":130,"caption":"","height":92});
															thumbnails[7614260] = clik.newPhoto({"id":7614260,"src":"grandlandscapes09_thumb.jpg","galleries_id":412966,"server_id":1,"link":"photo_7614260.html","width":130,"caption":"","height":99});
															thumbnails[7614267] = clik.newPhoto({"id":7614267,"src":"marinareflections021_thumb.jpg","galleries_id":412967,"server_id":1,"link":"photo_7614267.html","width":130,"caption":"","height":89});
															thumbnails[7614268] = clik.newPhoto({"id":7614268,"src":"marinareflections011_thumb.jpg","galleries_id":412967,"server_id":1,"link":"photo_7614268.html","width":130,"caption":"","height":89});
															thumbnails[7614270] = clik.newPhoto({"id":7614270,"src":"marinareflections031_thumb.jpg","galleries_id":412967,"server_id":1,"link":"photo_7614270.html","width":130,"caption":"","height":190});
															thumbnails[7614271] = clik.newPhoto({"id":7614271,"src":"marinareflections04_thumb.jpg","galleries_id":412967,"server_id":1,"link":"photo_7614271.html","width":130,"caption":"","height":89});
															thumbnails[7614272] = clik.newPhoto({"id":7614272,"src":"marinareflections051_thumb.jpg","galleries_id":412967,"server_id":1,"link":"photo_7614272.html","width":130,"caption":"","height":89});
															thumbnails[7614273] = clik.newPhoto({"id":7614273,"src":"marinareflections07_thumb.jpg","galleries_id":412967,"server_id":1,"link":"photo_7614273.html","width":130,"caption":"","height":89});
															thumbnails[7614274] = clik.newPhoto({"id":7614274,"src":"marinareflections08_thumb.jpg","galleries_id":412967,"server_id":1,"link":"photo_7614274.html","width":130,"caption":"","height":190});
															thumbnails[7614275] = clik.newPhoto({"id":7614275,"src":"marinareflections09_thumb.jpg","galleries_id":412967,"server_id":1,"link":"photo_7614275.html","width":130,"caption":"","height":89});
															thumbnails[7614276] = clik.newPhoto({"id":7614276,"src":"marinareflections10_thumb.jpg","galleries_id":412967,"server_id":1,"link":"photo_7614276.html","width":130,"caption":"","height":89});
															thumbnails[7614278] = clik.newPhoto({"id":7614278,"src":"marinareflections11_thumb.jpg","galleries_id":412967,"server_id":1,"link":"photo_7614278.html","width":130,"caption":"","height":89});
															thumbnails[7614279] = clik.newPhoto({"id":7614279,"src":"marinareflections12_thumb.jpg","galleries_id":412967,"server_id":1,"link":"photo_7614279.html","width":130,"caption":"","height":89});
															thumbnails[7614280] = clik.newPhoto({"id":7614280,"src":"marinareflections13_thumb.jpg","galleries_id":412967,"server_id":1,"link":"photo_7614280.html","width":130,"caption":"","height":190});
															thumbnails[7614281] = clik.newPhoto({"id":7614281,"src":"marinareflections14_thumb.jpg","galleries_id":412967,"server_id":1,"link":"photo_7614281.html","width":130,"caption":"","height":89});
															thumbnails[7614282] = clik.newPhoto({"id":7614282,"src":"marinareflections15_thumb.jpg","galleries_id":412967,"server_id":1,"link":"photo_7614282.html","width":130,"caption":"","height":89});
															thumbnails[7614283] = clik.newPhoto({"id":7614283,"src":"marinareflections16_thumb.jpg","galleries_id":412967,"server_id":1,"link":"photo_7614283.html","width":130,"caption":"","height":190});
															thumbnails[7614284] = clik.newPhoto({"id":7614284,"src":"marinareflections17_thumb.jpg","galleries_id":412967,"server_id":1,"link":"photo_7614284.html","width":130,"caption":"","height":190});
															thumbnails[7614285] = clik.newPhoto({"id":7614285,"src":"marinareflections18_thumb.jpg","galleries_id":412967,"server_id":1,"link":"photo_7614285.html","width":130,"caption":"","height":89});
															thumbnails[7614286] = clik.newPhoto({"id":7614286,"src":"marinareflections19_thumb.jpg","galleries_id":412967,"server_id":1,"link":"photo_7614286.html","width":130,"caption":"","height":89});
															thumbnails[7614287] = clik.newPhoto({"id":7614287,"src":"marinareflections20_thumb.jpg","galleries_id":412967,"server_id":1,"link":"photo_7614287.html","width":130,"caption":"","height":89});
															thumbnails[7614288] = clik.newPhoto({"id":7614288,"src":"marinareflections21_thumb.jpg","galleries_id":412967,"server_id":1,"link":"photo_7614288.html","width":130,"caption":"","height":89});
															thumbnails[7614289] = clik.newPhoto({"id":7614289,"src":"marinareflections22_thumb.jpg","galleries_id":412967,"server_id":1,"link":"photo_7614289.html","width":130,"caption":"","height":89});
															thumbnails[7614290] = clik.newPhoto({"id":7614290,"src":"marinareflections23_thumb.jpg","galleries_id":412967,"server_id":1,"link":"photo_7614290.html","width":130,"caption":"","height":89});
															thumbnails[7614291] = clik.newPhoto({"id":7614291,"src":"marinareflections24_thumb.jpg","galleries_id":412967,"server_id":1,"link":"photo_7614291.html","width":130,"caption":"","height":89});
															thumbnails[7614292] = clik.newPhoto({"id":7614292,"src":"marinareflections25_thumb.jpg","galleries_id":412967,"server_id":1,"link":"photo_7614292.html","width":130,"caption":"","height":89});
															thumbnails[7614293] = clik.newPhoto({"id":7614293,"src":"marinareflections26_thumb.jpg","galleries_id":412967,"server_id":1,"link":"photo_7614293.html","width":130,"caption":"","height":89});
															thumbnails[7614294] = clik.newPhoto({"id":7614294,"src":"marinareflections27_thumb.jpg","galleries_id":412967,"server_id":1,"link":"photo_7614294.html","width":130,"caption":"","height":89});
															thumbnails[7614295] = clik.newPhoto({"id":7614295,"src":"marinareflections28_thumb.jpg","galleries_id":412967,"server_id":1,"link":"photo_7614295.html","width":130,"caption":"","height":190});
															thumbnails[7614296] = clik.newPhoto({"id":7614296,"src":"marinareflections29_thumb.jpg","galleries_id":412967,"server_id":1,"link":"photo_7614296.html","width":130,"caption":"","height":89});
															thumbnails[7614297] = clik.newPhoto({"id":7614297,"src":"marinareflections30_thumb.jpg","galleries_id":412967,"server_id":1,"link":"photo_7614297.html","width":130,"caption":"","height":89});
															thumbnails[7614298] = clik.newPhoto({"id":7614298,"src":"marinareflections31_thumb.jpg","galleries_id":412967,"server_id":1,"link":"photo_7614298.html","width":130,"caption":"","height":89});
															thumbnails[7614299] = clik.newPhoto({"id":7614299,"src":"naturalworld01_thumb.jpg","galleries_id":412968,"server_id":1,"link":"photo_7614299.html","width":130,"caption":"","height":178});
															thumbnails[7614300] = clik.newPhoto({"id":7614300,"src":"naturalworld02_thumb.jpg","galleries_id":412968,"server_id":1,"link":"photo_7614300.html","width":130,"caption":"","height":88});
															thumbnails[7614301] = clik.newPhoto({"id":7614301,"src":"naturalworld03_thumb.jpg","galleries_id":412968,"server_id":1,"link":"photo_7614301.html","width":130,"caption":"","height":89});
															thumbnails[7614302] = clik.newPhoto({"id":7614302,"src":"naturalworld04_thumb.jpg","galleries_id":412968,"server_id":1,"link":"photo_7614302.html","width":130,"caption":"","height":99});
															thumbnails[7614303] = clik.newPhoto({"id":7614303,"src":"naturalworld05_thumb.jpg","galleries_id":412968,"server_id":1,"link":"photo_7614303.html","width":130,"caption":"","height":89});
															thumbnails[7614304] = clik.newPhoto({"id":7614304,"src":"naturalworld06_thumb.jpg","galleries_id":412968,"server_id":1,"link":"photo_7614304.html","width":130,"caption":"","height":53});
															thumbnails[7614305] = clik.newPhoto({"id":7614305,"src":"naturalworld07_thumb.jpg","galleries_id":412968,"server_id":1,"link":"photo_7614305.html","width":130,"caption":"","height":65});
															thumbnails[7614306] = clik.newPhoto({"id":7614306,"src":"naturalworld08_thumb.jpg","galleries_id":412968,"server_id":1,"link":"photo_7614306.html","width":130,"caption":"","height":92});
															thumbnails[7614307] = clik.newPhoto({"id":7614307,"src":"naturalworld09_thumb.jpg","galleries_id":412968,"server_id":1,"link":"photo_7614307.html","width":130,"caption":"","height":89});
															thumbnails[7614308] = clik.newPhoto({"id":7614308,"src":"naturalworld10_thumb.jpg","galleries_id":412968,"server_id":1,"link":"photo_7614308.html","width":130,"caption":"","height":89});
															thumbnails[7614309] = clik.newPhoto({"id":7614309,"src":"seascapeslakeshores00_thumb.JPG","galleries_id":412970,"server_id":1,"link":"photo_7614309.html","width":130,"caption":"","height":88});
															thumbnails[7614310] = clik.newPhoto({"id":7614310,"src":"seascapeslakeshores01_thumb.jpg","galleries_id":412970,"server_id":1,"link":"photo_7614310.html","width":130,"caption":"","height":89});
															thumbnails[7614311] = clik.newPhoto({"id":7614311,"src":"seascapeslakeshores02_thumb.jpg","galleries_id":412970,"server_id":1,"link":"photo_7614311.html","width":130,"caption":"","height":88});
															thumbnails[7614312] = clik.newPhoto({"id":7614312,"src":"seascapeslakeshores03_thumb.jpg","galleries_id":412970,"server_id":1,"link":"photo_7614312.html","width":130,"caption":"","height":88});
															thumbnails[7614313] = clik.newPhoto({"id":7614313,"src":"seascapeslakeshores04_thumb.jpg","galleries_id":412970,"server_id":1,"link":"photo_7614313.html","width":130,"caption":"","height":89});
															thumbnails[7614314] = clik.newPhoto({"id":7614314,"src":"seascapeslakeshores05_thumb.jpg","galleries_id":412970,"server_id":1,"link":"photo_7614314.html","width":130,"caption":"","height":89});
															thumbnails[7614315] = clik.newPhoto({"id":7614315,"src":"seascapeslakeshores06_thumb.jpg","galleries_id":412970,"server_id":1,"link":"photo_7614315.html","width":130,"caption":"","height":91});
															thumbnails[7614316] = clik.newPhoto({"id":7614316,"src":"seascapeslakeshores07_thumb.jpg","galleries_id":412970,"server_id":1,"link":"photo_7614316.html","width":130,"caption":"","height":101});
															thumbnails[7614317] = clik.newPhoto({"id":7614317,"src":"seascapeslakeshores08_thumb.jpg","galleries_id":412970,"server_id":1,"link":"photo_7614317.html","width":130,"caption":"","height":89});
															thumbnails[7614318] = clik.newPhoto({"id":7614318,"src":"seascapeslakeshores09_thumb.jpg","galleries_id":412970,"server_id":1,"link":"photo_7614318.html","width":130,"caption":"","height":89});
															thumbnails[7614319] = clik.newPhoto({"id":7614319,"src":"seascapeslakeshores10_thumb.jpg","galleries_id":412970,"server_id":1,"link":"photo_7614319.html","width":130,"caption":"","height":89});
															thumbnails[7614320] = clik.newPhoto({"id":7614320,"src":"seascapeslakeshores11_thumb.jpg","galleries_id":412970,"server_id":1,"link":"photo_7614320.html","width":130,"caption":"","height":89});
															thumbnails[7614321] = clik.newPhoto({"id":7614321,"src":"trees01_thumb.jpg","galleries_id":412971,"server_id":1,"link":"photo_7614321.html","width":130,"caption":"","height":190});
															thumbnails[7614322] = clik.newPhoto({"id":7614322,"src":"trees02_thumb.jpg","galleries_id":412971,"server_id":1,"link":"photo_7614322.html","width":130,"caption":"","height":89});
															thumbnails[7614323] = clik.newPhoto({"id":7614323,"src":"trees03_thumb.jpg","galleries_id":412971,"server_id":1,"link":"photo_7614323.html","width":130,"caption":"","height":190});
															thumbnails[7614324] = clik.newPhoto({"id":7614324,"src":"trees04_thumb.jpg","galleries_id":412971,"server_id":1,"link":"photo_7614324.html","width":130,"caption":"","height":99});
															thumbnails[7614325] = clik.newPhoto({"id":7614325,"src":"trees05_thumb.jpg","galleries_id":412971,"server_id":1,"link":"photo_7614325.html","width":130,"caption":"","height":78});
															thumbnails[7614326] = clik.newPhoto({"id":7614326,"src":"trees06_thumb.jpg","galleries_id":412971,"server_id":1,"link":"photo_7614326.html","width":130,"caption":"","height":190});
															thumbnails[7614327] = clik.newPhoto({"id":7614327,"src":"trees07_thumb.jpg","galleries_id":412971,"server_id":1,"link":"photo_7614327.html","width":130,"caption":"","height":190});
															thumbnails[7614328] = clik.newPhoto({"id":7614328,"src":"trees08_thumb.jpg","galleries_id":412971,"server_id":1,"link":"photo_7614328.html","width":130,"caption":"","height":190});
															thumbnails[7614329] = clik.newPhoto({"id":7614329,"src":"trees09_thumb.jpg","galleries_id":412971,"server_id":1,"link":"photo_7614329.html","width":130,"caption":"","height":89});
															thumbnails[7614330] = clik.newPhoto({"id":7614330,"src":"trees10_thumb.jpg","galleries_id":412971,"server_id":1,"link":"photo_7614330.html","width":130,"caption":"","height":190});
															thumbnails[7614331] = clik.newPhoto({"id":7614331,"src":"trees11_thumb.jpg","galleries_id":412971,"server_id":1,"link":"photo_7614331.html","width":130,"caption":"","height":89});
															thumbnails[7614332] = clik.newPhoto({"id":7614332,"src":"trees12_thumb.jpg","galleries_id":412971,"server_id":1,"link":"photo_7614332.html","width":130,"caption":"","height":64});
															thumbnails[7614333] = clik.newPhoto({"id":7614333,"src":"Whatisawafteraryehdied01_thumb.jpg","galleries_id":412972,"server_id":1,"link":"photo_7614333.html","width":130,"caption":"","height":175});
															thumbnails[7614334] = clik.newPhoto({"id":7614334,"src":"Whatisawafteraryehdied02_thumb.jpg","galleries_id":412972,"server_id":1,"link":"photo_7614334.html","width":130,"caption":"","height":190});
															thumbnails[7614335] = clik.newPhoto({"id":7614335,"src":"Whatisawafteraryehdied03_thumb.jpg","galleries_id":412972,"server_id":1,"link":"photo_7614335.html","width":130,"caption":"","height":212});
															thumbnails[7614336] = clik.newPhoto({"id":7614336,"src":"Whatisawafteraryehdied04_thumb.jpg","galleries_id":412972,"server_id":1,"link":"photo_7614336.html","width":130,"caption":"","height":190});
															thumbnails[7614337] = clik.newPhoto({"id":7614337,"src":"Whatisawafteraryehdied05_thumb.jpg","galleries_id":412972,"server_id":1,"link":"photo_7614337.html","width":130,"caption":"","height":74});
															thumbnails[7614338] = clik.newPhoto({"id":7614338,"src":"Whatisawafteraryehdied06_thumb.jpg","galleries_id":412972,"server_id":1,"link":"photo_7614338.html","width":130,"caption":"","height":89});
															thumbnails[7614339] = clik.newPhoto({"id":7614339,"src":"Whatisawafteraryehdied07_thumb.jpg","galleries_id":412972,"server_id":1,"link":"photo_7614339.html","width":130,"caption":"","height":89});
															thumbnails[7614340] = clik.newPhoto({"id":7614340,"src":"Whatisawafteraryehdied08_thumb.jpg","galleries_id":412972,"server_id":1,"link":"photo_7614340.html","width":130,"caption":"","height":89});
															thumbnails[7614341] = clik.newPhoto({"id":7614341,"src":"Whatisawafteraryehdied09_thumb.jpg","galleries_id":412972,"server_id":1,"link":"photo_7614341.html","width":130,"caption":"","height":89});
															thumbnails[7614342] = clik.newPhoto({"id":7614342,"src":"Whatisawafteraryehdied10_thumb.jpg","galleries_id":412972,"server_id":1,"link":"photo_7614342.html","width":130,"caption":"","height":139});
															thumbnails[7614343] = clik.newPhoto({"id":7614343,"src":"Whatisawafteraryehdied11_thumb.jpg","galleries_id":412972,"server_id":1,"link":"photo_7614343.html","width":130,"caption":"","height":178});
															thumbnails[7614344] = clik.newPhoto({"id":7614344,"src":"Whatisawafteraryehdied12_thumb.jpg","galleries_id":412972,"server_id":1,"link":"photo_7614344.html","width":130,"caption":"","height":190});
															thumbnails[7614345] = clik.newPhoto({"id":7614345,"src":"Whatisawafteraryehdied13_thumb.jpg","galleries_id":412972,"server_id":1,"link":"photo_7614345.html","width":130,"caption":"","height":190});
															thumbnails[7614346] = clik.newPhoto({"id":7614346,"src":"Whatisawafteraryehdied14_thumb.jpg","galleries_id":412972,"server_id":1,"link":"photo_7614346.html","width":130,"caption":"","height":226});
															thumbnails[7614347] = clik.newPhoto({"id":7614347,"src":"Whatisawafteraryehdied15_thumb.jpg","galleries_id":412972,"server_id":1,"link":"photo_7614347.html","width":130,"caption":"","height":97});
															thumbnails[7614348] = clik.newPhoto({"id":7614348,"src":"Whatisawafteraryehdied16_thumb.jpg","galleries_id":412972,"server_id":1,"link":"photo_7614348.html","width":130,"caption":"","height":161});
															thumbnails[7614349] = clik.newPhoto({"id":7614349,"src":"Whatisawafteraryehdied17_thumb.jpg","galleries_id":412972,"server_id":1,"link":"photo_7614349.html","width":130,"caption":"","height":185});
															thumbnails[7614350] = clik.newPhoto({"id":7614350,"src":"Whatisawafteraryehdied18_thumb.jpg","galleries_id":412972,"server_id":1,"link":"photo_7614350.html","width":130,"caption":"","height":190});
															thumbnails[7614351] = clik.newPhoto({"id":7614351,"src":"Whatisawafteraryehdied19_thumb.jpg","galleries_id":412972,"server_id":1,"link":"photo_7614351.html","width":130,"caption":"","height":213});
															thumbnails[7614352] = clik.newPhoto({"id":7614352,"src":"Whatisawafteraryehdied20_thumb.jpg","galleries_id":412972,"server_id":1,"link":"photo_7614352.html","width":130,"caption":"","height":89});
															thumbnails[7614353] = clik.newPhoto({"id":7614353,"src":"Whatisawafteraryehdied21_thumb.jpg","galleries_id":412972,"server_id":1,"link":"photo_7614353.html","width":130,"caption":"","height":95});
															thumbnails[7614354] = clik.newPhoto({"id":7614354,"src":"Whatisawafteraryehdied22_thumb.jpg","galleries_id":412972,"server_id":1,"link":"photo_7614354.html","width":130,"caption":"","height":89});
															thumbnails[7614355] = clik.newPhoto({"id":7614355,"src":"Whatisawafteraryehdied23_thumb.jpg","galleries_id":412972,"server_id":1,"link":"photo_7614355.html","width":130,"caption":"","height":190});
															thumbnails[7614356] = clik.newPhoto({"id":7614356,"src":"Whatisawafteraryehdied24_thumb.jpg","galleries_id":412972,"server_id":1,"link":"photo_7614356.html","width":130,"caption":"","height":188});
															thumbnails[7614357] = clik.newPhoto({"id":7614357,"src":"Whatisawafteraryehdied25_thumb.jpg","galleries_id":412972,"server_id":1,"link":"photo_7614357.html","width":130,"caption":"","height":197});
															thumbnails[7614358] = clik.newPhoto({"id":7614358,"src":"Whatisawafteraryehdied26_thumb.jpg","galleries_id":412972,"server_id":1,"link":"photo_7614358.html","width":130,"caption":"","height":190});
															thumbnails[7769804] = clik.newPhoto({"id":7769804,"src":"Whatisawafteraryehdied27_thumb.jpg","galleries_id":412972,"server_id":1,"link":"photo_7769804.html","width":130,"caption":"","height":119});
															thumbnails[7769833] = clik.newPhoto({"id":7769833,"src":"28_thumb.jpg","galleries_id":412972,"server_id":1,"link":"photo_7769833.html","width":130,"caption":"","height":98});
															thumbnails[7769839] = clik.newPhoto({"id":7769839,"src":"29_thumb.jpg","galleries_id":412972,"server_id":1,"link":"photo_7769839.html","width":130,"caption":"","height":190});
															thumbnails[7785799] = clik.newPhoto({"id":7785799,"src":"30a_thumb.jpg","galleries_id":412972,"server_id":1,"link":"photo_7785799.html","width":130,"caption":"","height":190});
															thumbnails[8904055] = clik.newPhoto({"id":8904055,"src":"Driftwood__9_thumb.jpg","galleries_id":468084,"server_id":1,"link":"photo_8904055.html","width":130,"caption":"","height":89});
															thumbnails[8904056] = clik.newPhoto({"id":8904056,"src":"Driftwood_8_thumb.jpg","galleries_id":468084,"server_id":1,"link":"photo_8904056.html","width":130,"caption":"","height":89});
															thumbnails[8904057] = clik.newPhoto({"id":8904057,"src":"Superior_Driftwood_2_thumb.jpg","galleries_id":468084,"server_id":1,"link":"photo_8904057.html","width":130,"caption":"","height":190});
															thumbnails[8904058] = clik.newPhoto({"id":8904058,"src":"Superior_Driftwood__1_thumb.jpg","galleries_id":468084,"server_id":1,"link":"photo_8904058.html","width":130,"caption":"","height":190});
															thumbnails[8904059] = clik.newPhoto({"id":8904059,"src":"Superior_Driftwood_3_thumb.jpg","galleries_id":468084,"server_id":1,"link":"photo_8904059.html","width":130,"caption":"","height":89});
															thumbnails[8904060] = clik.newPhoto({"id":8904060,"src":"Superior_Driftwood_4_thumb.jpg","galleries_id":468084,"server_id":1,"link":"photo_8904060.html","width":130,"caption":"","height":105});
															thumbnails[8904061] = clik.newPhoto({"id":8904061,"src":"Superior_Driftwood_5_thumb.jpg","galleries_id":468084,"server_id":1,"link":"photo_8904061.html","width":130,"caption":"","height":181});
															thumbnails[8904062] = clik.newPhoto({"id":8904062,"src":"Superior_Driftwood_6_thumb.jpg","galleries_id":468084,"server_id":1,"link":"photo_8904062.html","width":130,"caption":"","height":133});
															thumbnails[8904063] = clik.newPhoto({"id":8904063,"src":"Superior_Driftwood_7_thumb.jpg","galleries_id":468084,"server_id":1,"link":"photo_8904063.html","width":130,"caption":"","height":78});
															thumbnails[8904065] = clik.newPhoto({"id":8904065,"src":"Bond_Falls__2_thumb.jpg","galleries_id":412968,"server_id":1,"link":"photo_8904065.html","width":130,"caption":"","height":89});
															thumbnails[8904067] = clik.newPhoto({"id":8904067,"src":"Bond_Falls_thumb.jpg","galleries_id":412968,"server_id":1,"link":"photo_8904067.html","width":130,"caption":"","height":98});
															thumbnails[8904068] = clik.newPhoto({"id":8904068,"src":"Presque_Isle_River_Falls_thumb.jpg","galleries_id":412968,"server_id":1,"link":"photo_8904068.html","width":130,"caption":"","height":89});
															thumbnails[8904069] = clik.newPhoto({"id":8904069,"src":"trail_eddy_thumb.jpg","galleries_id":412968,"server_id":1,"link":"photo_8904069.html","width":130,"caption":"","height":190});
															thumbnails[8904071] = clik.newPhoto({"id":8904071,"src":"Lake_Superior_Clearing_Storm_at_Sunset_Sept_20111_thumb.jpg","galleries_id":412970,"server_id":1,"link":"photo_8904071.html","width":130,"caption":"","height":89});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[468084] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Lake Superior Driftwood","link":"gallery_468084.html","maxRecords":0.0,"photoIDs":[8904055.0,8904056.0,8904057.0,8904058.0,8904059.0,8904060.0,8904061.0,8904062.0,8904063.0],"skipIndex":0,"section_code":"gallery","featured_images":"8904063,8904062,8904061,8904060,8904059,8904058,8904057,8904056,8904055","id":468084,"singleSection":false});				  						galleries[412962] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Autumn Color","link":"gallery_412962.html","maxRecords":0.0,"photoIDs":[7614091.0,7614093.0,7614094.0,7614095.0,7614096.0,7614097.0,7614099.0,7614100.0,7614101.0],"skipIndex":0,"section_code":"gallery","featured_images":7614096.0,"id":412962,"singleSection":false});				  						galleries[412963] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Forgotten and Abandoned","link":"gallery_412963.html","maxRecords":0.0,"photoIDs":[7614102.0,7614103.0,7614104.0,7614105.0,7614106.0,7614107.0,7614108.0,7614109.0,7614110.0,7614111.0,7614112.0],"skipIndex":0,"section_code":"gallery","featured_images":7614108.0,"id":412963,"singleSection":false});				  						galleries[412964] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gardens and Flowers","link":"gallery_412964.html","maxRecords":0.0,"photoIDs":[7614113.0,7614114.0,7614115.0,7614116.0,7614117.0,7614118.0,7614119.0,7614120.0,7614121.0,7614122.0,7614123.0,7614124.0,7614125.0],"skipIndex":0,"section_code":"gallery","featured_images":7614121.0,"id":412964,"singleSection":false});				  						galleries[412966] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"The Grand Landscape","link":"gallery_412966.html","maxRecords":0.0,"photoIDs":[7614252.0,7614253.0,7614254.0,7614255.0,7614256.0,7614257.0,7614258.0,7614259.0,7614260.0],"skipIndex":0,"section_code":"gallery","featured_images":7614258.0,"id":412966,"singleSection":false});				  						galleries[412967] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Marina Reflections","link":"gallery_412967.html","maxRecords":0.0,"photoIDs":[7614267.0,7614268.0,7614270.0,7614271.0,7614272.0,7614273.0,7614274.0,7614275.0,7614276.0,7614278.0,7614279.0,7614280.0,7614281.0,7614282.0,7614283.0,7614284.0,7614285.0,7614286.0,7614287.0,7614288.0,7614289.0,7614290.0,7614291.0,7614292.0,7614293.0,7614294.0,7614295.0,7614296.0,7614297.0,7614298.0],"skipIndex":0,"section_code":"gallery","featured_images":7614276.0,"id":412967,"singleSection":false});				  						galleries[412968] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"The Natural World","link":"gallery_412968.html","maxRecords":0.0,"photoIDs":[7614299.0,7614300.0,7614301.0,7614302.0,7614303.0,7614304.0,7614305.0,7614306.0,7614307.0,7614308.0,8904065.0,8904067.0,8904068.0,8904069.0],"skipIndex":0,"section_code":"gallery","featured_images":7614301.0,"id":412968,"singleSection":false});				  						galleries[412970] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Seascapes and Lakeshores","link":"gallery_412970.html","maxRecords":0.0,"photoIDs":[7614309.0,7614310.0,7614311.0,7614312.0,7614313.0,7614314.0,7614315.0,7614316.0,7614317.0,7614318.0,7614319.0,7614320.0,8904071.0],"skipIndex":0,"section_code":"gallery","featured_images":7614309.0,"id":412970,"singleSection":false});				  						galleries[412971] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Trees","link":"gallery_412971.html","maxRecords":0.0,"photoIDs":[7614321.0,7614322.0,7614323.0,7614324.0,7614325.0,7614326.0,7614327.0,7614328.0,7614329.0,7614330.0,7614331.0,7614332.0],"skipIndex":0,"section_code":"gallery","featured_images":7614328.0,"id":412971,"singleSection":false});				  						galleries[412972] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"What I Saw After Aryeh Died","link":"gallery_412972.html","maxRecords":0.0,"photoIDs":[7614333.0,7614334.0,7614335.0,7614336.0,7614337.0,7614338.0,7614339.0,7614340.0,7614341.0,7614342.0,7614343.0,7614344.0,7614345.0,7614346.0,7614347.0,7614348.0,7614349.0,7614350.0,7614351.0,7614352.0,7614353.0,7614354.0,7614355.0,7614356.0,7614357.0,7614358.0,7769804.0,7769833.0,7769839.0,7785799.0],"skipIndex":0,"section_code":"gallery","featured_images":7614356.0,"id":412972,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '7614099';
imageSets[2] = '7614356,7614328,7614309,7614301,7614276,7614258,7614121,7614108,7614096';
imageSets[3] = '8904071,8904069,8904068,8904067,8904065,8904063,8904062,8904061,8904060,8904059,8904058,8904057,8904056,8904055,7785799,7769839,7769833,7769804,7614358,7614357,7614356,7614355,7614354,7614353,7614352,7614351,7614350,7614349,7614348,7614347,7614346,7614345,7614344,7614343,7614342,7614341,7614340,7614339,7614338,7614337,7614336,7614335,7614334,7614333,7614332,7614331,7614330,7614329,7614328,7614327';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/laurelfink/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/laurelfink/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/laurelfink/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/laurelfink/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/laurelfink/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/laurelfink/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/laurelfink/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/laurelfink/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/laurelfink/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/laurelfink/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/laurelfink/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/laurelfink/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/laurelfink/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/laurelfink/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/laurelfink/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/laurelfink/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/laurelfink/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/laurelfink/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/laurelfink/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/laurelfink/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/laurelfink/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/laurelfink/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/laurelfink/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/laurelfink/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/laurelfink/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/laurelfink/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/laurelfink/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = (backgrounds || photos || {})[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'Laurel Fink Photography: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
	temp += this.fnGetPaymentInfo();
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> $' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
		 									temp += '<select class="paymentlink" name="payment_options_id" onchange="updateCartValue($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';
		
		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">';
			temp += '	<input type="hidden" name="item_option" value="' + item_option + '">';
			temp += '	<input type="hidden" name="site" value="LAURELFINK">';
			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;
	}
}

			

