window.thumbnails = {};
															thumbnails[814687] = clik.newPhoto({"id":814687,"src":"db_q_queen_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Q is for Queen by Quentin Blake","height":161});
															thumbnails[7683795] = clik.newPhoto({"id":7683795,"src":"photo-1_big_tulips_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Original painting by Jay Nottingham","height":173});
															thumbnails[7866094] = clik.newPhoto({"id":7866094,"src":"IMG_0594_copy_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Original painting by Jay Nottingham","height":130});
															thumbnails[7866102] = clik.newPhoto({"id":7866102,"src":"IMG_0593_copy_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Original painting by Jay Nottingham","height":131});
															thumbnails[7866107] = clik.newPhoto({"id":7866107,"src":"IMG_0592_copy_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Original painting by Jay Nottingham","height":129});
															thumbnails[580913] = clik.newPhoto({"id":580913,"src":"1003_thumb.jpg","galleries_id":44437,"server_id":18,"link":"photo_580913.html","width":130,"caption":"Sea Village I by Gillian McDonald","height":121});
															thumbnails[580923] = clik.newPhoto({"id":580923,"src":"1015_thumb.jpg","galleries_id":44437,"server_id":18,"link":"photo_580923.html","width":130,"caption":" Sweet Peas by Anne Cotterill","height":145});
															thumbnails[580987] = clik.newPhoto({"id":580987,"src":"1009_thumb.jpg","galleries_id":44437,"server_id":18,"link":"photo_580987.html","width":130,"caption":"Southerndown by Rob Piercy","height":93});
															thumbnails[582696] = clik.newPhoto({"id":582696,"src":"10221_thumb.jpg","galleries_id":44437,"server_id":18,"link":"photo_582696.html","width":130,"caption":" Ancient Doorway by Sir William Russell Flint  ","height":194});
															thumbnails[582822] = clik.newPhoto({"id":582822,"src":"1001_thumb.jpg","galleries_id":44437,"server_id":18,"link":"photo_582822.html","width":130,"caption":"Midnight Farm by Gillian McDonald","height":120});
															thumbnails[582823] = clik.newPhoto({"id":582823,"src":"1004_thumb.jpg","galleries_id":44437,"server_id":18,"link":"photo_582823.html","width":130,"caption":"St Davids Cathederal by Gillian McDonald","height":115});
															thumbnails[582825] = clik.newPhoto({"id":582825,"src":"10051_thumb.jpg","galleries_id":44437,"server_id":18,"link":"photo_582825.html","width":130,"caption":"Light on the Shore by Gillian McDonald","height":49});
															thumbnails[582827] = clik.newPhoto({"id":582827,"src":"1006_thumb.jpg","galleries_id":44437,"server_id":18,"link":"photo_582827.html","width":130,"caption":"Llanwanda by John Knapp-Fisher","height":33});
															thumbnails[582829] = clik.newPhoto({"id":582829,"src":"1007_thumb.jpg","galleries_id":44437,"server_id":18,"link":"photo_582829.html","width":130,"caption":"Tregynnon Farm by John Knapp-Fisher","height":98});
															thumbnails[582830] = clik.newPhoto({"id":582830,"src":"1008_thumb.jpg","galleries_id":44437,"server_id":18,"link":"photo_582830.html","width":130,"caption":"Beach Conversation by Rob Piercy","height":87});
															thumbnails[582833] = clik.newPhoto({"id":582833,"src":"1010_thumb.jpg","galleries_id":44437,"server_id":18,"link":"photo_582833.html","width":130,"caption":"Lights over Glyders by Rob Piercy","height":85});
															thumbnails[582835] = clik.newPhoto({"id":582835,"src":"1011_thumb.jpg","galleries_id":44437,"server_id":18,"link":"photo_582835.html","width":130,"caption":"The night has a thousand eyes by Sue Howells","height":67});
															thumbnails[582842] = clik.newPhoto({"id":582842,"src":"1013_thumb.jpg","galleries_id":44437,"server_id":18,"link":"photo_582842.html","width":130,"caption":"el sombrero rojo by Fletcher Sibthorpe","height":156});
															thumbnails[582843] = clik.newPhoto({"id":582843,"src":"1014_thumb.jpg","galleries_id":44437,"server_id":18,"link":"photo_582843.html","width":130,"caption":"belleza en las sombras by Fletcher Sibthorpe","height":156});
															thumbnails[582844] = clik.newPhoto({"id":582844,"src":"HC3001_small_thumb.jpg","galleries_id":44437,"server_id":18,"link":"photo_582844.html","width":130,"caption":"Miss Lily tells Angelina that she is a good little dancer by Helen Craig","height":65});
															thumbnails[582846] = clik.newPhoto({"id":582846,"src":"1019_thumb.jpg","galleries_id":44437,"server_id":18,"link":"photo_582846.html","width":130,"caption":"Mare and Foal by jacqueline Stanhope","height":110});
															thumbnails[582849] = clik.newPhoto({"id":582849,"src":"1020_thumb.jpg","galleries_id":44437,"server_id":18,"link":"photo_582849.html","width":130,"caption":"Golden Retriever by Jacqueline Stanhope","height":99});
															thumbnails[582851] = clik.newPhoto({"id":582851,"src":"1021_thumb.jpg","galleries_id":44437,"server_id":18,"link":"photo_582851.html","width":130,"caption":"Original oil painting by Alan Tortice","height":80});
															thumbnails[584150] = clik.newPhoto({"id":584150,"src":"10161_thumb.jpg","galleries_id":44437,"server_id":18,"link":"photo_584150.html","width":130,"caption":"Roses of Provence by Anne Cotterill","height":161});
															thumbnails[584182] = clik.newPhoto({"id":584182,"src":"db_belleepoque1_thumb.jpg","galleries_id":44437,"server_id":18,"link":"photo_584182.html","width":130,"caption":"La Belle Epoque,Aix by Jeremy Barlow","height":105});
															thumbnails[584183] = clik.newPhoto({"id":584183,"src":"1023_thumb.jpg","galleries_id":44437,"server_id":18,"link":"photo_584183.html","width":130,"caption":"an original oil painting by Andrew Grant Kurtis","height":86});
															thumbnails[584184] = clik.newPhoto({"id":584184,"src":"1024_thumb.jpg","galleries_id":44437,"server_id":18,"link":"photo_584184.html","width":130,"caption":"an original oil painting by Edward Hersey","height":87});
															thumbnails[584194] = clik.newPhoto({"id":584194,"src":"1026_thumb.jpg","galleries_id":44437,"server_id":18,"link":"photo_584194.html","width":130,"caption":"an original oil painting by Paul Wilson","height":94});
															thumbnails[814628] = clik.newPhoto({"id":814628,"src":"bluebells and may blossom_thumb.jpg","galleries_id":63055,"server_id":18,"link":"photo_814628.html","width":130,"caption":"Bluebells and May Blossom  by Anne Cotterill","height":161});
															thumbnails[814690] = clik.newPhoto({"id":814690,"src":"1052_thumb.jpg","galleries_id":63055,"server_id":18,"link":"photo_814690.html","width":130,"caption":"Heaven Scent by Carolyn Blish","height":103});
															thumbnails[814709] = clik.newPhoto({"id":814709,"src":"1053_thumb.jpg","galleries_id":63055,"server_id":18,"link":"photo_814709.html","width":130,"caption":"an original oil painting by John Horsewell","height":101});
															thumbnails[814718] = clik.newPhoto({"id":814718,"src":"1054_thumb.jpg","galleries_id":63055,"server_id":18,"link":"photo_814718.html","width":130,"caption":"Light on the Loch II by Gillian McDonald","height":253});
															thumbnails[814724] = clik.newPhoto({"id":814724,"src":"1055_thumb.jpg","galleries_id":63055,"server_id":18,"link":"photo_814724.html","width":130,"caption":"Dance II by Raymond Leach ","height":109});
															thumbnails[814727] = clik.newPhoto({"id":814727,"src":"1056_thumb.jpg","galleries_id":63055,"server_id":18,"link":"photo_814727.html","width":130,"caption":"Western Farm by Gillian McDonald  ","height":116});
															thumbnails[814759] = clik.newPhoto({"id":814759,"src":"1057_thumb.jpg","galleries_id":63055,"server_id":18,"link":"photo_814759.html","width":130,"caption":"Windflowers by Anne Cotterill","height":106});
															thumbnails[882840] = clik.newPhoto({"id":882840,"src":"MauveHills_thumb.jpg","galleries_id":63055,"server_id":18,"link":"photo_882840.html","width":130,"caption":"Mauve Hills by Gillian McDonald","height":91});
															thumbnails[882862] = clik.newPhoto({"id":882862,"src":"1033_thumb.jpg","galleries_id":63055,"server_id":18,"link":"photo_882862.html","width":130,"caption":"Donkey over gate by Andrew Hutchinson","height":191});
															thumbnails[882904] = clik.newPhoto({"id":882904,"src":"1039_thumb.jpg","galleries_id":63055,"server_id":18,"link":"photo_882904.html","width":130,"caption":"Facade, Naples. by Jeremy Barlow ROI","height":105});
															thumbnails[882917] = clik.newPhoto({"id":882917,"src":"1034_thumb.jpg","galleries_id":63055,"server_id":18,"link":"photo_882917.html","width":130,"caption":"Filly Foals by Jacqueline Stanhope","height":127});
															thumbnails[882923] = clik.newPhoto({"id":882923,"src":"1059_thumb.jpg","galleries_id":63055,"server_id":18,"link":"photo_882923.html","width":130,"caption":"Happy Days by Sue Howells","height":130});
															thumbnails[882927] = clik.newPhoto({"id":882927,"src":"1060_thumb.jpg","galleries_id":63055,"server_id":18,"link":"photo_882927.html","width":130,"caption":"Mountain Village III by Gillian McDonald","height":124});
															thumbnails[882984] = clik.newPhoto({"id":882984,"src":"1040_thumb.jpg","galleries_id":63055,"server_id":18,"link":"photo_882984.html","width":130,"caption":"Brotherhood by Jacqueline Stanhope","height":102});
															thumbnails[882997] = clik.newPhoto({"id":882997,"src":"1046_thumb.jpg","galleries_id":44437,"server_id":18,"link":"photo_882997.html","width":130,"caption":"Stablemates by Jacqueline Stanhope","height":95});
															thumbnails[883031] = clik.newPhoto({"id":883031,"src":"db_les_deux_garcon2_thumb.jpg","galleries_id":44437,"server_id":18,"link":"photo_883031.html","width":130,"caption":"Les Duex Garcons,Aix by Jeremy Barlow ROI","height":105});
															thumbnails[995588] = clik.newPhoto({"id":995588,"src":"1062_thumb.jpg","galleries_id":77682,"server_id":18,"link":"photo_995588.html","width":130,"caption":"Snooker World Champions","height":130});
															thumbnails[1009865] = clik.newPhoto({"id":1009865,"src":"1063_thumb.jpg","galleries_id":77682,"server_id":18,"link":"photo_1009865.html","width":130,"caption":"Cesc Fabregas","height":130});
															thumbnails[1009867] = clik.newPhoto({"id":1009867,"src":"1064_thumb.jpg","galleries_id":77682,"server_id":18,"link":"photo_1009867.html","width":130,"caption":"Theo Walcott","height":130});
															thumbnails[1011819] = clik.newPhoto({"id":1011819,"src":"1065_thumb.jpg","galleries_id":77682,"server_id":18,"link":"photo_1011819.html","width":130,"caption":"Edwin Van der Sar","height":130});
															thumbnails[1044170] = clik.newPhoto({"id":1044170,"src":"1067_thumb.jpg","galleries_id":77682,"server_id":18,"link":"photo_1044170.html","width":130,"caption":"Ole Gunner Solskjaer","height":130});
															thumbnails[1121108] = clik.newPhoto({"id":1121108,"src":"BF85Zen_thumb.jpg","galleries_id":81947,"server_id":18,"link":"photo_1121108.html","width":130,"caption":"'Zen' a limited edition solid bronze frog by Tim Cotterill.","height":94});
															thumbnails[1121124] = clik.newPhoto({"id":1121124,"src":"Ember_thumb.jpg","galleries_id":81947,"server_id":18,"link":"photo_1121124.html","width":130,"caption":"'Ember' a limited edition solid bronze frog by Tim Cotterill Edition SOLD OUT","height":129});
															thumbnails[1121125] = clik.newPhoto({"id":1121125,"src":"BF54Toady_hr_thumb.jpg","galleries_id":81947,"server_id":18,"link":"photo_1121125.html","width":130,"caption":"'Toady' a limited edition solid bronze frog by Tim Cotterill.","height":174});
															thumbnails[1121128] = clik.newPhoto({"id":1121128,"src":"BF102_TagHR_thumb.jpg","galleries_id":81947,"server_id":18,"link":"photo_1121128.html","width":130,"caption":"'Tag' a limited edition solid bronze frog by Tim Cotterill.","height":76});
															thumbnails[1121130] = clik.newPhoto({"id":1121130,"src":"BFM8_Surf_whtbkgHR_thumb.jpg","galleries_id":81947,"server_id":18,"link":"photo_1121130.html","width":130,"caption":"'Surf' a limited edition solid bronze frog by Tim Cotterill. Edition SOLD OUT","height":113});
															thumbnails[1121132] = clik.newPhoto({"id":1121132,"src":"BF67BlueSnackAttack_hr_thumb.jpg","galleries_id":81947,"server_id":18,"link":"photo_1121132.html","width":130,"caption":"'Snack Attack' a limited edition solid bronze frog by Tim Cotterill.","height":173});
															thumbnails[1121133] = clik.newPhoto({"id":1121133,"src":"BFM4_Sky_thumb.jpg","galleries_id":81947,"server_id":18,"link":"photo_1121133.html","width":130,"caption":"'Sky' a limited edition solid bronze frog by Tim Cotterill' Edition SOLD OUT","height":93});
															thumbnails[1121134] = clik.newPhoto({"id":1121134,"src":"BF71Scout_hr__thumb.jpg","galleries_id":81947,"server_id":18,"link":"photo_1121134.html","width":130,"caption":"'Scout' a limited edition solid bronze frog by Tim Cotterill.","height":98});
															thumbnails[1121140] = clik.newPhoto({"id":1121140,"src":"BFM6_Meadow_whtbkgHR_thumb.jpg","galleries_id":81947,"server_id":18,"link":"photo_1121140.html","width":130,"caption":"'Meadow' a limited edition solid bronze frog by Tim Cotterill.","height":120});
															thumbnails[1121284] = clik.newPhoto({"id":1121284,"src":"BF63HungOver_hr_thumb.jpg","galleries_id":81947,"server_id":18,"link":"photo_1121284.html","width":130,"caption":"'Hung Over' a limited edition solid bronze frog by Tim Cotterill.","height":173});
															thumbnails[1121295] = clik.newPhoto({"id":1121295,"src":"Hibiscus_thumb.jpg","galleries_id":81947,"server_id":18,"link":"photo_1121295.html","width":130,"caption":"'Hibiscus' a limited edition solid bronze frog by Tim Cotterill. Edition SOLD OUT","height":186});
															thumbnails[1600146] = clik.newPhoto({"id":1600146,"src":"BF105_ZorroHR_thumb.jpg","galleries_id":81947,"server_id":18,"link":"photo_1600146.html","width":130,"caption":"'Zorro' a limited edition solid bronze frog by Tim Cotterill","height":103});
															thumbnails[1626206] = clik.newPhoto({"id":1626206,"src":"AJ9102_small_thumb.jpg","galleries_id":63055,"server_id":18,"link":"photo_1626206.html","width":130,"caption":"Guess how much I love you by Anita Jeram","height":87});
															thumbnails[1977084] = clik.newPhoto({"id":1977084,"src":"UK Special Patina Frog - Spring 2008_thumb.JPG","galleries_id":81947,"server_id":18,"link":"photo_1977084.html","width":130,"caption":"","height":66});
															thumbnails[4791795] = clik.newPhoto({"id":4791795,"src":"IMG_1308_thumb.jpg","galleries_id":77682,"server_id":18,"link":"photo_4791795.html","width":130,"caption":"an original painting by John Horsewell ","height":98});
															thumbnails[4791797] = clik.newPhoto({"id":4791797,"src":"IMG_1309_thumb.jpg","galleries_id":77682,"server_id":18,"link":"photo_4791797.html","width":130,"caption":"an original painting by John Horsewell","height":98});
															thumbnails[5880261] = clik.newPhoto({"id":5880261,"src":"UK_Spring_Frog_2010_-_4_thumb.jpg","galleries_id":81947,"server_id":18,"link":"photo_5880261.html","width":130,"caption":"","height":93});
															thumbnails[5880491] = clik.newPhoto({"id":5880491,"src":"BF119_UK_Special_thumb.jpeg","galleries_id":81947,"server_id":18,"link":"photo_5880491.html","width":130,"caption":"","height":67});
															thumbnails[5880530] = clik.newPhoto({"id":5880530,"src":"BF136_Under_Cover-1_thumb.jpeg","galleries_id":81947,"server_id":18,"link":"photo_5880530.html","width":130,"caption":"","height":91});
															thumbnails[6830867] = clik.newPhoto({"id":6830867,"src":"Half_Term_at_Last_by_Sue_Howells_thumb.jpg","galleries_id":63055,"server_id":18,"link":"photo_6830867.html","width":130,"caption":"'Half Term at Last' by Sue Howells   ","height":94});
															thumbnails[6830868] = clik.newPhoto({"id":6830868,"src":"Bright_and_Breezy_by_Sue_Howells_thumb.jpg","galleries_id":63055,"server_id":18,"link":"photo_6830868.html","width":130,"caption":"'Bright and Breezy' by Sue Howells'","height":102});
															thumbnails[6830870] = clik.newPhoto({"id":6830870,"src":"By_the_Light_of_the_Sivery_Moon_by_Sue_Howells_thumb.jpg","galleries_id":63055,"server_id":18,"link":"photo_6830870.html","width":130,"caption":"'By the Light ... by Sue Howells'","height":249});
															thumbnails[6830872] = clik.newPhoto({"id":6830872,"src":"Night_Watch_by_Sue_Howells_thumb.jpg","galleries_id":63055,"server_id":18,"link":"photo_6830872.html","width":130,"caption":"'Night Watch by Sue Howells' ","height":249});
															thumbnails[6831235] = clik.newPhoto({"id":6831235,"src":"IMG00021-20101001-1048_thumb.jpg","galleries_id":77682,"server_id":18,"link":"photo_6831235.html","width":130,"caption":"Blue Symphony by Robin Mullen","height":134});
															thumbnails[6831402] = clik.newPhoto({"id":6831402,"src":"IMG00026-20101001-1111_thumb.jpg","galleries_id":63055,"server_id":18,"link":"photo_6831402.html","width":130,"caption":"'Southerndown by Allan Morgan","height":129});
															thumbnails[6831436] = clik.newPhoto({"id":6831436,"src":"IMG00025-20101001-1109_thumb.jpg","galleries_id":77682,"server_id":18,"link":"photo_6831436.html","width":130,"caption":"'Flame' by Robin Mullen","height":137});
															thumbnails[6831443] = clik.newPhoto({"id":6831443,"src":"IMG00022-20101001-1107_thumb.jpg","galleries_id":77682,"server_id":18,"link":"photo_6831443.html","width":130,"caption":"'Misty Blues' by Robin Mullen","height":130});
															thumbnails[6831448] = clik.newPhoto({"id":6831448,"src":"IMG00023-20101001-1108_thumb.jpg","galleries_id":77682,"server_id":18,"link":"photo_6831448.html","width":130,"caption":"'Fantasia' by Robin Mullen","height":130});
															thumbnails[6831459] = clik.newPhoto({"id":6831459,"src":"your_carriage_awaits_s_thumb.jpg","galleries_id":63055,"server_id":18,"link":"photo_6831459.html","width":130,"caption":"'Your Carriage Awaits' by Alan Tortice","height":263});
															thumbnails[6831468] = clik.newPhoto({"id":6831468,"src":"ticket_to_ride_s_thumb.jpg","galleries_id":63055,"server_id":18,"link":"photo_6831468.html","width":130,"caption":"'Ticket to Ride' by Alan Tortice","height":81});
															thumbnails[6831474] = clik.newPhoto({"id":6831474,"src":"the_flying_scotsman_s_thumb.jpg","galleries_id":63055,"server_id":18,"link":"photo_6831474.html","width":130,"caption":"'The Flying Scotsman' by Alan Tortice","height":81});
															thumbnails[6831480] = clik.newPhoto({"id":6831480,"src":"collection_day_s_thumb.jpg","galleries_id":63055,"server_id":18,"link":"photo_6831480.html","width":130,"caption":"'Collection Day' by Alan Tortice","height":263});
															thumbnails[7424201] = clik.newPhoto({"id":7424201,"src":"IMG_0411-2_thumb.jpg","galleries_id":44437,"server_id":18,"link":"photo_7424201.html","width":130,"caption":"original floral watercolour by Jay","height":102});
															thumbnails[7424202] = clik.newPhoto({"id":7424202,"src":"IMG_0122_thumb.jpg","galleries_id":44437,"server_id":18,"link":"photo_7424202.html","width":130,"caption":"original floral watercolour by Jay","height":97});
															thumbnails[7424203] = clik.newPhoto({"id":7424203,"src":"IMG_0115_thumb.jpg","galleries_id":44437,"server_id":18,"link":"photo_7424203.html","width":130,"caption":"original floral watercolour by Jay","height":97});
															thumbnails[7424238] = clik.newPhoto({"id":7424238,"src":"IMG_0273-2_thumb.jpg","galleries_id":44437,"server_id":18,"link":"photo_7424238.html","width":130,"caption":"original floral watercolour by Jay","height":102});
															thumbnails[7866109] = clik.newPhoto({"id":7866109,"src":"IMG_0591_copy_thumb.jpg","galleries_id":63055,"server_id":18,"link":"photo_7866109.html","width":130,"caption":"Original painting by Jay Nottingham","height":127});
															thumbnails[7866111] = clik.newPhoto({"id":7866111,"src":"IMG_0590_copy_thumb.jpg","galleries_id":63055,"server_id":18,"link":"photo_7866111.html","width":130,"caption":"Original painting by Jay Nottingham","height":129});
															thumbnails[8164841] = clik.newPhoto({"id":8164841,"src":"Summer_Meadow_Framed_10_thumb.jpg","galleries_id":63055,"server_id":18,"link":"photo_8164841.html","width":130,"caption":"Original painting by Jay Nottingham","height":127});
															thumbnails[8769523] = clik.newPhoto({"id":8769523,"src":"JB3108_thumb.jpg","galleries_id":44437,"server_id":18,"link":"photo_8769523.html","width":130,"caption":"Brasserie l'Archereche, Aix by Jeremy Barlow","height":113});
															thumbnails[8769546] = clik.newPhoto({"id":8769546,"src":"JB3107_thumb.jpg","galleries_id":44437,"server_id":18,"link":"photo_8769546.html","width":130,"caption":"La Renaissance by Jeremy Barlow","height":113});
															thumbnails[8769552] = clik.newPhoto({"id":8769552,"src":"JB3065_thumb.jpg","galleries_id":44437,"server_id":18,"link":"photo_8769552.html","width":130,"caption":"Fleuriste by Jeremy Barlow","height":163});
															thumbnails[8769557] = clik.newPhoto({"id":8769557,"src":"JB3064_thumb.jpg","galleries_id":44437,"server_id":18,"link":"photo_8769557.html","width":130,"caption":"Bar de France by Jeremy Barlow","height":163});
															thumbnails[8769559] = clik.newPhoto({"id":8769559,"src":"CG9006_thumb.jpg","galleries_id":44437,"server_id":18,"link":"photo_8769559.html","width":130,"caption":"Best Friends by Caroline Gardner","height":130});
															thumbnails[8769579] = clik.newPhoto({"id":8769579,"src":"CG90051_thumb.jpg","galleries_id":44437,"server_id":18,"link":"photo_8769579.html","width":130,"caption":"Top Dog by Caroline Gardner","height":130});
															thumbnails[9003008] = clik.newPhoto({"id":9003008,"src":"FS_3341_thumb.jpg","galleries_id":77682,"server_id":18,"link":"photo_9003008.html","width":130,"caption":"Tree of Tranquillity by Kerry Darlington","height":62});
															thumbnails[9003018] = clik.newPhoto({"id":9003018,"src":"FS_3659_thumb.jpg","galleries_id":77682,"server_id":18,"link":"photo_9003018.html","width":130,"caption":"'Whats new pussycat' by Kerry Darlington","height":130});
															thumbnails[9003020] = clik.newPhoto({"id":9003020,"src":"FS_4139_thumb.jpg","galleries_id":77682,"server_id":18,"link":"photo_9003020.html","width":130,"caption":"Tree of Tranquillity by Kerry Darlington","height":130});
															thumbnails[9003021] = clik.newPhoto({"id":9003021,"src":"FS_4187_thumb.jpg","galleries_id":77682,"server_id":18,"link":"photo_9003021.html","width":130,"caption":"'Winter Tree of Destiny' by Kerry Darlington","height":130});
															thumbnails[9003023] = clik.newPhoto({"id":9003023,"src":"FS_4141_thumb.jpg","galleries_id":77682,"server_id":18,"link":"photo_9003023.html","width":130,"caption":"Tree of Tranquillity by Kerry Darlington","height":131});
															thumbnails[9003303] = clik.newPhoto({"id":9003303,"src":"3340_thumb_3B2943EB-1EC9-D45B-1CE6C7D755791ECF.jpg","galleries_id":77682,"server_id":18,"link":"photo_9003303.html","width":130,"caption":"Tree of Tranquillity by Kerry Darlington","height":108});
															thumbnails[9008429] = clik.newPhoto({"id":9008429,"src":"IMG_0395_thumb.JPG","galleries_id":77682,"server_id":18,"link":"photo_9008429.html","width":130,"caption":"Original painting by Jay Nottingham","height":130});
															thumbnails[9008431] = clik.newPhoto({"id":9008431,"src":"IMG_0396_thumb.JPG","galleries_id":77682,"server_id":18,"link":"photo_9008431.html","width":130,"caption":"Original painting by Jay Nottingham","height":129});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[44437] = clik.newGallery({"parentGallery":"","usePopups":false,"title":" Kingfisher Gallery 1","link":"gallery_44437.html","maxRecords":0.0,"photoIDs":[580913.0,580923.0,580987.0,582696.0,582822.0,582823.0,582825.0,582827.0,582829.0,582830.0,582833.0,582835.0,582842.0,582843.0,582844.0,582846.0,582849.0,582851.0,584150.0,584182.0,584183.0,584184.0,584194.0,882997.0,883031.0,7424201.0,7424202.0,7424203.0,7424238.0,8769523.0,8769546.0,8769552.0,8769557.0,8769559.0,8769579.0],"skipIndex":0,"section_code":"gallery","featured_images":"8769579,8769559,8769557,8769552,8769546,8769523,7424238,7424203,7424202,7424201,883031,582835,582833,580987,580913","id":44437,"singleSection":false});				  						galleries[63055] = clik.newGallery({"parentGallery":"","usePopups":false,"title":" Kingfisher Gallery 2","link":"gallery_63055.html","maxRecords":0.0,"photoIDs":[814628.0,814690.0,814709.0,814718.0,814724.0,814727.0,814759.0,882840.0,882862.0,882904.0,882917.0,882923.0,882927.0,882984.0,1626206.0,6830867.0,6830868.0,6830870.0,6830872.0,6831402.0,6831459.0,6831468.0,6831474.0,6831480.0,7866109.0,7866111.0,8164841.0],"skipIndex":0,"section_code":"gallery","featured_images":"8164841,7866111,7866109,6831459,6831402,6830870,1626206,882927","id":63055,"singleSection":false});				  						galleries[77682] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Kingfisher Gallery 3","link":"gallery_77682.html","maxRecords":0.0,"photoIDs":[995588.0,1009865.0,1009867.0,1011819.0,1044170.0,4791795.0,4791797.0,6831235.0,6831436.0,6831443.0,6831448.0,9003008.0,9003018.0,9003020.0,9003021.0,9003023.0,9003303.0,9008429.0,9008431.0],"skipIndex":0,"section_code":"gallery","featured_images":"9008431,9008429,9003303,9003023,9003021,9003020,9003018,9003008,4791797,4791795","id":77682,"singleSection":false});				  						galleries[81947] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Kingfisher Gallery 4","link":"gallery_81947.html","maxRecords":0.0,"photoIDs":[1121108.0,1121124.0,1121125.0,1121128.0,1121130.0,1121132.0,1121133.0,1121134.0,1121140.0,1121284.0,1121295.0,1600146.0,1977084.0,5880261.0,5880491.0,5880530.0],"skipIndex":0,"section_code":"gallery","featured_images":1977084.0,"id":81947,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '9008431,9008429,9003303,9003023,9003021,9003020,9003018,9003008,8769579,8769559,8769557,8769552,8769546,8769523,8164841,7866111,7866109,7424238,6831459,6831448,6831443,6831436,6831402,6830870,6830868,4791797,4791795,1626206,882997,882840,814759,814709,814690,814628,584184,584150,582844,582843,582830,582829,580987,580923';
imageSets[2] = '9008431,9008429,9003303,9003023,9003021,9003020,9003018,9003008,8769579,8769559,8769557,8769552,8769546,8769523,8164841,7866111,7866109,7866107,7866102,7866094,7683795,7424238,7424203,7424202,7424201,6831459,6831402,6830870,4791797,4791795,1977084,1626206,883031,882927,582835,582833,580987,580913';
imageSets[3] = '8164841,7866111,7866109,7866107,7866102,7866094,7683795,7424238,7424203,7424202,7424201,6831480,6831474,6831468,6831459,6831448,6831443,6831436,6831402,6831235,6830872,6830870,6830868,6830867,5880530,5880491,5880261,4791797,4791795,1977084,1626206,1600146,1121295,1121284,1121140,1121134,1121133,1121132,1121130,1121128,1121125,1121124,1121108,1044170,1011819,1009867,1009865';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/rpngallery/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/rpngallery/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/rpngallery/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/rpngallery/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/rpngallery/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/rpngallery/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/rpngallery/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/rpngallery/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/rpngallery/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/rpngallery/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/rpngallery/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/rpngallery/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/rpngallery/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/rpngallery/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/rpngallery/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/rpngallery/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/rpngallery/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/rpngallery/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/rpngallery/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/rpngallery/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/rpngallery/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/rpngallery/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/rpngallery/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/rpngallery/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/rpngallery/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/rpngallery/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/rpngallery/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 = 'KINGFISHER GALLERY: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (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.item_price !== '') {
			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;
	}
}

			

