window.thumbnails = {};
															thumbnails[144819] = clik.newPhoto({"id":144819,"src":"Millfield_Spring_thumb.jpg","galleries_id":13384,"server_id":15,"link":"photo_144819.html","width":160,"caption":"Millfield Clump in SpringRef. W0402","height":85});
															thumbnails[144821] = clik.newPhoto({"id":144821,"src":"Millfield_Clump_pan_summer_04_24x36_thumb.jpg","galleries_id":13384,"server_id":15,"link":"photo_144821.html","width":160,"caption":"Millfield Clump in Summer","height":80});
															thumbnails[144823] = clik.newPhoto({"id":144823,"src":"Millfield_clump_autumn_thumb.jpg","galleries_id":13384,"server_id":15,"link":"photo_144823.html","width":160,"caption":"Millfield Clump in Autumn","height":80});
															thumbnails[144824] = clik.newPhoto({"id":144824,"src":"Millfield_in_mist_thumb.jpg","galleries_id":13384,"server_id":15,"link":"photo_144824.html","width":160,"caption":"Millfield Clump in Winter","height":80});
															thumbnails[144825] = clik.newPhoto({"id":144825,"src":"Millfield_Clump_in_Winter_24x48_thumb.jpg","galleries_id":13384,"server_id":15,"link":"photo_144825.html","width":160,"caption":"Millfield Clump in Winter (black)","height":80});
															thumbnails[144826] = clik.newPhoto({"id":144826,"src":"7_Conifers_on_a_slope_thumb.jpg","galleries_id":13384,"server_id":15,"link":"photo_144826.html","width":160,"caption":"Severn Conifers on a Slope","height":106});
															thumbnails[144828] = clik.newPhoto({"id":144828,"src":"Wood_on_a_hill_thumb.jpg","galleries_id":13384,"server_id":15,"link":"photo_144828.html","width":160,"caption":"Wood on a Hillock","height":54});
															thumbnails[144829] = clik.newPhoto({"id":144829,"src":"ShortHedge_in_Snow_thumb.jpg","galleries_id":12841,"server_id":15,"link":"photo_144829.html","width":160,"caption":"Short Hedge in Snow","height":107});
															thumbnails[144830] = clik.newPhoto({"id":144830,"src":"Weeping_ash_in_snow__thumb.jpg","galleries_id":12841,"server_id":15,"link":"photo_144830.html","width":160,"caption":"Weeping Ash in Snow","height":107});
															thumbnails[144833] = clik.newPhoto({"id":144833,"src":"Oak_and_old_hedge_thumb.jpg","galleries_id":12841,"server_id":15,"link":"photo_144833.html","width":160,"caption":"Oak and Old Hedge","height":99});
															thumbnails[144834] = clik.newPhoto({"id":144834,"src":"Perfect_marriage_thumb.jpg","galleries_id":12841,"server_id":15,"link":"photo_144834.html","width":160,"caption":"Perfect Marriage","height":106});
															thumbnails[144836] = clik.newPhoto({"id":144836,"src":"Single_tree_thumb.jpg","galleries_id":12841,"server_id":15,"link":"photo_144836.html","width":160,"caption":"Single Tree","height":214});
															thumbnails[144839] = clik.newPhoto({"id":144839,"src":"Three_Chestnuts_and_an_Ash_thumb.jpg","galleries_id":13384,"server_id":15,"link":"photo_144839.html","width":160,"caption":"Three Chestnuts and an Ash","height":107});
															thumbnails[144844] = clik.newPhoto({"id":144844,"src":"Polladed_Chestnut_1_thumb.jpg","galleries_id":13385,"server_id":15,"link":"photo_144844.html","width":160,"caption":"Pollarded Chestnut 1","height":160});
															thumbnails[144847] = clik.newPhoto({"id":144847,"src":"Pollarded_chestnut_2B_thumb.jpg","galleries_id":13385,"server_id":15,"link":"photo_144847.html","width":160,"caption":"Pollarded Chestnut 2B","height":160});
															thumbnails[144848] = clik.newPhoto({"id":144848,"src":"Pollarded_Chestnut_2C_thumb.jpg","galleries_id":13385,"server_id":15,"link":"photo_144848.html","width":160,"caption":"Pollarded Chestnut 2C","height":160});
															thumbnails[144850] = clik.newPhoto({"id":144850,"src":"Lime__Branches_and_Trunk_thumb.jpg","galleries_id":13385,"server_id":15,"link":"photo_144850.html","width":160,"caption":"Lime Branches and Trunk","height":160});
															thumbnails[160489] = clik.newPhoto({"id":160489,"src":"Polladed_Chestnut_2D_thumb.jpg","galleries_id":13385,"server_id":15,"link":"photo_160489.html","width":160,"caption":"Pollarded Chestnut 2D","height":160});
															thumbnails[160503] = clik.newPhoto({"id":160503,"src":"Wood_in_the_Snow__P0503_thumb.jpg","galleries_id":14923,"server_id":15,"link":"photo_160503.html","width":160,"caption":"A Long Wood in the SnowP0503","height":54});
															thumbnails[736355] = clik.newPhoto({"id":736355,"src":"A_Group_of_Young_Ashes_thumb.jpg","galleries_id":13384,"server_id":15,"link":"photo_736355.html","width":160,"caption":"A Group of Young Ashes.","height":107});
															thumbnails[736356] = clik.newPhoto({"id":736356,"src":"A_Line_of_trees_in_a_hedge_2_thumb.jpg","galleries_id":13384,"server_id":15,"link":"photo_736356.html","width":160,"caption":"A Line of Trees in a Hedge.","height":61});
															thumbnails[736361] = clik.newPhoto({"id":736361,"src":"A_Line_of_trees_with_gap_thumb.jpg","galleries_id":13384,"server_id":15,"link":"photo_736361.html","width":160,"caption":"A Line of Trees with a Gap.","height":75});
															thumbnails[736365] = clik.newPhoto({"id":736365,"src":"A-Single-Ash-streched-A2_thumb.jpg","galleries_id":12841,"server_id":15,"link":"photo_736365.html","width":160,"caption":"A Single Ash.","height":110});
															thumbnails[736374] = clik.newPhoto({"id":736374,"src":"Beeches_on_a_Barrow_thumb.jpg","galleries_id":13384,"server_id":15,"link":"photo_736374.html","width":160,"caption":"Beeches on a Barrow.","height":91});
															thumbnails[736376] = clik.newPhoto({"id":736376,"src":"double_oak_and_hedge_thumb.jpg","galleries_id":13384,"server_id":15,"link":"photo_736376.html","width":160,"caption":"Double Oak and Hedge.","height":69});
															thumbnails[736418] = clik.newPhoto({"id":736418,"src":"Single_Old_Oak_in_Summer_thumb.jpg","galleries_id":12841,"server_id":15,"link":"photo_736418.html","width":160,"caption":"Single Oak in Summer.","height":108});
															thumbnails[736570] = clik.newPhoto({"id":736570,"src":"Trunks_and_Branches_2_thumb.jpg","galleries_id":13385,"server_id":15,"link":"photo_736570.html","width":160,"caption":"Trunks and Branches 2","height":160});
															thumbnails[736574] = clik.newPhoto({"id":736574,"src":"Trunks_and_Branches_3_thumb.jpg","galleries_id":13385,"server_id":15,"link":"photo_736574.html","width":160,"caption":"Trunks and Branches 3","height":160});
															thumbnails[736586] = clik.newPhoto({"id":736586,"src":"Trunks_and_Branches_4_thumb.jpg","galleries_id":13385,"server_id":15,"link":"photo_736586.html","width":160,"caption":"Trunks and Branches 4","height":160});
															thumbnails[736593] = clik.newPhoto({"id":736593,"src":"Pollarded_Chestnut_5A_thumb.jpg","galleries_id":13385,"server_id":15,"link":"photo_736593.html","width":160,"caption":"Pollarded Chestnut 5A","height":160});
															thumbnails[1869229] = clik.newPhoto({"id":1869229,"src":"Six-Ashes-in-the-Snow_thumb.jpg","galleries_id":125553,"server_id":15,"link":"photo_1869229.html","width":160,"caption":"Six Ashes in the Snow","height":191});
															thumbnails[1869242] = clik.newPhoto({"id":1869242,"src":"Six-Ashes-negative_thumb.jpg","galleries_id":125553,"server_id":15,"link":"photo_1869242.html","width":160,"caption":"Six Ashes Negative","height":126});
															thumbnails[1869247] = clik.newPhoto({"id":1869247,"src":"Four-Ashes-in-the-Snow_thumb.jpg","galleries_id":125553,"server_id":15,"link":"photo_1869247.html","width":160,"caption":"Four Ashes in the Snow","height":201});
															thumbnails[1869248] = clik.newPhoto({"id":1869248,"src":"Four_Ashes-negative_thumb.jpg","galleries_id":125553,"server_id":15,"link":"photo_1869248.html","width":160,"caption":"Four Ashes Negative.","height":211});
															thumbnails[1869259] = clik.newPhoto({"id":1869259,"src":"Oak-Pine-and-Snow_thumb.jpg","galleries_id":125553,"server_id":15,"link":"photo_1869259.html","width":160,"caption":"Oak, Pine and Snow","height":160});
															thumbnails[1869269] = clik.newPhoto({"id":1869269,"src":"Split-Willow-_thumb.jpg","galleries_id":125553,"server_id":15,"link":"photo_1869269.html","width":160,"caption":"Split Willow","height":160});
															thumbnails[1869273] = clik.newPhoto({"id":1869273,"src":"Sun-Trees-and-Snow_thumb.jpg","galleries_id":125553,"server_id":15,"link":"photo_1869273.html","width":160,"caption":"Sun,trees and Snow","height":206});
															thumbnails[1869274] = clik.newPhoto({"id":1869274,"src":"Trees-after-snow_thumb.jpg","galleries_id":125553,"server_id":15,"link":"photo_1869274.html","width":160,"caption":"Trees after Snow","height":213});
															thumbnails[1869319] = clik.newPhoto({"id":1869319,"src":"Olive-tree-in-Petrovac_thumb.jpg","galleries_id":125555,"server_id":15,"link":"photo_1869319.html","width":160,"caption":"Olive Tree 1","height":202});
															thumbnails[2533727] = clik.newPhoto({"id":2533727,"src":"A_Mighty_Sycamore_thumb.jpg","galleries_id":12841,"server_id":15,"link":"photo_2533727.html","width":160,"caption":"A Mighty Sycamore","height":96});
															thumbnails[3378668] = clik.newPhoto({"id":3378668,"src":"Ash-Leaves-1D1_thumb.jpg","galleries_id":206372,"server_id":15,"link":"photo_3378668.html","width":160,"caption":"Ash Leaves 1D1","height":160});
															thumbnails[3378674] = clik.newPhoto({"id":3378674,"src":"Ash-Leaves-1D2_thumb.jpg","galleries_id":206372,"server_id":15,"link":"photo_3378674.html","width":160,"caption":"Ash Leaves 1D2","height":160});
															thumbnails[3378695] = clik.newPhoto({"id":3378695,"src":"Ash-Leaves-1_thumb.jpg","galleries_id":206372,"server_id":15,"link":"photo_3378695.html","width":160,"caption":"Ash Leaves 1","height":160});
															thumbnails[3378708] = clik.newPhoto({"id":3378708,"src":"Ash-Leaves-1D3_thumb.jpg","galleries_id":206372,"server_id":15,"link":"photo_3378708.html","width":130,"caption":"Ash Leaves 1D3","height":130});
															thumbnails[3378710] = clik.newPhoto({"id":3378710,"src":"Ash-Leaves-1D4_thumb.jpg","galleries_id":206372,"server_id":15,"link":"photo_3378710.html","width":130,"caption":"Ash Leaves 1D4","height":130});
															thumbnails[3378732] = clik.newPhoto({"id":3378732,"src":"Ash-Twigs_thumb.jpg","galleries_id":125553,"server_id":15,"link":"photo_3378732.html","width":160,"caption":"Ash Twigs","height":199});
															thumbnails[3378802] = clik.newPhoto({"id":3378802,"src":"Ash-Twigs-reversed_thumb.jpg","galleries_id":125553,"server_id":15,"link":"photo_3378802.html","width":160,"caption":"Ash Twigs reversed","height":199});
															thumbnails[3378810] = clik.newPhoto({"id":3378810,"src":"Coloured-trunk-and-branches-D1_thumb.jpg","galleries_id":206372,"server_id":15,"link":"photo_3378810.html","width":130,"caption":"Coloured Trunk and Branches D1","height":173});
															thumbnails[3378860] = clik.newPhoto({"id":3378860,"src":"Coloured-trunks-and-branches-D3_thumb.jpg","galleries_id":206372,"server_id":15,"link":"photo_3378860.html","width":130,"caption":"Coloured Trunk and Branches D3","height":171});
															thumbnails[3378866] = clik.newPhoto({"id":3378866,"src":"Coloured-Trunk-and-branches-D4_thumb.jpg","galleries_id":206372,"server_id":15,"link":"photo_3378866.html","width":130,"caption":"Coloured Trunk and Branches D4","height":166});
															thumbnails[3378869] = clik.newPhoto({"id":3378869,"src":"Coloured-trunk-and-branches-D5_thumb.jpg","galleries_id":206372,"server_id":15,"link":"photo_3378869.html","width":130,"caption":"Coloured Trunk and Branches D5","height":171});
															thumbnails[3378923] = clik.newPhoto({"id":3378923,"src":"Cutout-trunk-and-branches_thumb.jpg","galleries_id":125553,"server_id":15,"link":"photo_3378923.html","width":160,"caption":"Cutout Trunk and Branches","height":225});
															thumbnails[3378927] = clik.newPhoto({"id":3378927,"src":"Edge-of-a-Wood_thumb.jpg","galleries_id":125555,"server_id":15,"link":"photo_3378927.html","width":160,"caption":"Edge of a Wood","height":213});
															thumbnails[3378941] = clik.newPhoto({"id":3378941,"src":"Pollarded-plane-1D3_thumb.jpg","galleries_id":206372,"server_id":15,"link":"photo_3378941.html","width":160,"caption":"Pollarded Plane 1D3","height":200});
															thumbnails[3378958] = clik.newPhoto({"id":3378958,"src":"Pollarded-plane-1D4_thumb.jpg","galleries_id":206372,"server_id":15,"link":"photo_3378958.html","width":160,"caption":"Pollarded Plane 1D4","height":200});
															thumbnails[3378961] = clik.newPhoto({"id":3378961,"src":"Pollarded-plane-1D5_thumb.jpg","galleries_id":206372,"server_id":15,"link":"photo_3378961.html","width":160,"caption":"Pollarded Plane 1D5","height":200});
															thumbnails[3378965] = clik.newPhoto({"id":3378965,"src":"Frost-on-Trees--UM-0802_thumb.jpg","galleries_id":125553,"server_id":15,"link":"photo_3378965.html","width":160,"caption":"Frost on Trees","height":212});
															thumbnails[3378976] = clik.newPhoto({"id":3378976,"src":"Trees-in-a-Park_thumb.jpg","galleries_id":125555,"server_id":15,"link":"photo_3378976.html","width":160,"caption":"Trees in a Park","height":119});
															thumbnails[3378994] = clik.newPhoto({"id":3378994,"src":"Chair-Composition-1_thumb.jpg","galleries_id":13385,"server_id":15,"link":"photo_3378994.html","width":160,"caption":"Chair Composition 1","height":160});
															thumbnails[3379001] = clik.newPhoto({"id":3379001,"src":"Cracked-mud-2_thumb.jpg","galleries_id":13385,"server_id":15,"link":"photo_3379001.html","width":160,"caption":"Cracked Mud 2","height":160});
															thumbnails[3379005] = clik.newPhoto({"id":3379005,"src":"Cracked-mud-mod-3d_thumb.jpg","galleries_id":13385,"server_id":15,"link":"photo_3379005.html","width":160,"caption":"Cracked Mud 3D","height":160});
															thumbnails[3379011] = clik.newPhoto({"id":3379011,"src":"Cracked-mud--6_thumb.jpg","galleries_id":13385,"server_id":15,"link":"photo_3379011.html","width":160,"caption":"Cracked Mud 6","height":160});
															thumbnails[3379015] = clik.newPhoto({"id":3379015,"src":"Cracked-mud--8_thumb.jpg","galleries_id":13385,"server_id":15,"link":"photo_3379015.html","width":160,"caption":"Cracked Mud 8","height":160});
															thumbnails[3379016] = clik.newPhoto({"id":3379016,"src":"Cracked-mud--9A_thumb.jpg","galleries_id":13385,"server_id":15,"link":"photo_3379016.html","width":160,"caption":"Cracked Mud 9A","height":160});
															thumbnails[3379091] = clik.newPhoto({"id":3379091,"src":"Willow-Leaves-1_thumb.jpg","galleries_id":206372,"server_id":15,"link":"photo_3379091.html","width":160,"caption":"Willow Leaves 1","height":160});
															thumbnails[3379227] = clik.newPhoto({"id":3379227,"src":"Coloured-Branch-and-Twiggs-v1-mod_thumb.jpg","galleries_id":206372,"server_id":15,"link":"photo_3379227.html","width":130,"caption":"Coloured Branch and Twigs V1","height":179});
															thumbnails[3379233] = clik.newPhoto({"id":3379233,"src":"Coloured Branch ans Twigs V3_thumb.jpg","galleries_id":206372,"server_id":15,"link":"photo_3379233.html","width":130,"caption":"Coloured Branch and Twigs V3","height":179});
															thumbnails[3379245] = clik.newPhoto({"id":3379245,"src":"Posterised_Branch_and_Twigs_thumb.jpg","galleries_id":125553,"server_id":15,"link":"photo_3379245.html","width":160,"caption":"Posterised Branch and Twigs","height":224});
															thumbnails[3379261] = clik.newPhoto({"id":3379261,"src":"Willow-Leaves-1D4_thumb.jpg","galleries_id":206372,"server_id":15,"link":"photo_3379261.html","width":160,"caption":"Willow Leaves1D4","height":160});
															thumbnails[3379269] = clik.newPhoto({"id":3379269,"src":"Willow-Leaves_1D2_thumb.jpg","galleries_id":206372,"server_id":15,"link":"photo_3379269.html","width":160,"caption":"Willow Leaves 1D2","height":160});
															thumbnails[3379279] = clik.newPhoto({"id":3379279,"src":"Willow-Leaves_1D1_thumb.jpg","galleries_id":206372,"server_id":15,"link":"photo_3379279.html","width":160,"caption":"Willow Leaves 1D1","height":160});
															thumbnails[3389117] = clik.newPhoto({"id":3389117,"src":"Poplar_wood_in_snow__thumb.jpg","galleries_id":125553,"server_id":15,"link":"photo_3389117.html","width":160,"caption":"Poplar Wood in Snow","height":213});
															thumbnails[3389171] = clik.newPhoto({"id":3389171,"src":"Sunlit-Leaves-and-Trunks-UP-0803_thumb.jpg","galleries_id":222069,"server_id":15,"link":"photo_3389171.html","width":160,"caption":"Sunlit Leaves and Trunks","height":73});
															thumbnails[3631809] = clik.newPhoto({"id":3631809,"src":"Kings-Norton-UP0501_thumb.jpg","galleries_id":222069,"server_id":15,"link":"photo_3631809.html","width":160,"caption":"King's Norton. Leicestershire","height":72});
															thumbnails[3631812] = clik.newPhoto({"id":3631812,"src":"Lake-Skadar-UP0402_thumb.jpg","galleries_id":222069,"server_id":15,"link":"photo_3631812.html","width":160,"caption":"Lake Skadar","height":52});
															thumbnails[3631822] = clik.newPhoto({"id":3631822,"src":"Landscape-nr-Jerez-UP9301_thumb.jpg","galleries_id":222069,"server_id":15,"link":"photo_3631822.html","width":160,"caption":"Landscape near Jerez","height":73});
															thumbnails[3631829] = clik.newPhoto({"id":3631829,"src":"Lollipops-2_thumb.jpg","galleries_id":222069,"server_id":15,"link":"photo_3631829.html","width":160,"caption":"Lollipops 2","height":64});
															thumbnails[3631842] = clik.newPhoto({"id":3631842,"src":"One-way-traffic-UP-8501a_thumb.jpg","galleries_id":222069,"server_id":15,"link":"photo_3631842.html","width":160,"caption":"One Way Traffic","height":73});
															thumbnails[4432486] = clik.newPhoto({"id":4432486,"src":"-Modern-Cafe_thumb.jpg","galleries_id":125555,"server_id":15,"link":"photo_4432486.html","width":160,"caption":"Modern Cafe","height":126});
															thumbnails[4432510] = clik.newPhoto({"id":4432510,"src":"Blue-reflection_thumb.jpg","galleries_id":125555,"server_id":15,"link":"photo_4432510.html","width":160,"caption":"Blue reflection","height":119});
															thumbnails[4432526] = clik.newPhoto({"id":4432526,"src":"Two-Trunks-over-Barley_thumb.jpg","galleries_id":125555,"server_id":15,"link":"photo_4432526.html","width":160,"caption":"Two Trunks over Barley","height":197});
															thumbnails[4432536] = clik.newPhoto({"id":4432536,"src":"Street-lamp-_thumb.jpg","galleries_id":125555,"server_id":15,"link":"photo_4432536.html","width":160,"caption":"Street Lamp","height":201});
															thumbnails[4432631] = clik.newPhoto({"id":4432631,"src":"Chains_thumb.jpg","galleries_id":125555,"server_id":15,"link":"photo_4432631.html","width":160,"caption":"Chains","height":212});
															thumbnails[4432753] = clik.newPhoto({"id":4432753,"src":"An-Avenue-of-Limes_thumb.jpg","galleries_id":125555,"server_id":15,"link":"photo_4432753.html","width":160,"caption":"An Avenue of Limes","height":213});
															thumbnails[4432874] = clik.newPhoto({"id":4432874,"src":"Pollarded-Chestnut-6A_thumb.jpg","galleries_id":206372,"server_id":15,"link":"photo_4432874.html","width":160,"caption":"Pollarded Chestnut 6A","height":201});
															thumbnails[4432924] = clik.newPhoto({"id":4432924,"src":"Tracks-in-the-snow_thumb.jpg","galleries_id":125553,"server_id":15,"link":"photo_4432924.html","width":160,"caption":"Tracks in the Snow","height":202});
															thumbnails[4432962] = clik.newPhoto({"id":4432962,"src":"St-Giles-with-trees-in-the-Snow-sharp_thumb.jpg","galleries_id":125553,"server_id":15,"link":"photo_4432962.html","width":160,"caption":"Snowey Trees with St. Giles","height":201});
															thumbnails[4433001] = clik.newPhoto({"id":4433001,"src":"St-Giles-in-snow-_thumb.jpg","galleries_id":125553,"server_id":15,"link":"photo_4433001.html","width":160,"caption":"St. Giles in the Snow","height":93});
															thumbnails[4433009] = clik.newPhoto({"id":4433009,"src":"Lake_Skadar_2_P0403_thumb.jpg","galleries_id":14923,"server_id":15,"link":"photo_4433009.html","width":160,"caption":"Lake Skadar 2","height":74});
															thumbnails[4433033] = clik.newPhoto({"id":4433033,"src":"Abstract_from_Cracked_Mud_1_thumb.jpg","galleries_id":13385,"server_id":15,"link":"photo_4433033.html","width":160,"caption":"Abstract from Cracked Mud 1","height":160});
															thumbnails[4433038] = clik.newPhoto({"id":4433038,"src":"Abstract-in-Space-2A_thumb.jpg","galleries_id":13385,"server_id":15,"link":"photo_4433038.html","width":160,"caption":"Abstract in space 2A","height":160});
															thumbnails[4433352] = clik.newPhoto({"id":4433352,"src":"Bruges_reflection_P9401_thumb.jpg","galleries_id":14923,"server_id":15,"link":"photo_4433352.html","width":160,"caption":"A Reflection in Brugge","height":74});
															thumbnails[5865536] = clik.newPhoto({"id":5865536,"src":"Three-Ashes-_thumb.jpg","galleries_id":13384,"server_id":15,"link":"photo_5865536.html","width":160,"caption":"Three Ashes","height":113});
															thumbnails[6113845] = clik.newPhoto({"id":6113845,"src":"Trees-near-St-Giles_thumb.jpg","galleries_id":13384,"server_id":15,"link":"photo_6113845.html","width":160,"caption":"Trees near St. Giles","height":213});
															thumbnails[6113859] = clik.newPhoto({"id":6113859,"src":"4_chairs_thumb.jpg","galleries_id":342695,"server_id":15,"link":"photo_6113859.html","width":160,"caption":"Four Chairs","height":120});
															thumbnails[6113863] = clik.newPhoto({"id":6113863,"src":"Six-Painted-Chairs_thumb.jpg","galleries_id":342695,"server_id":15,"link":"photo_6113863.html","width":160,"caption":"Six Painted Chairs","height":207});
															thumbnails[6113867] = clik.newPhoto({"id":6113867,"src":"Orchestral-rehearsal_thumb.jpg","galleries_id":342695,"server_id":15,"link":"photo_6113867.html","width":160,"caption":"Orchestral rehearsal","height":121});
															thumbnails[6113883] = clik.newPhoto({"id":6113883,"src":"6-chairs-in-a-Huddle_thumb.jpg","galleries_id":342695,"server_id":15,"link":"photo_6113883.html","width":160,"caption":"Six Chairs in a Huddle","height":121});
															thumbnails[6113887] = clik.newPhoto({"id":6113887,"src":"IAF-1_thumb.jpg","galleries_id":342698,"server_id":15,"link":"photo_6113887.html","width":160,"caption":"Interacting Forms 1","height":113});
															thumbnails[7821745] = clik.newPhoto({"id":7821745,"src":"Ashes-Blue-and-White_thumb.jpg","galleries_id":13384,"server_id":15,"link":"photo_7821745.html","width":160,"caption":"Ashes White and Blue","height":128});
															thumbnails[7823851] = clik.newPhoto({"id":7823851,"src":"-Panoramic-ADS-5_thumb.jpg","galleries_id":222069,"server_id":15,"link":"photo_7823851.html","width":160,"caption":"Panoramic ADS 5","height":76});
															thumbnails[7823859] = clik.newPhoto({"id":7823859,"src":"Panoramic-ADS-1_thumb.jpg","galleries_id":222069,"server_id":15,"link":"photo_7823859.html","width":160,"caption":"Panoramic ADS 1","height":70});
															thumbnails[7823862] = clik.newPhoto({"id":7823862,"src":"Panoramic-ADS-2_thumb.jpg","galleries_id":222069,"server_id":15,"link":"photo_7823862.html","width":160,"caption":"Panoramic ADS 2","height":73});
															thumbnails[7823869] = clik.newPhoto({"id":7823869,"src":"Panoramic-ADS-3_thumb.jpg","galleries_id":222069,"server_id":15,"link":"photo_7823869.html","width":160,"caption":"Panoramic ADS 3","height":73});
															thumbnails[7824029] = clik.newPhoto({"id":7824029,"src":"Lollipops-3_thumb.jpg","galleries_id":222069,"server_id":15,"link":"photo_7824029.html","width":160,"caption":"Lollipops 3","height":73});
															thumbnails[7824149] = clik.newPhoto({"id":7824149,"src":"A-Dozen-Ashes-_thumb.jpg","galleries_id":13384,"server_id":15,"link":"photo_7824149.html","width":160,"caption":"A Dozen Ashes","height":80});
															thumbnails[7824171] = clik.newPhoto({"id":7824171,"src":"ADS-2_thumb.jpg","galleries_id":342694,"server_id":15,"link":"photo_7824171.html","width":160,"caption":"ADS 2","height":99});
															thumbnails[7824177] = clik.newPhoto({"id":7824177,"src":"ADS-3_thumb.jpg","galleries_id":342694,"server_id":15,"link":"photo_7824177.html","width":160,"caption":"ADS 3","height":206});
															thumbnails[7824184] = clik.newPhoto({"id":7824184,"src":"ADS-4_thumb.jpg","galleries_id":342694,"server_id":15,"link":"photo_7824184.html","width":160,"caption":"ADS 4","height":200});
															thumbnails[7824199] = clik.newPhoto({"id":7824199,"src":"ADS-52_thumb.jpg","galleries_id":342694,"server_id":15,"link":"photo_7824199.html","width":160,"caption":"ADS 5","height":200});
															thumbnails[7824208] = clik.newPhoto({"id":7824208,"src":"Four-Chairs-Blue-and-Green_thumb.jpg","galleries_id":342695,"server_id":15,"link":"photo_7824208.html","width":160,"caption":"Four Chairs Blue and Green","height":194});
															thumbnails[7824222] = clik.newPhoto({"id":7824222,"src":"Four-chairs-yellow-and-grey_thumb.jpg","galleries_id":342695,"server_id":15,"link":"photo_7824222.html","width":160,"caption":"Four Chairs Yellow and Gray","height":222});
															thumbnails[7824323] = clik.newPhoto({"id":7824323,"src":"Nine-Chairs-Ochre-and-Grey-_thumb.jpg","galleries_id":342695,"server_id":15,"link":"photo_7824323.html","width":160,"caption":"Nine Chairs Ochre and Gray","height":128});
															thumbnails[7824478] = clik.newPhoto({"id":7824478,"src":"Nine-Chairs-Red-to-Brown_thumb.jpg","galleries_id":342695,"server_id":15,"link":"photo_7824478.html","width":160,"caption":"Nine Chairs Red to Brown","height":125});
															thumbnails[7824555] = clik.newPhoto({"id":7824555,"src":"Six-Chairs-and-a-Shasow_thumb.jpg","galleries_id":342695,"server_id":15,"link":"photo_7824555.html","width":160,"caption":"Six Chairs and a Shadow","height":202});
															thumbnails[7824698] = clik.newPhoto({"id":7824698,"src":"Six-Green-Chairs_thumb.jpg","galleries_id":342695,"server_id":15,"link":"photo_7824698.html","width":160,"caption":"Six Green Chairs ","height":128});
															thumbnails[7842977] = clik.newPhoto({"id":7842977,"src":"Some-Ashes_thumb.jpg","galleries_id":125555,"server_id":15,"link":"photo_7842977.html","width":160,"caption":"Some Ashes","height":116});
															thumbnails[7842993] = clik.newPhoto({"id":7842993,"src":"Ten-Mauve-Chairs--_thumb.jpg","galleries_id":342695,"server_id":15,"link":"photo_7842993.html","width":160,"caption":"Ten Mauve Chairs","height":202});
															thumbnails[7843005] = clik.newPhoto({"id":7843005,"src":"Three-Chairs-Two-Shadows_thumb.jpg","galleries_id":342695,"server_id":15,"link":"photo_7843005.html","width":160,"caption":"Threee Chairs Two Shadows","height":202});
															thumbnails[8338343] = clik.newPhoto({"id":8338343,"src":"Trunks-and-Branches-5a_thumb.jpg","galleries_id":13385,"server_id":15,"link":"photo_8338343.html","width":160,"caption":"Trunks and Branches 5a","height":116});
															thumbnails[8338357] = clik.newPhoto({"id":8338357,"src":"Babana-from-the-Lake_thumb.jpg","galleries_id":222069,"server_id":15,"link":"photo_8338357.html","width":160,"caption":"Barbana from the Lake","height":64});
															thumbnails[8338398] = clik.newPhoto({"id":8338398,"src":"Willow-Leaves-2_thumb.jpg","galleries_id":206372,"server_id":15,"link":"photo_8338398.html","width":160,"caption":"Willow Leaves 2","height":160});
															thumbnails[8437397] = clik.newPhoto({"id":8437397,"src":"S.-Georgio-Maggiore_thumb.jpg","galleries_id":222069,"server_id":15,"link":"photo_8437397.html","width":160,"caption":"S. Georgio Maggiore","height":71});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[12841] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"<span style='color:white'>TREES","link":"gallery_12841.html","maxRecords":0.0,"photoIDs":[144829.0,144830.0,144833.0,144834.0,144836.0,736365.0,736418.0,2533727.0],"skipIndex":0,"section_code":"gallery","featured_images":"2533727,736418,736365,144836,144834,144833,144830,144829","id":12841,"singleSection":false});				  						galleries[13384] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"<span style='color:white'>WOODS","link":"gallery_13384.html","maxRecords":0.0,"photoIDs":[144819.0,144821.0,144823.0,144824.0,144825.0,144826.0,144828.0,144839.0,736355.0,736356.0,736361.0,736374.0,736376.0,5865536.0,6113845.0,7821745.0,7824149.0],"skipIndex":0,"section_code":"gallery","featured_images":"7821745,6113845,5865536,736376,736374,736361,736356,736355,144839,144828,144826,144825,144824,144823,144821,144819","id":13384,"singleSection":false});				  						galleries[13385] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"<span style='color:white'>ABSTRACTS","link":"gallery_13385.html","maxRecords":0.0,"photoIDs":[144844.0,144847.0,144848.0,144850.0,160489.0,736570.0,736574.0,736586.0,736593.0,3378994.0,3379001.0,3379005.0,3379011.0,3379015.0,3379016.0,4433033.0,4433038.0,8338343.0],"skipIndex":0,"section_code":"gallery","featured_images":"8338343,4433038,3379016,3379015,3379011,3379001,3378994,736593,736586,736574,736570,160489,144850,144848,144847,144844","id":13385,"singleSection":false});				  						galleries[342694] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Arranged Drawn Shapes","link":"gallery_342694.html","maxRecords":0.0,"photoIDs":[7824171.0,7824177.0,7824184.0,7824199.0],"skipIndex":0,"section_code":"gallery","featured_images":"7824199,7824184,7824177","id":342694,"singleSection":false});				  						galleries[342695] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Chairs","link":"gallery_342695.html","maxRecords":0.0,"photoIDs":[6113859.0,6113863.0,6113867.0,6113883.0,7824208.0,7824222.0,7824323.0,7824478.0,7824555.0,7824698.0,7842993.0,7843005.0],"skipIndex":0,"section_code":"gallery","featured_images":"7843005,7824478,7824323,7824222,7824208,6113883,6113867","id":342695,"singleSection":false});				  						galleries[342698] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Interacting forms","link":"gallery_342698.html","maxRecords":0.0,"photoIDs":[6113887.0],"skipIndex":0,"section_code":"gallery","featured_images":6113887.0,"id":342698,"singleSection":false});				  						galleries[14923] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"<span style='color:white'>PANORAMAS","link":"gallery_14923.html","maxRecords":0.0,"photoIDs":[160503.0,4433009.0,4433352.0],"skipIndex":0,"section_code":"gallery","featured_images":"4433352,4433009,160503","id":14923,"singleSection":false});				  						galleries[206367] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"OPEN EDITIONS","link":"gallery_206367.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"8437397,8338398,8338357,7842977,7823859,7823851,4432924,4432753,4432536,4432526,4432486,3631842,3631812,3389117,3379269,3379233,3378976,3378961,3378927,3378869,3378810,3378802,3378732,3378708,3378695,3378668,1869274,1869273,1869269,1869247,1869242,1869229","id":206367,"singleSection":false});				  						galleries[125553] = clik.newGallery({"parentGallery":206367,"usePopups":false,"title":"<span style='color:white'> MONO","link":"gallery_125553.html","maxRecords":0.0,"photoIDs":[1869229.0,1869242.0,1869247.0,1869248.0,1869259.0,1869269.0,1869273.0,1869274.0,3378732.0,3378802.0,3378923.0,3378965.0,3379245.0,3389117.0,4432924.0,4432962.0,4433001.0],"skipIndex":0,"section_code":"gallery","featured_images":"4432924,3389117,3378802,3378732,1869274,1869273,1869269,1869247,1869242,1869229","id":125553,"singleSection":false});				  						galleries[125555] = clik.newGallery({"parentGallery":206367,"usePopups":false,"title":"<span style='color:white'>COLOUR","link":"gallery_125555.html","maxRecords":0.0,"photoIDs":[1869319.0,3378927.0,3378976.0,4432486.0,4432510.0,4432526.0,4432536.0,4432631.0,4432753.0,7842977.0],"skipIndex":0,"section_code":"gallery","featured_images":"7842977,4432753,4432536,4432526,4432486,3378976,3378927","id":125555,"singleSection":false});				  						galleries[206372] = clik.newGallery({"parentGallery":206367,"usePopups":false,"title":"DERIVATIONS","link":"gallery_206372.html","maxRecords":0.0,"photoIDs":[3378668.0,3378674.0,3378695.0,3378708.0,3378710.0,3378810.0,3378860.0,3378866.0,3378869.0,3378941.0,3378958.0,3378961.0,3379091.0,3379227.0,3379233.0,3379261.0,3379269.0,3379279.0,4432874.0,8338398.0],"skipIndex":0,"section_code":"gallery","featured_images":"8338398,3379269,3379233,3378961,3378869,3378810,3378708,3378695,3378668","id":206372,"singleSection":false});				  						galleries[222069] = clik.newGallery({"parentGallery":206367,"usePopups":false,"title":"PANORAMAS","link":"gallery_222069.html","maxRecords":0.0,"photoIDs":[3389171.0,3631809.0,3631812.0,3631822.0,3631829.0,3631842.0,7823851.0,7823859.0,7823862.0,7823869.0,7824029.0,8338357.0,8437397.0],"skipIndex":0,"section_code":"gallery","featured_images":"8437397,8338357,7823859,7823851,3631842,3631812","id":222069,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '7843005,7842993,7824698,7824555,7824222,7824171,7823859,6113863,4433038,4433033,4432510,3379227,3379091,3379015,3379011,3379001,3378866,3378710,3378674,1869259,1869247,736574,736361,144834,144823';
imageSets[2] = '8437397,8338398,8338357,8338343,7843005,7842977,7824478,7824323,7824222,7824208,7824199,7824184,7824177,7823859,7823851,7821745,6113883,6113867,6113845,5865536,4433352,4433038,4433009,4432924,4432753,4432536,4432526,4432486,3631842,3631812,3389117,3379269,3379233,3379016,3379015,3379011,3379001,3378994,3378976,3378961,3378927,3378869,3378810,3378802,3378732,3378708,3378695,3378668,2533727,1869274,1869273,1869269,1869247,1869242,1869229,736593,736586,736574,736570,736418,736376,736374,736365,736361,736356,736355,160503,160489,144850,144848,144847,144844,144839,144836,144834,144833,144830,144829,144828,144826,144825,144824,144823,144821,144819';
imageSets[3] = '6113887,3379005,736570,144830';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/peterrawson/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/peterrawson/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/peterrawson/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/peterrawson/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/peterrawson/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/peterrawson/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/peterrawson/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/peterrawson/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/peterrawson/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/peterrawson/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/peterrawson/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/peterrawson/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/peterrawson/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/peterrawson/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/peterrawson/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/peterrawson/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/peterrawson/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/peterrawson/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/peterrawson/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/peterrawson/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/peterrawson/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/peterrawson/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/peterrawson/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/peterrawson/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/peterrawson/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/peterrawson/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/peterrawson/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 = 'Trees, Abstracts and Panoramas: ' + 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.item_price !== '') {
											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="PETERRAWSON">';
			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;
	}
}

			

