window.thumbnails = {};
															thumbnails[6603730] = clik.newPhoto({"id":6603730,"src":"Untitled-11_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":20});
															thumbnails[7770703] = clik.newPhoto({"id":7770703,"src":"thumbnailCAI82DEH_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":130});
															thumbnails[7771892] = clik.newPhoto({"id":7771892,"src":"thumbnailCAJFV8GO_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":65});
															thumbnails[6419973] = clik.newPhoto({"id":6419973,"src":"A61518_thumb.jpg","galleries_id":353873,"server_id":32,"link":"photo_6419973.html","width":130,"caption":"\"Bisto\" in Pastel","height":174});
															thumbnails[6420026] = clik.newPhoto({"id":6420026,"src":"A61520_thumb.jpg","galleries_id":353873,"server_id":32,"link":"photo_6420026.html","width":130,"caption":"\"Phoebe\" Blue Burmese in Pastel","height":158});
															thumbnails[6420051] = clik.newPhoto({"id":6420051,"src":"A61521_thumb.jpg","galleries_id":353873,"server_id":32,"link":"photo_6420051.html","width":130,"caption":"\"Archie\" Working Cocker Spaniel in Pastel","height":172});
															thumbnails[6420070] = clik.newPhoto({"id":6420070,"src":"A61522_thumb.jpg","galleries_id":353874,"server_id":32,"link":"photo_6420070.html","width":130,"caption":"\"Yogi\" Newfoundland in Oil","height":175});
															thumbnails[6420155] = clik.newPhoto({"id":6420155,"src":"A61523_thumb.jpg","galleries_id":353874,"server_id":32,"link":"photo_6420155.html","width":130,"caption":"\"Jarvis\" Chocolate Burmese in Oil","height":154});
															thumbnails[6420161] = clik.newPhoto({"id":6420161,"src":"A61524_thumb.jpg","galleries_id":353874,"server_id":32,"link":"photo_6420161.html","width":130,"caption":"\"Archie\" Working Cocker Spaniel in Oil","height":156});
															thumbnails[6420167] = clik.newPhoto({"id":6420167,"src":"A61525_thumb.jpg","galleries_id":353874,"server_id":32,"link":"photo_6420167.html","width":130,"caption":"\"Flair\" Morgan Horse in Oil","height":110});
															thumbnails[6420172] = clik.newPhoto({"id":6420172,"src":"A61526_thumb.jpg","galleries_id":353873,"server_id":32,"link":"photo_6420172.html","width":130,"caption":"\"Lucy\" in Pastel","height":130});
															thumbnails[6420177] = clik.newPhoto({"id":6420177,"src":"A61528_thumb.jpg","galleries_id":354544,"server_id":32,"link":"photo_6420177.html","width":130,"caption":"125th Anniversary Derby County Legends Team - Limited Edition Print","height":188});
															thumbnails[6594126] = clik.newPhoto({"id":6594126,"src":"042_thumb.jpg","galleries_id":353873,"server_id":32,"link":"photo_6594126.html","width":130,"caption":"\"Tickles Please\" in Pastel","height":89});
															thumbnails[6616174] = clik.newPhoto({"id":6616174,"src":"DSC_0549-2_thumb.gif","galleries_id":354554,"server_id":32,"link":"photo_6616174.html","width":130,"caption":"\"Freddie\"","height":212});
															thumbnails[6647587] = clik.newPhoto({"id":6647587,"src":"035a_thumb.gif","galleries_id":353873,"server_id":32,"link":"photo_6647587.html","width":130,"caption":"\"Digby\" the German Shepherd in Pastel","height":151});
															thumbnails[6662619] = clik.newPhoto({"id":6662619,"src":"A61518a_thumb.gif","galleries_id":354544,"server_id":32,"link":"photo_6662619.html","width":130,"caption":"\"The Muse\" - Limited Edition Print","height":174});
															thumbnails[6710683] = clik.newPhoto({"id":6710683,"src":"A93564-2web2_thumb.gif","galleries_id":353873,"server_id":32,"link":"photo_6710683.html","width":130,"caption":"\"Ayla\" in Pastel","height":137});
															thumbnails[7028017] = clik.newPhoto({"id":7028017,"src":"Benji-gif_thumb.gif","galleries_id":353873,"server_id":32,"link":"photo_7028017.html","width":130,"caption":"\"Benji\" Yorkshire Terrier in Pastel","height":184});
															thumbnails[7105863] = clik.newPhoto({"id":7105863,"src":"DSC_0158a_thumb.gif","galleries_id":353873,"server_id":32,"link":"photo_7105863.html","width":130,"caption":"\"Baxter\" West Highland Terrier in Pastel","height":106});
															thumbnails[7218119] = clik.newPhoto({"id":7218119,"src":"DSC_0173_thumb.gif","galleries_id":353873,"server_id":32,"link":"photo_7218119.html","width":130,"caption":"\"Roscoe\" in Pastel","height":175});
															thumbnails[7361339] = clik.newPhoto({"id":7361339,"src":"A93553web2_thumb.gif","galleries_id":353873,"server_id":32,"link":"photo_7361339.html","width":130,"caption":"\"Serenity\" - in Pastel","height":158});
															thumbnails[7487254] = clik.newPhoto({"id":7487254,"src":"Mollyweb_thumb.gif","galleries_id":353873,"server_id":32,"link":"photo_7487254.html","width":130,"caption":"\"Molly\" the Boxer in Pastel","height":175});
															thumbnails[7690487] = clik.newPhoto({"id":7690487,"src":"A93553web_thumb.gif","galleries_id":354544,"server_id":32,"link":"photo_7690487.html","width":130,"caption":"\"Serenity\" - Limited Edition Print","height":158});
															thumbnails[7690614] = clik.newPhoto({"id":7690614,"src":"A93564-2web_thumb.gif","galleries_id":354544,"server_id":32,"link":"photo_7690614.html","width":130,"caption":"\"Integrity\" - Limited Edition Print","height":137});
															thumbnails[7690796] = clik.newPhoto({"id":7690796,"src":"A93575web_thumb.gif","galleries_id":354544,"server_id":32,"link":"photo_7690796.html","width":130,"caption":"\"Affection\" - Limited Edition Print","height":97});
															thumbnails[7690911] = clik.newPhoto({"id":7690911,"src":"A93575web2_thumb.gif","galleries_id":353874,"server_id":32,"link":"photo_7690911.html","width":130,"caption":"\"Affection\" in Oil","height":97});
															thumbnails[7691060] = clik.newPhoto({"id":7691060,"src":"A93575web1_thumb.gif","galleries_id":463219,"server_id":32,"link":"photo_7691060.html","width":130,"caption":"\"Affection\" - Original Framed Art","height":97});
															thumbnails[7691102] = clik.newPhoto({"id":7691102,"src":"A93553web1_thumb.gif","galleries_id":463219,"server_id":32,"link":"photo_7691102.html","width":130,"caption":"\"Serenity\" - Original Framed Art","height":158});
															thumbnails[7691109] = clik.newPhoto({"id":7691109,"src":"A93564-2web1_thumb.gif","galleries_id":463219,"server_id":32,"link":"photo_7691109.html","width":130,"caption":"\"Integrity\" - Original Framed Art","height":137});
															thumbnails[7691236] = clik.newPhoto({"id":7691236,"src":"A61526_87AEA3A5-24E8-5EC4-4F66B013D3A73410_thumb.jpg","galleries_id":354544,"server_id":32,"link":"photo_7691236.html","width":130,"caption":"\"Peek-a-boo\" - Limited Edition Print","height":130});
															thumbnails[7704560] = clik.newPhoto({"id":7704560,"src":"A93536web_thumb.gif","galleries_id":354544,"server_id":32,"link":"photo_7704560.html","width":130,"caption":"\"Satisfaction\" - Limited Edition Print","height":111});
															thumbnails[7708621] = clik.newPhoto({"id":7708621,"src":"A93536web1_thumb.gif","galleries_id":463219,"server_id":32,"link":"photo_7708621.html","width":130,"caption":"\"Satisfaction\" - Original Framed Art","height":111});
															thumbnails[7770263] = clik.newPhoto({"id":7770263,"src":"DSC_0213web_thumb.gif","galleries_id":407591,"server_id":32,"link":"photo_7770263.html","width":130,"caption":"\"Meg and Molly\"","height":88});
															thumbnails[7770264] = clik.newPhoto({"id":7770264,"src":"DSC_0208web_thumb.gif","galleries_id":407591,"server_id":32,"link":"photo_7770264.html","width":130,"caption":"\"Jessie\"","height":212});
															thumbnails[7858015] = clik.newPhoto({"id":7858015,"src":"Kute-Chihuahuaweb_thumb.gif","galleries_id":364174,"server_id":32,"link":"photo_7858015.html","width":130,"caption":"Chihuahua Bianco - Cartoon Artwork","height":185});
															thumbnails[7858021] = clik.newPhoto({"id":7858021,"src":"Kute-Wolfhoundweb_thumb.gif","galleries_id":364174,"server_id":32,"link":"photo_7858021.html","width":130,"caption":"Baileys Irish Wolfhound - Cartoon Artwork","height":185});
															thumbnails[7858024] = clik.newPhoto({"id":7858024,"src":"Kute-Bloodhoundweb_thumb.gif","galleries_id":364174,"server_id":32,"link":"photo_7858024.html","width":130,"caption":"Bloodhound Mary and a Dachshund of Sauce - Cartoon Artwork","height":92});
															thumbnails[7858027] = clik.newPhoto({"id":7858027,"src":"Kute-WineMaranerweb_thumb.gif","galleries_id":364174,"server_id":32,"link":"photo_7858027.html","width":130,"caption":"Wine-maraners - Cartoon Artwork","height":92});
															thumbnails[7858030] = clik.newPhoto({"id":7858030,"src":"Kute-Gordonweb_thumb.gif","galleries_id":364174,"server_id":32,"link":"photo_7858030.html","width":130,"caption":"Gordons' and Tonic - Cartoon Artwork","height":92});
															thumbnails[7858034] = clik.newPhoto({"id":7858034,"src":"Kute-Poodleweb_thumb.gif","galleries_id":364174,"server_id":32,"link":"photo_7858034.html","width":130,"caption":"Dog Perignon - Cartoon Artwork","height":92});
															thumbnails[7858036] = clik.newPhoto({"id":7858036,"src":"Kute-Cockerweb_thumb.gif","galleries_id":364174,"server_id":32,"link":"photo_7858036.html","width":130,"caption":"Cocker-tails - Cartoon Artwork","height":92});
															thumbnails[7858043] = clik.newPhoto({"id":7858043,"src":"Kute-Bassetweb_thumb.gif","galleries_id":364174,"server_id":32,"link":"photo_7858043.html","width":130,"caption":"Bass-et - Cartoon Artwork","height":185});
															thumbnails[7858046] = clik.newPhoto({"id":7858046,"src":"Kute-BarrelsWeb_thumb.gif","galleries_id":364174,"server_id":32,"link":"photo_7858046.html","width":130,"caption":"Three “Empty” Barrels - Cartoon Artwork","height":91});
															thumbnails[8272858] = clik.newPhoto({"id":8272858,"src":"Kute-Airedalesweb_thumb.gif","galleries_id":364174,"server_id":32,"link":"photo_8272858.html","width":130,"caption":"The Airedales - Cartoon Artwork","height":92});
															thumbnails[8272863] = clik.newPhoto({"id":8272863,"src":"Kute-AlcoPupsweb_thumb.gif","galleries_id":364174,"server_id":32,"link":"photo_8272863.html","width":130,"caption":"Alco-Pups - Cartoon Artwork","height":92});
															thumbnails[8272868] = clik.newPhoto({"id":8272868,"src":"Kute-BordTerriersweb_thumb.gif","galleries_id":364174,"server_id":32,"link":"photo_8272868.html","width":130,"caption":"Bordeaux Terriors - Cartoon Artwork","height":92});
															thumbnails[8272918] = clik.newPhoto({"id":8272918,"src":"Kute-Bouleweb_thumb.gif","galleries_id":364174,"server_id":32,"link":"photo_8272918.html","width":130,"caption":"Boule Dogs - Cartoon Artwork","height":92});
															thumbnails[8272971] = clik.newPhoto({"id":8272971,"src":"Kute-ChocLicksweb_thumb.gif","galleries_id":364174,"server_id":32,"link":"photo_8272971.html","width":130,"caption":"Chocolate Lick-Yours - Cartoon Artwork","height":92});
															thumbnails[8272978] = clik.newPhoto({"id":8272978,"src":"Kute-Corgweb_thumb.gif","galleries_id":364174,"server_id":32,"link":"photo_8272978.html","width":130,"caption":"Corgivoisier - Cartoon Artwork","height":92});
															thumbnails[8273031] = clik.newPhoto({"id":8273031,"src":"Kute-Dobermanweb_thumb.gif","galleries_id":364174,"server_id":32,"link":"photo_8273031.html","width":130,"caption":"Doberman Pimm'schers - Cartoon Artwork","height":92});
															thumbnails[8273033] = clik.newPhoto({"id":8273033,"src":"Kute-Jack-Spanielweb_thumb.gif","galleries_id":364174,"server_id":32,"link":"photo_8273033.html","width":130,"caption":"Jack Spaniels - Cartoon Artwork","height":92});
															thumbnails[8273083] = clik.newPhoto({"id":8273083,"src":"Kute-Lapdogweb_thumb.gif","galleries_id":364174,"server_id":32,"link":"photo_8273083.html","width":130,"caption":"Lapdog Dancers - Cartoon Artwork","height":92});
															thumbnails[8273084] = clik.newPhoto({"id":8273084,"src":"Kute-Miniweb_thumb.gif","galleries_id":364174,"server_id":32,"link":"photo_8273084.html","width":130,"caption":"Miniatures - Cartoon Artwork","height":92});
															thumbnails[8273085] = clik.newPhoto({"id":8273085,"src":"Kute-Olde-Englishweb_thumb.gif","galleries_id":364174,"server_id":32,"link":"photo_8273085.html","width":130,"caption":"Gaymers Olde English Sheepdog - Cartoon Artwork","height":92});
															thumbnails[8273087] = clik.newPhoto({"id":8273087,"src":"Kute-Pedigreeweb_thumb.gif","galleries_id":364174,"server_id":32,"link":"photo_8273087.html","width":130,"caption":"Pedigree - Cartoon Artwork","height":92});
															thumbnails[8273139] = clik.newPhoto({"id":8273139,"src":"Kute-Scotchweb_thumb.gif","galleries_id":364174,"server_id":32,"link":"photo_8273139.html","width":130,"caption":"Scotch - Cartoon Artwork","height":92});
															thumbnails[8273160] = clik.newPhoto({"id":8273160,"src":"Kute-Shihweb_thumb.gif","galleries_id":364174,"server_id":32,"link":"photo_8273160.html","width":130,"caption":"Shih Tzu's - Cartoon Artwork","height":182});
															thumbnails[8273161] = clik.newPhoto({"id":8273161,"src":"Kute-pitbullweb_thumb.gif","galleries_id":364174,"server_id":32,"link":"photo_8273161.html","width":130,"caption":"Vodka and Pit Bull - Cartoon Artwork","height":185});
															thumbnails[8441331] = clik.newPhoto({"id":8441331,"src":"Kute-Dog-Cards-Portrait-11_thumb.jpg","galleries_id":446824,"server_id":32,"link":"photo_8441331.html","width":130,"caption":"Chihuahua Bianco - Greetings Card","height":91});
															thumbnails[8441340] = clik.newPhoto({"id":8441340,"src":"Kute-Dog-Cards-Portrait-2_thumb.jpg","galleries_id":446824,"server_id":32,"link":"photo_8441340.html","width":130,"caption":"Baileys Irish Wolfhound - Greetings Card","height":94});
															thumbnails[8441382] = clik.newPhoto({"id":8441382,"src":"Kute-Dog-Cards-Portrait-3_thumb.jpg","galleries_id":446824,"server_id":32,"link":"photo_8441382.html","width":130,"caption":"Bass-et - Greetings Card","height":95});
															thumbnails[8441388] = clik.newPhoto({"id":8441388,"src":"Kute-Dog-Cards-Portrait-4_thumb.jpg","galleries_id":446824,"server_id":32,"link":"photo_8441388.html","width":130,"caption":"Shih Tzu's - Greetings Card","height":88});
															thumbnails[8441393] = clik.newPhoto({"id":8441393,"src":"Kute-Dog-Cards-Portrait-5_thumb.jpg","galleries_id":446824,"server_id":32,"link":"photo_8441393.html","width":130,"caption":"Vodka and Pit Bull - Greetings Card","height":90});
															thumbnails[8442070] = clik.newPhoto({"id":8442070,"src":"Kute-Dog-Cards-Landscape-1_thumb.jpg","galleries_id":446824,"server_id":32,"link":"photo_8442070.html","width":130,"caption":"Bloodhound Mary and a Dachshund of sauce - Greetings Card","height":183});
															thumbnails[8442075] = clik.newPhoto({"id":8442075,"src":"Kute-Dog-Cards-Landscape-2_thumb.jpg","galleries_id":446824,"server_id":32,"link":"photo_8442075.html","width":130,"caption":"Wine-maraners - Greetings Card","height":185});
															thumbnails[8442082] = clik.newPhoto({"id":8442082,"src":"Kute-Dog-Cards-Landscape-3_thumb.jpg","galleries_id":446824,"server_id":32,"link":"photo_8442082.html","width":130,"caption":"Gordons' and Tonic - Greetings Card","height":182});
															thumbnails[8442089] = clik.newPhoto({"id":8442089,"src":"Kute-Dog-Cards-Landscape-4_thumb.jpg","galleries_id":446824,"server_id":32,"link":"photo_8442089.html","width":130,"caption":"Dog Perignon - Greetings Card","height":191});
															thumbnails[8442095] = clik.newPhoto({"id":8442095,"src":"Kute-Dog-Cards-Landscape-5_thumb.jpg","galleries_id":446824,"server_id":32,"link":"photo_8442095.html","width":130,"caption":"Cocker-tails - Greetings Card","height":187});
															thumbnails[8442105] = clik.newPhoto({"id":8442105,"src":"Kute-Dog-Cards-Landscape-6_thumb.jpg","galleries_id":446824,"server_id":32,"link":"photo_8442105.html","width":130,"caption":"Three “Empty” Barrels - Greetings Card","height":182});
															thumbnails[8442110] = clik.newPhoto({"id":8442110,"src":"Kute-Dog-Cards-Landscape-7_thumb.jpg","galleries_id":446824,"server_id":32,"link":"photo_8442110.html","width":130,"caption":"The Airedales - Greetings Card","height":188});
															thumbnails[8442215] = clik.newPhoto({"id":8442215,"src":"Kute-Dog-Cards-Landscape-8_thumb.jpg","galleries_id":446824,"server_id":32,"link":"photo_8442215.html","width":130,"caption":"Alco-Pups - Greetings Card","height":188});
															thumbnails[8442219] = clik.newPhoto({"id":8442219,"src":"Kute-Dog-Cards-Landscape-9_thumb.jpg","galleries_id":446824,"server_id":32,"link":"photo_8442219.html","width":130,"caption":"Bordeaux Terriors - Greetings Card","height":190});
															thumbnails[8442223] = clik.newPhoto({"id":8442223,"src":"Kute-Dog-Cards-Landscape-10_thumb.jpg","galleries_id":446824,"server_id":32,"link":"photo_8442223.html","width":130,"caption":"Boule Dogs - Greetings Card","height":186});
															thumbnails[8442232] = clik.newPhoto({"id":8442232,"src":"Kute-Dog-Cards-Landscape-11_thumb.jpg","galleries_id":446824,"server_id":32,"link":"photo_8442232.html","width":130,"caption":"Chocolate Lick-Yours - Greetings Card","height":188});
															thumbnails[8442237] = clik.newPhoto({"id":8442237,"src":"Kute-Dog-Cards-Landscape-12_thumb.jpg","galleries_id":446824,"server_id":32,"link":"photo_8442237.html","width":130,"caption":"Corgivoisier - Greetings Card","height":190});
															thumbnails[8442241] = clik.newPhoto({"id":8442241,"src":"Kute-Dog-Cards-Landscape-13_thumb.jpg","galleries_id":446824,"server_id":32,"link":"photo_8442241.html","width":130,"caption":"Doberman Pimm'schers - Greetings Card","height":182});
															thumbnails[8442246] = clik.newPhoto({"id":8442246,"src":"Kute-Dog-Cards-Landscape-14_thumb.jpg","galleries_id":446824,"server_id":32,"link":"photo_8442246.html","width":130,"caption":"Jack Spaniels - Greetings Card","height":186});
															thumbnails[8442252] = clik.newPhoto({"id":8442252,"src":"Kute-Dog-Cards-Landscape-15_thumb.jpg","galleries_id":446824,"server_id":32,"link":"photo_8442252.html","width":130,"caption":"Lapdog Dancers - Greetings Card","height":190});
															thumbnails[8442258] = clik.newPhoto({"id":8442258,"src":"Kute-Dog-Cards-Landscape-16_thumb.jpg","galleries_id":446824,"server_id":32,"link":"photo_8442258.html","width":130,"caption":"Miniatures - Greetings Card","height":185});
															thumbnails[8442266] = clik.newPhoto({"id":8442266,"src":"Kute-Dog-Cards-Landscape-17_thumb.jpg","galleries_id":446824,"server_id":32,"link":"photo_8442266.html","width":130,"caption":"Gaymers Olde English Sheepdog - Greetings Card","height":186});
															thumbnails[8442272] = clik.newPhoto({"id":8442272,"src":"Kute-Dog-Cards-Landscape-18_thumb.jpg","galleries_id":446824,"server_id":32,"link":"photo_8442272.html","width":130,"caption":"Pedigree - Greetings Card","height":188});
															thumbnails[8442277] = clik.newPhoto({"id":8442277,"src":"Kute-Dog-Cards-Landscape-19_thumb.jpg","galleries_id":446824,"server_id":32,"link":"photo_8442277.html","width":130,"caption":"Scotch - Greetings Cards","height":187});
															thumbnails[8446121] = clik.newPhoto({"id":8446121,"src":"DSC_Poppy_thumb.jpg","galleries_id":353873,"server_id":32,"link":"photo_8446121.html","width":130,"caption":"\"Poppy\" Black Labrador in Pastel","height":175});
															thumbnails[8446129] = clik.newPhoto({"id":8446129,"src":"Archie-cartoon1_thumb.jpg","galleries_id":434767,"server_id":32,"link":"photo_8446129.html","width":130,"caption":"\"Archie\" Working Cocker Spaniel Cartoon Pet Portrait","height":93});
															thumbnails[8446136] = clik.newPhoto({"id":8446136,"src":"DSC_BC_thumb.jpg","galleries_id":407591,"server_id":32,"link":"photo_8446136.html","width":130,"caption":"\"Bob\" Border Collie in Pencil","height":194});
															thumbnails[8795719] = clik.newPhoto({"id":8795719,"src":"B35425web_thumb.jpg","galleries_id":449243,"server_id":32,"link":"photo_8795719.html","width":130,"caption":"\"Pugs n Kisses\" - Limited Edition Print","height":98});
															thumbnails[8795781] = clik.newPhoto({"id":8795781,"src":"B35415web_thumb.jpg","galleries_id":449243,"server_id":32,"link":"photo_8795781.html","width":130,"caption":"\"Guns n Noses\" - Limited Edition Print","height":95});
															thumbnails[8795787] = clik.newPhoto({"id":8795787,"src":"B35429web_thumb.jpg","galleries_id":449243,"server_id":32,"link":"photo_8795787.html","width":130,"caption":"\"Shoe York, Shoe York\" - Limited Edition Print","height":86});
															thumbnails[8795813] = clik.newPhoto({"id":8795813,"src":"B35427web_thumb.jpg","galleries_id":449243,"server_id":32,"link":"photo_8795813.html","width":130,"caption":"\"Ville de l'amour\" - Limited Edition Print","height":181});
															thumbnails[8795822] = clik.newPhoto({"id":8795822,"src":"B35413web_thumb.jpg","galleries_id":449243,"server_id":32,"link":"photo_8795822.html","width":130,"caption":"\"Shades of Winter\" - Limited Edition Print","height":89});
															thumbnails[8795825] = clik.newPhoto({"id":8795825,"src":"B35419web_thumb.jpg","galleries_id":449243,"server_id":32,"link":"photo_8795825.html","width":130,"caption":"\"Shades of Summer\" - Limited Edition Print","height":86});
															thumbnails[8795830] = clik.newPhoto({"id":8795830,"src":"B35416web_thumb.jpg","galleries_id":449243,"server_id":32,"link":"photo_8795830.html","width":130,"caption":"\"The Mane Event\" - Limited Edition Print","height":100});
															thumbnails[8795834] = clik.newPhoto({"id":8795834,"src":"B35414web_thumb.jpg","galleries_id":449243,"server_id":32,"link":"photo_8795834.html","width":130,"caption":"\"Tee Time\" - Limited Edition Print","height":92});
															thumbnails[8795862] = clik.newPhoto({"id":8795862,"src":"B35418web_thumb.jpg","galleries_id":449243,"server_id":32,"link":"photo_8795862.html","width":130,"caption":"\"Saxy\" - Limited Edition Print","height":174});
															thumbnails[8795864] = clik.newPhoto({"id":8795864,"src":"B35417web_thumb.jpg","galleries_id":449243,"server_id":32,"link":"photo_8795864.html","width":130,"caption":"\"G String\" - Limited Edition Print","height":88});
															thumbnails[8795869] = clik.newPhoto({"id":8795869,"src":"B35428web_thumb.jpg","galleries_id":449243,"server_id":32,"link":"photo_8795869.html","width":130,"caption":"\"Des-Res I\" - Limited Edition Print","height":164});
															thumbnails[8795872] = clik.newPhoto({"id":8795872,"src":"B35420web_thumb.jpg","galleries_id":449243,"server_id":32,"link":"photo_8795872.html","width":130,"caption":"\"Des-Res II\" - Limited Edition Print","height":96});
															thumbnails[8796090] = clik.newPhoto({"id":8796090,"src":"B35425_framedweb_thumb.jpg","galleries_id":463220,"server_id":32,"link":"photo_8796090.html","width":130,"caption":"\"Pugs n Kisses\" - Original Framed Art","height":106});
															thumbnails[8796095] = clik.newPhoto({"id":8796095,"src":"B35415_framedweb_thumb.jpg","galleries_id":463220,"server_id":32,"link":"photo_8796095.html","width":130,"caption":"\"Guns n Noses\" - Original Framed Art","height":106});
															thumbnails[8796097] = clik.newPhoto({"id":8796097,"src":"B35429_framedweb_thumb.jpg","galleries_id":463220,"server_id":32,"link":"photo_8796097.html","width":130,"caption":"\"Shoe York, Shoe York\" - Original Framed Art","height":106});
															thumbnails[8796100] = clik.newPhoto({"id":8796100,"src":"B35427_framedweb_thumb.jpg","galleries_id":463220,"server_id":32,"link":"photo_8796100.html","width":130,"caption":"\"Ville de l'amour\" - Original Framed Art","height":160});
															thumbnails[8796102] = clik.newPhoto({"id":8796102,"src":"B35413_framedweb_thumb.jpg","galleries_id":463220,"server_id":32,"link":"photo_8796102.html","width":130,"caption":"\"Shades of Winter\" - Original Framed Art","height":106});
															thumbnails[8796104] = clik.newPhoto({"id":8796104,"src":"B35419_framedweb_thumb.jpg","galleries_id":463220,"server_id":32,"link":"photo_8796104.html","width":130,"caption":"\"Shades of Summer\" - Original Framed Art","height":106});
															thumbnails[8796107] = clik.newPhoto({"id":8796107,"src":"B35416_framedweb_thumb.jpg","galleries_id":463220,"server_id":32,"link":"photo_8796107.html","width":130,"caption":"\"The Mane Event\" - Original Framed Art","height":106});
															thumbnails[8796108] = clik.newPhoto({"id":8796108,"src":"B35414_framedweb_thumb.jpg","galleries_id":463220,"server_id":32,"link":"photo_8796108.html","width":130,"caption":"\"Tee Time\" - Original Framed Art","height":106});
															thumbnails[8796109] = clik.newPhoto({"id":8796109,"src":"B35418_framedweb_thumb.jpg","galleries_id":463220,"server_id":32,"link":"photo_8796109.html","width":130,"caption":"\"Saxy\" - Original Framed Art","height":160});
															thumbnails[8796110] = clik.newPhoto({"id":8796110,"src":"B35417_framedweb_thumb.jpg","galleries_id":463220,"server_id":32,"link":"photo_8796110.html","width":130,"caption":"\"G String\" - Original Framed Art","height":106});
															thumbnails[8796111] = clik.newPhoto({"id":8796111,"src":"B35428_framedweb_thumb.jpg","galleries_id":463220,"server_id":32,"link":"photo_8796111.html","width":130,"caption":"\"Des-Res I\" - Original Framed Art","height":160});
															thumbnails[8796113] = clik.newPhoto({"id":8796113,"src":"B35420_framedweb_thumb.jpg","galleries_id":463220,"server_id":32,"link":"photo_8796113.html","width":130,"caption":"\"Des-Res II\" - Original Framed Art","height":106});
															thumbnails[8806619] = clik.newPhoto({"id":8806619,"src":"DSC_BC_8D6BD6B0-24E8-5EC4-4F2973A0A75C0CD8_thumb.jpg","galleries_id":463605,"server_id":32,"link":"photo_8806619.html","width":130,"caption":"Border Collie","height":194});
															thumbnails[8806622] = clik.newPhoto({"id":8806622,"src":"B35425webDog_Inn_thumb.jpg","galleries_id":463605,"server_id":32,"link":"photo_8806622.html","width":130,"caption":"Pug","height":111});
															thumbnails[8806633] = clik.newPhoto({"id":8806633,"src":"DSC_0495web_thumb.jpg","galleries_id":463605,"server_id":32,"link":"photo_8806633.html","width":130,"caption":"Chocolate Labrador","height":120});
															thumbnails[8833932] = clik.newPhoto({"id":8833932,"src":"Black-lab-web_thumb.jpg","galleries_id":463605,"server_id":32,"link":"photo_8833932.html","width":130,"caption":"Black Labrador","height":125});
															thumbnails[8833934] = clik.newPhoto({"id":8833934,"src":"DSC_0497-web_thumb.jpg","galleries_id":463605,"server_id":32,"link":"photo_8833934.html","width":130,"caption":"Golden Retriever","height":118});
															thumbnails[8844634] = clik.newPhoto({"id":8844634,"src":"DSC_0512web_thumb.jpg","galleries_id":407591,"server_id":32,"link":"photo_8844634.html","width":130,"caption":"\"Two Labradors\"","height":194});
															thumbnails[8888711] = clik.newPhoto({"id":8888711,"src":"DSC_0516web_thumb.jpg","galleries_id":463605,"server_id":32,"link":"photo_8888711.html","width":130,"caption":"Labrador Puppy","height":93});
															thumbnails[8888717] = clik.newPhoto({"id":8888717,"src":"DSC_0518web_thumb.jpg","galleries_id":463605,"server_id":32,"link":"photo_8888717.html","width":130,"caption":"Jack Russell","height":92});
															thumbnails[8920429] = clik.newPhoto({"id":8920429,"src":"DSC_0520web_thumb.jpg","galleries_id":463605,"server_id":32,"link":"photo_8920429.html","width":130,"caption":"Staffordshire Bull Terrier","height":103});
															thumbnails[6483963] = clik.newPhoto({"id":6483963,"src":"A61520_464E2E5A-24E8-5EC4-4FD6F38F027E0FCE_thumb.jpg","galleries_id":357132,"server_id":32,"link":"photo_6483963.html","width":130,"caption":"Gift Voucher","height":158});
															thumbnails[7826156] = clik.newPhoto({"id":7826156,"src":"A93563web_thumb.gif","galleries_id":450839,"server_id":32,"link":"photo_7826156.html","width":130,"caption":"\"Serenity\" - Framed ","height":150});
															thumbnails[7826211] = clik.newPhoto({"id":7826211,"src":"A93572web_thumb.gif","galleries_id":450839,"server_id":32,"link":"photo_7826211.html","width":130,"caption":"\"Integrity\" - Framed","height":135});
															thumbnails[7826214] = clik.newPhoto({"id":7826214,"src":"A93585web_thumb.gif","galleries_id":450839,"server_id":32,"link":"photo_7826214.html","width":130,"caption":"\"Affection\" - Framed","height":106});
															thumbnails[7826217] = clik.newPhoto({"id":7826217,"src":"A93547web_thumb.gif","galleries_id":450839,"server_id":32,"link":"photo_7826217.html","width":130,"caption":"\"Satisfaction\" - Framed","height":119});
															thumbnails[8531893] = clik.newPhoto({"id":8531893,"src":"DC0017-Blackweb_thumb.jpg","galleries_id":450839,"server_id":32,"link":"photo_8531893.html","width":130,"caption":"Jack Spaniels","height":109});
															thumbnails[8531896] = clik.newPhoto({"id":8531896,"src":"DC0020-Bronzeweb_thumb.jpg","galleries_id":450839,"server_id":32,"link":"photo_8531896.html","width":130,"caption":"Gaymers Olde English Sheepdog","height":105});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[354544] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Limited Edition Prints","link":"gallery_354544.html","maxRecords":0.0,"photoIDs":[6420177.0,6662619.0,7690487.0,7690614.0,7690796.0,7691236.0,7704560.0],"skipIndex":0,"section_code":"gallery","featured_images":"7704560,7691236,7690796,7690614,7690487,6662619,6420177","id":354544,"singleSection":false});				  						galleries[449243] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Desired Collection","link":"gallery_449243.html","maxRecords":0.0,"photoIDs":[8795719.0,8795781.0,8795787.0,8795813.0,8795822.0,8795825.0,8795830.0,8795834.0,8795862.0,8795864.0,8795869.0,8795872.0],"skipIndex":0,"section_code":"gallery","featured_images":"8795872,8795869,8795864,8795862,8795834,8795830,8795825,8795822,8795813,8795787","id":449243,"singleSection":false});				  						galleries[463602] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Open Edition Prints","link":"gallery_463602.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"8920429,8888717,8888711,8833934,8833932,8806633,8806622,8806619,8273161,8273160","id":463602,"singleSection":false});				  						galleries[364174] = clik.newGallery({"parentGallery":463602,"usePopups":false,"title":"Cartoon Prints","link":"gallery_364174.html","maxRecords":0.0,"photoIDs":[7858015.0,7858021.0,7858024.0,7858027.0,7858030.0,7858034.0,7858036.0,7858043.0,7858046.0,8272858.0,8272863.0,8272868.0,8272918.0,8272971.0,8272978.0,8273031.0,8273033.0,8273083.0,8273084.0,8273085.0,8273087.0,8273139.0,8273160.0,8273161.0],"skipIndex":0,"section_code":"gallery","featured_images":"8273161,8273160,8273139,8273087,8273085,8273084,8273083,8273033,8273031,8272978","id":364174,"singleSection":false});				  						galleries[463605] = clik.newGallery({"parentGallery":463602,"usePopups":false,"title":"Dog Breed Prints","link":"gallery_463605.html","maxRecords":0.0,"photoIDs":[8806619.0,8806622.0,8806633.0,8833932.0,8833934.0,8888711.0,8888717.0,8920429.0],"skipIndex":0,"section_code":"gallery","featured_images":"8920429,8888717,8888711,8833934,8833932,8806633,8806622,8806619","id":463605,"singleSection":false});				  						galleries[362608] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Originals","link":"gallery_362608.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"8796113,8796111,8796110,8796109,8796108,8796107,8796104,8796102,8796100,8796097","id":362608,"singleSection":false});				  						galleries[463219] = clik.newGallery({"parentGallery":362608,"usePopups":false,"title":"Fine Art Animal Paintings","link":"gallery_463219.html","maxRecords":0.0,"photoIDs":[7691060.0,7691102.0,7691109.0,7708621.0],"skipIndex":0,"section_code":"gallery","featured_images":"7708621,7691109,7691102,7691060","id":463219,"singleSection":false});				  						galleries[463220] = clik.newGallery({"parentGallery":362608,"usePopups":false,"title":"Desired Collection Originals","link":"gallery_463220.html","maxRecords":0.0,"photoIDs":[8796090.0,8796095.0,8796097.0,8796100.0,8796102.0,8796104.0,8796107.0,8796108.0,8796109.0,8796110.0,8796111.0,8796113.0],"skipIndex":0,"section_code":"gallery","featured_images":"8796113,8796111,8796110,8796109,8796108,8796107,8796104,8796102,8796100,8796097","id":463220,"singleSection":false});				  						galleries[463588] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Commissioned Artwork and Portraits","link":"gallery_463588.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"8844634,8446136,8446129,8446121,7770264,7770263,7690911,7487254,7361339,7218119","id":463588,"singleSection":false});				  						galleries[353873] = clik.newGallery({"parentGallery":463588,"usePopups":false,"title":"Pastel Paintings","link":"gallery_353873.html","maxRecords":0.0,"photoIDs":[6419973.0,6420026.0,6420051.0,6420172.0,6594126.0,6647587.0,6710683.0,7028017.0,7105863.0,7218119.0,7361339.0,7487254.0,8446121.0],"skipIndex":0,"section_code":"gallery","featured_images":"8446121,7487254,7361339,7218119,7105863,7028017,6710683,6647587,6594126,6420172","id":353873,"singleSection":false});				  						galleries[407591] = clik.newGallery({"parentGallery":463588,"usePopups":false,"title":"Pencil Drawings and Portraits","link":"gallery_407591.html","maxRecords":0.0,"photoIDs":[7770263.0,7770264.0,8446136.0,8844634.0],"skipIndex":0,"section_code":"gallery","featured_images":"8844634,8446136,7770264,7770263","id":407591,"singleSection":false});				  						galleries[353874] = clik.newGallery({"parentGallery":463588,"usePopups":false,"title":"Oil on Linen Canvas","link":"gallery_353874.html","maxRecords":0.0,"photoIDs":[6420070.0,6420155.0,6420161.0,6420167.0,7690911.0],"skipIndex":0,"section_code":"gallery","featured_images":"7690911,6420167,6420161,6420155,6420070","id":353874,"singleSection":false});				  						galleries[434767] = clik.newGallery({"parentGallery":463588,"usePopups":false,"title":"Cartoon Pet Portraits","link":"gallery_434767.html","maxRecords":0.0,"photoIDs":[8446129.0],"skipIndex":0,"section_code":"gallery","featured_images":8446129.0,"id":434767,"singleSection":false});				  						galleries[354554] = clik.newGallery({"parentGallery":463588,"usePopups":false,"title":"Family Portraits","link":"gallery_354554.html","maxRecords":0.0,"photoIDs":[6616174.0],"skipIndex":0,"section_code":"gallery","featured_images":6616174.0,"id":354554,"singleSection":false});				  						galleries[446824] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Greetings Cards","link":"gallery_446824.html","maxRecords":0.0,"photoIDs":[8441331.0,8441340.0,8441382.0,8441388.0,8441393.0,8442070.0,8442075.0,8442082.0,8442089.0,8442095.0,8442105.0,8442110.0,8442215.0,8442219.0,8442223.0,8442232.0,8442237.0,8442241.0,8442246.0,8442252.0,8442258.0,8442266.0,8442272.0,8442277.0],"skipIndex":0,"section_code":"gallery","featured_images":"8442277,8442272,8442266,8442258,8442252,8442246,8442241,8442237,8442232,8442223","id":446824,"singleSection":false});				  						galleries[431824] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Handmade Jewellery","link":"gallery_431824.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"","id":431824,"singleSection":false});				  						galleries[357132] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gift Vouchers","link":"gallery_357132.html","maxRecords":0.0,"photoIDs":[6483963.0],"skipIndex":0,"section_code":"gallery","featured_images":6483963.0,"id":357132,"singleSection":false});				  						galleries[450839] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Frame Samples","link":"section425769.html","maxRecords":0.0,"photoIDs":[7826156.0,7826211.0,7826214.0,7826217.0,8531893.0,8531896.0],"skipIndex":0,"section_code":"section425769","featured_images":"8531896,8531893,7826217,7826214,7826211,7826156","id":450839,"singleSection":true});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8273084,8273031,8272868,8272863,7858021,7704560,7691236,7690796,7690487,7487254,7218119,6662619,6616174,6420155,6420051,6420026';
imageSets[3] = '8920429,8888717,8888711,8844634,8833934,8833932,8806633,8806622,8806619,8796113,8796111,8796110,8796109,8796108,8796107,8796104,8796102,8796100,8796097,8796095,8796090,8795872,8795869,8795864,8795862,8795834,8795830,8795825,8795822,8795813,8795787,8795781,8795719,8531896,8531893,8446136,8446129,8446121,8442277,8442272,8442266,8442258,8442252,8442246,8442241,8442237,8442232,8442223,8442219,8442215';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/ramsfans/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/ramsfans/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/ramsfans/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/ramsfans/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/ramsfans/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/ramsfans/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/ramsfans/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/ramsfans/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/ramsfans/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/ramsfans/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/ramsfans/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/ramsfans/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/ramsfans/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/ramsfans/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/ramsfans/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/ramsfans/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/ramsfans/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/ramsfans/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/ramsfans/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/ramsfans/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/ramsfans/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/ramsfans/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/ramsfans/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/ramsfans/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/ramsfans/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/ramsfans/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/ramsfans/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 = 'Clare Walton - Kute Fine 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="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="RAMSFANS">';
			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;
	}
}

			

