window.thumbnails = {};
															thumbnails[3537675] = clik.newPhoto({"id":3537675,"src":"Gallery1_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Riverslade Gallery Interior","height":86});
															thumbnails[3537708] = clik.newPhoto({"id":3537708,"src":"Gallery2_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"interior_riverslade_gallery_1.jpg","height":86});
															thumbnails[6316752] = clik.newPhoto({"id":6316752,"src":"saffron-waldon-map-3_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":135});
															thumbnails[6317107] = clik.newPhoto({"id":6317107,"src":"Poster_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":38});
															thumbnails[6317115] = clik.newPhoto({"id":6317115,"src":"SWATlogo_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":118});
															thumbnails[6317141] = clik.newPhoto({"id":6317141,"src":"Festival_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":86});
															thumbnails[6318388] = clik.newPhoto({"id":6318388,"src":"gallery1_C1305BA2-1D09-001F-99D02218E68A0A22_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":68});
															thumbnails[6318437] = clik.newPhoto({"id":6318437,"src":"gallery2_C1392B40-1D09-001F-99D0EB01E618D056_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":88});
															thumbnails[6318538] = clik.newPhoto({"id":6318538,"src":"Gliddon1_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":137});
															thumbnails[6318541] = clik.newPhoto({"id":6318541,"src":"Gliddon2_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":121});
															thumbnails[6318545] = clik.newPhoto({"id":6318545,"src":"Gliddon3_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":130});
															thumbnails[6318546] = clik.newPhoto({"id":6318546,"src":"Gliddon4_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":134});
															thumbnails[6338405] = clik.newPhoto({"id":6338405,"src":"petendud_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":154});
															thumbnails[8359549] = clik.newPhoto({"id":8359549,"src":"_DSC5679_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":219});
															thumbnails[8359551] = clik.newPhoto({"id":8359551,"src":"_DSC5689_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":86});
															thumbnails[8359553] = clik.newPhoto({"id":8359553,"src":"_DSC5697_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":211});
															thumbnails[8359555] = clik.newPhoto({"id":8359555,"src":"_DSC5698_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":173});
															thumbnails[8359557] = clik.newPhoto({"id":8359557,"src":"_DSC5705_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":86});
															thumbnails[8359559] = clik.newPhoto({"id":8359559,"src":"_DSC5712_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":79});
															thumbnails[8359560] = clik.newPhoto({"id":8359560,"src":"_DSC5721_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":95});
															thumbnails[8359561] = clik.newPhoto({"id":8359561,"src":"_DSC5735_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":196});
															thumbnails[8359562] = clik.newPhoto({"id":8359562,"src":"_DSC5745_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":80});
															thumbnails[8359564] = clik.newPhoto({"id":8359564,"src":"_DSC5746_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":98});
															thumbnails[8359565] = clik.newPhoto({"id":8359565,"src":"_DSC5751_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":75});
															thumbnails[6316598] = clik.newPhoto({"id":6316598,"src":"Andretti1_thumb.jpg","galleries_id":308499,"server_id":15,"link":"photo_6316598.html","width":130,"caption":"","height":98});
															thumbnails[6316600] = clik.newPhoto({"id":6316600,"src":"Andretti2_thumb.jpg","galleries_id":308499,"server_id":15,"link":"photo_6316600.html","width":130,"caption":"","height":98});
															thumbnails[6316603] = clik.newPhoto({"id":6316603,"src":"Andretti3_thumb.jpg","galleries_id":308499,"server_id":15,"link":"photo_6316603.html","width":130,"caption":"","height":98});
															thumbnails[6316605] = clik.newPhoto({"id":6316605,"src":"Andretti4_thumb.jpg","galleries_id":308499,"server_id":15,"link":"photo_6316605.html","width":130,"caption":"","height":104});
															thumbnails[6316795] = clik.newPhoto({"id":6316795,"src":"Beaumont1_thumb.jpg","galleries_id":308494,"server_id":15,"link":"photo_6316795.html","width":130,"caption":"","height":98});
															thumbnails[6316796] = clik.newPhoto({"id":6316796,"src":"Beaumont2_thumb.jpg","galleries_id":308494,"server_id":15,"link":"photo_6316796.html","width":130,"caption":"","height":98});
															thumbnails[6316797] = clik.newPhoto({"id":6316797,"src":"Beaumont3_thumb.jpg","galleries_id":308494,"server_id":15,"link":"photo_6316797.html","width":130,"caption":"","height":98});
															thumbnails[6316812] = clik.newPhoto({"id":6316812,"src":"Bruun1_thumb.jpg","galleries_id":308487,"server_id":15,"link":"photo_6316812.html","width":130,"caption":"","height":101});
															thumbnails[6316821] = clik.newPhoto({"id":6316821,"src":"Bruun1_EC59F7F1-24E8-5EC4-4F0BAB39BDD30B91_thumb.jpg","galleries_id":308487,"server_id":15,"link":"photo_6316821.html","width":130,"caption":"","height":129});
															thumbnails[6316822] = clik.newPhoto({"id":6316822,"src":"Bruun2_thumb.jpg","galleries_id":308487,"server_id":15,"link":"photo_6316822.html","width":130,"caption":"","height":114});
															thumbnails[6316823] = clik.newPhoto({"id":6316823,"src":"Bruun3_thumb.jpg","galleries_id":308487,"server_id":15,"link":"photo_6316823.html","width":130,"caption":"","height":92});
															thumbnails[6316972] = clik.newPhoto({"id":6316972,"src":"Cheffins1_thumb.jpg","galleries_id":308510,"server_id":15,"link":"photo_6316972.html","width":130,"caption":"","height":173});
															thumbnails[6316973] = clik.newPhoto({"id":6316973,"src":"Cheffins2_thumb.jpg","galleries_id":308510,"server_id":15,"link":"photo_6316973.html","width":130,"caption":"","height":180});
															thumbnails[6316976] = clik.newPhoto({"id":6316976,"src":"Cheffins3_thumb.jpg","galleries_id":308510,"server_id":15,"link":"photo_6316976.html","width":130,"caption":"","height":98});
															thumbnails[6318373] = clik.newPhoto({"id":6318373,"src":"Joyce_Crabbe1_thumb.jpg","galleries_id":308500,"server_id":15,"link":"photo_6318373.html","width":130,"caption":"","height":129});
															thumbnails[6318458] = clik.newPhoto({"id":6318458,"src":"Cupitt1_thumb.jpg","galleries_id":308498,"server_id":15,"link":"photo_6318458.html","width":130,"caption":"","height":98});
															thumbnails[6318460] = clik.newPhoto({"id":6318460,"src":"Cupitt2_thumb.jpg","galleries_id":308498,"server_id":15,"link":"photo_6318460.html","width":130,"caption":"","height":167});
															thumbnails[6318461] = clik.newPhoto({"id":6318461,"src":"Cupitt3_thumb.jpg","galleries_id":308498,"server_id":15,"link":"photo_6318461.html","width":130,"caption":"","height":86});
															thumbnails[6318463] = clik.newPhoto({"id":6318463,"src":"Cupitt4_thumb.jpg","galleries_id":308498,"server_id":15,"link":"photo_6318463.html","width":130,"caption":"","height":109});
															thumbnails[6318557] = clik.newPhoto({"id":6318557,"src":"dennishales1_thumb.jpg","galleries_id":308496,"server_id":15,"link":"photo_6318557.html","width":130,"caption":"","height":120});
															thumbnails[6318559] = clik.newPhoto({"id":6318559,"src":"dennishales3_thumb.jpg","galleries_id":308496,"server_id":15,"link":"photo_6318559.html","width":130,"caption":"","height":121});
															thumbnails[6318561] = clik.newPhoto({"id":6318561,"src":"dennishales4_thumb.jpg","galleries_id":308496,"server_id":15,"link":"photo_6318561.html","width":130,"caption":"","height":121});
															thumbnails[6318562] = clik.newPhoto({"id":6318562,"src":"dennishales5_thumb.jpg","galleries_id":308496,"server_id":15,"link":"photo_6318562.html","width":130,"caption":"","height":121});
															thumbnails[6318590] = clik.newPhoto({"id":6318590,"src":"Hall1_thumb.jpg","galleries_id":350236,"server_id":15,"link":"photo_6318590.html","width":130,"caption":"","height":98});
															thumbnails[6318591] = clik.newPhoto({"id":6318591,"src":"Hall2_thumb.jpg","galleries_id":350236,"server_id":15,"link":"photo_6318591.html","width":130,"caption":"","height":117});
															thumbnails[6318592] = clik.newPhoto({"id":6318592,"src":"Hall3_thumb.jpg","galleries_id":350236,"server_id":15,"link":"photo_6318592.html","width":130,"caption":"","height":174});
															thumbnails[6318617] = clik.newPhoto({"id":6318617,"src":"Heery1_thumb.jpg","galleries_id":308492,"server_id":15,"link":"photo_6318617.html","width":130,"caption":"","height":154});
															thumbnails[6318618] = clik.newPhoto({"id":6318618,"src":"Heery2_thumb.jpg","galleries_id":308492,"server_id":15,"link":"photo_6318618.html","width":130,"caption":"","height":196});
															thumbnails[6318619] = clik.newPhoto({"id":6318619,"src":"Heery3_thumb.jpg","galleries_id":308492,"server_id":15,"link":"photo_6318619.html","width":130,"caption":"","height":86});
															thumbnails[6318621] = clik.newPhoto({"id":6318621,"src":"Heery4_thumb.jpg","galleries_id":308492,"server_id":15,"link":"photo_6318621.html","width":130,"caption":"","height":178});
															thumbnails[6336983] = clik.newPhoto({"id":6336983,"src":"Jervis1_thumb.jpg","galleries_id":350235,"server_id":15,"link":"photo_6336983.html","width":130,"caption":"","height":111});
															thumbnails[6336984] = clik.newPhoto({"id":6336984,"src":"Jervis2_thumb.jpg","galleries_id":350235,"server_id":15,"link":"photo_6336984.html","width":130,"caption":"","height":114});
															thumbnails[6336989] = clik.newPhoto({"id":6336989,"src":"Jervis3_thumb.jpg","galleries_id":350235,"server_id":15,"link":"photo_6336989.html","width":130,"caption":"","height":114});
															thumbnails[6336993] = clik.newPhoto({"id":6336993,"src":"Jervis4_thumb.jpg","galleries_id":350235,"server_id":15,"link":"photo_6336993.html","width":130,"caption":"","height":115});
															thumbnails[6337014] = clik.newPhoto({"id":6337014,"src":"Patterson1_thumb.jpg","galleries_id":308493,"server_id":15,"link":"photo_6337014.html","width":130,"caption":"","height":126});
															thumbnails[6337017] = clik.newPhoto({"id":6337017,"src":"Patterson2_thumb.jpg","galleries_id":308493,"server_id":15,"link":"photo_6337017.html","width":130,"caption":"","height":129});
															thumbnails[6337018] = clik.newPhoto({"id":6337018,"src":"Patterson3_thumb.jpg","galleries_id":308493,"server_id":15,"link":"photo_6337018.html","width":130,"caption":"","height":176});
															thumbnails[6337020] = clik.newPhoto({"id":6337020,"src":"Patterson4_thumb.jpg","galleries_id":308493,"server_id":15,"link":"photo_6337020.html","width":130,"caption":"","height":135});
															thumbnails[6337464] = clik.newPhoto({"id":6337464,"src":"Simmons1_thumb.jpg","galleries_id":308489,"server_id":15,"link":"photo_6337464.html","width":130,"caption":"","height":135});
															thumbnails[6337467] = clik.newPhoto({"id":6337467,"src":"Simmons2_thumb.jpg","galleries_id":308489,"server_id":15,"link":"photo_6337467.html","width":130,"caption":"","height":129});
															thumbnails[6337469] = clik.newPhoto({"id":6337469,"src":"Simmons3_thumb.jpg","galleries_id":308489,"server_id":15,"link":"photo_6337469.html","width":130,"caption":"","height":115});
															thumbnails[6337472] = clik.newPhoto({"id":6337472,"src":"Simmons4_thumb.jpg","galleries_id":308489,"server_id":15,"link":"photo_6337472.html","width":130,"caption":"","height":132});
															thumbnails[6337607] = clik.newPhoto({"id":6337607,"src":"Upson1_thumb.jpg","galleries_id":350234,"server_id":15,"link":"photo_6337607.html","width":130,"caption":"","height":106});
															thumbnails[6337633] = clik.newPhoto({"id":6337633,"src":"Upson61_thumb.jpg","galleries_id":350234,"server_id":15,"link":"photo_6337633.html","width":130,"caption":"","height":108});
															thumbnails[6337669] = clik.newPhoto({"id":6337669,"src":"Upson3_thumb.jpg","galleries_id":350234,"server_id":15,"link":"photo_6337669.html","width":130,"caption":"","height":198});
															thumbnails[6337702] = clik.newPhoto({"id":6337702,"src":"Upson4_thumb.jpg","galleries_id":350234,"server_id":15,"link":"photo_6337702.html","width":130,"caption":"","height":95});
															thumbnails[6338103] = clik.newPhoto({"id":6338103,"src":"Palmer1_thumb.jpg","galleries_id":350233,"server_id":15,"link":"photo_6338103.html","width":130,"caption":"","height":173});
															thumbnails[6338106] = clik.newPhoto({"id":6338106,"src":"Palmer2_thumb.jpg","galleries_id":350233,"server_id":15,"link":"photo_6338106.html","width":130,"caption":"","height":196});
															thumbnails[6338109] = clik.newPhoto({"id":6338109,"src":"Palmer3_thumb.jpg","galleries_id":350233,"server_id":15,"link":"photo_6338109.html","width":130,"caption":"","height":165});
															thumbnails[6338112] = clik.newPhoto({"id":6338112,"src":"Palmer4_thumb.jpg","galleries_id":350233,"server_id":15,"link":"photo_6338112.html","width":130,"caption":"","height":173});
															thumbnails[6377151] = clik.newPhoto({"id":6377151,"src":"Bruun5_thumb.jpg","galleries_id":308487,"server_id":15,"link":"photo_6377151.html","width":130,"caption":"","height":112});
															thumbnails[6377290] = clik.newPhoto({"id":6377290,"src":"Upson5_thumb.jpg","galleries_id":350234,"server_id":15,"link":"photo_6377290.html","width":130,"caption":"","height":105});
															thumbnails[6870126] = clik.newPhoto({"id":6870126,"src":"DSC06679_400_x_300_thumb.jpg","galleries_id":372991,"server_id":15,"link":"photo_6870126.html","width":130,"caption":"","height":98});
															thumbnails[7173381] = clik.newPhoto({"id":7173381,"src":"Rockwell1_thumb.jpg","galleries_id":387609,"server_id":15,"link":"photo_7173381.html","width":130,"caption":"","height":106});
															thumbnails[7711015] = clik.newPhoto({"id":7711015,"src":"mackay1_thumb.jpg","galleries_id":417341,"server_id":15,"link":"photo_7711015.html","width":130,"caption":"","height":222});
															thumbnails[5625935] = clik.newPhoto({"id":5625935,"src":"Gray1_thumb.jpg","galleries_id":308497,"server_id":15,"link":"photo_5625935.html","width":130,"caption":"","height":173});
															thumbnails[7256587] = clik.newPhoto({"id":7256587,"src":"Ellis-brown1_thumb.jpg","galleries_id":392411,"server_id":15,"link":"photo_7256587.html","width":130,"caption":"","height":323});
															thumbnails[7711017] = clik.newPhoto({"id":7711017,"src":"mackay2_thumb.jpg","galleries_id":417341,"server_id":15,"link":"photo_7711017.html","width":130,"caption":"","height":85});
															thumbnails[8286821] = clik.newPhoto({"id":8286821,"src":"IanG1_thumb.jpg","galleries_id":440991,"server_id":15,"link":"photo_8286821.html","width":130,"caption":"","height":87});
															thumbnails[8699202] = clik.newPhoto({"id":8699202,"src":"ulp1_thumb.jpg","galleries_id":458933,"server_id":15,"link":"photo_8699202.html","width":130,"caption":"","height":98});
															thumbnails[8910704] = clik.newPhoto({"id":8910704,"src":"buchart1_thumb.jpg","galleries_id":468640,"server_id":15,"link":"photo_8910704.html","width":130,"caption":"","height":160});
															thumbnails[7711019] = clik.newPhoto({"id":7711019,"src":"mackay3_thumb.jpg","galleries_id":417341,"server_id":15,"link":"photo_7711019.html","width":130,"caption":"","height":110});
															thumbnails[7256589] = clik.newPhoto({"id":7256589,"src":"Ellis-Brown2_thumb.jpg","galleries_id":392411,"server_id":15,"link":"photo_7256589.html","width":130,"caption":"","height":332});
															thumbnails[7711027] = clik.newPhoto({"id":7711027,"src":"mackay4_thumb.jpg","galleries_id":417341,"server_id":15,"link":"photo_7711027.html","width":130,"caption":"","height":218});
															thumbnails[8286822] = clik.newPhoto({"id":8286822,"src":"IanG2_thumb.jpg","galleries_id":440991,"server_id":15,"link":"photo_8286822.html","width":130,"caption":"","height":130});
															thumbnails[8910705] = clik.newPhoto({"id":8910705,"src":"buchart2_thumb.jpg","galleries_id":468640,"server_id":15,"link":"photo_8910705.html","width":130,"caption":"","height":137});
															thumbnails[7711029] = clik.newPhoto({"id":7711029,"src":"mackay5_thumb.jpg","galleries_id":417341,"server_id":15,"link":"photo_7711029.html","width":130,"caption":"","height":94});
															thumbnails[5438210] = clik.newPhoto({"id":5438210,"src":"Gray2_thumb.jpg","galleries_id":308497,"server_id":15,"link":"photo_5438210.html","width":130,"caption":"","height":125});
															thumbnails[7256593] = clik.newPhoto({"id":7256593,"src":"Ellis-Brown3_thumb.jpg","galleries_id":392411,"server_id":15,"link":"photo_7256593.html","width":130,"caption":"","height":174});
															thumbnails[8286833] = clik.newPhoto({"id":8286833,"src":"IanG3_thumb.jpg","galleries_id":440991,"server_id":15,"link":"photo_8286833.html","width":130,"caption":"","height":87});
															thumbnails[8699207] = clik.newPhoto({"id":8699207,"src":"ulp3_thumb.jpg","galleries_id":458933,"server_id":15,"link":"photo_8699207.html","width":130,"caption":"","height":104});
															thumbnails[8910706] = clik.newPhoto({"id":8910706,"src":"buchart3_thumb.jpg","galleries_id":468640,"server_id":15,"link":"photo_8910706.html","width":130,"caption":"","height":127});
															thumbnails[5454241] = clik.newPhoto({"id":5454241,"src":"Gray3_thumb.jpg","galleries_id":308497,"server_id":15,"link":"photo_5454241.html","width":130,"caption":"","height":103});
															thumbnails[7256594] = clik.newPhoto({"id":7256594,"src":"Ellis-Brown4_thumb.jpg","galleries_id":392411,"server_id":15,"link":"photo_7256594.html","width":130,"caption":"","height":174});
															thumbnails[8286864] = clik.newPhoto({"id":8286864,"src":"IanG4_thumb.jpg","galleries_id":440991,"server_id":15,"link":"photo_8286864.html","width":130,"caption":"","height":87});
															thumbnails[8699208] = clik.newPhoto({"id":8699208,"src":"ulph4_thumb.jpg","galleries_id":458933,"server_id":15,"link":"photo_8699208.html","width":130,"caption":"","height":110});
															thumbnails[8910707] = clik.newPhoto({"id":8910707,"src":"buchart4_thumb.jpg","galleries_id":468640,"server_id":15,"link":"photo_8910707.html","width":130,"caption":"","height":112});
															thumbnails[5454239] = clik.newPhoto({"id":5454239,"src":"Gray4_thumb.jpg","galleries_id":308497,"server_id":15,"link":"photo_5454239.html","width":130,"caption":"","height":117});
															thumbnails[8286875] = clik.newPhoto({"id":8286875,"src":"IanG5_thumb.jpg","galleries_id":440991,"server_id":15,"link":"photo_8286875.html","width":130,"caption":"","height":130});
															thumbnails[8699205] = clik.newPhoto({"id":8699205,"src":"ulp2_thumb.jpg","galleries_id":458933,"server_id":15,"link":"photo_8699205.html","width":130,"caption":"","height":56});
															thumbnails[5454246] = clik.newPhoto({"id":5454246,"src":"Gray5_thumb.jpg","galleries_id":308497,"server_id":15,"link":"photo_5454246.html","width":130,"caption":"","height":150});
															thumbnails[6316901] = clik.newPhoto({"id":6316901,"src":"Byford1_thumb.jpg","galleries_id":308508,"server_id":15,"link":"photo_6316901.html","width":130,"caption":"","height":155});
															thumbnails[6316902] = clik.newPhoto({"id":6316902,"src":"Byford2_thumb.jpg","galleries_id":308508,"server_id":15,"link":"photo_6316902.html","width":130,"caption":"","height":87});
															thumbnails[6316904] = clik.newPhoto({"id":6316904,"src":"Byford3_thumb.jpg","galleries_id":308508,"server_id":15,"link":"photo_6316904.html","width":130,"caption":"","height":195});
															thumbnails[6316905] = clik.newPhoto({"id":6316905,"src":"Byford4_thumb.jpg","galleries_id":308508,"server_id":15,"link":"photo_6316905.html","width":130,"caption":"","height":176});
															thumbnails[6318480] = clik.newPhoto({"id":6318480,"src":"Glanville1_thumb.jpg","galleries_id":308486,"server_id":15,"link":"photo_6318480.html","width":130,"caption":"","height":108});
															thumbnails[6318598] = clik.newPhoto({"id":6318598,"src":"Hart1_thumb.jpg","galleries_id":308507,"server_id":15,"link":"photo_6318598.html","width":130,"caption":"","height":135});
															thumbnails[6318599] = clik.newPhoto({"id":6318599,"src":"Hart2_thumb.jpg","galleries_id":308507,"server_id":15,"link":"photo_6318599.html","width":130,"caption":"","height":160});
															thumbnails[6318600] = clik.newPhoto({"id":6318600,"src":"Hart3_thumb.jpg","galleries_id":308507,"server_id":15,"link":"photo_6318600.html","width":130,"caption":"","height":132});
															thumbnails[6318601] = clik.newPhoto({"id":6318601,"src":"Hart4_thumb.jpg","galleries_id":308507,"server_id":15,"link":"photo_6318601.html","width":130,"caption":"","height":123});
															thumbnails[6336625] = clik.newPhoto({"id":6336625,"src":"Howe1_thumb.jpg","galleries_id":308514,"server_id":15,"link":"photo_6336625.html","width":130,"caption":"","height":138});
															thumbnails[6336627] = clik.newPhoto({"id":6336627,"src":"Howe2_thumb.jpg","galleries_id":308514,"server_id":15,"link":"photo_6336627.html","width":130,"caption":"","height":89});
															thumbnails[6336630] = clik.newPhoto({"id":6336630,"src":"Howe3_thumb.jpg","galleries_id":308514,"server_id":15,"link":"photo_6336630.html","width":130,"caption":"","height":69});
															thumbnails[6336635] = clik.newPhoto({"id":6336635,"src":"Howe4_thumb.jpg","galleries_id":308514,"server_id":15,"link":"photo_6336635.html","width":130,"caption":"","height":135});
															thumbnails[6336827] = clik.newPhoto({"id":6336827,"src":"MacDonald1_thumb.jpg","galleries_id":308485,"server_id":15,"link":"photo_6336827.html","width":130,"caption":"","height":130});
															thumbnails[6336831] = clik.newPhoto({"id":6336831,"src":"MacDonald2_thumb.jpg","galleries_id":308485,"server_id":15,"link":"photo_6336831.html","width":130,"caption":"","height":123});
															thumbnails[6336832] = clik.newPhoto({"id":6336832,"src":"MacDonald3_thumb.jpg","galleries_id":308485,"server_id":15,"link":"photo_6336832.html","width":130,"caption":"","height":122});
															thumbnails[6336837] = clik.newPhoto({"id":6336837,"src":"MacDonald4_thumb.jpg","galleries_id":308485,"server_id":15,"link":"photo_6336837.html","width":130,"caption":"","height":139});
															thumbnails[6337219] = clik.newPhoto({"id":6337219,"src":"Plunkett1_thumb.jpg","galleries_id":308495,"server_id":15,"link":"photo_6337219.html","width":130,"caption":"","height":80});
															thumbnails[6337221] = clik.newPhoto({"id":6337221,"src":"Plunkett2_thumb.jpg","galleries_id":308495,"server_id":15,"link":"photo_6337221.html","width":130,"caption":"","height":160});
															thumbnails[6337223] = clik.newPhoto({"id":6337223,"src":"Plunkett3_thumb.jpg","galleries_id":308495,"server_id":15,"link":"photo_6337223.html","width":130,"caption":"","height":130});
															thumbnails[6337226] = clik.newPhoto({"id":6337226,"src":"Plunkett4_thumb.jpg","galleries_id":308495,"server_id":15,"link":"photo_6337226.html","width":130,"caption":"","height":161});
															thumbnails[6338330] = clik.newPhoto({"id":6338330,"src":"Driscoll1_thumb.jpg","galleries_id":350232,"server_id":15,"link":"photo_6338330.html","width":130,"caption":"","height":154});
															thumbnails[6338332] = clik.newPhoto({"id":6338332,"src":"Driscoll2_thumb.jpg","galleries_id":350232,"server_id":15,"link":"photo_6338332.html","width":130,"caption":"","height":141});
															thumbnails[6559907] = clik.newPhoto({"id":6559907,"src":"Cunningham1_thumb.jpg","galleries_id":360046,"server_id":15,"link":"photo_6559907.html","width":130,"caption":"","height":195});
															thumbnails[6559909] = clik.newPhoto({"id":6559909,"src":"Cunningham2_thumb.jpg","galleries_id":360046,"server_id":15,"link":"photo_6559909.html","width":130,"caption":"","height":86});
															thumbnails[6559966] = clik.newPhoto({"id":6559966,"src":"Cunningham3_thumb.jpg","galleries_id":360046,"server_id":15,"link":"photo_6559966.html","width":130,"caption":"","height":146});
															thumbnails[6559968] = clik.newPhoto({"id":6559968,"src":"Cunningham4_thumb.jpg","galleries_id":360046,"server_id":15,"link":"photo_6559968.html","width":130,"caption":"","height":173});
															thumbnails[6559983] = clik.newPhoto({"id":6559983,"src":"Cunningham5_thumb.jpg","galleries_id":360046,"server_id":15,"link":"photo_6559983.html","width":130,"caption":"","height":273});
															thumbnails[7457279] = clik.newPhoto({"id":7457279,"src":"Malet1_thumb.jpg","galleries_id":404367,"server_id":15,"link":"photo_7457279.html","width":130,"caption":"","height":87});
															thumbnails[7457280] = clik.newPhoto({"id":7457280,"src":"Malet2_thumb.jpg","galleries_id":404367,"server_id":15,"link":"photo_7457280.html","width":130,"caption":"","height":130});
															thumbnails[7457281] = clik.newPhoto({"id":7457281,"src":"Malet3_thumb.jpg","galleries_id":404367,"server_id":15,"link":"photo_7457281.html","width":130,"caption":"","height":135});
															thumbnails[7457282] = clik.newPhoto({"id":7457282,"src":"Malet4_thumb.jpg","galleries_id":404367,"server_id":15,"link":"photo_7457282.html","width":130,"caption":"","height":111});
															thumbnails[7457335] = clik.newPhoto({"id":7457335,"src":"Malet5_thumb.jpg","galleries_id":404367,"server_id":15,"link":"photo_7457335.html","width":130,"caption":"","height":130});
															thumbnails[6376620] = clik.newPhoto({"id":6376620,"src":"White1_thumb.jpg","galleries_id":308509,"server_id":15,"link":"photo_6376620.html","width":130,"caption":"","height":97});
															thumbnails[6376635] = clik.newPhoto({"id":6376635,"src":"White4_thumb.jpg","galleries_id":308509,"server_id":15,"link":"photo_6376635.html","width":130,"caption":"","height":99});
															thumbnails[6376630] = clik.newPhoto({"id":6376630,"src":"White2_thumb.jpg","galleries_id":308509,"server_id":15,"link":"photo_6376630.html","width":130,"caption":"","height":183});
															thumbnails[5622009] = clik.newPhoto({"id":5622009,"src":"Row_I_thumb.jpg","galleries_id":308509,"server_id":15,"link":"photo_5622009.html","width":130,"caption":"","height":71});
															thumbnails[6376633] = clik.newPhoto({"id":6376633,"src":"White3_thumb.jpg","galleries_id":308509,"server_id":15,"link":"photo_6376633.html","width":130,"caption":"","height":262});
															thumbnails[7256492] = clik.newPhoto({"id":7256492,"src":"Legge1_thumb.jpg","galleries_id":392410,"server_id":15,"link":"photo_7256492.html","width":130,"caption":"","height":104});
															thumbnails[7256494] = clik.newPhoto({"id":7256494,"src":"Legge2_thumb.jpg","galleries_id":392410,"server_id":15,"link":"photo_7256494.html","width":130,"caption":"","height":104});
															thumbnails[7256497] = clik.newPhoto({"id":7256497,"src":"Legge4_thumb.jpg","galleries_id":392410,"server_id":15,"link":"photo_7256497.html","width":130,"caption":"","height":104});
															thumbnails[7256499] = clik.newPhoto({"id":7256499,"src":"Legge5_thumb.jpg","galleries_id":392410,"server_id":15,"link":"photo_7256499.html","width":130,"caption":"","height":104});
															thumbnails[7256507] = clik.newPhoto({"id":7256507,"src":"Legge6_thumb.jpg","galleries_id":392410,"server_id":15,"link":"photo_7256507.html","width":130,"caption":"","height":104});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[308499] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Marilyn Andreetti","link":"gallery_308499.html","maxRecords":0.0,"photoIDs":[6316598.0,6316600.0,6316603.0,6316605.0],"skipIndex":0,"section_code":"gallery","featured_images":"6316605,6316603,6316600,6316598","id":308499,"singleSection":false});				  						galleries[308494] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Patience Beaumont","link":"gallery_308494.html","maxRecords":0.0,"photoIDs":[6316795.0,6316796.0,6316797.0],"skipIndex":0,"section_code":"gallery","featured_images":"6316797,6316796,6316795","id":308494,"singleSection":false});				  						galleries[308487] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Birgitte Bruun","link":"gallery_308487.html","maxRecords":0.0,"photoIDs":[6316812.0,6316821.0,6316822.0,6316823.0,6377151.0],"skipIndex":0,"section_code":"gallery","featured_images":"6377151,6316823,6316822,6316821,6316812","id":308487,"singleSection":false});				  						galleries[308508] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Moyra Byford","link":"section444215_308508.html","maxRecords":0.0,"photoIDs":[6316901.0,6316902.0,6316904.0,6316905.0],"skipIndex":0,"section_code":"section444215","featured_images":"6316905,6316904,6316902,6316901","id":308508,"singleSection":false});				  						galleries[468640] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Janet Butchart","link":"gallery_468640.html","maxRecords":0.0,"photoIDs":[8910704.0,8910705.0,8910706.0,8910707.0],"skipIndex":0,"section_code":"gallery","featured_images":"8910707,8910706,8910705,8910704","id":468640,"singleSection":false});				  						galleries[308510] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Valma Cheffins","link":"gallery_308510.html","maxRecords":0.0,"photoIDs":[6316972.0,6316973.0,6316976.0],"skipIndex":0,"section_code":"gallery","featured_images":"6316976,6316973,6316972","id":308510,"singleSection":false});				  						galleries[308500] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Joyce Crabbe","link":"gallery_308500.html","maxRecords":0.0,"photoIDs":[6318373.0],"skipIndex":0,"section_code":"gallery","featured_images":6318373.0,"id":308500,"singleSection":false});				  						galleries[360046] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Jilly Cunningham","link":"section444215_360046.html","maxRecords":0.0,"photoIDs":[6559907.0,6559909.0,6559966.0,6559968.0,6559983.0],"skipIndex":0,"section_code":"section444215","featured_images":"6559983,6559968,6559966,6559909,6559907","id":360046,"singleSection":false});				  						galleries[308498] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Susan Cupitt","link":"gallery_308498.html","maxRecords":0.0,"photoIDs":[6318458.0,6318460.0,6318461.0,6318463.0],"skipIndex":0,"section_code":"gallery","featured_images":"6318463,6318461,6318460,6318458","id":308498,"singleSection":false});				  						galleries[350232] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Riina Driscoll","link":"section444215_350232.html","maxRecords":0.0,"photoIDs":[6338330.0,6338332.0],"skipIndex":0,"section_code":"section444215","featured_images":"6338332,6338330","id":350232,"singleSection":false});				  						galleries[392411] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Janice Ellis-Brown","link":"gallery_392411.html","maxRecords":0.0,"photoIDs":[7256587.0,7256589.0,7256593.0,7256594.0],"skipIndex":0,"section_code":"gallery","featured_images":7256593.0,"id":392411,"singleSection":false});				  						galleries[308486] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Amanda Glanville","link":"section444215_308486.html","maxRecords":0.0,"photoIDs":[6318480.0],"skipIndex":0,"section_code":"section444215","featured_images":6318480.0,"id":308486,"singleSection":false});				  						galleries[308497] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Carole Gray","link":"gallery_308497.html","maxRecords":0.0,"photoIDs":[5625935.0,5438210.0,5454241.0,5454239.0,5454246.0],"skipIndex":0,"section_code":"gallery","featured_images":"5625935,5454246,5454241,5454239,5438210","id":308497,"singleSection":false});				  						galleries[440991] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Ian Groombridge","link":"gallery_440991.html","maxRecords":0.0,"photoIDs":[8286821.0,8286822.0,8286833.0,8286864.0,8286875.0],"skipIndex":0,"section_code":"gallery","featured_images":"8286875,8286864,8286833,8286822,8286821","id":440991,"singleSection":false});				  						galleries[308496] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Dennis Hales","link":"gallery_308496.html","maxRecords":0.0,"photoIDs":[6318557.0,6318559.0,6318561.0,6318562.0],"skipIndex":0,"section_code":"gallery","featured_images":"6318562,6318561,6318559,6318557","id":308496,"singleSection":false});				  						galleries[350236] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Victoria Hall","link":"gallery_350236.html","maxRecords":0.0,"photoIDs":[6318590.0,6318591.0,6318592.0],"skipIndex":0,"section_code":"gallery","featured_images":6318590.0,"id":350236,"singleSection":false});				  						galleries[308507] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Celia Hart","link":"section444215_308507.html","maxRecords":0.0,"photoIDs":[6318598.0,6318599.0,6318600.0,6318601.0],"skipIndex":0,"section_code":"section444215","featured_images":"6318601,6318600,6318599,6318598","id":308507,"singleSection":false});				  						galleries[308492] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Helen Heery","link":"gallery_308492.html","maxRecords":0.0,"photoIDs":[6318617.0,6318618.0,6318619.0,6318621.0],"skipIndex":0,"section_code":"gallery","featured_images":"6318621,6318619,6318618,6318617","id":308492,"singleSection":false});				  						galleries[308514] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gill Howe","link":"section444215_308514.html","maxRecords":0.0,"photoIDs":[6336625.0,6336627.0,6336630.0,6336635.0],"skipIndex":0,"section_code":"section444215","featured_images":"6336635,6336625","id":308514,"singleSection":false});				  						galleries[392410] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Richard Legge","link":"section444215_392410.html","maxRecords":0.0,"photoIDs":[7256492.0,7256494.0,7256497.0,7256499.0,7256507.0],"skipIndex":0,"section_code":"section444215","featured_images":7256499.0,"id":392410,"singleSection":false});				  						galleries[308485] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Alison MacDonald","link":"section444215_308485.html","maxRecords":0.0,"photoIDs":[6336827.0,6336831.0,6336832.0,6336837.0],"skipIndex":0,"section_code":"section444215","featured_images":"6336837,6336832,6336831,6336827","id":308485,"singleSection":false});				  						galleries[417341] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Kathy MacKay","link":"gallery_417341.html","maxRecords":0.0,"photoIDs":[7711015.0,7711017.0,7711019.0,7711027.0,7711029.0],"skipIndex":0,"section_code":"gallery","featured_images":"7711029,7711027,7711019,7711017,7711015","id":417341,"singleSection":false});				  						galleries[404367] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Nicola Malet","link":"section444215_404367.html","maxRecords":0.0,"photoIDs":[7457279.0,7457280.0,7457281.0,7457282.0,7457335.0],"skipIndex":0,"section_code":"section444215","featured_images":"7457335,7457282,7457281,7457280,7457279","id":404367,"singleSection":false});				  						galleries[372991] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Jeremy Nicholls","link":"gallery_372991.html","maxRecords":0.0,"photoIDs":[6870126.0],"skipIndex":0,"section_code":"gallery","featured_images":6870126.0,"id":372991,"singleSection":false});				  						galleries[350233] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Patricia Palmer","link":"gallery_350233.html","maxRecords":0.0,"photoIDs":[6338103.0,6338106.0,6338109.0,6338112.0],"skipIndex":0,"section_code":"gallery","featured_images":"6338112,6338109,6338106,6338103","id":350233,"singleSection":false});				  						galleries[350235] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Victoria Parker Jervis","link":"gallery_350235.html","maxRecords":0.0,"photoIDs":[6336983.0,6336984.0,6336989.0,6336993.0],"skipIndex":0,"section_code":"gallery","featured_images":"6336993,6336989,6336984,6336983","id":350235,"singleSection":false});				  						galleries[308493] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Lin Patterson","link":"gallery_308493.html","maxRecords":0.0,"photoIDs":[6337014.0,6337017.0,6337018.0,6337020.0],"skipIndex":0,"section_code":"gallery","featured_images":"6337020,6337018,6337017,6337014","id":308493,"singleSection":false});				  						galleries[308495] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Tim Plunkett","link":"section444215_308495.html","maxRecords":0.0,"photoIDs":[6337219.0,6337221.0,6337223.0,6337226.0],"skipIndex":0,"section_code":"section444215","featured_images":"6337223,6337221","id":308495,"singleSection":false});				  						galleries[387609] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Rockwell Pottery","link":"gallery_387609.html","maxRecords":0.0,"photoIDs":[7173381.0],"skipIndex":0,"section_code":"gallery","featured_images":7173381.0,"id":387609,"singleSection":false});				  						galleries[308489] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Jan Simon","link":"gallery_308489.html","maxRecords":0.0,"photoIDs":[6337464.0,6337467.0,6337469.0,6337472.0],"skipIndex":0,"section_code":"gallery","featured_images":"6337472,6337469,6337467,6337464","id":308489,"singleSection":false});				  						galleries[458933] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Rosamond  Ulph","link":"gallery_458933.html","maxRecords":0.0,"photoIDs":[8699202.0,8699207.0,8699208.0,8699205.0],"skipIndex":0,"section_code":"gallery","featured_images":"8699208,8699207,8699205,8699202","id":458933,"singleSection":false});				  						galleries[350234] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wendy Upson","link":"gallery_350234.html","maxRecords":0.0,"photoIDs":[6337607.0,6337633.0,6337669.0,6337702.0,6377290.0],"skipIndex":0,"section_code":"gallery","featured_images":"6337702,6337607","id":350234,"singleSection":false});				  						galleries[308509] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Tony White","link":"section444215_308509.html","maxRecords":0.0,"photoIDs":[6376620.0,6376635.0,6376630.0,5622009.0,6376633.0],"skipIndex":0,"section_code":"section444215","featured_images":"6376635,6376633,6376630,6376620,5622009","id":308509,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8359549,8359551,8359553,8359555,8359557,8359559,8359560,8359561,8359562,8359564,8359565';
imageSets[2] = '6337702,6337607,6337223,6337221,6336635,6336625,6318590,7256593,7256499';
imageSets[3] = '8910707,8910706,8910705,8910704,8699208,8699207,8699205,8699202,8359565,8359564,8359562,8359561,8359560,8359559,8359557,8359555,8359553,8359551,8359549,8286875,8286864,8286833,8286822,8286821,7711029,7711027,7711019,7711017,7711015,7457335,7457282,7457281,7457280,7457279,7256594,7256593,7256589,7256587,7256507,7256499,7256497,7256494,7256492,7173381,6870126,6559983,6559968,6559966,6559909,6559907';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/Riverslade/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/Riverslade/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/Riverslade/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/Riverslade/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/Riverslade/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/Riverslade/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/Riverslade/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/Riverslade/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/Riverslade/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/Riverslade/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/Riverslade/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/Riverslade/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/Riverslade/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/Riverslade/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/Riverslade/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/Riverslade/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/Riverslade/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/Riverslade/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/Riverslade/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/Riverslade/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/Riverslade/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/Riverslade/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/Riverslade/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/Riverslade/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/Riverslade/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/Riverslade/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/Riverslade/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 = 'Riverslade Gallery: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.item_price !== '') {
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

