window.thumbnails = {};
thumbnails[7741982] = clik.newPhoto({"link":"photo_7741982.html","caption":"Revellers watch a huge red moon rise above Glastonbury Tor in Somerset, UK as the Earth's sattelite is its closest for years, producing a 'supermoon'","height":86,"id":7741982,"server_id":31,"src":"News-1_thumb.jpg","galleries_id":418574,"width":130});
thumbnails[7742019] = clik.newPhoto({"link":"photo_7742019.html","caption":"A mob attempts to attack the police van containing Christopher Halliwell as it leaves Swindon Mags court with a heavy police prescence","height":86,"id":7742019,"server_id":31,"src":"News-2_thumb.jpg","galleries_id":418574,"width":130});
thumbnails[7742025] = clik.newPhoto({"link":"photo_7742025.html","caption":"Olympic gold medalist Amy Williams arrives back in Bath on an open top bus swamped by the media","height":86,"id":7742025,"server_id":31,"src":"News-3_thumb.jpg","galleries_id":418574,"width":130});
thumbnails[7742028] = clik.newPhoto({"link":"photo_7742028.html","caption":"The Prime Minister David cameron and his wife Samantha pause by the coast path at Daymer Bay beach with the famous Doom Bar in the background on a sunny morning in Cornwall","height":86,"id":7742028,"server_id":31,"src":"News-4_thumb.jpg","galleries_id":418574,"width":130});
thumbnails[7742031] = clik.newPhoto({"link":"photo_7742031.html","caption":"A general view of the hailstones and debris at Ottery St Mary, Devon after freak weather has brought havoc on the town","height":86,"id":7742031,"server_id":31,"src":"News-5_thumb.jpg","galleries_id":418574,"width":130});
thumbnails[7742039] = clik.newPhoto({"link":"photo_7742039.html","caption":"People are restrained by police outside Plymouth magistrates court where Vanessa George, accused on seven serious accounts of child pornography, appeared","height":86,"id":7742039,"server_id":31,"src":"News-6_thumb.jpg","galleries_id":418574,"width":130});
thumbnails[7742042] = clik.newPhoto({"link":"photo_7742042.html","caption":"Vanessa George tries to hide her face as she arrives in a van to Bristol Crown Court, charged with serious child sex offences","height":86,"id":7742042,"server_id":31,"src":"News-7_thumb.jpg","galleries_id":418574,"width":130});
thumbnails[7742045] = clik.newPhoto({"link":"photo_7742045.html","caption":"Pete Doherty is led out of Gloucester Crown Court  by police and marched towards Gloucester police station on the opposite side of the road","height":86,"id":7742045,"server_id":31,"src":"News-8_thumb.jpg","galleries_id":418574,"width":130});
thumbnails[7742059] = clik.newPhoto({"link":"photo_7742059.html","caption":"Millionaire lottery winners go wild with champagne and spray it everywhere after winning a whopping £56 Million","height":86,"id":7742059,"server_id":31,"src":"News-9_thumb.jpg","galleries_id":418574,"width":130});
thumbnails[7742062] = clik.newPhoto({"link":"photo_7742062.html","caption":"Her Royal Highness Duchess of Cornwall shakes hands with a dog in the dog arena on the first day of the Royal Cornwall show, held at the Royal Cornwall Showground, Wadebridge, Cornwall","height":86,"id":7742062,"server_id":31,"src":"News-10_thumb.jpg","galleries_id":418574,"width":130});
thumbnails[7742064] = clik.newPhoto({"link":"photo_7742064.html","caption":"A woman is dragged from the floor by Garda where she was sitting to block the path of a Garda van containing an arrested protester as protesters demonstrate against Tony Blair book signing his memoirs 'A Journey' inside Eason's bookstore on O'Connell Street in Dublin, Ireland","height":86,"id":7742064,"server_id":31,"src":"News-11_thumb.jpg","galleries_id":418574,"width":130});
thumbnails[7742068] = clik.newPhoto({"link":"photo_7742068.html","caption":"Family of mother-to-be Nikitta Grender carry her white coffin from St John's Church, Newport, Wales after her service led by her boyfriend and father","height":86,"id":7742068,"server_id":31,"src":"News-12_thumb.jpg","galleries_id":418574,"width":130});
thumbnails[7739064] = clik.newPhoto({"link":"photo_7739064.html","caption":"Surfers enjoy the last waves of the day against a backdrop more fitting of Hawai than Woolacombe, North Devon on what has been a fantastic sunny weekend in the UK.","height":86,"id":7739064,"server_id":31,"src":"Features-2_thumb.jpg","galleries_id":418580,"width":130});
thumbnails[7739080] = clik.newPhoto({"link":"photo_7739080.html","caption":"Light trails are created inside Salisbury Cathedral, photographed using a long exposure of five minutes, as the  Cathedral's Advent Procession ‘From Darkness to Light’, takes place.  It begins with the Cathedral in total darkness and silence as the single Advent Candle is lit. By the end the whole interior of the magnificent building is bathed in the light of 1300 flickering candles","height":86,"id":7739080,"server_id":31,"src":"Features-3_thumb.jpg","galleries_id":418580,"width":130});
thumbnails[7739095] = clik.newPhoto({"link":"photo_7739095.html","caption":"Two men's legs poke out from beneath a Union flag as they prepere for a plaque unveiling at the launch of the latest Southern Railway West Country Class locomotive No. 34046 named ‘Braunton’ at Lydeard starion near Taunton, Somerset","height":86,"id":7739095,"server_id":31,"src":"Features-4_thumb.jpg","galleries_id":418580,"width":130});
thumbnails[7739101] = clik.newPhoto({"link":"photo_7739101.html","caption":"An aircraft flies past the moon over Somerset, UK as the Earth's satelite is its closest for years, producing a 'supermoon'","height":86,"id":7739101,"server_id":31,"src":"Features-5_thumb.jpg","galleries_id":418580,"width":130});
thumbnails[7739151] = clik.newPhoto({"link":"photo_7739151.html","caption":"Revellers set light to some paper inside the Stone Circle at Stonehenge as Druids and revellers celebrate Winter Solstice","height":86,"id":7739151,"server_id":31,"src":"Features-6_thumb.jpg","galleries_id":418580,"width":130});
thumbnails[7739154] = clik.newPhoto({"link":"photo_7739154.html","caption":"A weathered tree is pictured with the starry night sky over Exmoor Nation Park . Exmoor National Park is home to some of the darkest skies in the country and is bidding to become the UK's first dark sky national park. Exmoor National Park is hosting a weekend 'discovery event' event aimed to attract keen stargazers","height":86,"id":7739154,"server_id":31,"src":"Features-7_thumb.jpg","galleries_id":418580,"width":130});
thumbnails[7739169] = clik.newPhoto({"link":"photo_7739169.html","caption":"An avid England football fan chills out on his front doorstep at his semi-detached house in the Knowle West area of Bristol where he has adorned it with England flags","height":86,"id":7739169,"server_id":31,"src":"Features-8_thumb.jpg","galleries_id":418580,"width":130});
thumbnails[7739179] = clik.newPhoto({"link":"photo_7739179.html","caption":"Two people inside a colourful balloon are silhouetted as the early morning sunlight strikes what is the top of the balloon as the crew prepare to inflate it at the Bristol International Balloon Fiesta, Ashton Court, Bristol","height":86,"id":7739179,"server_id":31,"src":"Features-9_thumb.jpg","galleries_id":418580,"width":130});
thumbnails[7739202] = clik.newPhoto({"link":"photo_7739202.html","caption":"Hot air balloons, which lifted off from the main runway at Bristol International Airport for the first time in the airport's history, fly over the South West bathed in the glorious morning sun","height":86,"id":7739202,"server_id":31,"src":"Features-10_thumb.jpg","galleries_id":418580,"width":130});
thumbnails[7739399] = clik.newPhoto({"link":"photo_7739399.html","caption":"A reveller dances on top of a stone at the stone circle during a magnificent sunset at Glastonbury Festival at Worthy Farm, Somerset","height":195,"id":7739399,"server_id":31,"src":"Features-11_thumb.jpg","galleries_id":418580,"width":130});
thumbnails[7740236] = clik.newPhoto({"link":"photo_7740236.html","caption":"People on ski-doo's admire a halo, also known as a nimbus, icebow or Gloriole, which is an optical phenomenon produced by ice crystals and is produced by ice crystals in cirrus clouds high in the upper troposphere, on the island of Spitsbergen on the Svalbard archipelago in the Arctic circle as the Norwegian islands enter summer 'midnight sun' season","height":86,"id":7740236,"server_id":31,"src":"Features-1_thumb.jpg","galleries_id":418580,"width":130});
thumbnails[7741920] = clik.newPhoto({"link":"photo_7741920.html","caption":"A deer herd at the Ashton Court estate forrage in in temperatures of -4C as Bristol avoids the snow chaos that has gripped other parts of the UK and is blessed in a very prickly hoar frost that has made Bristol and other parts of the South West look like a typical 'winter wonderland' without the problems of snow","height":86,"id":7741920,"server_id":31,"src":"Features-12_thumb.jpg","galleries_id":418580,"width":130});
thumbnails[7849256] = clik.newPhoto({"link":"photo_7849256.html","caption":"The chief mourner leads the funeral cortege through the High Street","height":86,"id":7849256,"server_id":31,"src":"Repatriation-11_thumb.jpg","galleries_id":418604,"width":130});
thumbnails[7849258] = clik.newPhoto({"link":"photo_7849258.html","caption":"People place flowers on top of the hearse's as six fallen soldiers pass through the Wiltshire town","height":86,"id":7849258,"server_id":31,"src":"Repatriation-21_thumb.jpg","galleries_id":418604,"width":130});
thumbnails[7849483] = clik.newPhoto({"link":"photo_7849483.html","caption":"Rain or shine, crowds turn out to pay their respects to the fallen","height":87,"id":7849483,"server_id":31,"src":"Repatriation-31_thumb.jpg","galleries_id":418604,"width":130});
thumbnails[7849174] = clik.newPhoto({"link":"photo_7849174.html","caption":"Friends gather around a hearse and share their grief","height":86,"id":7849174,"server_id":31,"src":"Repatriation-4_thumb.jpg","galleries_id":418604,"width":130});
thumbnails[7849523] = clik.newPhoto({"link":"photo_7849523.html","caption":"The back of a hearse is opened so a tribute can be paid to a Ghurka soldier","height":86,"id":7849523,"server_id":31,"src":"Repatriation-5_thumb.jpg","galleries_id":418604,"width":130});
thumbnails[7849529] = clik.newPhoto({"link":"photo_7849529.html","caption":"A man touches the top of a hearse as people lay flowers","height":86,"id":7849529,"server_id":31,"src":"Repatriation-6_thumb.jpg","galleries_id":418604,"width":130});
thumbnails[7849535] = clik.newPhoto({"link":"photo_7849535.html","caption":"Grief overcomes a woman as she touches the glass side of the hearse","height":86,"id":7849535,"server_id":31,"src":"Repatriation-7_thumb.jpg","galleries_id":418604,"width":130});
thumbnails[7849605] = clik.newPhoto({"link":"photo_7849605.html","caption":"A woman reacts as she clutches a photograph and holds the hearse containing the coffin of a fallen soldier","height":86,"id":7849605,"server_id":31,"src":"Repatriation-8_thumb.jpg","galleries_id":418604,"width":130});
thumbnails[7849647] = clik.newPhoto({"link":"photo_7849647.html","caption":"Grief overcomes family and friends as the cortege moves off the High Street","height":86,"id":7849647,"server_id":31,"src":"Repatriation-9_thumb.jpg","galleries_id":418604,"width":130});
thumbnails[7849651] = clik.newPhoto({"link":"photo_7849651.html","caption":"A young man salutes and pays his respects as a hearse passes by on the High Street","height":86,"id":7849651,"server_id":31,"src":"Repatriation-10_thumb.jpg","galleries_id":418604,"width":130});
thumbnails[7849653] = clik.newPhoto({"link":"photo_7849653.html","caption":"A serving soldier reaches for the back of the hearse as it pulls away on the High Street","height":86,"id":7849653,"server_id":31,"src":"Repatriation-111_thumb.jpg","galleries_id":418604,"width":130});
thumbnails[7849655] = clik.newPhoto({"link":"photo_7849655.html","caption":"Families and friends blow kisses as the hearse slowly moves along the High Street","height":86,"id":7849655,"server_id":31,"src":"Repatriation-12_thumb.jpg","galleries_id":418604,"width":130});
thumbnails[7849763] = clik.newPhoto({"link":"photo_7849763.html","caption":"A sign erected to notify drivers of delays in Wootton Bassett, which is opened on repatriation days","height":86,"id":7849763,"server_id":31,"src":"Repatriation-13_thumb.jpg","galleries_id":418604,"width":130});
thumbnails[7849767] = clik.newPhoto({"link":"photo_7849767.html","caption":"Floral tributes permanently adorn the war memorial on Wootton Bassett High Street","height":86,"id":7849767,"server_id":31,"src":"Repatriation-14_thumb.jpg","galleries_id":418604,"width":130});
thumbnails[7849770] = clik.newPhoto({"link":"photo_7849770.html","caption":"The chief mourner leads a single hearse containing a Union flag draped coffin through the High Street","height":86,"id":7849770,"server_id":31,"src":"Repatriation-15_thumb.jpg","galleries_id":418604,"width":130});
thumbnails[7849772] = clik.newPhoto({"link":"photo_7849772.html","caption":"Police and Prison service dogs also pay their respects to all those which have sacrificed","height":86,"id":7849772,"server_id":31,"src":"Repatriation-16_thumb.jpg","galleries_id":418604,"width":130});
thumbnails[8004895] = clik.newPhoto({"link":"photo_8004895.html","caption":"A soldier hugs a woman as they grieve","height":195,"id":8004895,"server_id":31,"src":"Repatriation-171_thumb.jpg","galleries_id":418604,"width":130});
thumbnails[8004835] = clik.newPhoto({"link":"photo_8004835.html","caption":"Members of the public salute as the hearse drives past in the days when family did not attend to watch the cortege pass","height":86,"id":8004835,"server_id":31,"src":"Repatriation-18_thumb.jpg","galleries_id":418604,"width":130});
thumbnails[8004897] = clik.newPhoto({"link":"photo_8004897.html","caption":"Seven Union flag covered hearses on the High Street of Wootton Bassett","height":86,"id":8004897,"server_id":31,"src":"Repatriation-19_thumb.jpg","galleries_id":418604,"width":130});
thumbnails[8004927] = clik.newPhoto({"link":"photo_8004927.html","caption":"A woman is overcome and reacts beside a Union flag covered coffin inside a hearse","height":195,"id":8004927,"server_id":31,"src":"Repatriation-20_thumb.jpg","galleries_id":418604,"width":130});
thumbnails[8005934] = clik.newPhoto({"link":"photo_8005934.html","caption":"A woman places her hands up and touches the glass side of the hearse","height":86,"id":8005934,"server_id":31,"src":"Repatriation-21_B2D1715C-1E4F-37DC-714F318D352043DF_thumb.jpg","galleries_id":418604,"width":130});
thumbnails[8006004] = clik.newPhoto({"link":"photo_8006004.html","caption":"A man reacts as he looks at the Union flag draped coffin inside the hearse","height":86,"id":8006004,"server_id":31,"src":"Repatriation-22_thumb.jpg","galleries_id":418604,"width":130});
thumbnails[8006010] = clik.newPhoto({"link":"photo_8006010.html","caption":"A woman is overcome and reacts as the hearse approaches and the town falls silent","height":195,"id":8006010,"server_id":31,"src":"Repatriation-23_thumb.jpg","galleries_id":418604,"width":130});
thumbnails[8006012] = clik.newPhoto({"link":"photo_8006012.html","caption":"People continue to pay their respects and kiss the side of the hearses as the move off the High Street","height":86,"id":8006012,"server_id":31,"src":"Repatriation-24_thumb.jpg","galleries_id":418604,"width":130});
thumbnails[8006014] = clik.newPhoto({"link":"photo_8006014.html","caption":"One of the largest repatriations as hundreds line the streets of Wootton Bassett","height":196,"id":8006014,"server_id":31,"src":"Repatriation-25_thumb.jpg","galleries_id":418604,"width":130});
thumbnails[8006264] = clik.newPhoto({"link":"photo_8006264.html","caption":"Many hundreds turn out to pay their respects to five fallen servicemen","height":86,"id":8006264,"server_id":31,"src":"Repatriation-26_thumb.jpg","galleries_id":418604,"width":130});
thumbnails[8006266] = clik.newPhoto({"link":"photo_8006266.html","caption":"Serving soldiers react as the hearses leave Wootton Bassett High Street","height":86,"id":8006266,"server_id":31,"src":"Repatriation-27_thumb.jpg","galleries_id":418604,"width":130});
thumbnails[8006271] = clik.newPhoto({"link":"photo_8006271.html","caption":"The same faces of the Royal British Legion salute and pay their respects","height":86,"id":8006271,"server_id":31,"src":"Repatriation-28_thumb.jpg","galleries_id":418604,"width":130});
thumbnails[8006273] = clik.newPhoto({"link":"photo_8006273.html","caption":"Police, Prison and Military serving dogs sit and watch hearses go by after a dog handler and his animal were killed on operations","height":65,"id":8006273,"server_id":31,"src":"Repatriation-29_thumb.jpg","galleries_id":418604,"width":130});
thumbnails[8006275] = clik.newPhoto({"link":"photo_8006275.html","caption":"People touch the glass as they grieve during the bowed silence at Wootton Bassett","height":86,"id":8006275,"server_id":31,"src":"Repatriation-30_thumb.jpg","galleries_id":418604,"width":130});
thumbnails[8006279] = clik.newPhoto({"link":"photo_8006279.html","caption":"Families hug each other as they grieve on the High Street","height":86,"id":8006279,"server_id":31,"src":"Repatriation-31_B30F593F-1E4F-37DC-71F2E067AEAEEA90_thumb.jpg","galleries_id":418604,"width":130});
thumbnails[8006282] = clik.newPhoto({"link":"photo_8006282.html","caption":"A woman kisses the glass side of the hearse to pay her respects to a loved one","height":86,"id":8006282,"server_id":31,"src":"Repatriation-32_thumb.jpg","galleries_id":418604,"width":130});
thumbnails[8006287] = clik.newPhoto({"link":"photo_8006287.html","caption":"Serving soldiers line the High Street, some with flowers for their fallen colleagues","height":86,"id":8006287,"server_id":31,"src":"Repatriation-33_thumb.jpg","galleries_id":418604,"width":130});
thumbnails[8006291] = clik.newPhoto({"link":"photo_8006291.html","caption":"Red roses and a wreath sit on the galss roof of a hearse as it leaves the High Street of Wootton Bassett","height":86,"id":8006291,"server_id":31,"src":"Repatriation-34_thumb.jpg","galleries_id":418604,"width":130});
thumbnails[8006298] = clik.newPhoto({"link":"photo_8006298.html","caption":"Five Union flag draped coffins roll through the High Street of Wootton bassett","height":87,"id":8006298,"server_id":31,"src":"Repatriation-35_thumb.jpg","galleries_id":418604,"width":130});
thumbnails[8006300] = clik.newPhoto({"link":"photo_8006300.html","caption":"When the hearses have left the High Street all that remains is grief, loss and flowers in the road","height":86,"id":8006300,"server_id":31,"src":"Repatriation-36_thumb.jpg","galleries_id":418604,"width":130});
thumbnails[9114070] = clik.newPhoto({"link":"photo_9114070.html","caption":"","height":172,"id":9114070,"server_id":31,"src":"Weather_Porthcawl_Lighthouse_2011_-_Indi_I_1_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[9114068] = clik.newPhoto({"link":"photo_9114068.html","caption":"","height":166,"id":9114068,"server_id":31,"src":"News_glasto_stargazing_2012_-_Wdp_FRONT_1_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[9114067] = clik.newPhoto({"link":"photo_9114067.html","caption":"","height":174,"id":9114067,"server_id":31,"src":"News_Glasto_Stargazing_2012_-_Metro_1_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[9114066] = clik.newPhoto({"link":"photo_9114066.html","caption":"","height":206,"id":9114066,"server_id":31,"src":"News_Parade_Exeter_2011_-_Telegraph_1_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[9114063] = clik.newPhoto({"link":"photo_9114063.html","caption":"","height":174,"id":9114063,"server_id":31,"src":"News_funeral_military_bath_2011_-_Metro_1_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[9114057] = clik.newPhoto({"link":"photo_9114057.html","caption":"","height":206,"id":9114057,"server_id":31,"src":"Weather_Bath_Spa_2011_-_Telegraph_1_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[9114005] = clik.newPhoto({"link":"photo_9114005.html","caption":"","height":214,"id":9114005,"server_id":31,"src":"NEWS_ROYAL_WOOTTON_BASSETT_-_YORKSHIRE_POST_-_FRONT_1_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[8006631] = clik.newPhoto({"link":"photo_8006631.html","caption":"","height":171,"id":8006631,"server_id":31,"src":"Showbiz_Lilly_Allen_Wedding_2011_-_Mail_on_Sunday_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[8006595] = clik.newPhoto({"link":"photo_8006595.html","caption":"","height":196,"id":8006595,"server_id":31,"src":"NEWS_NICK_CLEGG_2011_-_GUARDIAN_-_FRONT_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[8006566] = clik.newPhoto({"link":"photo_8006566.html","caption":"","height":166,"id":8006566,"server_id":31,"src":"Showbiz_Lilly_Allen_Wedding_2011_-_Express_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[8006510] = clik.newPhoto({"link":"photo_8006510.html","caption":"","height":172,"id":8006510,"server_id":31,"src":"Art_Holbourne_Museum_bath_2011_-_Independent_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[7741265] = clik.newPhoto({"link":"photo_7741265.html","caption":"","height":174,"id":7741265,"server_id":31,"src":"Cuts-52_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[7741268] = clik.newPhoto({"link":"photo_7741268.html","caption":"","height":169,"id":7741268,"server_id":31,"src":"Cuts-51_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[7741335] = clik.newPhoto({"link":"photo_7741335.html","caption":"","height":168,"id":7741335,"server_id":31,"src":"Cuts-30_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[7850866] = clik.newPhoto({"link":"photo_7850866.html","caption":"","height":165,"id":7850866,"server_id":31,"src":"Cuts-2_2314C7D4-24E8-5EC4-4FD465394AD78417_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[7741310] = clik.newPhoto({"link":"photo_7741310.html","caption":"","height":159,"id":7741310,"server_id":31,"src":"Cuts-41_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[7850863] = clik.newPhoto({"link":"photo_7850863.html","caption":"","height":204,"id":7850863,"server_id":31,"src":"Cuts-1_23142421-24E8-5EC4-4FD37216F1166CB5_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[7741270] = clik.newPhoto({"link":"photo_7741270.html","caption":"","height":164,"id":7741270,"server_id":31,"src":"Cuts-50_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[7741298] = clik.newPhoto({"link":"photo_7741298.html","caption":"","height":207,"id":7741298,"server_id":31,"src":"Cuts-47_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[7741327] = clik.newPhoto({"link":"photo_7741327.html","caption":"","height":198,"id":7741327,"server_id":31,"src":"Cuts-33_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[7741320] = clik.newPhoto({"link":"photo_7741320.html","caption":"","height":172,"id":7741320,"server_id":31,"src":"Cuts-37_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[7741470] = clik.newPhoto({"link":"photo_7741470.html","caption":"","height":208,"id":7741470,"server_id":31,"src":"Cuts-25_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[7741564] = clik.newPhoto({"link":"photo_7741564.html","caption":"","height":167,"id":7741564,"server_id":31,"src":"Cuts-21_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[7741735] = clik.newPhoto({"link":"photo_7741735.html","caption":"","height":210,"id":7741735,"server_id":31,"src":"Cuts-9_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[7741321] = clik.newPhoto({"link":"photo_7741321.html","caption":"","height":174,"id":7741321,"server_id":31,"src":"Cuts-36_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[7741314] = clik.newPhoto({"link":"photo_7741314.html","caption":"","height":83,"id":7741314,"server_id":31,"src":"Cuts-39_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[7741339] = clik.newPhoto({"link":"photo_7741339.html","caption":"","height":78,"id":7741339,"server_id":31,"src":"Cuts-27_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[7741666] = clik.newPhoto({"link":"photo_7741666.html","caption":"","height":165,"id":7741666,"server_id":31,"src":"Cuts-16_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[7741303] = clik.newPhoto({"link":"photo_7741303.html","caption":"","height":168,"id":7741303,"server_id":31,"src":"Cuts-45_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[7741728] = clik.newPhoto({"link":"photo_7741728.html","caption":"","height":203,"id":7741728,"server_id":31,"src":"Cuts-13_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[7741326] = clik.newPhoto({"link":"photo_7741326.html","caption":"","height":86,"id":7741326,"server_id":31,"src":"Cuts-34_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[7741317] = clik.newPhoto({"link":"photo_7741317.html","caption":"","height":163,"id":7741317,"server_id":31,"src":"Cuts-38_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[7741297] = clik.newPhoto({"link":"photo_7741297.html","caption":"","height":103,"id":7741297,"server_id":31,"src":"Cuts-48_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[7741587] = clik.newPhoto({"link":"photo_7741587.html","caption":"","height":100,"id":7741587,"server_id":31,"src":"Cuts-20_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[7741734] = clik.newPhoto({"link":"photo_7741734.html","caption":"","height":167,"id":7741734,"server_id":31,"src":"Cuts-10_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[7741732] = clik.newPhoto({"link":"photo_7741732.html","caption":"","height":174,"id":7741732,"server_id":31,"src":"Cuts-11_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[7741294] = clik.newPhoto({"link":"photo_7741294.html","caption":"","height":166,"id":7741294,"server_id":31,"src":"Cuts-49_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[7741308] = clik.newPhoto({"link":"photo_7741308.html","caption":"","height":86,"id":7741308,"server_id":31,"src":"Cuts-43_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[7741336] = clik.newPhoto({"link":"photo_7741336.html","caption":"","height":166,"id":7741336,"server_id":31,"src":"Cuts-29_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[7741311] = clik.newPhoto({"link":"photo_7741311.html","caption":"","height":158,"id":7741311,"server_id":31,"src":"Cuts-40_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[7741300] = clik.newPhoto({"link":"photo_7741300.html","caption":"","height":164,"id":7741300,"server_id":31,"src":"Cuts-46_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[7741323] = clik.newPhoto({"link":"photo_7741323.html","caption":"","height":108,"id":7741323,"server_id":31,"src":"Cuts-35_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[7741533] = clik.newPhoto({"link":"photo_7741533.html","caption":"","height":196,"id":7741533,"server_id":31,"src":"Cuts-23_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[7741338] = clik.newPhoto({"link":"photo_7741338.html","caption":"","height":197,"id":7741338,"server_id":31,"src":"Cuts-28_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[7741304] = clik.newPhoto({"link":"photo_7741304.html","caption":"","height":88,"id":7741304,"server_id":31,"src":"Cuts-44_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[7741330] = clik.newPhoto({"link":"photo_7741330.html","caption":"","height":100,"id":7741330,"server_id":31,"src":"Cuts-32_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[7741731] = clik.newPhoto({"link":"photo_7741731.html","caption":"","height":163,"id":7741731,"server_id":31,"src":"Cuts-12_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[7741499] = clik.newPhoto({"link":"photo_7741499.html","caption":"","height":202,"id":7741499,"server_id":31,"src":"Cuts-24_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[7741747] = clik.newPhoto({"link":"photo_7741747.html","caption":"","height":167,"id":7741747,"server_id":31,"src":"Cuts-2_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[7741331] = clik.newPhoto({"link":"photo_7741331.html","caption":"","height":163,"id":7741331,"server_id":31,"src":"Cuts-31_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[7741611] = clik.newPhoto({"link":"photo_7741611.html","caption":"","height":166,"id":7741611,"server_id":31,"src":"Cuts-19_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[7741445] = clik.newPhoto({"link":"photo_7741445.html","caption":"","height":103,"id":7741445,"server_id":31,"src":"Cuts-26_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[7741557] = clik.newPhoto({"link":"photo_7741557.html","caption":"","height":172,"id":7741557,"server_id":31,"src":"Cuts-22_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[7741686] = clik.newPhoto({"link":"photo_7741686.html","caption":"","height":155,"id":7741686,"server_id":31,"src":"Cuts-15_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[7741658] = clik.newPhoto({"link":"photo_7741658.html","caption":"","height":200,"id":7741658,"server_id":31,"src":"Cuts-17_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[7741635] = clik.newPhoto({"link":"photo_7741635.html","caption":"","height":99,"id":7741635,"server_id":31,"src":"Cuts-18_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[7741723] = clik.newPhoto({"link":"photo_7741723.html","caption":"","height":202,"id":7741723,"server_id":31,"src":"Cuts-14_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[7741738] = clik.newPhoto({"link":"photo_7741738.html","caption":"","height":85,"id":7741738,"server_id":31,"src":"Cuts-8_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[7741740] = clik.newPhoto({"link":"photo_7741740.html","caption":"","height":161,"id":7741740,"server_id":31,"src":"Cuts-7_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[7741746] = clik.newPhoto({"link":"photo_7741746.html","caption":"","height":198,"id":7741746,"server_id":31,"src":"Cuts-3_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[7741741] = clik.newPhoto({"link":"photo_7741741.html","caption":"","height":174,"id":7741741,"server_id":31,"src":"Cuts-6_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[7741750] = clik.newPhoto({"link":"photo_7741750.html","caption":"","height":207,"id":7741750,"server_id":31,"src":"Cuts-1_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[7741743] = clik.newPhoto({"link":"photo_7741743.html","caption":"","height":165,"id":7741743,"server_id":31,"src":"Cuts-5_thumb.jpg","galleries_id":418661,"width":130});
thumbnails[9114052] = clik.newPhoto({"link":"photo_9114052.html","caption":"","height":204,"id":9114052,"server_id":31,"src":"News_Remembrance_2011_-_Telegraph_1_thumb1_1.jpg","galleries_id":418661,"width":130});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
galleries[418580] = clik.newGallery({"photoIDs":[7739064,7739080,7739095,7739101,7739151,7739154,7739169,7739179,7739202,7739399,7740236,7741920],"link":"section501522.html","skipIndex":0,"section_code":"section501522","id":418580,"parentGallery":"","featured_images":"7741920,7740236,7739399,7739202,7739179,7739169,7739154,7739151,7739101,7739095","maxRecords":0,"usePopups":true,"singleSection":true,"title":"Features & Standalone"});galleries[418574] = clik.newGallery({"photoIDs":[7741982,7742019,7742025,7742028,7742031,7742039,7742042,7742045,7742059,7742062,7742064,7742068],"link":"section501521.html","skipIndex":0,"section_code":"section501521","id":418574,"parentGallery":"","featured_images":"7742068,7742064,7742062,7742059,7742045,7742042,7742039,7742031,7742028,7742025","maxRecords":0,"usePopups":true,"singleSection":true,"title":"News"});galleries[418661] = clik.newGallery({"photoIDs":[9114070,9114068,9114067,9114066,9114063,9114057,9114005,8006631,8006595,8006566,8006510,7741265,7741268,7741335,7850866,7741310,7850863,7741270,7741298,7741327,7741320,7741470,7741564,7741735,7741321,7741314,7741339,7741666,7741303,7741728,7741326,7741317,7741297,7741587,7741734,7741732,7741294,7741308,7741336,7741311,7741300,7741323,7741533,7741338,7741304,7741330,7741731,7741499,7741747,7741331,7741611,7741445,7741557,7741686,7741658,7741635,7741723,7741738,7741740,7741746,7741741,7741750,7741743,9114052],"link":"section501538.html","skipIndex":0,"section_code":"section501538","id":418661,"parentGallery":"","featured_images":"9114070,9114068,9114067,9114066,9114063,9114057,9114052,9114005,8006631,8006595","maxRecords":0,"usePopups":true,"singleSection":true,"title":"Newspaper Cuttings"});galleries[418604] = clik.newGallery({"photoIDs":[7849256,7849258,7849483,7849174,7849523,7849529,7849535,7849605,7849647,7849651,7849653,7849655,7849763,7849767,7849770,7849772,8004895,8004835,8004897,8004927,8005934,8006004,8006010,8006012,8006014,8006264,8006266,8006271,8006273,8006275,8006279,8006282,8006287,8006291,8006298,8006300],"link":"section501525.html","skipIndex":0,"section_code":"section501525","id":418604,"parentGallery":"","featured_images":"8006300,8006298,8006291,8006287,8006282,8006279,8006275,8006273,8006271,8006266","maxRecords":0,"usePopups":true,"singleSection":true,"title":"Repatriations"});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[3] = '7741265,7741268,7741270';
imageSets[1] = '7742064,7742045,7742039,7742028,7742019,7741982,7741920,7739202,7739169,7739154,7739101,7739095,7739080,7739064,7849535,7849651,7849655';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/benbb/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/benbb/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/benbb/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/benbb/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/benbb/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/benbb/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/benbb/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/benbb/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/benbb/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/benbb/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/benbb/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/benbb/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/benbb/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/benbb/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/benbb/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/benbb/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/benbb/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/benbb/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/benbb/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/benbb/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/benbb/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/benbb/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/benbb/images';
		break;
	}
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/benbb/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/benbb/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/benbb/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/benbb/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 += 'section501521.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 && 'section501521' != '') {
					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 = 'Ben Birchall - Press Association Photographer: ' + 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> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.item_price !== '') {
					temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" 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="ben@benbirchall.com">';
					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="ben@benbirchall.com">';
				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;
	}
}

		

