window.thumbnails = {};
															thumbnails[846984] = clik.newPhoto({"id":846984,"src":"LB&G Ad 2008_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":189});
															thumbnails[848236] = clik.newPhoto({"id":848236,"src":"Alice web_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":165});
															thumbnails[8663881] = clik.newPhoto({"id":8663881,"src":"Magic_Coin_thumb.jpg","galleries_id":"","server_id":35,"link":"#","width":130,"caption":"Magic Coin","height":125});
															thumbnails[298108] = clik.newPhoto({"id":298108,"src":"album_1_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":83});
															thumbnails[104450] = clik.newPhoto({"id":104450,"src":"Laurie 2_thumb.1 - Hand Tinted copy.jpg","galleries_id":9719,"server_id":15,"link":"photo_104450.html","width":130,"caption":"","height":106});
															thumbnails[104451] = clik.newPhoto({"id":104451,"src":"Laurie 3 - Split Toned copy_thumb.jpg","galleries_id":9719,"server_id":15,"link":"photo_104451.html","width":130,"caption":"","height":161});
															thumbnails[104452] = clik.newPhoto({"id":104452,"src":"Laurie 4 - Selenium copy_thumb.jpg","galleries_id":9719,"server_id":15,"link":"photo_104452.html","width":130,"caption":"","height":171});
															thumbnails[104454] = clik.newPhoto({"id":104454,"src":"Laurie 11 - Blue Toned - touched copy_thumb.jpg","galleries_id":9719,"server_id":15,"link":"photo_104454.html","width":130,"caption":"","height":153});
															thumbnails[104481] = clik.newPhoto({"id":104481,"src":"DSCF0851_thumb.jpg","galleries_id":9719,"server_id":15,"link":"photo_104481.html","width":130,"caption":"","height":173});
															thumbnails[104482] = clik.newPhoto({"id":104482,"src":"DSCF1052 copy_thumb.jpg","galleries_id":9719,"server_id":15,"link":"photo_104482.html","width":130,"caption":"","height":111});
															thumbnails[104485] = clik.newPhoto({"id":104485,"src":"DSCF1374__thumb.jpg","galleries_id":9719,"server_id":15,"link":"photo_104485.html","width":130,"caption":"","height":96});
															thumbnails[104500] = clik.newPhoto({"id":104500,"src":"DSCF1629_thumb.jpg","galleries_id":9719,"server_id":15,"link":"photo_104500.html","width":130,"caption":"","height":87});
															thumbnails[104552] = clik.newPhoto({"id":104552,"src":"Bethan Canvas 20x22_thumb.jpg","galleries_id":9719,"server_id":15,"link":"photo_104552.html","width":130,"caption":"","height":143});
															thumbnails[581122] = clik.newPhoto({"id":581122,"src":"Emma_Jon_167_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_581122.html","width":130,"caption":"","height":130});
															thumbnails[732239] = clik.newPhoto({"id":732239,"src":"M_Boyer_018_thumb.jpg","galleries_id":9719,"server_id":15,"link":"photo_732239.html","width":130,"caption":"","height":163});
															thumbnails[732249] = clik.newPhoto({"id":732249,"src":"Ben_Joseph_007dx0_thumb.jpg","galleries_id":9719,"server_id":15,"link":"photo_732249.html","width":130,"caption":"","height":130});
															thumbnails[732334] = clik.newPhoto({"id":732334,"src":"Beki_Party_012_adjust copy_thumb.jpg","galleries_id":9719,"server_id":15,"link":"photo_732334.html","width":130,"caption":"","height":163});
															thumbnails[732335] = clik.newPhoto({"id":732335,"src":"Beki_Party_019_thumb.jpg","galleries_id":9719,"server_id":15,"link":"photo_732335.html","width":130,"caption":"","height":163});
															thumbnails[732337] = clik.newPhoto({"id":732337,"src":"M_Boyer_033_thumb.jpg","galleries_id":9719,"server_id":15,"link":"photo_732337.html","width":130,"caption":"","height":194});
															thumbnails[781443] = clik.newPhoto({"id":781443,"src":"Claire_Grant_088_Adjusted copy_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_781443.html","width":130,"caption":"","height":86});
															thumbnails[781445] = clik.newPhoto({"id":781445,"src":"Claire_Grant_093_Adjusted copy_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_781445.html","width":130,"caption":"","height":194});
															thumbnails[781448] = clik.newPhoto({"id":781448,"src":"Claire_Grant_150_Adjusted copy_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_781448.html","width":130,"caption":"","height":194});
															thumbnails[781451] = clik.newPhoto({"id":781451,"src":"Claire_Grant_162_Adjusted copy_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_781451.html","width":130,"caption":"","height":105});
															thumbnails[781453] = clik.newPhoto({"id":781453,"src":"Claire_Grant_178_Adjusted_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_781453.html","width":130,"caption":"","height":87});
															thumbnails[781454] = clik.newPhoto({"id":781454,"src":"DSC_2384 bw_pp_thumb.jpg","galleries_id":9719,"server_id":15,"link":"photo_781454.html","width":130,"caption":"","height":194});
															thumbnails[781457] = clik.newPhoto({"id":781457,"src":"DSCF6544_pp_thumb.jpg","galleries_id":9719,"server_id":15,"link":"photo_781457.html","width":130,"caption":"","height":87});
															thumbnails[781460] = clik.newPhoto({"id":781460,"src":"Claire_Grant_116_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_781460.html","width":130,"caption":"","height":87});
															thumbnails[823830] = clik.newPhoto({"id":823830,"src":"Bull_Family_015_Adjusted_pp copy_thumb.jpg","galleries_id":9719,"server_id":15,"link":"photo_823830.html","width":130,"caption":"","height":168});
															thumbnails[823854] = clik.newPhoto({"id":823854,"src":"DSC_2002_pp copy_thumb.jpg","galleries_id":9719,"server_id":15,"link":"photo_823854.html","width":130,"caption":"","height":98});
															thumbnails[952037] = clik.newPhoto({"id":952037,"src":"Claire_Grant_130_adjusted_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_952037.html","width":130,"caption":"","height":163});
															thumbnails[952046] = clik.newPhoto({"id":952046,"src":"Claire_Grant_125_Adjusted_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_952046.html","width":130,"caption":"","height":103});
															thumbnails[952142] = clik.newPhoto({"id":952142,"src":"Claire_Grant_120_Adjusted_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_952142.html","width":130,"caption":"","height":113});
															thumbnails[984981] = clik.newPhoto({"id":984981,"src":"DSC_3720_thumb.jpg","galleries_id":9719,"server_id":15,"link":"photo_984981.html","width":130,"caption":"","height":105});
															thumbnails[984983] = clik.newPhoto({"id":984983,"src":"DSC_4203_thumb.jpg","galleries_id":9719,"server_id":15,"link":"photo_984983.html","width":130,"caption":"","height":207});
															thumbnails[984986] = clik.newPhoto({"id":984986,"src":"DSC_4257_thumb.jpg","galleries_id":9719,"server_id":15,"link":"photo_984986.html","width":130,"caption":"","height":191});
															thumbnails[984987] = clik.newPhoto({"id":984987,"src":"DSC_4284_thumb.jpg","galleries_id":9719,"server_id":15,"link":"photo_984987.html","width":130,"caption":"","height":194});
															thumbnails[985004] = clik.newPhoto({"id":985004,"src":"DSC_4013_thumb.jpg","galleries_id":9719,"server_id":15,"link":"photo_985004.html","width":130,"caption":"","height":93});
															thumbnails[985015] = clik.newPhoto({"id":985015,"src":"DSC_3985_thumb.jpg","galleries_id":9719,"server_id":15,"link":"photo_985015.html","width":130,"caption":"","height":166});
															thumbnails[985124] = clik.newPhoto({"id":985124,"src":"DSC_3913_thumb.jpg","galleries_id":9719,"server_id":15,"link":"photo_985124.html","width":130,"caption":"","height":130});
															thumbnails[1011852] = clik.newPhoto({"id":1011852,"src":"Mel_Roy_007_Adjusted_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_1011852.html","width":130,"caption":"","height":187});
															thumbnails[1011855] = clik.newPhoto({"id":1011855,"src":"Mel_Roy_168_Adjusted_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_1011855.html","width":130,"caption":"","height":163});
															thumbnails[1011959] = clik.newPhoto({"id":1011959,"src":"Mel_Roy_197_Adjusted2_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_1011959.html","width":130,"caption":"","height":134});
															thumbnails[1012339] = clik.newPhoto({"id":1012339,"src":"xMel_Roy_191_Adjusted_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_1012339.html","width":130,"caption":"","height":194});
															thumbnails[1403211] = clik.newPhoto({"id":1403211,"src":"Charlie_Paul_035_Adjusted2_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_1403211.html","width":130,"caption":"","height":123});
															thumbnails[1403278] = clik.newPhoto({"id":1403278,"src":"Charlie_Paul_016_Adjusted_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_1403278.html","width":130,"caption":"","height":194});
															thumbnails[1403289] = clik.newPhoto({"id":1403289,"src":"Charlie_Paul_160_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_1403289.html","width":130,"caption":"","height":87});
															thumbnails[1442975] = clik.newPhoto({"id":1442975,"src":"Caroline_Craig_003_Adjusted_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_1442975.html","width":130,"caption":"","height":194});
															thumbnails[1442977] = clik.newPhoto({"id":1442977,"src":"Caroline_Craig_277_Adjusted_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_1442977.html","width":130,"caption":"","height":136});
															thumbnails[1442978] = clik.newPhoto({"id":1442978,"src":"Caroline_Craig_291_Adjusted_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_1442978.html","width":130,"caption":"","height":194});
															thumbnails[1442979] = clik.newPhoto({"id":1442979,"src":"Caroline_Craig_399_Adjusted_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_1442979.html","width":130,"caption":"","height":194});
															thumbnails[1442981] = clik.newPhoto({"id":1442981,"src":"Caroline_Craig_402_Adjusted_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_1442981.html","width":130,"caption":"","height":221});
															thumbnails[1442982] = clik.newPhoto({"id":1442982,"src":"Caroline_Craig_534_Adjusted_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_1442982.html","width":130,"caption":"","height":97});
															thumbnails[1442985] = clik.newPhoto({"id":1442985,"src":"Caroline_Craig_583_Adjusted_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_1442985.html","width":130,"caption":"","height":99});
															thumbnails[1442987] = clik.newPhoto({"id":1442987,"src":"Caroline_Craig_635_Adjusted_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_1442987.html","width":130,"caption":"","height":194});
															thumbnails[1566478] = clik.newPhoto({"id":1566478,"src":"Aimie_Luke_073_Adjusted_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_1566478.html","width":130,"caption":"","height":194});
															thumbnails[1566479] = clik.newPhoto({"id":1566479,"src":"Aimie_Luke_083_Adjusted_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_1566479.html","width":130,"caption":"","height":191});
															thumbnails[1566480] = clik.newPhoto({"id":1566480,"src":"Aimie_Luke_349_Adjusted_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_1566480.html","width":130,"caption":"","height":205});
															thumbnails[1566483] = clik.newPhoto({"id":1566483,"src":"Aimie_Luke_786_Adjusted_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_1566483.html","width":130,"caption":"","height":188});
															thumbnails[1735911] = clik.newPhoto({"id":1735911,"src":"Caroline_Nick_163_Adjustedweb_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_1735911.html","width":130,"caption":"","height":92});
															thumbnails[1735951] = clik.newPhoto({"id":1735951,"src":"Caroline_Nick_209_Adjustedweb1_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_1735951.html","width":130,"caption":"","height":202});
															thumbnails[1735953] = clik.newPhoto({"id":1735953,"src":"Caroline_Nick_336_Adjustedweb_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_1735953.html","width":130,"caption":"","height":202});
															thumbnails[1735956] = clik.newPhoto({"id":1735956,"src":"Caroline_Nick_363_Adjustedweb_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_1735956.html","width":130,"caption":"","height":191});
															thumbnails[1739133] = clik.newPhoto({"id":1739133,"src":"Jayne_Paul_087_Adjusted_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_1739133.html","width":130,"caption":"","height":98});
															thumbnails[1739134] = clik.newPhoto({"id":1739134,"src":"Jayne_Paul_112_Adjusted_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_1739134.html","width":130,"caption":"","height":237});
															thumbnails[1739137] = clik.newPhoto({"id":1739137,"src":"Jayne_Paul_258_Adjusted_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_1739137.html","width":130,"caption":"","height":87});
															thumbnails[1739139] = clik.newPhoto({"id":1739139,"src":"Jayne_Paul_266_Adjusted_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_1739139.html","width":130,"caption":"","height":196});
															thumbnails[1910487] = clik.newPhoto({"id":1910487,"src":"DSC_4224 -AMBA Logo_thumb.jpg","galleries_id":9719,"server_id":15,"link":"photo_1910487.html","width":130,"caption":"","height":184});
															thumbnails[2147070] = clik.newPhoto({"id":2147070,"src":"Kirsten_Dan_038_Adjusted_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_2147070.html","width":130,"caption":"","height":87});
															thumbnails[2147072] = clik.newPhoto({"id":2147072,"src":"Kirsten_Dan_087_Adjusted_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_2147072.html","width":130,"caption":"","height":194});
															thumbnails[2147073] = clik.newPhoto({"id":2147073,"src":"Kirsten_Dan_275_Adjusted_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_2147073.html","width":130,"caption":"","height":93});
															thumbnails[2147079] = clik.newPhoto({"id":2147079,"src":"Emily_Jonny_091_Adjusted_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_2147079.html","width":130,"caption":"","height":220});
															thumbnails[2147083] = clik.newPhoto({"id":2147083,"src":"Emily_Jonny_462_Adjusted_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_2147083.html","width":130,"caption":"","height":195});
															thumbnails[2147084] = clik.newPhoto({"id":2147084,"src":"Emily_Jonny_608_Adjusted_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_2147084.html","width":130,"caption":"","height":196});
															thumbnails[2147139] = clik.newPhoto({"id":2147139,"src":"Hemming Montage Pg2_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_2147139.html","width":130,"caption":"","height":165});
															thumbnails[2471626] = clik.newPhoto({"id":2471626,"src":"064_Adjusted_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_2471626.html","width":130,"caption":"","height":193});
															thumbnails[2471627] = clik.newPhoto({"id":2471627,"src":"065_Adjusted_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_2471627.html","width":130,"caption":"","height":190});
															thumbnails[2471629] = clik.newPhoto({"id":2471629,"src":"244_Adjusted_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_2471629.html","width":130,"caption":"","height":195});
															thumbnails[2471632] = clik.newPhoto({"id":2471632,"src":"258_Adjusted_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_2471632.html","width":130,"caption":"","height":86});
															thumbnails[2471634] = clik.newPhoto({"id":2471634,"src":"266_Adjusted_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_2471634.html","width":130,"caption":"","height":76});
															thumbnails[2471635] = clik.newPhoto({"id":2471635,"src":"270_Adjusted_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_2471635.html","width":130,"caption":"","height":86});
															thumbnails[2471636] = clik.newPhoto({"id":2471636,"src":"271_Adjusted_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_2471636.html","width":130,"caption":"","height":86});
															thumbnails[2471638] = clik.newPhoto({"id":2471638,"src":"289_Adjusted_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_2471638.html","width":130,"caption":"","height":195});
															thumbnails[2471646] = clik.newPhoto({"id":2471646,"src":"367_Adjusted_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_2471646.html","width":130,"caption":"","height":195});
															thumbnails[2471648] = clik.newPhoto({"id":2471648,"src":"370_Adjusted_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_2471648.html","width":130,"caption":"","height":195});
															thumbnails[2471650] = clik.newPhoto({"id":2471650,"src":"539_Adjusted_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_2471650.html","width":130,"caption":"","height":195});
															thumbnails[2471651] = clik.newPhoto({"id":2471651,"src":"Emily_Jonny_076_Adjusted_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_2471651.html","width":130,"caption":"","height":172});
															thumbnails[2471653] = clik.newPhoto({"id":2471653,"src":"Emily_Jonny_143_Adjusted_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_2471653.html","width":130,"caption":"","height":96});
															thumbnails[2471654] = clik.newPhoto({"id":2471654,"src":"Emily_Jonny_247_Adjusted2_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_2471654.html","width":130,"caption":"","height":195});
															thumbnails[2471658] = clik.newPhoto({"id":2471658,"src":"Emily_Jonny_255_Adjusted_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_2471658.html","width":130,"caption":"","height":112});
															thumbnails[2471659] = clik.newPhoto({"id":2471659,"src":"Emily_Jonny_259_Adjusted1_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_2471659.html","width":130,"caption":"","height":96});
															thumbnails[4099074] = clik.newPhoto({"id":4099074,"src":"Laura_Paul_337_Adjusted_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_4099074.html","width":130,"caption":"","height":195});
															thumbnails[4099136] = clik.newPhoto({"id":4099136,"src":"Laura_Paul_455_Adjusted_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_4099136.html","width":130,"caption":"","height":195});
															thumbnails[4099186] = clik.newPhoto({"id":4099186,"src":"Laura_Paul_500_Adjusted_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_4099186.html","width":130,"caption":"","height":195});
															thumbnails[4099188] = clik.newPhoto({"id":4099188,"src":"Laura_Paul_689_Adjusted_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_4099188.html","width":130,"caption":"","height":147});
															thumbnails[4099189] = clik.newPhoto({"id":4099189,"src":"Laura_Paul_732_Adjusted_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_4099189.html","width":130,"caption":"","height":195});
															thumbnails[4099306] = clik.newPhoto({"id":4099306,"src":"Benger_001_thumb.jpg","galleries_id":47813,"server_id":15,"link":"photo_4099306.html","width":130,"caption":"","height":165});
															thumbnails[4099309] = clik.newPhoto({"id":4099309,"src":"Benger_002_thumb.jpg","galleries_id":47813,"server_id":15,"link":"photo_4099309.html","width":130,"caption":"","height":165});
															thumbnails[4099310] = clik.newPhoto({"id":4099310,"src":"Benger_003_thumb.jpg","galleries_id":47813,"server_id":15,"link":"photo_4099310.html","width":130,"caption":"","height":165});
															thumbnails[4099312] = clik.newPhoto({"id":4099312,"src":"Benger_004_thumb.jpg","galleries_id":47813,"server_id":15,"link":"photo_4099312.html","width":130,"caption":"","height":165});
															thumbnails[4099314] = clik.newPhoto({"id":4099314,"src":"Benger_005_thumb.jpg","galleries_id":47813,"server_id":15,"link":"photo_4099314.html","width":130,"caption":"","height":165});
															thumbnails[4099316] = clik.newPhoto({"id":4099316,"src":"Benger_006_thumb.jpg","galleries_id":47813,"server_id":15,"link":"photo_4099316.html","width":130,"caption":"","height":165});
															thumbnails[4099317] = clik.newPhoto({"id":4099317,"src":"Benger_007_thumb.jpg","galleries_id":47813,"server_id":15,"link":"photo_4099317.html","width":130,"caption":"","height":165});
															thumbnails[4099319] = clik.newPhoto({"id":4099319,"src":"Benger_008_thumb.jpg","galleries_id":47813,"server_id":15,"link":"photo_4099319.html","width":130,"caption":"","height":165});
															thumbnails[4099320] = clik.newPhoto({"id":4099320,"src":"Benger_009_thumb.jpg","galleries_id":47813,"server_id":15,"link":"photo_4099320.html","width":130,"caption":"","height":165});
															thumbnails[4099327] = clik.newPhoto({"id":4099327,"src":"Benger_010_thumb.jpg","galleries_id":47813,"server_id":15,"link":"photo_4099327.html","width":130,"caption":"","height":165});
															thumbnails[4099329] = clik.newPhoto({"id":4099329,"src":"Benger_011_thumb.jpg","galleries_id":47813,"server_id":15,"link":"photo_4099329.html","width":130,"caption":"","height":165});
															thumbnails[4099336] = clik.newPhoto({"id":4099336,"src":"Benger_012_thumb.jpg","galleries_id":47813,"server_id":15,"link":"photo_4099336.html","width":130,"caption":"","height":165});
															thumbnails[4099338] = clik.newPhoto({"id":4099338,"src":"Benger_013_thumb.jpg","galleries_id":47813,"server_id":15,"link":"photo_4099338.html","width":130,"caption":"","height":165});
															thumbnails[4099341] = clik.newPhoto({"id":4099341,"src":"Benger_014_thumb.jpg","galleries_id":47813,"server_id":15,"link":"photo_4099341.html","width":130,"caption":"","height":165});
															thumbnails[4099343] = clik.newPhoto({"id":4099343,"src":"Benger_015_thumb.jpg","galleries_id":47813,"server_id":15,"link":"photo_4099343.html","width":130,"caption":"","height":165});
															thumbnails[4099345] = clik.newPhoto({"id":4099345,"src":"Benger_016_thumb.jpg","galleries_id":47813,"server_id":15,"link":"photo_4099345.html","width":130,"caption":"","height":165});
															thumbnails[4099346] = clik.newPhoto({"id":4099346,"src":"Benger_017_thumb.jpg","galleries_id":47813,"server_id":15,"link":"photo_4099346.html","width":130,"caption":"","height":165});
															thumbnails[4099348] = clik.newPhoto({"id":4099348,"src":"Benger_018_thumb.jpg","galleries_id":47813,"server_id":15,"link":"photo_4099348.html","width":130,"caption":"","height":165});
															thumbnails[4099349] = clik.newPhoto({"id":4099349,"src":"Benger_019_thumb.jpg","galleries_id":47813,"server_id":15,"link":"photo_4099349.html","width":130,"caption":"","height":165});
															thumbnails[4099351] = clik.newPhoto({"id":4099351,"src":"Benger_020_thumb.jpg","galleries_id":47813,"server_id":15,"link":"photo_4099351.html","width":130,"caption":"","height":165});
															thumbnails[4099353] = clik.newPhoto({"id":4099353,"src":"Benger_021_thumb.jpg","galleries_id":47813,"server_id":15,"link":"photo_4099353.html","width":130,"caption":"","height":165});
															thumbnails[4099355] = clik.newPhoto({"id":4099355,"src":"Benger_022_thumb.jpg","galleries_id":47813,"server_id":15,"link":"photo_4099355.html","width":130,"caption":"","height":165});
															thumbnails[4099356] = clik.newPhoto({"id":4099356,"src":"Benger_023_thumb.jpg","galleries_id":47813,"server_id":15,"link":"photo_4099356.html","width":130,"caption":"","height":165});
															thumbnails[4099357] = clik.newPhoto({"id":4099357,"src":"Benger_024_thumb.jpg","galleries_id":47813,"server_id":15,"link":"photo_4099357.html","width":130,"caption":"","height":165});
															thumbnails[4099361] = clik.newPhoto({"id":4099361,"src":"Benger_025_thumb.jpg","galleries_id":47813,"server_id":15,"link":"photo_4099361.html","width":130,"caption":"","height":165});
															thumbnails[4099363] = clik.newPhoto({"id":4099363,"src":"Benger_026_thumb.jpg","galleries_id":47813,"server_id":15,"link":"photo_4099363.html","width":130,"caption":"","height":165});
															thumbnails[4099366] = clik.newPhoto({"id":4099366,"src":"Benger_027_thumb.jpg","galleries_id":47813,"server_id":15,"link":"photo_4099366.html","width":130,"caption":"","height":165});
															thumbnails[4099368] = clik.newPhoto({"id":4099368,"src":"Benger_028_thumb.jpg","galleries_id":47813,"server_id":15,"link":"photo_4099368.html","width":130,"caption":"","height":165});
															thumbnails[4099370] = clik.newPhoto({"id":4099370,"src":"Benger_029_thumb.jpg","galleries_id":47813,"server_id":15,"link":"photo_4099370.html","width":130,"caption":"","height":165});
															thumbnails[4099374] = clik.newPhoto({"id":4099374,"src":"Benger_030_thumb.jpg","galleries_id":47813,"server_id":15,"link":"photo_4099374.html","width":130,"caption":"","height":165});
															thumbnails[4553213] = clik.newPhoto({"id":4553213,"src":"D3N_3934_ds1_raw_ds2_raw_raw_tonemapped_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_4553213.html","width":130,"caption":"","height":182});
															thumbnails[4553214] = clik.newPhoto({"id":4553214,"src":"D3N_4648_ds1_raw_ds2_raw_raw_tonemapped_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_4553214.html","width":130,"caption":"","height":86});
															thumbnails[4553215] = clik.newPhoto({"id":4553215,"src":"Tim_Nat_684_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_4553215.html","width":130,"caption":"","height":214});
															thumbnails[4553216] = clik.newPhoto({"id":4553216,"src":"Tim_Nat_710_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_4553216.html","width":130,"caption":"","height":182});
															thumbnails[4553217] = clik.newPhoto({"id":4553217,"src":"Tim_Nat_715_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_4553217.html","width":130,"caption":"","height":195});
															thumbnails[4553259] = clik.newPhoto({"id":4553259,"src":"Tim_Nat_743_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_4553259.html","width":130,"caption":"","height":105});
															thumbnails[4553263] = clik.newPhoto({"id":4553263,"src":"Kaz_Si_0218_Adjusted_thumb.jpg","galleries_id":9718,"server_id":15,"link":"photo_4553263.html","width":130,"caption":"","height":197});
															thumbnails[8664501] = clik.newPhoto({"id":8664501,"src":"A_A-708_Adjusted_thumb.jpg","galleries_id":9718,"server_id":35,"link":"photo_8664501.html","width":130,"caption":"","height":195});
															thumbnails[8664527] = clik.newPhoto({"id":8664527,"src":"A_A-716_Adjusted_thumb.jpg","galleries_id":9718,"server_id":35,"link":"photo_8664527.html","width":130,"caption":"","height":76});
															thumbnails[8664528] = clik.newPhoto({"id":8664528,"src":"A_A-802_Adjusted_thumb.jpg","galleries_id":9718,"server_id":35,"link":"photo_8664528.html","width":130,"caption":"","height":102});
															thumbnails[8664530] = clik.newPhoto({"id":8664530,"src":"A_A-808_Adjusted_thumb.jpg","galleries_id":9718,"server_id":35,"link":"photo_8664530.html","width":130,"caption":"","height":195});
															thumbnails[8664531] = clik.newPhoto({"id":8664531,"src":"E_R-1399_Adjusted_thumb.jpg","galleries_id":9718,"server_id":35,"link":"photo_8664531.html","width":130,"caption":"","height":86});
															thumbnails[8664503] = clik.newPhoto({"id":8664503,"src":"B_M-879_Adjusted_thumb.jpg","galleries_id":9718,"server_id":35,"link":"photo_8664503.html","width":130,"caption":"","height":195});
															thumbnails[8664532] = clik.newPhoto({"id":8664532,"src":"E_R-157_Adjusted_thumb.jpg","galleries_id":9718,"server_id":35,"link":"photo_8664532.html","width":130,"caption":"","height":87});
															thumbnails[8664504] = clik.newPhoto({"id":8664504,"src":"E_R-1385_Adjusted_thumb.jpg","galleries_id":9718,"server_id":35,"link":"photo_8664504.html","width":130,"caption":"","height":86});
															thumbnails[8664505] = clik.newPhoto({"id":8664505,"src":"R_D-430_Adjusted_thumb.jpg","galleries_id":9718,"server_id":35,"link":"photo_8664505.html","width":130,"caption":"","height":194});
															thumbnails[8664506] = clik.newPhoto({"id":8664506,"src":"S_M-977_Adjusted_thumb.jpg","galleries_id":9718,"server_id":35,"link":"photo_8664506.html","width":130,"caption":"","height":195});
															thumbnails[8664507] = clik.newPhoto({"id":8664507,"src":"T_J-154_Adjusted_thumb.jpg","galleries_id":9718,"server_id":35,"link":"photo_8664507.html","width":130,"caption":"","height":195});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[9719] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portrait ","link":"gallery_9719.html","maxRecords":0.0,"photoIDs":[104450.0,104451.0,104452.0,104454.0,104481.0,104482.0,104485.0,104500.0,104552.0,732239.0,732249.0,732334.0,732335.0,732337.0,781454.0,781457.0,823830.0,823854.0,984981.0,984983.0,984986.0,984987.0,985004.0,985015.0,985124.0,1910487.0],"skipIndex":0,"section_code":"gallery","featured_images":985015.0,"id":9719,"singleSection":false});				  						galleries[9718] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wedding","link":"gallery_9718.html","maxRecords":0.0,"photoIDs":[581122.0,781443.0,781445.0,781448.0,781451.0,781453.0,781460.0,952037.0,952046.0,952142.0,1011852.0,1011855.0,1011959.0,1012339.0,1403211.0,1403278.0,1403289.0,1442975.0,1442977.0,1442978.0,1442979.0,1442981.0,1442982.0,1442985.0,1442987.0,1566478.0,1566479.0,1566480.0,1566483.0,1735911.0,1735951.0,1735953.0,1735956.0,1739133.0,1739134.0,1739137.0,1739139.0,2147070.0,2147072.0,2147073.0,2147079.0,2147083.0,2147084.0,2147139.0,2471626.0,2471627.0,2471629.0,2471632.0,2471634.0,2471635.0,2471636.0,2471638.0,2471646.0,2471648.0,2471650.0,2471651.0,2471653.0,2471654.0,2471658.0,2471659.0,4099074.0,4099136.0,4099186.0,4099188.0,4099189.0,4553213.0,4553214.0,4553215.0,4553216.0,4553217.0,4553259.0,4553263.0,8664501.0,8664527.0,8664528.0,8664530.0,8664531.0,8664503.0,8664532.0,8664504.0,8664505.0,8664506.0,8664507.0],"skipIndex":0,"section_code":"gallery","featured_images":"8664532,8664531,8664530,8664528,8664527,8664507,8664506,8664505,8664504,8664503","id":9718,"singleSection":false});				  						galleries[47813] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Example Wedding Album ","link":"gallery_47813.html","maxRecords":0.0,"photoIDs":[4099306.0,4099309.0,4099310.0,4099312.0,4099314.0,4099316.0,4099317.0,4099319.0,4099320.0,4099327.0,4099329.0,4099336.0,4099338.0,4099341.0,4099343.0,4099345.0,4099346.0,4099348.0,4099349.0,4099351.0,4099353.0,4099355.0,4099356.0,4099357.0,4099361.0,4099363.0,4099366.0,4099368.0,4099370.0,4099374.0],"skipIndex":0,"section_code":"gallery","featured_images":4099343.0,"id":47813,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '846984';
imageSets[2] = '4099343,985015,298108';
imageSets[100241] = '8664527,8664501,8664528,8664530,8664531,8664532,8664503,8664504,8664505,8664506,8664507';
imageSets[3] = '8664532,8664531,8664530,8664528,8664527,8664507,8664506,8664505,8664504,8664503,8664501,8663881,4553263,4553259,4553217,4553216,4553215,4553214,4553213,4099374,4099370,4099368,4099366,4099363,4099361,4099357,4099356,4099355,4099353,4099351,4099349,4099348,4099346,4099345,4099343,4099341,4099338,4099336,4099329,4099327,4099320,4099319,4099317,4099316,4099314,4099312,4099310,4099309,4099306,4099189';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/ambaphotography/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'www.clikpic.com/ambaphotography/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/ambaphotography/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/ambaphotography/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/ambaphotography/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/ambaphotography/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/ambaphotography/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/ambaphotography/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/ambaphotography/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/ambaphotography/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/ambaphotography/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/ambaphotography/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/ambaphotography/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/ambaphotography/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/ambaphotography/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/ambaphotography/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/ambaphotography/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/ambaphotography/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/ambaphotography/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/ambaphotography/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/ambaphotography/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/ambaphotography/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/ambaphotography/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/ambaphotography/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/ambaphotography/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 = 'AMBA 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>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.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="AMBAPHOTOGRAPHY">';
			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;
	}
}

			

