window.thumbnails = {};
															thumbnails[3536943] = clik.newPhoto({"id":3536943,"src":"oz_wedding_Lisa_BBG_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":87});
															thumbnails[8571151] = clik.newPhoto({"id":8571151,"src":"bubble_thoughts_II_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Gifts ... ","height":98});
															thumbnails[3026983] = clik.newPhoto({"id":3026983,"src":"purple mushrooms_thumb.JPG","galleries_id":185647,"server_id":1,"link":"photo_3026983.html","width":87,"caption":"Purple Mushrooms","height":130});
															thumbnails[3456796] = clik.newPhoto({"id":3456796,"src":"In-situ image dining room III_thumb.JPG","galleries_id":211339,"server_id":1,"link":"photo_3456796.html","width":87,"caption":"A private commission ...  ","height":130});
															thumbnails[3456799] = clik.newPhoto({"id":3456799,"src":"in-situ image landing III_thumb.JPG","galleries_id":211339,"server_id":1,"link":"photo_3456799.html","width":87,"caption":"\"Fine Lilac\" brings the outside-in to this to this stairwell in a Town House","height":130});
															thumbnails[3813880] = clik.newPhoto({"id":3813880,"src":"bathroom_III_thumb.JPG","galleries_id":211339,"server_id":1,"link":"photo_3813880.html","width":87,"caption":"\"Grass\" complements this modern mosaic bathroom","height":130});
															thumbnails[3813966] = clik.newPhoto({"id":3813966,"src":"cloakroom_III_thumb.JPG","galleries_id":211339,"server_id":1,"link":"photo_3813966.html","width":87,"caption":"\"King of the Castle\" adds humour and colour to cloakroom","height":130});
															thumbnails[3813970] = clik.newPhoto({"id":3813970,"src":"utility_cloak_room_III_thumb.JPG","galleries_id":211339,"server_id":1,"link":"photo_3813970.html","width":87,"caption":"A \"Field Flower\" look to a small cloakroom","height":130});
															thumbnails[3813971] = clik.newPhoto({"id":3813971,"src":"puckje_bespoke_canvas_thumb.JPG","galleries_id":211339,"server_id":1,"link":"photo_3813971.html","width":98,"caption":"A private commission ... ","height":130});
															thumbnails[3814046] = clik.newPhoto({"id":3814046,"src":"burghley_tree_III_thumb.JPG","galleries_id":186125,"server_id":1,"link":"photo_3814046.html","width":87,"caption":"Trees in the mist","height":130});
															thumbnails[3814052] = clik.newPhoto({"id":3814052,"src":"morning_mist_III_thumb.JPG","galleries_id":186125,"server_id":1,"link":"photo_3814052.html","width":130,"caption":"Chasing the mist","height":87});
															thumbnails[3814054] = clik.newPhoto({"id":3814054,"src":"Burghley_Walk_trees_III_thumb.JPG","galleries_id":186125,"server_id":1,"link":"photo_3814054.html","width":130,"caption":"Burghley Woods","height":87});
															thumbnails[4829483] = clik.newPhoto({"id":4829483,"src":"Clares_after_2_III_thumb.JPG","galleries_id":211339,"server_id":1,"link":"photo_4829483.html","width":87,"caption":"\"Gazanias\" on Acrylic provides the accent colour in this modern living room","height":130});
															thumbnails[6393434] = clik.newPhoto({"id":6393434,"src":"bathroom_III_F9AAF772-24E8-5EC4-4FDF05480C3226CC_thumb.JPG","galleries_id":211339,"server_id":1,"link":"photo_6393434.html","width":87,"caption":"A contemporary bathroom ...","height":130});
															thumbnails[6616572] = clik.newPhoto({"id":6616572,"src":"The_yellow_moon_III_thumb.JPG","galleries_id":186125,"server_id":1,"link":"photo_6616572.html","width":130,"caption":"A low moon ... ","height":87});
															thumbnails[6616590] = clik.newPhoto({"id":6616590,"src":"The_moon_III_thumb.JPG","galleries_id":186125,"server_id":1,"link":"photo_6616590.html","width":130,"caption":"Reach to the moon .... ","height":90});
															thumbnails[6616591] = clik.newPhoto({"id":6616591,"src":"The_moon_5_III_thumb.JPG","galleries_id":186125,"server_id":1,"link":"photo_6616591.html","width":130,"caption":"Moon Gazing .... ","height":87});
															thumbnails[6616594] = clik.newPhoto({"id":6616594,"src":"The_moon_6_III_thumb.JPG","galleries_id":186125,"server_id":1,"link":"photo_6616594.html","width":130,"caption":"Moon Gazing II .... ","height":87});
															thumbnails[6616790] = clik.newPhoto({"id":6616790,"src":"A_moment_of_remembrance_III_thumb.JPG","galleries_id":180371,"server_id":1,"link":"photo_6616790.html","width":130,"caption":"A poppy in the rain, a moment of remembrance .... ","height":87});
															thumbnails[6616820] = clik.newPhoto({"id":6616820,"src":"A_moment_of_remembrance_2_III_thumb.JPG","galleries_id":180371,"server_id":1,"link":"photo_6616820.html","width":130,"caption":"Poppy : a moment of remembrance ... ","height":87});
															thumbnails[6617268] = clik.newPhoto({"id":6617268,"src":"Syriacus_Blue_Bird_Hibiscus_III_thumb.JPG","galleries_id":180371,"server_id":1,"link":"photo_6617268.html","width":130,"caption":"Syriacus 'blue bird' Hibiscus I ...","height":87});
															thumbnails[6617313] = clik.newPhoto({"id":6617313,"src":"Syriacus_Blue_Bird_Hibiscus_3_III_thumb.JPG","galleries_id":180371,"server_id":1,"link":"photo_6617313.html","width":87,"caption":"Syriacus 'blue bird' Hibiscus II ... ","height":130});
															thumbnails[6617473] = clik.newPhoto({"id":6617473,"src":"Syriacus_Blue_Bird_Hibiscus_III1_thumb.JPG","galleries_id":180371,"server_id":1,"link":"photo_6617473.html","width":130,"caption":"Syriacus 'blue bird' Hibiscus III ...","height":87});
															thumbnails[6617567] = clik.newPhoto({"id":6617567,"src":"BBG_CA_SA_5_Tiger_Moth_III_BW_thumb.JPG","galleries_id":210138,"server_id":1,"link":"photo_6617567.html","width":130,"caption":"Tiger Moth ... ","height":87});
															thumbnails[6617652] = clik.newPhoto({"id":6617652,"src":"13_The_Lucky_Unlucky_III_thumb.JPG","galleries_id":185647,"server_id":1,"link":"photo_6617652.html","width":87,"caption":"13 The Lucky Unlucky ... the choice is yours!","height":130});
															thumbnails[6617656] = clik.newPhoto({"id":6617656,"src":"pebbles_in_Bathroom__thumb.JPG","galleries_id":211339,"server_id":1,"link":"photo_6617656.html","width":98,"caption":"\"Pebbles on the Beach\" framed for client's bathroom","height":130});
															thumbnails[6663156] = clik.newPhoto({"id":6663156,"src":"Dubai_Leaf_III_thumb.JPG","galleries_id":180371,"server_id":1,"link":"photo_6663156.html","width":87,"caption":"Dubai Leaf ... ","height":130});
															thumbnails[6664155] = clik.newPhoto({"id":6664155,"src":"Dhalia_with_a_visitor_III_thumb.JPG","galleries_id":180371,"server_id":1,"link":"photo_6664155.html","width":130,"caption":"Pink Dhalia with a visitor","height":87});
															thumbnails[6664161] = clik.newPhoto({"id":6664161,"src":"BBG_CA_Flowers_54_Mixed_Dhalia_III_thumb.JPG","galleries_id":180371,"server_id":1,"link":"photo_6664161.html","width":130,"caption":"Mixed Dhalia ... ","height":87});
															thumbnails[6898897] = clik.newPhoto({"id":6898897,"src":"60_piece_puzzle_III_thumb.JPG","galleries_id":374367,"server_id":1,"link":"photo_6898897.html","width":98,"caption":"Suitable for old and young.  Made from lustre photo print backed by sturdy card. Size 30.5cm x 20.5cm  Select a BBG Canvas Art image for a unique puzzle.","height":130});
															thumbnails[6898945] = clik.newPhoto({"id":6898945,"src":"96_piece_puzzle_III_thumb.JPG","galleries_id":374367,"server_id":1,"link":"photo_6898945.html","width":98,"caption":"Glossy finished wooden puzzle.  Size 24cm x 19cm - presented in a white gift box.  Select a BBG Canvas Art image for a unique puzzle.","height":130});
															thumbnails[6898954] = clik.newPhoto({"id":6898954,"src":"Mousemat_abstract_wall_colour_thumb.jpg","galleries_id":374367,"server_id":1,"link":"photo_6898954.html","width":130,"caption":"Mouse mat : a textiled topped mouse mat with a polyester finish and rubber backing.  Size 24 x 19 cm & 2mm thickness.  Select a BBG Canvas Art image for your unique mousemat.","height":91});
															thumbnails[6898966] = clik.newPhoto({"id":6898966,"src":"Canvas_Bag_thumb.jpg","galleries_id":374367,"server_id":1,"link":"photo_6898966.html","width":130,"caption":"Small shoulder bag (18x21x6cm) available in red or black, with adjustable straps.  Sealed with a zip for security.  Select any BBG Canvas Art images for a unique look.","height":105});
															thumbnails[6898974] = clik.newPhoto({"id":6898974,"src":"Medium_camel_bag_III_thumb.JPG","galleries_id":374367,"server_id":1,"link":"photo_6898974.html","width":130,"caption":"Medium sized shoulder bag (23x32x6cm) available in black or red, with adjustable straps.  Sealed with a zip, with an internal zip and pocket, and an additional zip on the back.  Select a BBG Canvas Art image for a unique look.","height":84});
															thumbnails[6899014] = clik.newPhoto({"id":6899014,"src":"Denim_purse_III_thumb.JPG","galleries_id":374367,"server_id":1,"link":"photo_6899014.html","width":130,"caption":"Blue denim jeans purse with a unique BBG Canvas Art's image.  Card compartment for 2 cards, a photo pocket and a separate zipped compartment for coins.","height":105});
															thumbnails[6899026] = clik.newPhoto({"id":6899026,"src":"personalised_mans_leather_wallet_III_thumb.JPG","galleries_id":374367,"server_id":1,"link":"photo_6899026.html","width":130,"caption":"A man's leather look wallet (12x10x1.5cm) with a BBG Canvas Art image. Section for 3 cards, photography, 3 general use areas and a Notes section.  ","height":105});
															thumbnails[6899039] = clik.newPhoto({"id":6899039,"src":"Ladies_wallet_II_thumb.jpg","galleries_id":374367,"server_id":1,"link":"photo_6899039.html","width":130,"caption":"A leather look purse (14x10x3cm) with a BBG Canvas Art image front.  The purse has 2 photograph sections, a coin section closed with a press stud, 2 cards and notes sections.","height":108});
															thumbnails[6899040] = clik.newPhoto({"id":6899040,"src":"medium_bag_engines_thumb.jpg","galleries_id":374367,"server_id":1,"link":"photo_6899040.html","width":130,"caption":"Medium sized shoulder bag (23x32x6cm) available in black or red, with adjustable straps.  Sealed with a zip, with an internal zip and pocket, and an additional zip on the back.  Select a BBG Canvas Art image for a unique look.","height":67});
															thumbnails[6899164] = clik.newPhoto({"id":6899164,"src":"Canvas_Purse_III_thumb.jpg","galleries_id":374367,"server_id":1,"link":"photo_6899164.html","width":130,"caption":"Canvas coin and note purse with a BBG Canvas Art unique front panel.  Velcro fastened and main zip area. Size 16x11x2cm","height":96});
															thumbnails[7154251] = clik.newPhoto({"id":7154251,"src":"smarties_III_thumb.JPG","galleries_id":210144,"server_id":1,"link":"photo_7154251.html","width":130,"caption":"Smarties ... ","height":87});
															thumbnails[7154279] = clik.newPhoto({"id":7154279,"src":"smarties_bag_thumb.jpg","galleries_id":374367,"server_id":1,"link":"photo_7154279.html","width":130,"caption":"Small shoulder bag (18x21x6cm) available in red or black, with adjustable straps.  Sealed with a zip for security.  Select any BBG Canvas Art images for a unique look.","height":106});
															thumbnails[8571341] = clik.newPhoto({"id":8571341,"src":"5_card_pack_thumb.jpg","galleries_id":453094,"server_id":1,"link":"photo_8571341.html","width":130,"caption":"Charity cards : Cancer Research Registered Charity Numbers: England & Wales (1089464) and Scotland (SC041666)  EMAIL BBG CANVAS ART TO ORDER","height":98});
															thumbnails[8571349] = clik.newPhoto({"id":8571349,"src":"6_card_pack_thumb.jpg","galleries_id":453094,"server_id":1,"link":"photo_8571349.html","width":98,"caption":"Charity cards : Cancer Research Registered Charity Numbers: England & Wales (1089464) and Scotland (SC041666)            EMAIL BBG CANVAS ART TO ORDER","height":130});
															thumbnails[8572873] = clik.newPhoto({"id":8572873,"src":"Pink_Party_cards_promo_UK_III_thumb.jpg","galleries_id":453094,"server_id":1,"link":"photo_8572873.html","width":130,"caption":"Charity card packs : Cancer Research Registered Charity Numbers: England & Wales (1089464) and Scotland (SC041666)  EMAIL BBG CANVAS ART TO ORDER","height":98});
															thumbnails[3500656] = clik.newPhoto({"id":3500656,"src":"Burghley House III1_thumb.JPG","galleries_id":181226,"server_id":1,"link":"photo_3500656.html","width":87,"caption":"Burghley House","height":130});
															thumbnails[3030288] = clik.newPhoto({"id":3030288,"src":"Flower III_thumb.JPG","galleries_id":180371,"server_id":1,"link":"photo_3030288.html","width":130,"caption":"Osteospermum : Spoons","height":87});
															thumbnails[6394854] = clik.newPhoto({"id":6394854,"src":"Bettys_bay_sunset_Doha_III_thumb.JPG","galleries_id":186125,"server_id":1,"link":"photo_6394854.html","width":130,"caption":"Betty's Bay Sunset","height":87});
															thumbnails[6394571] = clik.newPhoto({"id":6394571,"src":"Blue_Sky_landscape_III_thumb.JPG","galleries_id":186125,"server_id":1,"link":"photo_6394571.html","width":130,"caption":"Blue Sky II","height":87});
															thumbnails[6394575] = clik.newPhoto({"id":6394575,"src":"Blue_Sky_Portrait_III_thumb.JPG","galleries_id":186125,"server_id":1,"link":"photo_6394575.html","width":87,"caption":"Blue Sky I","height":130});
															thumbnails[6394578] = clik.newPhoto({"id":6394578,"src":"Sky_and_Cloud_Portrait_III_thumb.JPG","galleries_id":186125,"server_id":1,"link":"photo_6394578.html","width":87,"caption":"Blue Sky III","height":130});
															thumbnails[3017582] = clik.newPhoto({"id":3017582,"src":"IMG_6634_2ddp2_thumb.JPG","galleries_id":185647,"server_id":1,"link":"photo_3017582.html","width":87,"caption":"Blue Man","height":130});
															thumbnails[3025949] = clik.newPhoto({"id":3025949,"src":"oz wedding garden scene bbg_thumb.JPG","galleries_id":186125,"server_id":1,"link":"photo_3025949.html","width":91,"caption":"Tree of Love","height":130});
															thumbnails[3025972] = clik.newPhoto({"id":3025972,"src":"Single Purple flower dpp_thumb.JPG","galleries_id":180371,"server_id":1,"link":"photo_3025972.html","width":130,"caption":"Purple Passion","height":87});
															thumbnails[9075370] = clik.newPhoto({"id":9075370,"src":"HC_mosque_sillouette_III_thumb.jpg","galleries_id":478673,"server_id":1,"link":"photo_9075370.html","width":130,"caption":"Harrison Clare - Mosque Silouette","height":98});
															thumbnails[9075384] = clik.newPhoto({"id":9075384,"src":"HC_then_there_was_one_green_bottle_III_thumb_D5453A1C-24E8-5EC4-4FF27823E11DC1F6.jpg","galleries_id":478673,"server_id":1,"link":"photo_9075384.html","width":130,"caption":"Harrison Clare - Then there was one green bottle","height":98});
															thumbnails[2931253] = clik.newPhoto({"id":2931253,"src":"Singapore high risers low1_thumb.jpg","galleries_id":181226,"server_id":1,"link":"photo_2931253.html","width":86,"caption":"Reaching the Sky","height":130});
															thumbnails[3026076] = clik.newPhoto({"id":3026076,"src":"setting sun dpp_thumb.JPG","galleries_id":186125,"server_id":1,"link":"photo_3026076.html","width":87,"caption":"Setting Sun","height":130});
															thumbnails[3437368] = clik.newPhoto({"id":3437368,"src":"Burj al Arab III_thumb.JPG","galleries_id":210085,"server_id":1,"link":"photo_3437368.html","width":130,"caption":"Burj Al Arab","height":86});
															thumbnails[3026068] = clik.newPhoto({"id":3026068,"src":"fine lilac dpp_thumb.JPG","galleries_id":180371,"server_id":1,"link":"photo_3026068.html","width":130,"caption":"Fine Lilac","height":87});
															thumbnails[3438204] = clik.newPhoto({"id":3438204,"src":"purple flower III_thumb.JPG","galleries_id":180371,"server_id":1,"link":"photo_3438204.html","width":130,"caption":"Fine Lilac II ... ","height":87});
															thumbnails[3659996] = clik.newPhoto({"id":3659996,"src":"Weeping_rose_III_thumb.JPG","galleries_id":180371,"server_id":1,"link":"photo_3659996.html","width":130,"caption":"Rose","height":87});
															thumbnails[3025967] = clik.newPhoto({"id":3025967,"src":"Pink Rose with Raindrops dpp_thumb.JPG","galleries_id":180371,"server_id":1,"link":"photo_3025967.html","width":87,"caption":"Rose with raindrops","height":130});
															thumbnails[3025962] = clik.newPhoto({"id":3025962,"src":"single pink rose dpp_thumb.JPG","galleries_id":180371,"server_id":1,"link":"photo_3025962.html","width":87,"caption":"Pretty in Pink","height":130});
															thumbnails[3026088] = clik.newPhoto({"id":3026088,"src":"water objects dpp_thumb.JPG","galleries_id":186125,"server_id":1,"link":"photo_3026088.html","width":87,"caption":"Water Objects","height":130});
															thumbnails[3084937] = clik.newPhoto({"id":3084937,"src":"Pink Passion III_thumb.JPG","galleries_id":180371,"server_id":1,"link":"photo_3084937.html","width":130,"caption":"Pink Passion","height":87});
															thumbnails[3437468] = clik.newPhoto({"id":3437468,"src":"Doha Skyline III_thumb.JPG","galleries_id":210085,"server_id":1,"link":"photo_3437468.html","width":101,"caption":"Winter Arabian Skyline","height":130});
															thumbnails[6394304] = clik.newPhoto({"id":6394304,"src":"purple_AG_1_Doha_III_thumb.JPG","galleries_id":180371,"server_id":1,"link":"photo_6394304.html","width":130,"caption":"The President - Clematis","height":87});
															thumbnails[3026950] = clik.newPhoto({"id":3026950,"src":"oz watsons bay look out 3_thumb.JPG","galleries_id":181227,"server_id":1,"link":"photo_3026950.html","width":130,"caption":"Escape","height":87});
															thumbnails[3042532] = clik.newPhoto({"id":3042532,"src":"Curves of Coast OZ III_thumb.JPG","galleries_id":181227,"server_id":1,"link":"photo_3042532.html","width":130,"caption":"Curves of the Coast","height":87});
															thumbnails[3437470] = clik.newPhoto({"id":3437470,"src":"Arabian Carving III_thumb.JPG","galleries_id":210085,"server_id":1,"link":"photo_3437470.html","width":129,"caption":"Arabian Carving ","height":130});
															thumbnails[3029998] = clik.newPhoto({"id":3029998,"src":"peppers III cr_thumb.JPG","galleries_id":210144,"server_id":1,"link":"photo_3029998.html","width":101,"caption":"Peppers","height":130});
															thumbnails[6394054] = clik.newPhoto({"id":6394054,"src":"Richmond_Park_17_III_thumb.JPG","galleries_id":186125,"server_id":1,"link":"photo_6394054.html","width":130,"caption":"Be still ... ","height":87});
															thumbnails[6394074] = clik.newPhoto({"id":6394074,"src":"Richmond_Park_10_red_2_III1_thumb.JPG","galleries_id":186125,"server_id":1,"link":"photo_6394074.html","width":87,"caption":"Red ... ","height":130});
															thumbnails[6394101] = clik.newPhoto({"id":6394101,"src":"Richmond_Park_12_white_fern2_III_thumb.JPG","galleries_id":186125,"server_id":1,"link":"photo_6394101.html","width":87,"caption":"simplicity ... ","height":130});
															thumbnails[3030007] = clik.newPhoto({"id":3030007,"src":"Leeds Town Hall III_thumb.JPG","galleries_id":181226,"server_id":1,"link":"photo_3030007.html","width":76,"caption":"Town Hall","height":130});
															thumbnails[3042210] = clik.newPhoto({"id":3042210,"src":"Tribal language III_thumb.JPG","galleries_id":185647,"server_id":1,"link":"photo_3042210.html","width":87,"caption":"Tribal Language","height":130});
															thumbnails[3042545] = clik.newPhoto({"id":3042545,"src":"Paradise III_thumb.JPG","galleries_id":181227,"server_id":1,"link":"photo_3042545.html","width":130,"caption":"Tranquility","height":98});
															thumbnails[3437706] = clik.newPhoto({"id":3437706,"src":"Engines III_thumb.JPG","galleries_id":210138,"server_id":1,"link":"photo_3437706.html","width":130,"caption":"Engines ...faster, faster, faster ","height":87});
															thumbnails[6394108] = clik.newPhoto({"id":6394108,"src":"Richmond_Park_6_stones_III_thumb.JPG","galleries_id":186125,"server_id":1,"link":"photo_6394108.html","width":87,"caption":"Stepping Stones ... ","height":130});
															thumbnails[3437781] = clik.newPhoto({"id":3437781,"src":"Doha Dhow III_thumb.JPG","galleries_id":210085,"server_id":1,"link":"photo_3437781.html","width":130,"caption":"Arabian Dhow","height":87});
															thumbnails[6394127] = clik.newPhoto({"id":6394127,"src":"Richmond_Park_2_III_thumb.JPG","galleries_id":186125,"server_id":1,"link":"photo_6394127.html","width":130,"caption":"Green Leaf ... ","height":87});
															thumbnails[6394164] = clik.newPhoto({"id":6394164,"src":"Rory_Lion_Addo_III_thumb.JPG","galleries_id":186125,"server_id":1,"link":"photo_6394164.html","width":130,"caption":"Stalking Rory ... ","height":87});
															thumbnails[6394181] = clik.newPhoto({"id":6394181,"src":"Rory_Lion_Addo_2_III_thumb.JPG","galleries_id":186125,"server_id":1,"link":"photo_6394181.html","width":130,"caption":"Looking for lunch .... Rory the Lion","height":87});
															thumbnails[3042494] = clik.newPhoto({"id":3042494,"src":"Paradise Island III_thumb.JPG","galleries_id":181227,"server_id":1,"link":"photo_3042494.html","width":130,"caption":"Paradise Island","height":98});
															thumbnails[6394206] = clik.newPhoto({"id":6394206,"src":"Richmond_Park_4_ducks_III_thumb.JPG","galleries_id":186125,"server_id":1,"link":"photo_6394206.html","width":87,"caption":"A Duck's life ... ","height":130});
															thumbnails[3030043] = clik.newPhoto({"id":3030043,"src":"balls of metal III_thumb.JPG","galleries_id":185647,"server_id":1,"link":"photo_3030043.html","width":130,"caption":"Balls of Steel","height":129});
															thumbnails[3030477] = clik.newPhoto({"id":3030477,"src":"Sky III_thumb.JPG","galleries_id":186125,"server_id":1,"link":"photo_3030477.html","width":130,"caption":"Sky Vision","height":87});
															thumbnails[3042157] = clik.newPhoto({"id":3042157,"src":"Gazanias III_thumb.JPG","galleries_id":180371,"server_id":1,"link":"photo_3042157.html","width":87,"caption":"Gazanias","height":130});
															thumbnails[3050182] = clik.newPhoto({"id":3050182,"src":"Lanscape poppy view III_thumb.JPG","galleries_id":186125,"server_id":1,"link":"photo_3050182.html","width":130,"caption":"Poppy views","height":87});
															thumbnails[6394548] = clik.newPhoto({"id":6394548,"src":"Acacia_III_thumb.JPG","galleries_id":180371,"server_id":1,"link":"photo_6394548.html","width":130,"caption":"Acacia","height":87});
															thumbnails[6394733] = clik.newPhoto({"id":6394733,"src":"Duck_1_Doha_III_thumb.JPG","galleries_id":186125,"server_id":1,"link":"photo_6394733.html","width":130,"caption":"A Duck's Life II","height":87});
															thumbnails[3029681] = clik.newPhoto({"id":3029681,"src":"spider III_thumb.JPG","galleries_id":186125,"server_id":1,"link":"photo_3029681.html","width":130,"caption":"Spiders ","height":87});
															thumbnails[3085087] = clik.newPhoto({"id":3085087,"src":"portrait sailing boat oz III_thumb.JPG","galleries_id":181227,"server_id":1,"link":"photo_3085087.html","width":87,"caption":"Sailing Boat","height":130});
															thumbnails[3042191] = clik.newPhoto({"id":3042191,"src":"Hay III_thumb.JPG","galleries_id":186125,"server_id":1,"link":"photo_3042191.html","width":130,"caption":"Hay Hay","height":87});
															thumbnails[3042597] = clik.newPhoto({"id":3042597,"src":"Grass III_thumb.JPG","galleries_id":180371,"server_id":1,"link":"photo_3042597.html","width":87,"caption":"Grass","height":130});
															thumbnails[3684327] = clik.newPhoto({"id":3684327,"src":"Orchids_III_thumb.JPG","galleries_id":180371,"server_id":1,"link":"photo_3684327.html","width":130,"caption":"Orchid","height":87});
															thumbnails[3042208] = clik.newPhoto({"id":3042208,"src":"Trees III_thumb.JPG","galleries_id":186125,"server_id":1,"link":"photo_3042208.html","width":130,"caption":"Family Tree","height":87});
															thumbnails[3050017] = clik.newPhoto({"id":3050017,"src":"Dhalia III_thumb.JPG","galleries_id":180371,"server_id":1,"link":"photo_3050017.html","width":130,"caption":"Dhalia","height":87});
															thumbnails[3042195] = clik.newPhoto({"id":3042195,"src":"King of the Castle III_thumb.JPG","galleries_id":186125,"server_id":1,"link":"photo_3042195.html","width":130,"caption":"King of the Castle","height":87});
															thumbnails[3063006] = clik.newPhoto({"id":3063006,"src":"Lilac Flower III_thumb.JPG","galleries_id":180371,"server_id":1,"link":"photo_3063006.html","width":130,"caption":"Scabiosa caucasica ‘Stäfa’ I","height":87});
															thumbnails[3684749] = clik.newPhoto({"id":3684749,"src":"Lilac_flower_3_III_thumb.JPG","galleries_id":180371,"server_id":1,"link":"photo_3684749.html","width":130,"caption":"Scabiosa caucasica ‘Stäfa’ II","height":87});
															thumbnails[3050341] = clik.newPhoto({"id":3050341,"src":"Italian wheat III_thumb.JPG","galleries_id":186125,"server_id":1,"link":"photo_3050341.html","width":130,"caption":"Italian wheat fields","height":87});
															thumbnails[3684751] = clik.newPhoto({"id":3684751,"src":"Lilac_flower_2_III_thumb.JPG","galleries_id":180371,"server_id":1,"link":"photo_3684751.html","width":87,"caption":"Scabiosa caucasica ‘Stäfa’ III","height":130});
															thumbnails[3078469] = clik.newPhoto({"id":3078469,"src":"Tiger Moth III_thumb.JPG","galleries_id":210138,"server_id":1,"link":"photo_3078469.html","width":130,"caption":"Tiger Moth","height":87});
															thumbnails[3084813] = clik.newPhoto({"id":3084813,"src":"Italian Hills III_thumb.JPG","galleries_id":186125,"server_id":1,"link":"photo_3084813.html","width":130,"caption":"Piedmont, Italy","height":87});
															thumbnails[3084868] = clik.newPhoto({"id":3084868,"src":"Stone III_thumb.JPG","galleries_id":185647,"server_id":1,"link":"photo_3084868.html","width":87,"caption":"Stone","height":130});
															thumbnails[3084887] = clik.newPhoto({"id":3084887,"src":"Race for Escape III_thumb.JPG","galleries_id":181227,"server_id":1,"link":"photo_3084887.html","width":130,"caption":"Race for Escape","height":87});
															thumbnails[3437294] = clik.newPhoto({"id":3437294,"src":"Newcastle Beach 6 III_thumb.JPG","galleries_id":181227,"server_id":1,"link":"photo_3437294.html","width":130,"caption":"Pebbles on the Beach","height":87});
															thumbnails[3684330] = clik.newPhoto({"id":3684330,"src":"Rolling_hills_of_Italy_III_thumb.JPG","galleries_id":186125,"server_id":1,"link":"photo_3684330.html","width":130,"caption":"Rolling hills of Italy","height":87});
															thumbnails[3050414] = clik.newPhoto({"id":3050414,"src":"Nights drama III_thumb.JPG","galleries_id":186125,"server_id":1,"link":"photo_3050414.html","width":130,"caption":"Nights of drama","height":87});
															thumbnails[3684365] = clik.newPhoto({"id":3684365,"src":"pink_light_daisy_III_thumb.JPG","galleries_id":180371,"server_id":1,"link":"photo_3684365.html","width":130,"caption":"Bellis Pink & White","height":87});
															thumbnails[6394595] = clik.newPhoto({"id":6394595,"src":"Kew_Gardens_Flowers_1_Doha_III_thumb.JPG","galleries_id":180371,"server_id":1,"link":"photo_6394595.html","width":87,"caption":"Erica - Pink Star","height":130});
															thumbnails[6910703] = clik.newPhoto({"id":6910703,"src":"BBG_CA_Nature__Landscape_22_burghley_trees_III_thumb.JPG","galleries_id":186125,"server_id":1,"link":"photo_6910703.html","width":130,"caption":"Burghley Woods II","height":87});
															thumbnails[3438137] = clik.newPhoto({"id":3438137,"src":"Canoe III_thumb.JPG","galleries_id":210138,"server_id":1,"link":"photo_3438137.html","width":130,"caption":"Colourful Canoes","height":87});
															thumbnails[3684241] = clik.newPhoto({"id":3684241,"src":"daisy_III_Mar_09_thumb.JPG","galleries_id":180371,"server_id":1,"link":"photo_3684241.html","width":130,"caption":"Bellis Pink","height":87});
															thumbnails[3438147] = clik.newPhoto({"id":3438147,"src":"Rutland Water III_thumb.JPG","galleries_id":181227,"server_id":1,"link":"photo_3438147.html","width":130,"caption":"Beachy","height":87});
															thumbnails[3684273] = clik.newPhoto({"id":3684273,"src":"red_daisy_III_thumb.JPG","galleries_id":180371,"server_id":1,"link":"photo_3684273.html","width":130,"caption":"Bellis Red","height":87});
															thumbnails[3085072] = clik.newPhoto({"id":3085072,"src":"basil III_thumb.JPG","galleries_id":210144,"server_id":1,"link":"photo_3085072.html","width":87,"caption":"Basil","height":130});
															thumbnails[3437313] = clik.newPhoto({"id":3437313,"src":"Newcastle Beach 2 III_thumb.JPG","galleries_id":181227,"server_id":1,"link":"photo_3437313.html","width":130,"caption":"Gentle Tides","height":87});
															thumbnails[3684519] = clik.newPhoto({"id":3684519,"src":"Sunset_III_thumb.JPG","galleries_id":186125,"server_id":1,"link":"photo_3684519.html","width":87,"caption":"Burghley Sunset","height":130});
															thumbnails[3078517] = clik.newPhoto({"id":3078517,"src":"Follow me Camel III_thumb.JPG","galleries_id":210085,"server_id":1,"link":"photo_3078517.html","width":130,"caption":"Camels","height":87});
															thumbnails[3437314] = clik.newPhoto({"id":3437314,"src":"Newcastle Beach 3 III_thumb.JPG","galleries_id":181227,"server_id":1,"link":"photo_3437314.html","width":130,"caption":"Gentle Tides II","height":87});
															thumbnails[3446219] = clik.newPhoto({"id":3446219,"src":"Winter Golf 4 III_thumb.JPG","galleries_id":210138,"server_id":1,"link":"photo_3446219.html","width":130,"caption":"Winter Golf IV","height":87});
															thumbnails[3084733] = clik.newPhoto({"id":3084733,"src":"One Flower III_thumb.JPG","galleries_id":180371,"server_id":1,"link":"photo_3084733.html","width":87,"caption":"Field Flower","height":130});
															thumbnails[3446213] = clik.newPhoto({"id":3446213,"src":"Winter Golf 3 III_thumb.JPG","galleries_id":210138,"server_id":1,"link":"photo_3446213.html","width":130,"caption":"Winter Golf III","height":87});
															thumbnails[3446204] = clik.newPhoto({"id":3446204,"src":"Winter Golf III_thumb.JPG","galleries_id":210138,"server_id":1,"link":"photo_3446204.html","width":130,"caption":"Winter Golf","height":87});
															thumbnails[3084789] = clik.newPhoto({"id":3084789,"src":"Petals of love III_thumb.JPG","galleries_id":180371,"server_id":1,"link":"photo_3084789.html","width":87,"caption":"Petals of Love","height":130});
															thumbnails[3437350] = clik.newPhoto({"id":3437350,"src":"Newcastle Beach 5 III_thumb.JPG","galleries_id":181227,"server_id":1,"link":"photo_3437350.html","width":130,"caption":"Gentle Tides III","height":87});
															thumbnails[3446209] = clik.newPhoto({"id":3446209,"src":"Winter Golf 2 III_thumb.JPG","galleries_id":210138,"server_id":1,"link":"photo_3446209.html","width":130,"caption":"Winter Golf II","height":87});
															thumbnails[3684389] = clik.newPhoto({"id":3684389,"src":"Refreshing_Pink_III_thumb.JPG","galleries_id":180371,"server_id":1,"link":"photo_3684389.html","width":130,"caption":"Pink, Pink, Pink","height":87});
															thumbnails[3063031] = clik.newPhoto({"id":3063031,"src":"Echinacea Contemporary III_thumb.JPG","galleries_id":180371,"server_id":1,"link":"photo_3063031.html","width":130,"caption":"Echinacea Contemporary","height":87});
															thumbnails[3078685] = clik.newPhoto({"id":3078685,"src":"Burghley Horse Trials 2 III_thumb.JPG","galleries_id":210138,"server_id":1,"link":"photo_3078685.html","width":130,"caption":"Vicky Brake \"Looks Like Fun\" @ Burghley Horse Trials 08","height":125});
															thumbnails[3084714] = clik.newPhoto({"id":3084714,"src":"Bee on Flower III_thumb.JPG","galleries_id":180371,"server_id":1,"link":"photo_3084714.html","width":130,"caption":"Yellow Dhalia ","height":87});
															thumbnails[3085113] = clik.newPhoto({"id":3085113,"src":"Fishing III_thumb.JPG","galleries_id":186125,"server_id":1,"link":"photo_3085113.html","width":130,"caption":"Fishing","height":87});
															thumbnails[3084844] = clik.newPhoto({"id":3084844,"src":"Lucy Wiegersma Burghley Horse Trials III_thumb.JPG","galleries_id":210138,"server_id":1,"link":"photo_3084844.html","width":130,"caption":"Lucy Wiegersm \"Beckli\" : Burghley Horse Trials 08","height":123});
															thumbnails[3084857] = clik.newPhoto({"id":3084857,"src":"Stuart Tinney Burghley Horse Trials 08 III_thumb.JPG","galleries_id":210138,"server_id":1,"link":"photo_3084857.html","width":130,"caption":"Stuart Tinney \"Vittorie\" : Burghley Horse Trials 08","height":110});
															thumbnails[3684287] = clik.newPhoto({"id":3684287,"src":"Peak_district_tree_III_thumb.JPG","galleries_id":186125,"server_id":1,"link":"photo_3684287.html","width":130,"caption":"Peak District","height":87});
															thumbnails[3684397] = clik.newPhoto({"id":3684397,"src":"Lilly__Fly_III_thumb.JPG","galleries_id":180371,"server_id":1,"link":"photo_3684397.html","width":130,"caption":"Pond Lilly","height":87});
															thumbnails[3437747] = clik.newPhoto({"id":3437747,"src":"Sunset AG III_thumb.JPG","galleries_id":186125,"server_id":1,"link":"photo_3437747.html","width":130,"caption":"Sunset","height":87});
															thumbnails[3684527] = clik.newPhoto({"id":3684527,"src":"purple_flower_with_white_background_III_thumb.JPG","galleries_id":180371,"server_id":1,"link":"photo_3684527.html","width":130,"caption":"Deep Purple","height":87});
															thumbnails[3684531] = clik.newPhoto({"id":3684531,"src":"Pink_Daisy_III_thumb.JPG","galleries_id":180371,"server_id":1,"link":"photo_3684531.html","width":130,"caption":"Gerber Pink","height":87});
															thumbnails[6899161] = clik.newPhoto({"id":6899161,"src":"BBG_CA_Nature__Landscape_17_silouettes_III_thumb.JPG","galleries_id":186125,"server_id":1,"link":"photo_6899161.html","width":130,"caption":"Silouettes ... and sunsets","height":84});
															thumbnails[3084727] = clik.newPhoto({"id":3084727,"src":"Orange Flower III_thumb.JPG","galleries_id":180371,"server_id":1,"link":"photo_3084727.html","width":130,"caption":"Gerbera : Orange","height":87});
															thumbnails[3446215] = clik.newPhoto({"id":3446215,"src":"Winter Sunrise III_thumb.JPG","galleries_id":186125,"server_id":1,"link":"photo_3446215.html","width":87,"caption":"Winter Sunrise","height":130});
															thumbnails[3446217] = clik.newPhoto({"id":3446217,"src":"Winter Sunrise 2 III_thumb.JPG","galleries_id":186125,"server_id":1,"link":"photo_3446217.html","width":130,"caption":"Winter Sunrise II","height":87});
															thumbnails[6393666] = clik.newPhoto({"id":6393666,"src":"Tea_III_thumb.JPG","galleries_id":185647,"server_id":1,"link":"photo_6393666.html","width":130,"caption":"swirling tea ...","height":87});
															thumbnails[3472874] = clik.newPhoto({"id":3472874,"src":"Lilly III_thumb.JPG","galleries_id":180371,"server_id":1,"link":"photo_3472874.html","width":130,"caption":"Lilly","height":87});
															thumbnails[3684535] = clik.newPhoto({"id":3684535,"src":"pink_dhalia_III_thumb.JPG","galleries_id":180371,"server_id":1,"link":"photo_3684535.html","width":130,"caption":"Dhalia Pink","height":87});
															thumbnails[3684540] = clik.newPhoto({"id":3684540,"src":"Red_Dhalia_Large_III_thumb.JPG","galleries_id":180371,"server_id":1,"link":"photo_3684540.html","width":130,"caption":"Dhalia Red","height":87});
															thumbnails[3684544] = clik.newPhoto({"id":3684544,"src":"Red_Dhalia_III_thumb.JPG","galleries_id":180371,"server_id":1,"link":"photo_3684544.html","width":130,"caption":"Dhalia Red II","height":87});
															thumbnails[4876887] = clik.newPhoto({"id":4876887,"src":"Flower_Calendar_front_2010_III_thumb.jpg","galleries_id":374367,"server_id":1,"link":"photo_4876887.html","width":130,"caption":"Floral wall calendar 2010","height":92});
															thumbnails[4876888] = clik.newPhoto({"id":4876888,"src":"Stamford_Desk_Calendar_front_III_thumb.JPG","galleries_id":374367,"server_id":1,"link":"photo_4876888.html","width":130,"caption":"Urban Desk Calendar 2010","height":69});
															thumbnails[3814049] = clik.newPhoto({"id":3814049,"src":"burghley_path_of_love_III_thumb.JPG","galleries_id":186125,"server_id":1,"link":"photo_3814049.html","width":87,"caption":"Path of Love","height":130});
															thumbnails[6616562] = clik.newPhoto({"id":6616562,"src":"tomatoes_III_thumb.JPG","galleries_id":210144,"server_id":1,"link":"photo_6616562.html","width":102,"caption":"Spot the difference .... ","height":130});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[453094] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Charity Card - notelet packs","link":"gallery_453094.html","maxRecords":0.0,"photoIDs":[8571341.0,8571349.0,8572873.0],"skipIndex":0,"section_code":"gallery","featured_images":"8572873,8571349,8571341","id":453094,"singleSection":false});				  						galleries[181226] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Architecture Styles","link":"gallery_181226.html","maxRecords":0.0,"photoIDs":[3500656.0,2931253.0,3030007.0],"skipIndex":0,"section_code":"gallery","featured_images":2931253.0,"id":181226,"singleSection":false});				  						galleries[180371] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Nature's Touch","link":"gallery_180371.html","maxRecords":0.0,"photoIDs":[6616790.0,6616820.0,6617268.0,6617313.0,6617473.0,6663156.0,6664155.0,6664161.0,3030288.0,3025972.0,3026068.0,3438204.0,3659996.0,3025967.0,3025962.0,3084937.0,6394304.0,3042157.0,6394548.0,3042597.0,3684327.0,3050017.0,3063006.0,3684749.0,3684751.0,3684365.0,6394595.0,3684241.0,3684273.0,3084733.0,3084789.0,3684389.0,3063031.0,3084714.0,3684397.0,3684527.0,3684531.0,3084727.0,3472874.0,3684535.0,3684540.0,3684544.0],"skipIndex":0,"section_code":"gallery","featured_images":3030288.0,"id":180371,"singleSection":false});				  						galleries[181227] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Timeless Escapes","link":"gallery_181227.html","maxRecords":0.0,"photoIDs":[3026950.0,3042532.0,3042545.0,3042494.0,3085087.0,3084887.0,3437294.0,3438147.0,3437313.0,3437314.0,3437350.0],"skipIndex":0,"section_code":"gallery","featured_images":"3438147,3437350,3437314,3437313,3437294,3085087,3084887,3042545,3042532,3042494","id":181227,"singleSection":false});				  						galleries[185647] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Thought Provoking","link":"gallery_185647.html","maxRecords":0.0,"photoIDs":[3026983.0,6617652.0,3017582.0,3042210.0,3030043.0,3084868.0,6393666.0],"skipIndex":0,"section_code":"gallery","featured_images":"6617652,6393666,3084868,3042210,3030043,3026983,3017582","id":185647,"singleSection":false});				  						galleries[186125] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"The Great Outdoors","link":"gallery_186125.html","maxRecords":0.0,"photoIDs":[3814046.0,3814052.0,3814054.0,6616572.0,6616590.0,6616591.0,6616594.0,6394854.0,6394571.0,6394575.0,6394578.0,3025949.0,3026076.0,3026088.0,6394054.0,6394074.0,6394101.0,6394108.0,6394127.0,6394164.0,6394181.0,6394206.0,3030477.0,3050182.0,6394733.0,3029681.0,3042191.0,3042208.0,3042195.0,3050341.0,3084813.0,3684330.0,3050414.0,6910703.0,3684519.0,3085113.0,3684287.0,3437747.0,6899161.0,3446215.0,3446217.0,3814049.0],"skipIndex":0,"section_code":"gallery","featured_images":"6910703,6899161,6616594,6616591,6616590,6616572,6394854,6394733,6394578,6394575","id":186125,"singleSection":false});				  						galleries[210085] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"A World Away","link":"gallery_210085.html","maxRecords":0.0,"photoIDs":[3437368.0,3437468.0,3437470.0,3437781.0,3078517.0],"skipIndex":0,"section_code":"gallery","featured_images":"3437781,3437470,3437468,3437368,3078517","id":210085,"singleSection":false});				  						galleries[210138] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wild at Heart","link":"gallery_210138.html","maxRecords":0.0,"photoIDs":[6617567.0,3437706.0,3078469.0,3438137.0,3446219.0,3446213.0,3446204.0,3446209.0,3078685.0,3084844.0,3084857.0],"skipIndex":0,"section_code":"gallery","featured_images":"6617567,3446219,3446213,3446209,3446204,3438137,3437706,3084857,3084844,3078685","id":210138,"singleSection":false});				  						galleries[210144] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Edible","link":"gallery_210144.html","maxRecords":0.0,"photoIDs":[7154251.0,3029998.0,3085072.0,6616562.0],"skipIndex":0,"section_code":"gallery","featured_images":"7154251,6616562,3085072,3029998","id":210144,"singleSection":false});				  						galleries[478673] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Guest Gallery","link":"gallery_478673.html","maxRecords":0.0,"photoIDs":[9075370.0,9075384.0],"skipIndex":0,"section_code":"gallery","featured_images":"9075384,9075370","id":478673,"singleSection":false});				  						galleries[211339] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"BBG Canvas Art : Interiors","link":"gallery_211339.html","maxRecords":0.0,"photoIDs":[3456796.0,3456799.0,3813880.0,3813966.0,3813970.0,3813971.0,4829483.0,6393434.0,6617656.0],"skipIndex":0,"section_code":"gallery","featured_images":"6617656,6393434,4829483,3813971,3813970,3813966,3813880,3456799,3456796","id":211339,"singleSection":false});				  						galleries[374367] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"BBG Canvas Art : Examples of products","link":"gallery_374367.html","maxRecords":0.0,"photoIDs":[6898897.0,6898945.0,6898954.0,6898966.0,6898974.0,6899014.0,6899026.0,6899039.0,6899040.0,6899164.0,7154279.0,4876887.0,4876888.0],"skipIndex":0,"section_code":"gallery","featured_images":"7154279,6899164,6899040,6899039,6899026,6899014,6898974,6898966,6898954,6898945","id":374367,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '3026068';
imageSets[2] = '3030288,2931253';
imageSets[3] = '9075384,9075370,8572873,8571349,8571341,8571151,7154279,7154251,6910703,6899164,6899161,6899040,6899039,6899026,6899014,6898974,6898966,6898954,6898945,6898897,6664161,6664155,6663156,6617656,6617652,6617567,6617473,6617313,6617268,6616820,6616790,6616594,6616591,6616590,6616572,6616562,6394854,6394733,6394595,6394578,6394575,6394571,6394548,6394304,6394206,6394181,6394164,6394127,6394108,6394101';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/BBG/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/BBG/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/BBG/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/BBG/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/BBG/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/BBG/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/BBG/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/BBG/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/BBG/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/BBG/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/BBG/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/BBG/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/BBG/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/BBG/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/BBG/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/BBG/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/BBG/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/BBG/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/BBG/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/BBG/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/BBG/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/BBG/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/BBG/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/BBG/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/BBG/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/BBG/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/BBG/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 = 'BBG Canvas Art: ' + 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="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
		else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
																		temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="info@bbgcanvasart.co.uk">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="info@bbgcanvasart.co.uk">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

