window.thumbnails = {};
															thumbnails[3012733] = clik.newPhoto({"id":3012733,"src":"Product_Shot_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Selection of Odette Earrings","height":164});
															thumbnails[4540784] = clik.newPhoto({"id":4540784,"src":"8000_Souls_Part_II12_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"8,000 Souls Part II","height":83});
															thumbnails[4540885] = clik.newPhoto({"id":4540885,"src":"Stockholm_Church_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Stockholm Church ","height":99});
															thumbnails[3012659] = clik.newPhoto({"id":3012659,"src":"Horse Dress_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":97});
															thumbnails[3012682] = clik.newPhoto({"id":3012682,"src":"Odette Brooch_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":132});
															thumbnails[3111034] = clik.newPhoto({"id":3111034,"src":"Harpers-for word_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Odette Fascinator and earring. Earring as worn by Natalie Press in Evening Standard Magazine. ","height":80});
															thumbnails[3124510] = clik.newPhoto({"id":3124510,"src":"Pheasant feathers worn and static_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Odette Fascinator.","height":76});
															thumbnails[4540747] = clik.newPhoto({"id":4540747,"src":"26_Remain1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"26 Remain  Pencil and pen on paper 20x10cm ","height":90});
															thumbnails[4540761] = clik.newPhoto({"id":4540761,"src":"109_hectares1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"109 Hectares","height":149});
															thumbnails[3124503] = clik.newPhoto({"id":3124503,"src":"cree feathers 2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Odette Fascinator","height":174});
															thumbnails[3124524] = clik.newPhoto({"id":3124524,"src":"bronze cocque_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Odette Fascinator","height":101});
															thumbnails[3125119] = clik.newPhoto({"id":3125119,"src":"A Docklands Skirt_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Docklands Skirt","height":104});
															thumbnails[3013344] = clik.newPhoto({"id":3013344,"src":"The Beginning1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"The Beginning","height":97});
															thumbnails[3033958] = clik.newPhoto({"id":3033958,"src":"Winning A Losing Battle_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Winning A Losing Battle","height":97});
															thumbnails[3111049] = clik.newPhoto({"id":3111049,"src":"blue fascinator_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Odette Fascinator","height":174});
															thumbnails[4540939] = clik.newPhoto({"id":4540939,"src":"the_Watchtower12_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"The Watchtower","height":174});
															thumbnails[4540950] = clik.newPhoto({"id":4540950,"src":"From_Afar_Part_1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"From Afar Part 1","height":177});
															thumbnails[3124646] = clik.newPhoto({"id":3124646,"src":"white and purple_thumb.terracotta background.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Odette Fascinator","height":170});
															thumbnails[3125137] = clik.newPhoto({"id":3125137,"src":"castle skirt static_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"A Prague Fairytale skirt\t\t","height":112});
															thumbnails[3012723] = clik.newPhoto({"id":3012723,"src":"The Truth Is Where We Were_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"The Truth Is Where We Were ","height":99});
															thumbnails[3591889] = clik.newPhoto({"id":3591889,"src":"Shunt_Map_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":97});
															thumbnails[3012702] = clik.newPhoto({"id":3012702,"src":"Odette Hairpiece 2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Odette Fascinator","height":174});
															thumbnails[2761077] = clik.newPhoto({"id":2761077,"src":"This Is What Binds Us Together detail_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Lost in My Thoughts detail ","height":173});
															thumbnails[3124656] = clik.newPhoto({"id":3124656,"src":"pink feather_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Odette Fascinator","height":98});
															thumbnails[4540855] = clik.newPhoto({"id":4540855,"src":"Well_Hall_rd_1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Well Hall road","height":93});
															thumbnails[4808130] = clik.newPhoto({"id":4808130,"src":"Abyss_1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Abyss Private Collection ","height":133});
															thumbnails[3124574] = clik.newPhoto({"id":3124574,"src":"grey fasconator_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Odette Fascinator","height":160});
															thumbnails[2708654] = clik.newPhoto({"id":2708654,"src":"Loveless_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Loveless","height":98});
															thumbnails[2761026] = clik.newPhoto({"id":2761026,"src":"Waiting for you,final_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Waiting For You ","height":98});
															thumbnails[4540803] = clik.newPhoto({"id":4540803,"src":"RBL_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"The RBL ","height":155});
															thumbnails[3124573] = clik.newPhoto({"id":3124573,"src":"fascinators orange and green_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Odette Fascinator","height":185});
															thumbnails[3124569] = clik.newPhoto({"id":3124569,"src":"cree feathers_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Odette Facinator","height":130});
															thumbnails[4540807] = clik.newPhoto({"id":4540807,"src":"timber_merchant_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Timber Merchant","height":203});
															thumbnails[2761045] = clik.newPhoto({"id":2761045,"src":"Waiting For You_thumb.Detail4.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Waiting For You , detail","height":119});
															thumbnails[4540791] = clik.newPhoto({"id":4540791,"src":"The_Castle1_1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"The Castle","height":171});
															thumbnails[3124521] = clik.newPhoto({"id":3124521,"src":"black and red_thumb.1.JPG","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Odette Fascinator","height":174});
															thumbnails[3124662] = clik.newPhoto({"id":3124662,"src":"large white with pinks_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Odette Fascinator","height":174});
															thumbnails[2761020] = clik.newPhoto({"id":2761020,"src":"Untitled_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Always ","height":93});
															thumbnails[4808231] = clik.newPhoto({"id":4808231,"src":"This_Is_What_Binds_Us_Together_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"This Is What Binds Us Apart","height":102});
															thumbnails[4808233] = clik.newPhoto({"id":4808233,"src":"This_Is_What_Binds_Us_ApartPart_2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"This Is What Binds Us Apart. Part II","height":167});
															thumbnails[3124665] = clik.newPhoto({"id":3124665,"src":"white with red button_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Odette Fascinator","height":117});
															thumbnails[4540895] = clik.newPhoto({"id":4540895,"src":"Well_Hall_rd_2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Well Hall road (2) ","height":82});
															thumbnails[3110988] = clik.newPhoto({"id":3110988,"src":"Cream Feather Hair Piece_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Odette Fascinator","height":97});
															thumbnails[4808232] = clik.newPhoto({"id":4808232,"src":"This_Is_What_Binds_Us_Apartpart_1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"This Is What Binds Us Apart Part I","height":173});
															thumbnails[3110994] = clik.newPhoto({"id":3110994,"src":"Ochre Feather Hair Piece_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Odette Fascinator","height":191});
															thumbnails[4540923] = clik.newPhoto({"id":4540923,"src":"Pepys_opera_1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Pepys Opera ","height":90});
															thumbnails[3165063] = clik.newPhoto({"id":3165063,"src":"Inheritance, drawing_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Inheritance Part II, drawing","height":95});
															thumbnails[2708647] = clik.newPhoto({"id":2708647,"src":"This Is What Binds Us Apart_thumb.Part 3.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"This Is What Binds Us Apart. Part 3","height":167});
															thumbnails[3165065] = clik.newPhoto({"id":3165065,"src":"The Retreat, drawing_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"The Retreat","height":193});
															thumbnails[3111082] = clik.newPhoto({"id":3111082,"src":"Inka_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Inka","height":176});
															thumbnails[3016193] = clik.newPhoto({"id":3016193,"src":"A Lesson In Natural Direction_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"A Lesson in Natural Direction ","height":189});
															thumbnails[4808132] = clik.newPhoto({"id":4808132,"src":"Surviving_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Surviving","height":92});
															thumbnails[3111079] = clik.newPhoto({"id":3111079,"src":"Resurrection of Spirit,fabric_thumb..jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Resurrection of Spirit","height":228});
															thumbnails[3124675] = clik.newPhoto({"id":3124675,"src":"Roichin_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Roichin ","height":183});
															thumbnails[3591897] = clik.newPhoto({"id":3591897,"src":"Shunt_Map_detail_2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":173});
															thumbnails[3124678] = clik.newPhoto({"id":3124678,"src":"Roses at Dusk_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Roses At Dusk","height":192});
															thumbnails[4540767] = clik.newPhoto({"id":4540767,"src":"Maggies_Centre_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Maggies Centre","height":126});
															thumbnails[3591902] = clik.newPhoto({"id":3591902,"src":"Shunt_Map_detail_3_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[2761035] = clik.newPhoto({"id":2761035,"src":"The Distance Between_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"The Distance Between ","height":98});
															thumbnails[2761054] = clik.newPhoto({"id":2761054,"src":"Surviving_thumb..jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Surviving","height":92});
															thumbnails[3016183] = clik.newPhoto({"id":3016183,"src":"The Guardian_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"The Guardian ","height":92});
															thumbnails[4808159] = clik.newPhoto({"id":4808159,"src":"Love_In_Ruins_Part_I_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Love In Ruins Part I ","height":160});
															thumbnails[4808137] = clik.newPhoto({"id":4808137,"src":"The_Beginning_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"The Beginning ","height":98});
															thumbnails[3016179] = clik.newPhoto({"id":3016179,"src":"Abyss_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Abyss","height":133});
															thumbnails[3016230] = clik.newPhoto({"id":3016230,"src":"Designer Directory 2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":94});
															thumbnails[4808154] = clik.newPhoto({"id":4808154,"src":"The_Guardian_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"The Guardian ","height":92});
															thumbnails[4808180] = clik.newPhoto({"id":4808180,"src":"roichin_1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Roichin ","height":184});
															thumbnails[4808175] = clik.newPhoto({"id":4808175,"src":"Roses_At_Dusk__thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Roses at Dusk ","height":193});
															thumbnails[3012681] = clik.newPhoto({"id":3012681,"src":"Birdcage Skirt_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Birdcage Skirt ","height":98});
															thumbnails[3016205] = clik.newPhoto({"id":3016205,"src":"Designer Directory 1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":94});
															thumbnails[5372300] = clik.newPhoto({"id":5372300,"src":"belong_to_nothing_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Belong to nothing ","height":131});
															thumbnails[8613650] = clik.newPhoto({"id":8613650,"src":"RosalindDavisInto_the_Wild72dpi_thumb.jpg","galleries_id":421740,"server_id":1,"link":"photo_8613650.html","width":130,"caption":"Into the Wild Part VII","height":98});
															thumbnails[7930484] = clik.newPhoto({"id":7930484,"src":"RosalindDavis.Rebuild.Oilmixedmedia_on_cotton.90x60cm.2011.1600From__After_the_Storm_Series_thumb.jpg","galleries_id":421740,"server_id":1,"link":"photo_7930484.html","width":130,"caption":"Rebuild","height":96});
															thumbnails[7985267] = clik.newPhoto({"id":7985267,"src":"RosalindDavis1.Reclaim.Oilmixedmedia_on_cotton.90x70cm.2011.1600.From__After_the_Storm_Series_thumb.jpg","galleries_id":421740,"server_id":1,"link":"photo_7985267.html","width":130,"caption":"Reclaim","height":102});
															thumbnails[7985275] = clik.newPhoto({"id":7985275,"src":"RosalindDavis.Recover.Oilmixedmedia_on_cotton.90x70cm.2011.1600.From__After_the_Storm_Series_thumb.jpg","galleries_id":421740,"server_id":1,"link":"photo_7985275.html","width":130,"caption":"Recover","height":98});
															thumbnails[7930475] = clik.newPhoto({"id":7930475,"src":"Rosalind_Davis123.Resurrect.Oil_and_mixed_media_on_cotton._80x60cm.2011.From__The_After_the_Storm_series_thumb.jpg","galleries_id":421740,"server_id":1,"link":"photo_7930475.html","width":130,"caption":"Resurrect ","height":98});
															thumbnails[7821715] = clik.newPhoto({"id":7821715,"src":"Into_the_Wild1.Part_2_thumb.jpg","galleries_id":421740,"server_id":1,"link":"photo_7821715.html","width":130,"caption":"Into the Wild Part I ","height":92});
															thumbnails[7821737] = clik.newPhoto({"id":7821737,"src":"Into_the_Wild.Part_3_0265FEF2-1E4F-37DC-711392481AA02181_thumb.jpg","galleries_id":421740,"server_id":1,"link":"photo_7821737.html","width":130,"caption":"Into the Wild Part III","height":87});
															thumbnails[4012288] = clik.newPhoto({"id":4012288,"src":"8000_Souls_Part_II123_thumb.jpg","galleries_id":300667,"server_id":1,"link":"photo_4012288.html","width":130,"caption":"8,000 Souls. Part II","height":102});
															thumbnails[7821783] = clik.newPhoto({"id":7821783,"src":"Into_the_Wild.Part_4_thumb.jpg","galleries_id":421740,"server_id":1,"link":"photo_7821783.html","width":130,"caption":"Into the Wild Part IV","height":98});
															thumbnails[7821785] = clik.newPhoto({"id":7821785,"src":"IMG_0430_thumb.JPG","galleries_id":421740,"server_id":1,"link":"photo_7821785.html","width":130,"caption":"Into the Wild Part V","height":117});
															thumbnails[6033112] = clik.newPhoto({"id":6033112,"src":"Rosalind_Davis_ArdwickManchester_thumb.jpg","galleries_id":300667,"server_id":1,"link":"photo_6033112.html","width":130,"caption":"Ardwick, Manchester Oil and embroidery on cotton  70cm x 95cm ","height":96});
															thumbnails[6033120] = clik.newPhoto({"id":6033120,"src":"ArdwickManchesterdetail_thumb.jpg","galleries_id":300667,"server_id":1,"link":"photo_6033120.html","width":130,"caption":"Detail of embroidery on Ardwick piece ","height":98});
															thumbnails[6739140] = clik.newPhoto({"id":6739140,"src":"Brighton_thumb.jpg","galleries_id":300667,"server_id":1,"link":"photo_6739140.html","width":130,"caption":"Brighton ","height":100});
															thumbnails[6033128] = clik.newPhoto({"id":6033128,"src":"Lewisham_CentreLondon_thumb.jpg","galleries_id":300667,"server_id":1,"link":"photo_6033128.html","width":130,"caption":"Lewisham Centre. London ","height":89});
															thumbnails[6033203] = clik.newPhoto({"id":6033203,"src":"The_Bede_EstatePart_IIdetail_thumb.jpg","galleries_id":300667,"server_id":1,"link":"photo_6033203.html","width":130,"caption":"Detail of the Bede Estate Part II ","height":98});
															thumbnails[6033179] = clik.newPhoto({"id":6033179,"src":"The_Bede_EstatePart_II_thumb.jpg","galleries_id":300667,"server_id":1,"link":"photo_6033179.html","width":130,"caption":"The Bede Estate Part II ","height":119});
															thumbnails[6033173] = clik.newPhoto({"id":6033173,"src":"The_Bede_EstatePart_IIi_thumb.jpg","galleries_id":300667,"server_id":1,"link":"photo_6033173.html","width":130,"caption":"The Bede Estate Part III ","height":120});
															thumbnails[5221162] = clik.newPhoto({"id":5221162,"src":"A_Difference_in_Vision_6EF3DAFA-2219-B5B5-4C1EC7F2EC130A54_thumb.jpg","galleries_id":300667,"server_id":1,"link":"photo_5221162.html","width":130,"caption":"A Difference in Vision","height":115});
															thumbnails[5769718] = clik.newPhoto({"id":5769718,"src":"bede_low_dpi_DD6A53AD-1EC9-D45B-1C6CF70BBAB35B66_thumb.jpg","galleries_id":300667,"server_id":1,"link":"photo_5769718.html","width":130,"caption":"The Bede Estate ","height":123});
															thumbnails[5769724] = clik.newPhoto({"id":5769724,"src":"70_Acres_D48CEE22-24E8-5EC4-4FBCEBA60D4AB565_thumb.jpg","galleries_id":300667,"server_id":1,"link":"photo_5769724.html","width":130,"caption":"70 Acres","height":108});
															thumbnails[4210158] = clik.newPhoto({"id":4210158,"src":"26_Remain_thumb.jpg","galleries_id":300667,"server_id":1,"link":"photo_4210158.html","width":130,"caption":"26 Remain","height":131});
															thumbnails[4210171] = clik.newPhoto({"id":4210171,"src":"109_Hectares_thumb.jpg","galleries_id":300667,"server_id":1,"link":"photo_4210171.html","width":130,"caption":"109 Hectares","height":139});
															thumbnails[4210139] = clik.newPhoto({"id":4210139,"src":"Well_Hall_rd_thumb.jpg","galleries_id":300667,"server_id":1,"link":"photo_4210139.html","width":130,"caption":"Well Hall Road","height":105});
															thumbnails[4587796] = clik.newPhoto({"id":4587796,"src":"The_Flamingo_Hotel_thumb.jpg","galleries_id":300667,"server_id":1,"link":"photo_4587796.html","width":130,"caption":"The Flamingo ","height":143});
															thumbnails[4596296] = clik.newPhoto({"id":4596296,"src":"Dreamland_thumb.jpg","galleries_id":300667,"server_id":1,"link":"photo_4596296.html","width":130,"caption":"Dreamland","height":133});
															thumbnails[8302044] = clik.newPhoto({"id":8302044,"src":"1.RosalindDavis.Dreamland_Welcomes_You.Oil_and_mixed_media_on_vintage_scarf.Margate_thumb.jpg","galleries_id":300667,"server_id":1,"link":"photo_8302044.html","width":130,"caption":"Dreamland Welcomes You","height":128});
															thumbnails[1751228] = clik.newPhoto({"id":1751228,"src":"8000 souls, webpage_thumb.jpg","galleries_id":300667,"server_id":1,"link":"photo_1751228.html","width":130,"caption":"8,000 Souls ","height":104});
															thumbnails[4835375] = clik.newPhoto({"id":4835375,"src":"St_Andrews_thumb.jpg","galleries_id":300668,"server_id":1,"link":"photo_4835375.html","width":130,"caption":"St Andrews","height":132});
															thumbnails[2015260] = clik.newPhoto({"id":2015260,"src":"Survival_thumb.Part 32.jpg","galleries_id":300668,"server_id":1,"link":"photo_2015260.html","width":130,"caption":"Survival. Part 3","height":98});
															thumbnails[3843869] = clik.newPhoto({"id":3843869,"src":"The_Castle1_thumb.JPG","galleries_id":300668,"server_id":1,"link":"photo_3843869.html","width":130,"caption":"The Castle","height":98});
															thumbnails[3843874] = clik.newPhoto({"id":3843874,"src":"the_castle_detail1_thumb.JPG","galleries_id":300668,"server_id":1,"link":"photo_3843874.html","width":130,"caption":"The Castle. detail of embroidery and paint","height":173});
															thumbnails[3883635] = clik.newPhoto({"id":3883635,"src":"The_RBL12_thumb.JPG","galleries_id":300668,"server_id":1,"link":"photo_3883635.html","width":130,"caption":"The RBL","height":98});
															thumbnails[3843871] = clik.newPhoto({"id":3843871,"src":"Last_Call_thumb.jpg","galleries_id":300668,"server_id":1,"link":"photo_3843871.html","width":130,"caption":"Last Call ","height":174});
															thumbnails[1862142] = clik.newPhoto({"id":1862142,"src":"Survival_thumb.Part 2.jpg","galleries_id":300668,"server_id":1,"link":"photo_1862142.html","width":130,"caption":"Survival Part 2","height":98});
															thumbnails[3436142] = clik.newPhoto({"id":3436142,"src":"Final_Santuary_thumb.jpg","galleries_id":300668,"server_id":1,"link":"photo_3436142.html","width":130,"caption":"Final Sanctuary ","height":98});
															thumbnails[3843894] = clik.newPhoto({"id":3843894,"src":"Final_Sanctuary_Embroidery_detail_thumb.jpg","galleries_id":300668,"server_id":1,"link":"photo_3843894.html","width":130,"caption":"","height":98});
															thumbnails[2712021] = clik.newPhoto({"id":2712021,"src":"Inheritance Part II_thumb.jpg","galleries_id":300668,"server_id":1,"link":"photo_2712021.html","width":130,"caption":"Inheritance Part II","height":104});
															thumbnails[2712025] = clik.newPhoto({"id":2712025,"src":"Inheritance Part II, detail_thumb.jpg","galleries_id":300668,"server_id":1,"link":"photo_2712025.html","width":130,"caption":"Inheritance Part II , detail","height":113});
															thumbnails[2876128] = clik.newPhoto({"id":2876128,"src":"Pepys_Opera_thumb.jpg","galleries_id":300668,"server_id":1,"link":"photo_2876128.html","width":130,"caption":"Pepys Opera ","height":96});
															thumbnails[2482709] = clik.newPhoto({"id":2482709,"src":"Survival Part 4_thumb.jpg","galleries_id":300668,"server_id":1,"link":"photo_2482709.html","width":130,"caption":"Survival Part 4","height":100});
															thumbnails[2708640] = clik.newPhoto({"id":2708640,"src":"Survival Part 4 detail_thumb.jpg","galleries_id":300668,"server_id":1,"link":"photo_2708640.html","width":130,"caption":"Survival Part 4 detail.","height":211});
															thumbnails[1819804] = clik.newPhoto({"id":1819804,"src":"survival_thumb.web.jpg","galleries_id":300668,"server_id":1,"link":"photo_1819804.html","width":130,"caption":"Survival ","height":106});
															thumbnails[1862350] = clik.newPhoto({"id":1862350,"src":"Survival Part 1_thumb.detail4.jpg","galleries_id":300668,"server_id":1,"link":"photo_1862350.html","width":130,"caption":"Survival. Detail","height":95});
															thumbnails[3408058] = clik.newPhoto({"id":3408058,"src":"Inheritance_thumb.jpg","galleries_id":300668,"server_id":1,"link":"photo_3408058.html","width":130,"caption":"Inheritance Part I","height":101});
															thumbnails[2712011] = clik.newPhoto({"id":2712011,"src":"Inheritance Part 1,detail2_thumb.jpg","galleries_id":300668,"server_id":1,"link":"photo_2712011.html","width":130,"caption":"Inheritance detail","height":95});
															thumbnails[1992624] = clik.newPhoto({"id":1992624,"src":"The Martyr_thumb.jpg","galleries_id":300668,"server_id":1,"link":"photo_1992624.html","width":130,"caption":"The Martyr","height":96});
															thumbnails[1819778] = clik.newPhoto({"id":1819778,"src":"The Ties That Bind Us_thumb.jpg","galleries_id":300668,"server_id":1,"link":"photo_1819778.html","width":130,"caption":"The Ties That Bind Us","height":100});
															thumbnails[1862354] = clik.newPhoto({"id":1862354,"src":"this is what binds us part 1 (7)_thumb.jpg","galleries_id":300668,"server_id":1,"link":"photo_1862354.html","width":130,"caption":"The Ties That Bind Us. detail","height":173});
															thumbnails[1402092] = clik.newPhoto({"id":1402092,"src":"I Remember_thumb.web.jpg","galleries_id":300668,"server_id":1,"link":"photo_1402092.html","width":130,"caption":"I Remember","height":104});
															thumbnails[1862386] = clik.newPhoto({"id":1862386,"src":"I REMEMBER (1)_thumb.jpg","galleries_id":300668,"server_id":1,"link":"photo_1862386.html","width":130,"caption":"I Remember. detail","height":98});
															thumbnails[7155164] = clik.newPhoto({"id":7155164,"src":"Solace_thumb.jpg","galleries_id":300666,"server_id":1,"link":"photo_7155164.html","width":130,"caption":"","height":155});
															thumbnails[3407967] = clik.newPhoto({"id":3407967,"src":"brief permanence_thumb.jpg","galleries_id":300666,"server_id":1,"link":"photo_3407967.html","width":130,"caption":"Brief Permanence ","height":98});
															thumbnails[1025312] = clik.newPhoto({"id":1025312,"src":"Losing My Religion_thumb.jpg","galleries_id":300666,"server_id":1,"link":"photo_1025312.html","width":130,"caption":"Losing My Religion","height":94});
															thumbnails[3407436] = clik.newPhoto({"id":3407436,"src":"Transience_thumb.jpg","galleries_id":300666,"server_id":1,"link":"photo_3407436.html","width":130,"caption":"Transience ","height":95});
															thumbnails[1819818] = clik.newPhoto({"id":1819818,"src":"The Departed_thumb.jpg","galleries_id":300666,"server_id":1,"link":"photo_1819818.html","width":130,"caption":"The Departed","height":97});
															thumbnails[3123155] = clik.newPhoto({"id":3123155,"src":"The departed, part 4_thumb.jpg","galleries_id":300666,"server_id":1,"link":"photo_3123155.html","width":130,"caption":"Unattached","height":101});
															thumbnails[3123251] = clik.newPhoto({"id":3123251,"src":"The circus drummer_thumb.jpg","galleries_id":300666,"server_id":1,"link":"photo_3123251.html","width":130,"caption":"The Circus Drummer","height":97});
															thumbnails[3407439] = clik.newPhoto({"id":3407439,"src":"Transience detail_thumb.jpg","galleries_id":300666,"server_id":1,"link":"photo_3407439.html","width":130,"caption":"Transience Details ","height":98});
															thumbnails[4322373] = clik.newPhoto({"id":4322373,"src":"The_Watchtower1_thumb.jpg","galleries_id":159431,"server_id":1,"link":"photo_4322373.html","width":130,"caption":"The Watchtower","height":166});
															thumbnails[7054013] = clik.newPhoto({"id":7054013,"src":"The_Island_of_22_thumb.jpg","galleries_id":159431,"server_id":1,"link":"photo_7054013.html","width":130,"caption":"The Island of 22","height":173});
															thumbnails[5231911] = clik.newPhoto({"id":5231911,"src":"I_give_to_thee_790F4DEB-2219-B5B5-4C51A07FC9AB4629_thumb.jpg","galleries_id":159431,"server_id":1,"link":"photo_5231911.html","width":130,"caption":"I Give to Thee","height":99});
															thumbnails[7053998] = clik.newPhoto({"id":7053998,"src":"Borough_thumb.jpg","galleries_id":159431,"server_id":1,"link":"photo_7053998.html","width":130,"caption":"","height":110});
															thumbnails[7054008] = clik.newPhoto({"id":7054008,"src":"Southwark_thumb.jpg","galleries_id":159431,"server_id":1,"link":"photo_7054008.html","width":130,"caption":"Southwark ","height":122});
															thumbnails[7054010] = clik.newPhoto({"id":7054010,"src":"Silvertown_thumb.jpg","galleries_id":159431,"server_id":1,"link":"photo_7054010.html","width":130,"caption":"Silvertown ","height":146});
															thumbnails[5231869] = clik.newPhoto({"id":5231869,"src":"I_Am_Yours_79007BE9-2219-B5B5-4C7830AAA45F2369_thumb.jpg","galleries_id":159431,"server_id":1,"link":"photo_5231869.html","width":130,"caption":"I am Yours ","height":169});
															thumbnails[5372220] = clik.newPhoto({"id":5372220,"src":"The_Old_Winter_Palace_thumb.jpg","galleries_id":159431,"server_id":1,"link":"photo_5372220.html","width":130,"caption":"The Old Winter Palace","height":94});
															thumbnails[5232521] = clik.newPhoto({"id":5232521,"src":"Belong_Nowhere_thumb.jpg","galleries_id":159431,"server_id":1,"link":"photo_5232521.html","width":130,"caption":"Belong Nowhere ","height":94});
															thumbnails[5232524] = clik.newPhoto({"id":5232524,"src":"here_lies_my_confession_thumb.jpg","galleries_id":159431,"server_id":1,"link":"photo_5232524.html","width":130,"caption":"Here lies my confession ","height":181});
															thumbnails[5232528] = clik.newPhoto({"id":5232528,"src":"The_Journey_Begins_and_Ends_Here_thumb.jpg","galleries_id":159431,"server_id":1,"link":"photo_5232528.html","width":130,"caption":"The Journey Begins and Ends Here ","height":163});
															thumbnails[5232532] = clik.newPhoto({"id":5232532,"src":"Whittle_thumb.jpg","galleries_id":159431,"server_id":1,"link":"photo_5232532.html","width":130,"caption":"Whittled","height":105});
															thumbnails[5232537] = clik.newPhoto({"id":5232537,"src":"Belong_Somewhere_thumb.jpg","galleries_id":159431,"server_id":1,"link":"photo_5232537.html","width":130,"caption":"Belong","height":165});
															thumbnails[5232539] = clik.newPhoto({"id":5232539,"src":"belong_to_no-one_thumb.jpg","galleries_id":159431,"server_id":1,"link":"photo_5232539.html","width":130,"caption":"Belong to no-one","height":130});
															thumbnails[5212624] = clik.newPhoto({"id":5212624,"src":"8000_Souls_Part_III1_thumb.jpg","galleries_id":159431,"server_id":1,"link":"photo_5212624.html","width":130,"caption":"8,000 Souls Part III","height":99});
															thumbnails[5212627] = clik.newPhoto({"id":5212627,"src":"Battersea1_thumb.jpg","galleries_id":159431,"server_id":1,"link":"photo_5212627.html","width":130,"caption":"Out of the Dust, Light and Power ","height":167});
															thumbnails[3245708] = clik.newPhoto({"id":3245708,"src":"coronet_thumb.jpg","galleries_id":159431,"server_id":1,"link":"photo_3245708.html","width":130,"caption":"The Coronet ","height":96});
															thumbnails[4835411] = clik.newPhoto({"id":4835411,"src":"A_Difference_in_Vision_thumb.jpg","galleries_id":159431,"server_id":1,"link":"photo_4835411.html","width":130,"caption":"The Robin Hood Estate","height":114});
															thumbnails[3559144] = clik.newPhoto({"id":3559144,"src":"from_afar_part_2_thumb.JPG","galleries_id":159431,"server_id":1,"link":"photo_3559144.html","width":130,"caption":"From Afar Part II","height":98});
															thumbnails[4835415] = clik.newPhoto({"id":4835415,"src":"The_Castle2_thumb.jpg","galleries_id":159431,"server_id":1,"link":"photo_4835415.html","width":130,"caption":"The Castle . Number 2","height":171});
															thumbnails[3559090] = clik.newPhoto({"id":3559090,"src":"from_afar_part_I_thumb.JPG","galleries_id":159431,"server_id":1,"link":"photo_3559090.html","width":130,"caption":"From Afar. Part I ","height":174});
															thumbnails[3559177] = clik.newPhoto({"id":3559177,"src":"from_afar_part_3_thumb.JPG","galleries_id":159431,"server_id":1,"link":"photo_3559177.html","width":130,"caption":"From Afar Part III","height":101});
															thumbnails[3165061] = clik.newPhoto({"id":3165061,"src":"Houseboat_thumb.jpg","galleries_id":159431,"server_id":1,"link":"photo_3165061.html","width":130,"caption":"Houseboat ","height":99});
															thumbnails[3193518] = clik.newPhoto({"id":3193518,"src":"The winter of discontent_thumb.jpg","galleries_id":159431,"server_id":1,"link":"photo_3193518.html","width":130,"caption":"Fairground of Discontent ","height":97});
															thumbnails[3245718] = clik.newPhoto({"id":3245718,"src":"The Woodcutters_thumb.jpg","galleries_id":159431,"server_id":1,"link":"photo_3245718.html","width":130,"caption":"The Woodcutters","height":97});
															thumbnails[3193522] = clik.newPhoto({"id":3193522,"src":"The edge of play_thumb.jpg","galleries_id":159431,"server_id":1,"link":"photo_3193522.html","width":130,"caption":"The Edge of Play ","height":93});
															thumbnails[3407442] = clik.newPhoto({"id":3407442,"src":"The Trinity3_thumb.jpg","galleries_id":159431,"server_id":1,"link":"photo_3407442.html","width":130,"caption":"The Trinity ","height":173});
															thumbnails[3245713] = clik.newPhoto({"id":3245713,"src":"Houseboat1_thumb.jpg","galleries_id":159431,"server_id":1,"link":"photo_3245713.html","width":130,"caption":"Boathouse","height":97});
															thumbnails[3245714] = clik.newPhoto({"id":3245714,"src":"The Edge of the Sea_thumb.jpg","galleries_id":159431,"server_id":1,"link":"photo_3245714.html","width":130,"caption":"The Edge of the Sea","height":99});
															thumbnails[3165059] = clik.newPhoto({"id":3165059,"src":"Communist Radio_thumb.jpg","galleries_id":159431,"server_id":1,"link":"photo_3165059.html","width":130,"caption":"Communist Radio","height":102});
															thumbnails[2483890] = clik.newPhoto({"id":2483890,"src":"The Retreat Part 1_thumb.JPG","galleries_id":159431,"server_id":1,"link":"photo_2483890.html","width":130,"caption":"Retreat Part 1","height":173});
															thumbnails[2483889] = clik.newPhoto({"id":2483889,"src":"The Retreat Part 2_thumb.JPG","galleries_id":159431,"server_id":1,"link":"photo_2483889.html","width":130,"caption":"The Retreat Part 2","height":173});
															thumbnails[6700343] = clik.newPhoto({"id":6700343,"src":"8000_Souls_Part_II_F6FDC4AC-24E8-5EC4-4F1BB3FE6BA5E81D_thumb.jpg","galleries_id":365764,"server_id":1,"link":"photo_6700343.html","width":130,"caption":"8.000 Souls Part II ","height":102});
															thumbnails[6700462] = clik.newPhoto({"id":6700462,"src":"The_Watchtower_F714B67B-1EC9-D45B-1C127306F8A2D309_thumb.jpg","galleries_id":365764,"server_id":1,"link":"photo_6700462.html","width":130,"caption":"The Watchtower","height":166});
															thumbnails[8467489] = clik.newPhoto({"id":8467489,"src":"Rosalind_Davis.Ardwick.Manchester_thumb.jpg","galleries_id":365764,"server_id":1,"link":"photo_8467489.html","width":130,"caption":"Ardwick Manchester ","height":96});
															thumbnails[7155073] = clik.newPhoto({"id":7155073,"src":"Solace_1C3D8AFC-1EC9-DFB6-092F91B7B0A3384C_thumb.jpg","galleries_id":365764,"server_id":1,"link":"photo_7155073.html","width":130,"caption":"","height":155});
															thumbnails[8432100] = clik.newPhoto({"id":8432100,"src":"Rosalind_Davis-Farewell-605_thumb.jpg","galleries_id":365764,"server_id":1,"link":"photo_8432100.html","width":130,"caption":"Farewell ","height":107});
															thumbnails[8432199] = clik.newPhoto({"id":8432199,"src":"Rosalind_Davis-Return-605_thumb.jpg","galleries_id":365764,"server_id":1,"link":"photo_8432199.html","width":130,"caption":"Return ","height":97});
															thumbnails[5064863] = clik.newPhoto({"id":5064863,"src":"Dress_and_Installation_thumb.jpg","galleries_id":198080,"server_id":1,"link":"photo_5064863.html","width":130,"caption":"Circus Mistress' Dress and Installation","height":98});
															thumbnails[5064884] = clik.newPhoto({"id":5064884,"src":"installation4_thumb.jpg","galleries_id":198080,"server_id":1,"link":"photo_5064884.html","width":130,"caption":"Butterfly Installation ","height":134});
															thumbnails[5064886] = clik.newPhoto({"id":5064886,"src":"Installation_1_thumb.JPG","galleries_id":198080,"server_id":1,"link":"photo_5064886.html","width":130,"caption":"Butterfly Installation ","height":173});
															thumbnails[5064878] = clik.newPhoto({"id":5064878,"src":"costumes2_thumb.jpg","galleries_id":198080,"server_id":1,"link":"photo_5064878.html","width":130,"caption":"Circus Costumes","height":105});
															thumbnails[5064847] = clik.newPhoto({"id":5064847,"src":"Dress_thumb.jpg","galleries_id":198080,"server_id":1,"link":"photo_5064847.html","width":130,"caption":"The Circus Mistress' Dress","height":183});
															thumbnails[5064867] = clik.newPhoto({"id":5064867,"src":"dress_close_up_2_thumb.jpg","galleries_id":198080,"server_id":1,"link":"photo_5064867.html","width":130,"caption":"Circus Mistress' Dress. Detail ","height":173});
															thumbnails[5064876] = clik.newPhoto({"id":5064876,"src":"costumes_thumb.jpg","galleries_id":198080,"server_id":1,"link":"photo_5064876.html","width":130,"caption":"","height":98});
															thumbnails[5064882] = clik.newPhoto({"id":5064882,"src":"dress_close_up_3_thumb.JPG","galleries_id":198080,"server_id":1,"link":"photo_5064882.html","width":130,"caption":"The Circus Mistress' Dress. detail shot","height":173});
															thumbnails[5064880] = clik.newPhoto({"id":5064880,"src":"Dress_shadows_thumb.jpg","galleries_id":198080,"server_id":1,"link":"photo_5064880.html","width":130,"caption":"","height":173});
															thumbnails[3471766] = clik.newPhoto({"id":3471766,"src":"Light2Dust_Postcard_Back2_thumb.jpg","galleries_id":198080,"server_id":1,"link":"photo_3471766.html","width":130,"caption":"","height":183});
															thumbnails[3471756] = clik.newPhoto({"id":3471756,"src":"Light2Dust_Postcard_ART_thumb.jpg","galleries_id":198080,"server_id":1,"link":"photo_3471756.html","width":130,"caption":"","height":183});
															thumbnails[3591883] = clik.newPhoto({"id":3591883,"src":"map_installation_1_thumb.jpg","galleries_id":198080,"server_id":1,"link":"photo_3591883.html","width":130,"caption":"","height":98});
															thumbnails[3591892] = clik.newPhoto({"id":3591892,"src":"Shunt_Map_detail_1_thumb.jpg","galleries_id":198080,"server_id":1,"link":"photo_3591892.html","width":130,"caption":"","height":98});
															thumbnails[3591907] = clik.newPhoto({"id":3591907,"src":"Shunt_Map_detail_4_thumb.jpg","galleries_id":198080,"server_id":1,"link":"photo_3591907.html","width":130,"caption":"","height":98});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[421740] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Paintings. Into the Wild","link":"gallery_421740.html","maxRecords":0.0,"photoIDs":[8613650.0,7930484.0,7985267.0,7985275.0,7930475.0,7821715.0,7821737.0,7821783.0,7821785.0],"skipIndex":0,"section_code":"gallery","featured_images":"7985267,7930484,7930475,7821783,7821715","id":421740,"singleSection":false});				  						galleries[300667] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Paintings: A Difference in Vision ","link":"gallery_300667.html","maxRecords":0.0,"photoIDs":[4012288.0,6033112.0,6033120.0,6739140.0,6033128.0,6033203.0,6033179.0,6033173.0,5221162.0,5769718.0,5769724.0,4210158.0,4210171.0,4210139.0,4587796.0,4596296.0,8302044.0,1751228.0],"skipIndex":0,"section_code":"gallery","featured_images":"6739140,6033203,6033179,6033128,6033120,6033112,5221162,4587796,4210171,4210158,4210139,4012288","id":300667,"singleSection":false});				  						galleries[300668] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Paintings: Survival ","link":"gallery_300668.html","maxRecords":0.0,"photoIDs":[4835375.0,2015260.0,3843869.0,3843874.0,3883635.0,3843871.0,1862142.0,3436142.0,3843894.0,2712021.0,2712025.0,2876128.0,2482709.0,2708640.0,1819804.0,1862350.0,3408058.0,2712011.0,1992624.0,1819778.0,1862354.0,1402092.0,1862386.0],"skipIndex":0,"section_code":"gallery","featured_images":"4835375,3883635,3843894,3843874,3843871,3843869,3436142,3408058,2876128,2712025","id":300668,"singleSection":false});				  						galleries[300666] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Paintings: Transience","link":"gallery_300666.html","maxRecords":0.0,"photoIDs":[7155164.0,3407967.0,1025312.0,3407436.0,1819818.0,3123155.0,3123251.0,3407439.0],"skipIndex":0,"section_code":"gallery","featured_images":"7155164,3407967,3407439,3407436,3123251,3123155,1819818,1025312","id":300666,"singleSection":false});				  						galleries[159431] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Paintings: Start Your Collection ","link":"gallery_159431.html","maxRecords":0.0,"photoIDs":[4322373.0,7054013.0,5231911.0,7053998.0,7054008.0,7054010.0,5231869.0,5372220.0,5232521.0,5232524.0,5232528.0,5232532.0,5232537.0,5232539.0,5212624.0,5212627.0,3245708.0,4835411.0,3559144.0,4835415.0,3559090.0,3559177.0,3165061.0,3193518.0,3245718.0,3193522.0,3407442.0,3245713.0,3245714.0,3165059.0,2483890.0,2483889.0],"skipIndex":0,"section_code":"gallery","featured_images":"7054013,5231869,4835415,4835411,3559144,3559090,3245708,3193518,2483890","id":159431,"singleSection":false});				  						galleries[365764] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Limited Edition Prints","link":"gallery_365764.html","maxRecords":0.0,"photoIDs":[6700343.0,6700462.0,8467489.0,7155073.0,8432100.0,8432199.0],"skipIndex":0,"section_code":"gallery","featured_images":6700343.0,"id":365764,"singleSection":false});				  						galleries[198080] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Installations","link":"gallery_198080.html","maxRecords":0.0,"photoIDs":[5064863.0,5064884.0,5064886.0,5064878.0,5064847.0,5064867.0,5064876.0,5064882.0,5064880.0,3471766.0,3471756.0,3591883.0,3591892.0,3591907.0],"skipIndex":0,"section_code":"gallery","featured_images":3471756.0,"id":198080,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '7930484,7985267,7930475,7821715,7821783,4012288,6033112,6033120,6739140,6033128,6033203,6033179,5221162,5769724,4210158,4210171,4210139,1819804,1025312,1819818,4322373,5231911,5231869,6700343';
imageSets[2] = '3013344,7930484,7985267,7930475,7821715,7821783,4012288,6033112,6033120,6739140,6033128,6033203,6033179,5221162,4210158,4210171,4210139,4587796,7054013,5231869,3245708,4835411,3559144,4835415,3559090,3193518,2483890,6700343,3471756';
imageSets[3] = '3125119,3124646,3125137,3591889,3124656,3124574,7930484,7930475,4012288,6033112,6033120,6739140,6033128,6033203,6033179,5221162,4210158,4210171,4210139,4587796,3407967,3407436,3407439,5231869,3245708,4835411,3559144,3559090,3559177,3165061,3193518,3245718,3193522,3407442,3165059,6700343,3591883';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/jaminbrown/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/jaminbrown/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/jaminbrown/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/jaminbrown/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/jaminbrown/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/jaminbrown/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/jaminbrown/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/jaminbrown/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/jaminbrown/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/jaminbrown/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/jaminbrown/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/jaminbrown/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/jaminbrown/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/jaminbrown/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/jaminbrown/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/jaminbrown/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/jaminbrown/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/jaminbrown/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/jaminbrown/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/jaminbrown/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/jaminbrown/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/jaminbrown/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/jaminbrown/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/jaminbrown/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/jaminbrown/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/jaminbrown/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/jaminbrown/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 = 'Rosalind Davis MA RCA: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
	temp += this.fnGetPaymentInfo();
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
																		temp += '<p>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp += '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
		else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
																		temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="rosalind.davis@network.rca.ac.uk">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="rosalind.davis@network.rca.ac.uk">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

