window.thumbnails = {};
															thumbnails[3849998] = clik.newPhoto({"id":3849998,"src":"NEW_POSTER_END_with_new_pics_by_MKVIBE__APEPTA_seal_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":173});
															thumbnails[8649313] = clik.newPhoto({"id":8649313,"src":"Christmas_poster_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":184});
															thumbnails[7592636] = clik.newPhoto({"id":7592636,"src":"Front_cover_gospel_album_x2_copy_thumb.jpg","galleries_id":378820,"server_id":15,"link":"photo_7592636.html","width":130,"caption":"'His Hand In Mine' ~ Gospel CD","height":130});
															thumbnails[7782610] = clik.newPhoto({"id":7782610,"src":"Front_cover_copy_thumb.jpg","galleries_id":378820,"server_id":15,"link":"photo_7782610.html","width":130,"caption":"'My Buddy & Yours' - Deak sings Buddy Holly","height":130});
															thumbnails[8861219] = clik.newPhoto({"id":8861219,"src":"Front_cover_2_thumb.jpg","galleries_id":378820,"server_id":15,"link":"photo_8861219.html","width":130,"caption":"Deak Rivers Sings Elvis Christmas Songs","height":130});
															thumbnails[9044055] = clik.newPhoto({"id":9044055,"src":"Poster_copy_thumb.jpg","galleries_id":378820,"server_id":15,"link":"photo_9044055.html","width":130,"caption":"Pink Up - Charity Benefit Show - Ireland","height":184});
															thumbnails[6898948] = clik.newPhoto({"id":6898948,"src":"BH_UCC_0106-Edit-hires_thumb.jpg","galleries_id":233578,"server_id":15,"link":"photo_6898948.html","width":130,"caption":"","height":87});
															thumbnails[6898952] = clik.newPhoto({"id":6898952,"src":"BH_UCC_0195-Edit-hires_thumb.jpg","galleries_id":233578,"server_id":15,"link":"photo_6898952.html","width":130,"caption":"","height":99});
															thumbnails[6898953] = clik.newPhoto({"id":6898953,"src":"BH_UCC_0201-Edit-silver-hires_thumb.jpg","galleries_id":233578,"server_id":15,"link":"photo_6898953.html","width":130,"caption":"","height":100});
															thumbnails[6898965] = clik.newPhoto({"id":6898965,"src":"EP_UCC_0275-Edit-bw-hires_thumb.jpg","galleries_id":233579,"server_id":15,"link":"photo_6898965.html","width":130,"caption":"","height":92});
															thumbnails[6898967] = clik.newPhoto({"id":6898967,"src":"EP_UCC_0275-Edit-hires_thumb.jpg","galleries_id":233579,"server_id":15,"link":"photo_6898967.html","width":130,"caption":"","height":92});
															thumbnails[6898971] = clik.newPhoto({"id":6898971,"src":"EP_UCC_0302-Edit-hires_thumb.jpg","galleries_id":233579,"server_id":15,"link":"photo_6898971.html","width":130,"caption":"","height":94});
															thumbnails[6898975] = clik.newPhoto({"id":6898975,"src":"EP_UCC_0306-Edit-bw-hires_thumb.jpg","galleries_id":233579,"server_id":15,"link":"photo_6898975.html","width":130,"caption":"","height":95});
															thumbnails[6898977] = clik.newPhoto({"id":6898977,"src":"EP_UCW_8877-3-1h_thumb.jpg","galleries_id":233579,"server_id":15,"link":"photo_6898977.html","width":130,"caption":"","height":110});
															thumbnails[6990621] = clik.newPhoto({"id":6990621,"src":"CD_cover_1_copy_thumb.jpg","galleries_id":378820,"server_id":15,"link":"photo_6990621.html","width":130,"caption":"'Songs From The Heart' ~ CD","height":129});
															thumbnails[4791124] = clik.newPhoto({"id":4791124,"src":"BDSC00027_thumb.jpg","galleries_id":233578,"server_id":15,"link":"photo_4791124.html","width":130,"caption":"","height":87});
															thumbnails[4791126] = clik.newPhoto({"id":4791126,"src":"BDSC00034_thumb.jpg","galleries_id":233578,"server_id":15,"link":"photo_4791126.html","width":130,"caption":"","height":87});
															thumbnails[4791128] = clik.newPhoto({"id":4791128,"src":"BDSC00044_thumb.jpg","galleries_id":233578,"server_id":15,"link":"photo_4791128.html","width":130,"caption":"","height":87});
															thumbnails[6898968] = clik.newPhoto({"id":6898968,"src":"EP_UCC_0295-Edit-crop-hires_thumb.jpg","galleries_id":233579,"server_id":15,"link":"photo_6898968.html","width":130,"caption":"","height":172});
															thumbnails[6898969] = clik.newPhoto({"id":6898969,"src":"EP_UCC_0295-Edit-hires_thumb.jpg","galleries_id":233579,"server_id":15,"link":"photo_6898969.html","width":130,"caption":"","height":213});
															thumbnails[6898970] = clik.newPhoto({"id":6898970,"src":"EP_UCC_0295-Edit-old-hires_thumb.jpg","galleries_id":233579,"server_id":15,"link":"photo_6898970.html","width":130,"caption":"","height":213});
															thumbnails[6898972] = clik.newPhoto({"id":6898972,"src":"EP_UCC_0304-Edit-wash-hires_thumb.jpg","galleries_id":233579,"server_id":15,"link":"photo_6898972.html","width":130,"caption":"","height":194});
															thumbnails[6898973] = clik.newPhoto({"id":6898973,"src":"EP_UCC_0304-Edit-wash-old-hires_thumb.jpg","galleries_id":233579,"server_id":15,"link":"photo_6898973.html","width":130,"caption":"","height":194});
															thumbnails[6898976] = clik.newPhoto({"id":6898976,"src":"EP_UCC_0306-Edit-hires_thumb.jpg","galleries_id":233579,"server_id":15,"link":"photo_6898976.html","width":130,"caption":"","height":143});
															thumbnails[6898978] = clik.newPhoto({"id":6898978,"src":"EP_UCW_8898-2-1h_thumb.jpg","galleries_id":233579,"server_id":15,"link":"photo_6898978.html","width":130,"caption":"","height":160});
															thumbnails[6898979] = clik.newPhoto({"id":6898979,"src":"EP_UCW_8898-4-1h_thumb.jpg","galleries_id":233579,"server_id":15,"link":"photo_6898979.html","width":130,"caption":"","height":160});
															thumbnails[6898980] = clik.newPhoto({"id":6898980,"src":"EP_UCW_8904-1-1h_thumb.jpg","galleries_id":233579,"server_id":15,"link":"photo_6898980.html","width":130,"caption":"","height":151});
															thumbnails[6898981] = clik.newPhoto({"id":6898981,"src":"EP_UCW_8904-2-1h_thumb.jpg","galleries_id":233579,"server_id":15,"link":"photo_6898981.html","width":130,"caption":"","height":151});
															thumbnails[6898983] = clik.newPhoto({"id":6898983,"src":"EP_UCW_8905-1-1h_thumb.jpg","galleries_id":233579,"server_id":15,"link":"photo_6898983.html","width":130,"caption":"","height":142});
															thumbnails[6898985] = clik.newPhoto({"id":6898985,"src":"EP_UCW_8905-3-1h_thumb.jpg","galleries_id":233579,"server_id":15,"link":"photo_6898985.html","width":130,"caption":"","height":142});
															thumbnails[6898949] = clik.newPhoto({"id":6898949,"src":"BH_UCC_0129-Edit-dup-hires_thumb.jpg","galleries_id":233578,"server_id":15,"link":"photo_6898949.html","width":130,"caption":"","height":201});
															thumbnails[6898950] = clik.newPhoto({"id":6898950,"src":"BH_UCC_0139-Edit-old-hires_thumb.jpg","galleries_id":233578,"server_id":15,"link":"photo_6898950.html","width":130,"caption":"","height":185});
															thumbnails[6898951] = clik.newPhoto({"id":6898951,"src":"BH_UCC_0171-Edit-col-hires_thumb.jpg","galleries_id":233578,"server_id":15,"link":"photo_6898951.html","width":130,"caption":"","height":212});
															thumbnails[6898955] = clik.newPhoto({"id":6898955,"src":"BH_UCW_8713-5-1h_thumb.jpg","galleries_id":233578,"server_id":15,"link":"photo_6898955.html","width":130,"caption":"","height":181});
															thumbnails[6898956] = clik.newPhoto({"id":6898956,"src":"BH_UCW_8716-1-1h_thumb.jpg","galleries_id":233578,"server_id":15,"link":"photo_6898956.html","width":130,"caption":"","height":164});
															thumbnails[6898958] = clik.newPhoto({"id":6898958,"src":"BH_UCW_8737-3-1h_thumb.jpg","galleries_id":233578,"server_id":15,"link":"photo_6898958.html","width":130,"caption":"","height":197});
															thumbnails[6898959] = clik.newPhoto({"id":6898959,"src":"BH_UCW_8745-1-1h_thumb.jpg","galleries_id":233578,"server_id":15,"link":"photo_6898959.html","width":130,"caption":"","height":164});
															thumbnails[6898961] = clik.newPhoto({"id":6898961,"src":"BH_UCW_8745-4-1h_thumb.jpg","galleries_id":233578,"server_id":15,"link":"photo_6898961.html","width":130,"caption":"","height":164});
															thumbnails[6898962] = clik.newPhoto({"id":6898962,"src":"BH_UCW_8824-3-1h_thumb.jpg","galleries_id":233578,"server_id":15,"link":"photo_6898962.html","width":130,"caption":"","height":173});
															thumbnails[6898963] = clik.newPhoto({"id":6898963,"src":"BH_UCW_8850-1-1h_thumb.jpg","galleries_id":233578,"server_id":15,"link":"photo_6898963.html","width":130,"caption":"","height":177});
															thumbnails[6898964] = clik.newPhoto({"id":6898964,"src":"BH_UCW_8850-3-1h_thumb.jpg","galleries_id":233578,"server_id":15,"link":"photo_6898964.html","width":130,"caption":"","height":177});
															thumbnails[7822075] = clik.newPhoto({"id":7822075,"src":"P.0930_Deak_with_audience_member_thumb.jpg","galleries_id":422189,"server_id":15,"link":"photo_7822075.html","width":130,"caption":"","height":195});
															thumbnails[7822077] = clik.newPhoto({"id":7822077,"src":"P.0931_Deak_with_audience_member_thumb.jpg","galleries_id":422189,"server_id":15,"link":"photo_7822077.html","width":130,"caption":"","height":195});
															thumbnails[7822080] = clik.newPhoto({"id":7822080,"src":"P.0932_Deak_with_audience_member_thumb.jpg","galleries_id":422189,"server_id":15,"link":"photo_7822080.html","width":130,"caption":"","height":195});
															thumbnails[7822084] = clik.newPhoto({"id":7822084,"src":"P.0933_Deak_with_audience_members_thumb.jpg","galleries_id":422189,"server_id":15,"link":"photo_7822084.html","width":130,"caption":"","height":195});
															thumbnails[7822087] = clik.newPhoto({"id":7822087,"src":"P.0935_Deak_with_audience_member_thumb.jpg","galleries_id":422189,"server_id":15,"link":"photo_7822087.html","width":130,"caption":"","height":195});
															thumbnails[7822095] = clik.newPhoto({"id":7822095,"src":"P1.0934_Deak_with_audience_members_thumb.jpg","galleries_id":422189,"server_id":15,"link":"photo_7822095.html","width":130,"caption":"","height":87});
															thumbnails[7822098] = clik.newPhoto({"id":7822098,"src":"P.0938_Deak__Melody_thumb.jpg","galleries_id":422189,"server_id":15,"link":"photo_7822098.html","width":130,"caption":"","height":195});
															thumbnails[7822149] = clik.newPhoto({"id":7822149,"src":"P.0941_Deak_with_audience_member_thumb.jpg","galleries_id":422189,"server_id":15,"link":"photo_7822149.html","width":130,"caption":"","height":195});
															thumbnails[7822150] = clik.newPhoto({"id":7822150,"src":"P.0942_Deak_with_audience_member_thumb.jpg","galleries_id":422189,"server_id":15,"link":"photo_7822150.html","width":130,"caption":"","height":195});
															thumbnails[7822151] = clik.newPhoto({"id":7822151,"src":"P.0943_Deak_with_audience_members_thumb.jpg","galleries_id":422189,"server_id":15,"link":"photo_7822151.html","width":130,"caption":"","height":195});
															thumbnails[8744553] = clik.newPhoto({"id":8744553,"src":"P.0969_Deak_with_group_of_GI_Elviss__Porthcawl_thumb.jpg","galleries_id":460710,"server_id":15,"link":"photo_8744553.html","width":130,"caption":"Deak with a group of GI Elvis's","height":87});
															thumbnails[8744557] = clik.newPhoto({"id":8744557,"src":"P.0970_Deak_performing_at_Porthcawl_-_Harbour_Lights_Lounge_thumb.jpg","galleries_id":460710,"server_id":15,"link":"photo_8744557.html","width":130,"caption":"Deak performing at the Harbour Lights Lounge","height":87});
															thumbnails[8744564] = clik.newPhoto({"id":8744564,"src":"P.0971_Deak_performing__Porthcawl_-_HLL_thumb.jpg","galleries_id":460710,"server_id":15,"link":"photo_8744564.html","width":130,"caption":"Deak performing at Porthcawl - Harbour Lights Lounge","height":87});
															thumbnails[8744567] = clik.newPhoto({"id":8744567,"src":"P.0972_Deak_performing__Porthcawl_-_HLL_thumb.jpg","galleries_id":460710,"server_id":15,"link":"photo_8744567.html","width":130,"caption":"Deak performing at Porthcawl - Harbour Lights Lounge","height":87});
															thumbnails[8744570] = clik.newPhoto({"id":8744570,"src":"P.0973_Deak_performing__Porthcawl_-_HLL_thumb.jpg","galleries_id":460710,"server_id":15,"link":"photo_8744570.html","width":130,"caption":"Deak performing at Porthcawl - Harbour Lights Lounge","height":84});
															thumbnails[8744572] = clik.newPhoto({"id":8744572,"src":"P.0974_Deak_performing__Porthcawl_-_HLL_thumb.jpg","galleries_id":460710,"server_id":15,"link":"photo_8744572.html","width":130,"caption":"Deak performing at Porthcawl - Harbour Lights Lounge","height":195});
															thumbnails[8744575] = clik.newPhoto({"id":8744575,"src":"P.0975_Deak_performing__Portchawk_-_HLL_thumb.jpg","galleries_id":460710,"server_id":15,"link":"photo_8744575.html","width":130,"caption":"Deak performing at Porthcawl - Harbour Lights Lounge","height":195});
															thumbnails[8744580] = clik.newPhoto({"id":8744580,"src":"P.0977_Deak_performing__Porthcawl_-_HLL_thumb.jpg","galleries_id":460710,"server_id":15,"link":"photo_8744580.html","width":130,"caption":"Deak performing at Porthcawl - Harbour Lights Lounge","height":195});
															thumbnails[8744581] = clik.newPhoto({"id":8744581,"src":"P.0978_Deak_performing__Porthcawl_-_HLL_thumb.jpg","galleries_id":460710,"server_id":15,"link":"photo_8744581.html","width":130,"caption":"Deak performing at Porthcawl - Harbour Lights Lounge","height":195});
															thumbnails[8744582] = clik.newPhoto({"id":8744582,"src":"P.0979_Deak_performing__Porthcawl_HLL_thumb.jpg","galleries_id":460710,"server_id":15,"link":"photo_8744582.html","width":130,"caption":"Deak performing at Porthcawl - Harbour Lights Lounge","height":87});
															thumbnails[8744584] = clik.newPhoto({"id":8744584,"src":"P.0980_Deak_performing__Porthcawl_-_Marquee_thumb.jpg","galleries_id":460710,"server_id":15,"link":"photo_8744584.html","width":130,"caption":"Deak performing at Porthcawl - Marquee","height":87});
															thumbnails[8744586] = clik.newPhoto({"id":8744586,"src":"P.0981_Deak_performing__Marquee_thumb.jpg","galleries_id":460710,"server_id":15,"link":"photo_8744586.html","width":130,"caption":"Deak performing at Porthcawl - Marquee","height":87});
															thumbnails[8744587] = clik.newPhoto({"id":8744587,"src":"P1.0981_Deak_performing__Marquee_thumb.jpg","galleries_id":460710,"server_id":15,"link":"photo_8744587.html","width":130,"caption":"Deak performing at Porthcawl - Marquee","height":87});
															thumbnails[8744592] = clik.newPhoto({"id":8744592,"src":"P.0983_Deak_performing__porthcawl_-_Marquee_thumb.jpg","galleries_id":460710,"server_id":15,"link":"photo_8744592.html","width":130,"caption":"Deak performing at Porthcawl - Marquee","height":87});
															thumbnails[8744595] = clik.newPhoto({"id":8744595,"src":"P.0985_Deak_performing__Porthcawl_-_Marquee_thumb.jpg","galleries_id":460710,"server_id":15,"link":"photo_8744595.html","width":130,"caption":"Deak performing at Porthcawl - Marquee","height":87});
															thumbnails[8744596] = clik.newPhoto({"id":8744596,"src":"P.0986_Deak_performing__Porthcawl_-_Marquee_thumb.jpg","galleries_id":460710,"server_id":15,"link":"photo_8744596.html","width":130,"caption":"Deak performing at Porthcawl - Marquee","height":87});
															thumbnails[8744618] = clik.newPhoto({"id":8744618,"src":"P.0987_Deak_performing_Porthcawl_-_marquee_thumb.jpg","galleries_id":460710,"server_id":15,"link":"photo_8744618.html","width":130,"caption":"Deak performing at Porthcawl - Marquee","height":87});
															thumbnails[8744624] = clik.newPhoto({"id":8744624,"src":"P.0988_Deak_performing__porthcawl_-_marquee_thumb.jpg","galleries_id":460710,"server_id":15,"link":"photo_8744624.html","width":130,"caption":"Deak performing at Porthcawl - Marquee","height":87});
															thumbnails[8744626] = clik.newPhoto({"id":8744626,"src":"P.0989_Deak_performing_Porthcawl_-_marquee_thumb.jpg","galleries_id":460710,"server_id":15,"link":"photo_8744626.html","width":130,"caption":"Deak performing at Porthcawl - Marquee","height":87});
															thumbnails[8744628] = clik.newPhoto({"id":8744628,"src":"P.0990_Deak_performing__Porthcawl_-_marquee_thumb.jpg","galleries_id":460710,"server_id":15,"link":"photo_8744628.html","width":130,"caption":"Deak performing at Porthcawl - Marquee","height":87});
															thumbnails[8861301] = clik.newPhoto({"id":8861301,"src":"P.1003_Deak_at_LDHR_thumb.jpg","galleries_id":465948,"server_id":15,"link":"photo_8861301.html","width":130,"caption":"Deak at the Luton & Dunstable Hospital Radio station.","height":195});
															thumbnails[8861304] = clik.newPhoto({"id":8861304,"src":"P.1004_Deak_at_LDHR_thumb.jpg","galleries_id":465948,"server_id":15,"link":"photo_8861304.html","width":130,"caption":"Deak at the Luton & Dunstable Hospital Radio station.","height":87});
															thumbnails[8861306] = clik.newPhoto({"id":8861306,"src":"P.1005_Deak_at_LDHR_thumb.jpg","galleries_id":465948,"server_id":15,"link":"photo_8861306.html","width":130,"caption":"Deak at the Luton & Dunstable Hospital Radio station.","height":87});
															thumbnails[8861375] = clik.newPhoto({"id":8861375,"src":"P.1006_Deak_at_LDHR_with_Sue_Jones_thumb.jpg","galleries_id":465948,"server_id":15,"link":"photo_8861375.html","width":130,"caption":"Deak & Sue and the radio station.","height":87});
															thumbnails[8861376] = clik.newPhoto({"id":8861376,"src":"P.1007_Deak_at_LDHR_with_Sue_Jones_thumb.jpg","galleries_id":465948,"server_id":15,"link":"photo_8861376.html","width":130,"caption":"Deak with Sue Jones of LDHR","height":87});
															thumbnails[8861377] = clik.newPhoto({"id":8861377,"src":"P.1008_Deak_at_LDHR_with_Sue_Jones_thumb.jpg","galleries_id":465948,"server_id":15,"link":"photo_8861377.html","width":130,"caption":"Deak with Sue Jones of Luton & Dunstable Hospital Radio.","height":87});
															thumbnails[8861379] = clik.newPhoto({"id":8861379,"src":"P.1009_Deak_at_LDHR_with_Sue_Jones_thumb.jpg","galleries_id":465948,"server_id":15,"link":"photo_8861379.html","width":130,"caption":"Deak with Sue at LDHR.","height":87});
															thumbnails[8861383] = clik.newPhoto({"id":8861383,"src":"P.1010_Deak_at_LDHR_thumb.jpg","galleries_id":465948,"server_id":15,"link":"photo_8861383.html","width":130,"caption":"Deak having cuddles at LDHR.","height":195});
															thumbnails[8861386] = clik.newPhoto({"id":8861386,"src":"P.1011_Deak_at_LDH_thumb.jpg","galleries_id":465948,"server_id":15,"link":"photo_8861386.html","width":130,"caption":"Deak meeting some of the staff at LDH. ","height":86});
															thumbnails[8861388] = clik.newPhoto({"id":8861388,"src":"P.1012_Deak_at_LDH_thumb.jpg","galleries_id":465948,"server_id":15,"link":"photo_8861388.html","width":130,"caption":"Deak at the Luton & Dunstable Hospital. ","height":87});
															thumbnails[8861392] = clik.newPhoto({"id":8861392,"src":"P.1014_Deak_at_LDH_thumb.jpg","galleries_id":465948,"server_id":15,"link":"photo_8861392.html","width":130,"caption":"Deak at the Luton & Dunstable Hospital.","height":195});
															thumbnails[8861396] = clik.newPhoto({"id":8861396,"src":"P.1015_Deak_at_LDH_thumb.jpg","galleries_id":465948,"server_id":15,"link":"photo_8861396.html","width":130,"caption":"Deak at the LDH. ","height":195});
															thumbnails[8861399] = clik.newPhoto({"id":8861399,"src":"P.1016_Deak_at_LDH_thumb.jpg","galleries_id":465948,"server_id":15,"link":"photo_8861399.html","width":130,"caption":"Deak at the Luton & Dunstable Hospital .","height":195});
															thumbnails[8861404] = clik.newPhoto({"id":8861404,"src":"P.1017_Deak_at_LDH_thumb.jpg","galleries_id":465948,"server_id":15,"link":"photo_8861404.html","width":130,"caption":"Deak at the Luton & Dunstable Hospital. ","height":195});
															thumbnails[8861407] = clik.newPhoto({"id":8861407,"src":"P.1018_Deak_at_LDHR_thumb.jpg","galleries_id":465948,"server_id":15,"link":"photo_8861407.html","width":130,"caption":"Deak at the Luton & Dunstable Hospital Radio Station. ","height":195});
															thumbnails[8993013] = clik.newPhoto({"id":8993013,"src":"P.1019_Deak_as_Buddy__Ye_Olde_Red_Lion_07.01.12_thumb.jpg","galleries_id":473625,"server_id":15,"link":"photo_8993013.html","width":130,"caption":"Deak as Buddy Holly","height":173});
															thumbnails[8993035] = clik.newPhoto({"id":8993035,"src":"P.1020_Deak_as_Buddy__Ye_Olde_Red_Lion_07.01.2012_thumb.jpg","galleries_id":473625,"server_id":15,"link":"photo_8993035.html","width":130,"caption":"Deak as Buddy Holly","height":173});
															thumbnails[8993042] = clik.newPhoto({"id":8993042,"src":"P.1021_Deak_as_Elvis__Ye_Olde_Red_Lion_07.01.2012_thumb.jpg","galleries_id":473625,"server_id":15,"link":"photo_8993042.html","width":130,"caption":"Deak as Elvis","height":173});
															thumbnails[8993045] = clik.newPhoto({"id":8993045,"src":"P.1022_Deak_as_Elvis__Ye_Olde_Red_Lion_07.01.2012_thumb.jpg","galleries_id":473625,"server_id":15,"link":"photo_8993045.html","width":130,"caption":"Deak as Elvis","height":173});
															thumbnails[8993047] = clik.newPhoto({"id":8993047,"src":"P.1023_Deak_as_Elvis__Ye_Olde_Red_Lion_07.01.2012_thumb.jpg","galleries_id":473625,"server_id":15,"link":"photo_8993047.html","width":130,"caption":"Deak as Elvis","height":173});
															thumbnails[8993065] = clik.newPhoto({"id":8993065,"src":"P.1024_Deak_as_Elvis__Ye_Olde_Red_Lion_07.01.2012_thumb.jpg","galleries_id":473625,"server_id":15,"link":"photo_8993065.html","width":130,"caption":"Deak as Elvis","height":173});
															thumbnails[8993071] = clik.newPhoto({"id":8993071,"src":"P.1025_Deak_as_Elvis__Ye_Olde_Red_Lion_07.01.2012_thumb.jpg","galleries_id":473625,"server_id":15,"link":"photo_8993071.html","width":130,"caption":"Deak as Elvis","height":98});
															thumbnails[8993077] = clik.newPhoto({"id":8993077,"src":"P.1026_Deak_as_Elvis__Ye_Olde_Red_Lion_07.01.2012_thumb.jpg","galleries_id":473625,"server_id":15,"link":"photo_8993077.html","width":130,"caption":"Deak as Elvis","height":98});
															thumbnails[8993083] = clik.newPhoto({"id":8993083,"src":"P.1027_Deak_as_Elvis__Ye_Olde_Red_Lion_07.01.2012_thumb.jpg","galleries_id":473625,"server_id":15,"link":"photo_8993083.html","width":130,"caption":"Deak as Elvis","height":98});
															thumbnails[8993086] = clik.newPhoto({"id":8993086,"src":"P.1028_Deak_as_Elvis__Ye_Olde_Red_Lion_07.01.2012_thumb.jpg","galleries_id":473625,"server_id":15,"link":"photo_8993086.html","width":130,"caption":"Deak as Elvis","height":98});
															thumbnails[8993088] = clik.newPhoto({"id":8993088,"src":"P.1029_Deak_as_Elvis__Ye_Olde_Red_Lion_07.01.2012_thumb.jpg","galleries_id":473625,"server_id":15,"link":"photo_8993088.html","width":130,"caption":"Deak as Elvis","height":98});
															thumbnails[8993091] = clik.newPhoto({"id":8993091,"src":"P.1030_Deak_as_Elvis__Ye_Olde_Red_Lion_07.01.2012_thumb.jpg","galleries_id":473625,"server_id":15,"link":"photo_8993091.html","width":130,"caption":"Deak as Elvis","height":98});
															thumbnails[8993093] = clik.newPhoto({"id":8993093,"src":"P.1033_Deak_as_Elvis__Ye_Olde_Red_Lion_07.01.2012_thumb.jpg","galleries_id":473625,"server_id":15,"link":"photo_8993093.html","width":130,"caption":"Deak as Elvis","height":173});
															thumbnails[8993095] = clik.newPhoto({"id":8993095,"src":"P.1034_Deak_as_Elvis__Ye_Olde_Red_Lion_07.01.2012_thumb.jpg","galleries_id":473625,"server_id":15,"link":"photo_8993095.html","width":130,"caption":"Deak as Elvis","height":173});
															thumbnails[8993099] = clik.newPhoto({"id":8993099,"src":"P.1035_Deak_as_Elvis__Ye_Olde_Red_Lion_07.01.2012_thumb.jpg","galleries_id":473625,"server_id":15,"link":"photo_8993099.html","width":130,"caption":"Deak as Elvis","height":173});
															thumbnails[7057249] = clik.newPhoto({"id":7057249,"src":"Deak_Rivers_Gordon_Elvis_James_Aaron_Billy_Sullivan_Dave_Sharkey_Andy_Wright__thumb.jpg","galleries_id":382032,"server_id":15,"link":"photo_7057249.html","width":130,"caption":"","height":87});
															thumbnails[7057253] = clik.newPhoto({"id":7057253,"src":"The_stars_of_the_life_of_elvis_thumb.jpg","galleries_id":382032,"server_id":15,"link":"photo_7057253.html","width":130,"caption":"","height":87});
															thumbnails[7057254] = clik.newPhoto({"id":7057254,"src":"The_stars_of_the_life_of_elvis_002_thumb.jpg","galleries_id":382032,"server_id":15,"link":"photo_7057254.html","width":130,"caption":"","height":108});
															thumbnails[7057258] = clik.newPhoto({"id":7057258,"src":"The_stars_of_the_life_of_elvis_003_thumb.jpg","galleries_id":382032,"server_id":15,"link":"photo_7057258.html","width":130,"caption":"","height":107});
															thumbnails[7057196] = clik.newPhoto({"id":7057196,"src":"Andy_Billy_Deak_James_Dave__Fans_thumb.jpg","galleries_id":382032,"server_id":15,"link":"photo_7057196.html","width":130,"caption":"","height":87});
															thumbnails[7057203] = clik.newPhoto({"id":7057203,"src":"Andy_Billy_Deak_James_Gordon__Fans__thumb.jpg","galleries_id":382032,"server_id":15,"link":"photo_7057203.html","width":130,"caption":"","height":87});
															thumbnails[7057217] = clik.newPhoto({"id":7057217,"src":"Andy_Billy_Deak_James_Gordon__Fans_003__thumb.jpg","galleries_id":382032,"server_id":15,"link":"photo_7057217.html","width":130,"caption":"","height":87});
															thumbnails[7057220] = clik.newPhoto({"id":7057220,"src":"Andy_Billy_Deak_James_Gordon__Fans_004__thumb.jpg","galleries_id":382032,"server_id":15,"link":"photo_7057220.html","width":130,"caption":"","height":87});
															thumbnails[7057223] = clik.newPhoto({"id":7057223,"src":"Andy_Billy_Deak_James_Gordon__Fans_006__thumb.jpg","galleries_id":382032,"server_id":15,"link":"photo_7057223.html","width":130,"caption":"","height":87});
															thumbnails[7057229] = clik.newPhoto({"id":7057229,"src":"Deak_Rivers_001_thumb.jpg","galleries_id":382032,"server_id":15,"link":"photo_7057229.html","width":130,"caption":"","height":87});
															thumbnails[7057230] = clik.newPhoto({"id":7057230,"src":"Deak_Rivers_002_thumb.jpg","galleries_id":382032,"server_id":15,"link":"photo_7057230.html","width":130,"caption":"","height":87});
															thumbnails[7057237] = clik.newPhoto({"id":7057237,"src":"Deak_Rivers_004_thumb.jpg","galleries_id":382032,"server_id":15,"link":"photo_7057237.html","width":130,"caption":"","height":87});
															thumbnails[7057238] = clik.newPhoto({"id":7057238,"src":"Deak_Rivers_005_thumb.jpg","galleries_id":382032,"server_id":15,"link":"photo_7057238.html","width":130,"caption":"","height":87});
															thumbnails[7057251] = clik.newPhoto({"id":7057251,"src":"James_Billy_Deak_Dave_Andy_Gordon_Theresa_thumb.jpg","galleries_id":382032,"server_id":15,"link":"photo_7057251.html","width":130,"caption":"","height":87});
															thumbnails[7057225] = clik.newPhoto({"id":7057225,"src":"Andy_Billy_Deak_James_Gordon__Fans_007__thumb.jpg","galleries_id":382032,"server_id":15,"link":"photo_7057225.html","width":130,"caption":"","height":195});
															thumbnails[7057226] = clik.newPhoto({"id":7057226,"src":"Billy_Deak_Dave_thumb.jpg","galleries_id":382032,"server_id":15,"link":"photo_7057226.html","width":130,"caption":"","height":195});
															thumbnails[7057228] = clik.newPhoto({"id":7057228,"src":"Billy_Deak_Dave_Theresa_Andy_thumb.jpg","galleries_id":382032,"server_id":15,"link":"photo_7057228.html","width":130,"caption":"","height":195});
															thumbnails[7057234] = clik.newPhoto({"id":7057234,"src":"Deak_Rivers_003_thumb.jpg","galleries_id":382032,"server_id":15,"link":"photo_7057234.html","width":130,"caption":"","height":195});
															thumbnails[7057240] = clik.newPhoto({"id":7057240,"src":"Deak_Rivers__fans_001_thumb.jpg","galleries_id":382032,"server_id":15,"link":"photo_7057240.html","width":130,"caption":"","height":195});
															thumbnails[7057242] = clik.newPhoto({"id":7057242,"src":"Deak_Rivers__fans_002_thumb.jpg","galleries_id":382032,"server_id":15,"link":"photo_7057242.html","width":130,"caption":"","height":195});
															thumbnails[7057244] = clik.newPhoto({"id":7057244,"src":"Deak_Rivers__fans_003_thumb.jpg","galleries_id":382032,"server_id":15,"link":"photo_7057244.html","width":130,"caption":"","height":195});
															thumbnails[7057245] = clik.newPhoto({"id":7057245,"src":"Deak_Rivers__fans_004_thumb.jpg","galleries_id":382032,"server_id":15,"link":"photo_7057245.html","width":130,"caption":"","height":195});
															thumbnails[7057246] = clik.newPhoto({"id":7057246,"src":"Deak_Rivers__fans_005_thumb.jpg","galleries_id":382032,"server_id":15,"link":"photo_7057246.html","width":130,"caption":"","height":195});
															thumbnails[7057247] = clik.newPhoto({"id":7057247,"src":"Deak_Rivers__fans_006_thumb.jpg","galleries_id":382032,"server_id":15,"link":"photo_7057247.html","width":130,"caption":"","height":195});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[465948] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Luton & Dunstable Hospital ","link":"section506223_465948.html","maxRecords":0.0,"photoIDs":[8861301.0,8861304.0,8861306.0,8861375.0,8861376.0,8861377.0,8861379.0,8861383.0,8861386.0,8861388.0,8861392.0,8861396.0,8861399.0,8861404.0,8861407.0],"skipIndex":0,"section_code":"section506223","featured_images":"8861407,8861404,8861399,8861396,8861392,8861388,8861386,8861383,8861379,8861377","id":465948,"singleSection":false});				  						galleries[473625] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Ye Olde Red Lion","link":"section506223_473625.html","maxRecords":0.0,"photoIDs":[8993013.0,8993035.0,8993042.0,8993045.0,8993047.0,8993065.0,8993071.0,8993077.0,8993083.0,8993086.0,8993088.0,8993091.0,8993093.0,8993095.0,8993099.0],"skipIndex":0,"section_code":"section506223","featured_images":"8993099,8993095,8993093,8993091,8993088,8993086,8993083,8993077,8993071,8993065","id":473625,"singleSection":false});				  						galleries[460710] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Porthcawl 2011","link":"section506223_460710.html","maxRecords":0.0,"photoIDs":[8744553.0,8744557.0,8744564.0,8744567.0,8744570.0,8744572.0,8744575.0,8744580.0,8744581.0,8744582.0,8744584.0,8744586.0,8744587.0,8744592.0,8744595.0,8744596.0,8744618.0,8744624.0,8744626.0,8744628.0],"skipIndex":0,"section_code":"section506223","featured_images":"8744628,8744626,8744624,8744618,8744596,8744595,8744592,8744587,8744586,8744584","id":460710,"singleSection":false});				  						galleries[382032] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"The Life Of Elvis Show","link":"section506223_382032.html","maxRecords":0.0,"photoIDs":[7057249.0,7057253.0,7057254.0,7057258.0,7057196.0,7057203.0,7057217.0,7057220.0,7057223.0,7057229.0,7057230.0,7057237.0,7057238.0,7057251.0,7057225.0,7057226.0,7057228.0,7057234.0,7057240.0,7057242.0,7057244.0,7057245.0,7057246.0,7057247.0],"skipIndex":0,"section_code":"section506223","featured_images":"7057258,7057254,7057253,7057251,7057249,7057247,7057246,7057245,7057244,7057242","id":382032,"singleSection":false});				  						galleries[378820] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Tickets & CD's For Sale","link":"gallery_378820.html","maxRecords":0.0,"photoIDs":[7592636.0,7782610.0,8861219.0,9044055.0,6990621.0],"skipIndex":0,"section_code":"gallery","featured_images":"9044055,8861219,7782610,7592636,6990621","id":378820,"singleSection":false});				  						galleries[233579] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Elvis Gallery ","link":"gallery_233579.html","maxRecords":0.0,"photoIDs":[6898965.0,6898967.0,6898971.0,6898975.0,6898977.0,6898968.0,6898969.0,6898970.0,6898972.0,6898973.0,6898976.0,6898978.0,6898979.0,6898980.0,6898981.0,6898983.0,6898985.0],"skipIndex":0,"section_code":"gallery","featured_images":"6898985,6898983,6898981,6898980,6898979,6898978,6898977,6898976,6898975,6898973","id":233579,"singleSection":false});				  						galleries[422189] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Party On The Green - Pitstone","link":"section506223_422189.html","maxRecords":0.0,"photoIDs":[7822075.0,7822077.0,7822080.0,7822084.0,7822087.0,7822095.0,7822098.0,7822149.0,7822150.0,7822151.0],"skipIndex":0,"section_code":"section506223","featured_images":"7822151,7822150,7822149,7822098,7822095,7822087,7822084,7822080,7822077,7822075","id":422189,"singleSection":false});				  						galleries[233578] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Buddy Gallery","link":"gallery_233578.html","maxRecords":0.0,"photoIDs":[6898948.0,6898952.0,6898953.0,4791124.0,4791126.0,4791128.0,6898949.0,6898950.0,6898951.0,6898955.0,6898956.0,6898958.0,6898959.0,6898961.0,6898962.0,6898963.0,6898964.0],"skipIndex":0,"section_code":"gallery","featured_images":"6898964,6898963,6898962,6898961,6898959,6898958,6898956,6898955,6898953,6898952","id":233578,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8744553';
imageSets[3] = '4791128,4791126,4791124';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/nickysharp1/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/nickysharp1/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/nickysharp1/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/nickysharp1/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/nickysharp1/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/nickysharp1/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/nickysharp1/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/nickysharp1/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/nickysharp1/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/nickysharp1/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/nickysharp1/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/nickysharp1/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/nickysharp1/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/nickysharp1/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/nickysharp1/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/nickysharp1/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/nickysharp1/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/nickysharp1/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/nickysharp1/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/nickysharp1/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/nickysharp1/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/nickysharp1/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/nickysharp1/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/nickysharp1/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/nickysharp1/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/nickysharp1/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/nickysharp1/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 = 'Legends Of Rock \'n\' Roll: ' + 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="mail@inspirationalphotography.co.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="mail@inspirationalphotography.co.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;
	}
}

			

