function thumbnail(g,e,b,f,d,a,c){this.id=g;this.galleries_id=e;this.caption=b;this.src=getServerPath(c)+"/"+f;this.width=d;this.height=a}function gallery(e,c,d,b,a){this.id=e;this.featured_images=c;this.title=d;this.section_code=b;this.photoIDs=a}var thumbnails=new Object();thumbnails[1236885]=new thumbnail(1236885,"88445","IT Solutions.","Corporate-LS004_thumb.gif",130,88,1);thumbnails[1236887]=new thumbnail(1236887,"88445","Virginia Darrow, CEO Rooftop Morgages.","Corporate-LS008_thumb.gif",130,88,1);thumbnails[1236889]=new thumbnail(1236889,"88445","David Stewart.<br>\r\nCEO Coventry Building Society.","Corporate-LS0091_thumb.gif",130,88,1);thumbnails[1236891]=new thumbnail(1236891,"88445","Intellegent Finance, Edinburgh.","Corporate-LS010_thumb.gif",130,89,1);thumbnails[1236893]=new thumbnail(1236893,"88445","Chemical Site, Annan, Scotland.","Corporate-LS011_thumb.gif",130,89,1);thumbnails[1236894]=new thumbnail(1236894,"88445","Richard Pym.<br>\r\nMD Alliance and Leicester.","Corporate-P002_thumb.gif",130,190,1);thumbnails[1236895]=new thumbnail(1236895,"88445","Dumgoyne Distillery,<br>\r\nNear Glasgow.","Corporate-P004_thumb.gif",130,190,1);thumbnails[1236901]=new thumbnail(1236901,"88445","John G. Goodfellow.<br>\r\nCEO & Director.<br>\r\nSkipton Building Society.","Corporate-P0101_thumb.gif",130,192,1);thumbnails[1236902]=new thumbnail(1236902,"88445","Bank of Scotland,<br>\r\nEdinburgh.","Corporate-P012_thumb.gif",130,192,1);thumbnails[1236909]=new thumbnail(1236909,"88446","Pop band and kids support<br>\r\nThe Prince & Princess of Wales Hospice, Glasgow.","Events-LS001_thumb.gif",130,88,1);thumbnails[1236912]=new thumbnail(1236912,"88446","Rocking the Boat on the Renfrew Ferry <br>\r\nfor the staff of Kwik Fit Financial Services.","Events-LS005_thumb.gif",130,88,1);thumbnails[1236913]=new thumbnail(1236913,"88446","Chef Nick Nairn and TV Presenter Carol Smillie<br>\r\ntry out new products from Baxters Soups.","Events-LS006_thumb.gif",130,88,1);thumbnails[1236915]=new thumbnail(1236915,"88446","Barry McQuigan entertains at The Glasgow Hilton<br>\r\nfor the Prince and Princess of Wales Hospice <br>\r\nsportsmans dinner.","Events-LS008_thumb.gif",130,88,1);thumbnails[1236916]=new thumbnail(1236916,"88446","Terry Venables, ex England manager entertains at The Glasgow Hilton for the Prince and Princess of Wales Hospice sportsmans dinner.","Events-LS009_thumb.gif",130,88,1);thumbnails[1236919]=new thumbnail(1236919,"88446","Graeme Souness (L) of Rangers and Liverpool FC's and Peter Schmeichel (R) of Manchester United at Prince and Princess of Wales Hospice Sportsmans Dinner, The Glasgow Hilton. ","Events-LS011_thumb.gif",130,88,1);thumbnails[1236920]=new thumbnail(1236920,"88446","TV personality Loraine Kelly gets into the<br>\r\nmood at the Lollypop Awards.","Events-LS012_thumb.gif",130,88,1);thumbnails[1236921]=new thumbnail(1236921,"88446","Peter Schmeichel ex Manchester United at Prince and Princess of Wales Hospice Sportsmans Dinner, The Glasgow Hilton.","Events-P007_thumb.gif",130,192,1);thumbnails[1236925]=new thumbnail(1236925,"88446","Leggy person at a Fun Day.","Events-P008_thumb.gif",130,192,1);thumbnails[1236929]=new thumbnail(1236929,"88453","","Kids-LS001_thumb.gif",130,88,1);thumbnails[1236930]=new thumbnail(1236930,"88453","","Kids-LS005_thumb.gif",130,88,1);thumbnails[1236932]=new thumbnail(1236932,"88453","","Kids-LS006_thumb.gif",130,88,1);thumbnails[1236933]=new thumbnail(1236933,"88453","","Kids-LS007_thumb.gif",130,88,1);thumbnails[1236934]=new thumbnail(1236934,"88453","","Kids-LS008_thumb.gif",130,88,1);thumbnails[1236935]=new thumbnail(1236935,"88453","","Kids-LS009_thumb.gif",130,88,1);thumbnails[1236939]=new thumbnail(1236939,"88453","","Kids-LS010_thumb.gif",130,88,1);thumbnails[1236940]=new thumbnail(1236940,"88453","","Kids-LS011_thumb.gif",130,88,1);thumbnails[1236944]=new thumbnail(1236944,"88452","","Kids-P002_thumb.gif",130,192,1);thumbnails[1236945]=new thumbnail(1236945,"88452","","Kids-P006_thumb.gif",130,192,1);thumbnails[1236946]=new thumbnail(1236946,"88452","","Kids-P010_thumb.gif",130,192,1);thumbnails[1236947]=new thumbnail(1236947,"88452","","Kids-P019_thumb.gif",130,192,1);thumbnails[1236948]=new thumbnail(1236948,"88452","","Kids-P029_thumb.gif",130,192,1);thumbnails[1236950]=new thumbnail(1236950,"88452","","Kids-P032_thumb.gif",130,192,1);thumbnails[1236951]=new thumbnail(1236951,"88452","","Kids-P033_thumb.gif",130,192,1);thumbnails[1236952]=new thumbnail(1236952,"88452","","Kids-P034_thumb.gif",130,192,1);thumbnails[1236953]=new thumbnail(1236953,"88452","","Kids-P035_thumb.gif",130,192,1);thumbnails[1236957]=new thumbnail(1236957,"88454","","Kids-SD-LS001_thumb.gif",130,88,1);thumbnails[1236958]=new thumbnail(1236958,"88454","","Kids-SD-LS002_thumb.gif",130,88,1);thumbnails[1236959]=new thumbnail(1236959,"88454","","Kids-SD-P001_thumb.gif",130,192,1);thumbnails[1236960]=new thumbnail(1236960,"88454","","Kids-SD-P002_thumb.gif",130,192,1);thumbnails[1236961]=new thumbnail(1236961,"88454","","Kids-SD-P003_thumb.gif",130,192,1);thumbnails[1236962]=new thumbnail(1236962,"88454","","Kids-SD-P006_thumb.gif",130,192,1);thumbnails[1236963]=new thumbnail(1236963,"88454","","Kids-SD-P007_thumb.gif",130,192,1);thumbnails[1236965]=new thumbnail(1236965,"88454","","Kids-SD-P004_thumb.gif",130,192,1);thumbnails[1236967]=new thumbnail(1236967,"88451","Old Mine Workings, Kelly Brae, Cornwall.","Location-LS002_thumb.gif",130,88,1);thumbnails[1236968]=new thumbnail(1236968,"88451","Shore line sheds, Lochgair, Loch Fynne, Argyll, Scotland.","Location-LS003_thumb.gif",130,88,1);thumbnails[1236969]=new thumbnail(1236969,"88451","The Acland family chaple on The National Trusts Killerton Estate, Devon.","Location-LS004_thumb.gif",130,88,1);thumbnails[1236970]=new thumbnail(1236970,"88451","Outboard. Lochgair, Argyll, Scotland.","Location-P002_thumb.gif",130,192,1);thumbnails[1236971]=new thumbnail(1236971,"88451","The Burn, Loch Awe, Argyll, Scotland.","Location-P006_thumb.gif",130,192,1);thumbnails[1236972]=new thumbnail(1236972,"88451","The 'New' bridge at Bellever, Dartmoor.","Location-P007_thumb.gif",130,190,1);thumbnails[1236973]=new thumbnail(1236973,"88451","Beached in Argyll, Scotland.","Location-LS010_thumb.jpg",130,88,1);thumbnails[1236974]=new thumbnail(1236974,"88451","Snow Joke, Sheep on the hill, Trossachs, Scotland.","Location-P005_thumb.jpg",130,192,1);thumbnails[1236980]=new thumbnail(1236980,"88451","A mystery, the Men-An-Tol stones near  St Just, West Cornwall.","Location-LS0011_thumb.gif",130,88,1);thumbnails[1236984]=new thumbnail(1236984,"88449","Shopping, Country Style.","News-Feature-LS011_thumb.gif",130,88,1);thumbnails[1236985]=new thumbnail(1236985,"88449","Countryside Alliance supports Tavistocks fight againt rural Post Office closure.","News-Feature-LS017_thumb.gif",130,88,1);thumbnails[1236987]=new thumbnail(1236987,"88449","All the fun of the fair, and under cover at Dingles Steam Village, Lifton, Devon.","News-Feature-LS0221_thumb.gif",130,88,1);thumbnails[1236988]=new thumbnail(1236988,"88449","A dying breed, hill farmer on Dartmoor.","News-Feature-LS024_thumb.gif",130,88,1);thumbnails[1236990]=new thumbnail(1236990,"88449","Where theres muck, theres money. Large scale composting in Devon.","News-Feature-LS025_thumb.gif",130,88,1);thumbnails[1236991]=new thumbnail(1236991,"88449","The grounded Napoli from Sidmouth.","News-Feature-LS035_thumb.gif",130,88,1);thumbnails[1236992]=new thumbnail(1236992,"88449","Artist Sarah Adams pictured at her Padstow gallery.","News-Feature-P003_thumb.gif",130,192,1);thumbnails[1236994]=new thumbnail(1236994,"88449","The National Trusts Head Gardener at Lanhydrock, Tommy Teagle, checks out the blooms.","News-Feature-P0091_thumb.gif",130,192,1);thumbnails[1236995]=new thumbnail(1236995,"88449","Making a Splash. The RNLI launch at The Lizard, Cornwall.","News-Feature-P017_thumb.gif",130,192,1);thumbnails[1236999]=new thumbnail(1236999,"88455","People in their homes. Photographed for The Herald Homes Magazine, throughout Scotland.","Portrait-P001_thumb.gif",130,190,1);thumbnails[1237002]=new thumbnail(1237002,"88455","People in their homes. Photographed for The Herald Homes Magazine, throughout Scotland.","Portrait-P004_thumb.gif",130,190,1);thumbnails[1237003]=new thumbnail(1237003,"88455","People in their homes. Photographed for The Evening Times Saturday Magazine, Glasgow.","Portrait-P011_thumb.gif",130,190,1);thumbnails[1237006]=new thumbnail(1237006,"88455","People in their homes.  Photographed for The Evening Times Saturday Magazine, Glasgow.","Portrait-P0121_thumb.gif",130,190,1);thumbnails[1237009]=new thumbnail(1237009,"88455","Surfing Instructor, Bellhaven Bay, Dunbar.","Portraits-LS001_thumb.gif",130,89,1);thumbnails[1237013]=new thumbnail(1237013,"88455","People in their homes. Photographed for The Herald Homes Magazine, throughout Scotland.","Portraits-LS003_thumb.gif",130,89,1);thumbnails[1237015]=new thumbnail(1237015,"88455","Andrea.","Portraits-LS005_thumb.gif",130,88,1);thumbnails[1237017]=new thumbnail(1237017,"88455","Taking it easy.","Portraits-LS006_thumb.gif",130,89,1);thumbnails[1237018]=new thumbnail(1237018,"88455","Kelly takes it easy with pooch Angel.","Portraits-LS008_thumb.gif",130,89,1);thumbnails[1237022]=new thumbnail(1237022,"88447","","Public-Relations-LS001_thumb.gif",130,88,1);thumbnails[1237024]=new thumbnail(1237024,"88447","","Public-Relations-LS006_thumb.gif",130,88,1);thumbnails[1237026]=new thumbnail(1237026,"88447","","Public-Relations-LS007_thumb.gif",130,88,1);thumbnails[1237027]=new thumbnail(1237027,"88447","","Public-Relations-LS008_thumb.gif",130,88,1);thumbnails[1237028]=new thumbnail(1237028,"88447","","Public-Relations-LS010_thumb.gif",130,88,1);thumbnails[1237030]=new thumbnail(1237030,"88447","","Public-Relations-LS011_thumb.gif",130,88,1);thumbnails[1237031]=new thumbnail(1237031,"88447","","Public-Relations-LS012_thumb.gif",130,88,1);thumbnails[1237032]=new thumbnail(1237032,"88447","","Public-Relations-P007_thumb.gif",130,192,1);thumbnails[1237033]=new thumbnail(1237033,"88447","","Public-Relations-P008_thumb.gif",130,192,1);thumbnails[1237034]=new thumbnail(1237034,"88448","","Sport-LS001_thumb.gif",130,88,1);thumbnails[1237036]=new thumbnail(1237036,"88448","","Sport-LS003_thumb.gif",130,88,1);thumbnails[1237037]=new thumbnail(1237037,"88448","","Sport-LS005_thumb.gif",130,88,1);thumbnails[1237038]=new thumbnail(1237038,"88448","","Sport-LS006_thumb.gif",130,88,1);thumbnails[1237039]=new thumbnail(1237039,"88448","","Sport-LS008_thumb.gif",130,88,1);thumbnails[1237040]=new thumbnail(1237040,"88448","","Sport-LS009_thumb.gif",130,88,1);thumbnails[1237041]=new thumbnail(1237041,"88448","","Sport-LS010_thumb.gif",130,88,1);thumbnails[1237042]=new thumbnail(1237042,"88448","","Sport-LS011_thumb.gif",130,88,1);thumbnails[1237043]=new thumbnail(1237043,"88448","","Sport-LS012_thumb.gif",130,88,1);thumbnails[1237050]=new thumbnail(1237050,"88450","","Wedding-LS001_thumb.gif",130,88,1);thumbnails[1237051]=new thumbnail(1237051,"88450","","Wedding-LS003_thumb.gif",130,88,1);thumbnails[1237052]=new thumbnail(1237052,"88450","","Wedding-LS004_thumb.gif",130,88,1);thumbnails[1237053]=new thumbnail(1237053,"88450","","Wedding-P003_thumb.gif",130,190,1);thumbnails[1237054]=new thumbnail(1237054,"88450","","Wedding-P006_thumb.gif",130,192,1);thumbnails[1237055]=new thumbnail(1237055,"88450","","Wedding-P008_thumb.gif",130,192,1);thumbnails[1237056]=new thumbnail(1237056,"88450","","Wedding-P010_thumb.gif",130,192,1);thumbnails[1237057]=new thumbnail(1237057,"88450","","Wedding-P011_thumb.gif",130,192,1);thumbnails[1237059]=new thumbnail(1237059,"88450","","Wedding-P004_thumb.gif",130,190,1);thumbnails[5248670]=new thumbnail(5248670,"88449","Tree planting above Loch Katrine in Rob Roy country","Carbon_thumb.jpg",130,89,1);thumbnails[5248676]=new thumbnail(5248676,"88448","Windsurfers on River Exe, Devon.","Exe_thumb.jpg",130,89,1);thumbnails[5248683]=new thumbnail(5248683,"88451","The falls at Hook of Fintry, Scotland","Falls_thumb.jpg",130,89,1);thumbnails[5248810]=new thumbnail(5248810,"88451","Storm brewing over Islay","Storm_thumb.jpg",130,89,1);thumbnails[5248816]=new thumbnail(5248816,"88451","A quiet moment over Loch Sween","Sunset_thumb.jpg",130,190,1);thumbnails[6312016]=new thumbnail(6312016,"295334","New Keeper Danny Potter.","Torquay-United-_thumb.jpg",130,191,1);thumbnails[6312018]=new thumbnail(6312018,"295334","New Keeper Danny Potter.","Torquay-United-PR001_thumb.jpg",130,191,1);thumbnails[6312019]=new thumbnail(6312019,"295334","New signing Billy Kee.","Torquay-United-PR002_thumb.jpg",130,191,1);thumbnails[6312021]=new thumbnail(6312021,"295334","New signing Lloyd MacLin.","Torquay-United-PR003_thumb.jpg",130,191,1);thumbnails[6312022]=new thumbnail(6312022,"295334","New signing Billy Kee.","Torquay-United-PR004_thumb.jpg",130,191,1);thumbnails[6312023]=new thumbnail(6312023,"295334","New signing Lloyd MacLin.","Torquay-United-PR005_thumb.jpg",130,191,1);thumbnails[6312024]=new thumbnail(6312024,"295334","Keeper Danny Potter (right).","Torquay-United-PR006_thumb.jpg",130,88,1);thumbnails[6312025]=new thumbnail(6312025,"295334","Torquay United on their first training session on their new grounds at the former Seale Hayne college, Newton Abbot.","Torquay-United-PR007_thumb.jpg",130,191,1);thumbnails[6312027]=new thumbnail(6312027,"295334","New Keeper Danny Potter (left).","Torquay-United-PR008_thumb.jpg",130,88,1);thumbnails[6312028]=new thumbnail(6312028,"295334","New signing Lloyd MacLin.","Torquay-United-PR009_thumb.jpg",130,191,1);thumbnails[6312029]=new thumbnail(6312029,"295334","Paul Buckle with new signings Lloyd MacLin, Danny Potter and Billy Kee.","Torquay-United-PR010_thumb.jpg",130,191,1);thumbnails[6312033]=new thumbnail(6312033,"295334","New Keeper Danny Potter.","Torquay-United-PR011_thumb.jpg",130,191,1);thumbnails[6312035]=new thumbnail(6312035,"295334","New signing Billy Kee.","Torquay-United-PR012_thumb.jpg",130,191,1);thumbnails[6312037]=new thumbnail(6312037,"295334","New signing Lloyd MacLin.","Torquay-United-PR013_thumb.jpg",130,191,1);thumbnails[6312038]=new thumbnail(6312038,"295334","Paul Buckle with new signings Lloyd MacLin, Danny Potter and Billy Kee.","Torquay-United-PR014_thumb.jpg",130,88,1);thumbnails[6312040]=new thumbnail(6312040,"295334","Torquay United on their first training session on their new grounds at the former Seale Hayne college, Newton Abbot.","Torquay-United-PR015_thumb.jpg",130,88,1);thumbnails[6312041]=new thumbnail(6312041,"295334","Torquay United on their first training session on their new grounds at the former Seale Hayne college, Newton Abbot.","Torquay-United-PR016_thumb.jpg",130,191,1);thumbnails[6312042]=new thumbnail(6312042,"295334","New signing Billy Kee.","Torquay-United-PR017_thumb.jpg",130,191,1);thumbnails[1236870]=new thumbnail(1236870,"88444","Jasper, Looking at You.","Frosty-Jasper002_thumb.gif",130,88,1);thumbnails[1236871]=new thumbnail(1236871,"88444","Cormorants on the River Clyde, Glasgow.","Animal-Magic-Cormorants_thumb.gif",130,190,1);thumbnails[1236872]=new thumbnail(1236872,"88444","Bulldog Bliss.","Bulldog-Pups005_thumb.gif",130,88,1);thumbnails[1236874]=new thumbnail(1236874,"88444","Big Calf.","Heavy-Weight-Calf001_thumb.gif",130,88,1);thumbnails[1236877]=new thumbnail(1236877,"88444","Eye to Eye.","Horses-Eye002_thumb.gif",130,192,1);thumbnails[1236878]=new thumbnail(1236878,"88444","Jasper, small dog, big collar.","Jasper-&-Kelly006_thumb.gif",130,192,1);thumbnails[1236879]=new thumbnail(1236879,"88444","Piggin Heaven.","Little-Piglets023_thumb.gif",130,61,1);thumbnails[1236880]=new thumbnail(1236880,"88444","Resting Tiger.<br>\r\nEyeing up his next meal? Me!","Sparkwell-Wildlife-Park008_thumb.gif",130,192,1);thumbnails[1236881]=new thumbnail(1236881,"88444","Winter Feeding.","Weather-Sheep-in-Snow003_thumb.gif",130,88,1);thumbnails[5248674]=new thumbnail(5248674,"88444","Side Stepping Dunlin","Dunlin_thumb.jpg",130,89,1);thumbnails[5248687]=new thumbnail(5248687,"88444","Grey Squirrel, heres looking at you","Grey_thumb.jpg",130,190,1);thumbnails[5248713]=new thumbnail(5248713,"88444","Simply Red","Red_thumb.jpg",130,89,1);thumbnails[5248796]=new thumbnail(5248796,"88444","Roaring Red","stag_thumb.jpg",130,89,1);var galleries=new Object();galleries[88445]=new gallery(88445,"1236902,1236901,1236895,1236894,1236893,1236891,1236889,1236887,1236885","Corporate","gallery",[1236885,1236887,1236889,1236891,1236893,1236894,1236895,1236901,1236902]);galleries[88455]=new gallery(88455,"1237018,1237017,1237015,1237013,1237009,1237006,1237003,1237002,1236999","Environmental Portraiture","gallery",[1236999,1237002,1237003,1237006,1237009,1237013,1237015,1237017,1237018]);galleries[88446]=new gallery(88446,"1236925,1236921,1236920,1236919,1236916,1236915,1236913,1236912,1236909","Events","gallery",[1236909,1236912,1236913,1236915,1236916,1236919,1236920,1236921,1236925]);galleries[88449]=new gallery(88449,"5248670,1236995,1236994,1236992,1236991,1236990,1236988,1236987,1236985,1236984","Features","gallery",[1236984,1236985,1236987,1236988,1236990,1236991,1236992,1236994,1236995,5248670]);galleries[88454]=new gallery(88454,"1236965,1236963,1236962,1236961,1236960,1236959,1236958,1236957","Kids - Something Different!","gallery",[1236957,1236958,1236959,1236960,1236961,1236962,1236963,1236965]);galleries[88453]=new gallery(88453,"1236940,1236939","Kids Landscape","gallery",[1236929,1236930,1236932,1236933,1236934,1236935,1236939,1236940]);galleries[88452]=new gallery(88452,"1236953,1236952,1236951,1236950,1236948,1236947,1236946,1236945,1236944","Kids Portraits","gallery",[1236944,1236945,1236946,1236947,1236948,1236950,1236951,1236952,1236953]);galleries[88451]=new gallery(88451,"5248816,5248810,5248683,1236980,1236974,1236973,1236972,1236971,1236970,1236969,1236968,1236967","Locations","gallery",[1236967,1236968,1236969,1236970,1236971,1236972,1236973,1236974,1236980,5248683,5248810,5248816]);galleries[88447]=new gallery(88447,"1237033,1237032,1237031,1237028,1237026,1237024","Public Relations","gallery",[1237022,1237024,1237026,1237027,1237028,1237030,1237031,1237032,1237033]);galleries[88448]=new gallery(88448,"5248676,1237043,1237042,1237041,1237040,1237039,1237038,1237037,1237036,1237034","Sport","gallery",[1237034,1237036,1237037,1237038,1237039,1237040,1237041,1237042,1237043,5248676]);galleries[295334]=new gallery(295334,"6312042,6312041,6312040,6312038,6312037,6312033,6312029,6312028,6312027,6312025,6312024,6312023,6312022,6312021,6312019,6312018,6312016","Torquay United","gallery",[6312016,6312018,6312019,6312021,6312022,6312023,6312024,6312025,6312027,6312028,6312029,6312033,6312035,6312037,6312038,6312040,6312041,6312042]);galleries[88450]=new gallery(88450,"1237059,1237057,1237056,1237055,1237054,1237053,1237052,1237051,1237050","Weddings","gallery",[1237050,1237051,1237052,1237053,1237054,1237055,1237056,1237057,1237059]);galleries[88444]=new gallery(88444,"5248796,5248713,5248687,5248674","Animals","gallery",[1236870,1236871,1236872,1236874,1236877,1236878,1236879,1236880,1236881,5248674,5248687,5248713,5248796]);var imageSets=new Object();imageSets[1]="6312042,6312041,6312040,6312038,6312037,6312033,6312029,6312028,6312027,6312025,6312024,6312023,6312022,6312021,6312019,6312018,6312016,5248816,5248810,5248796,5248713,5248687,5248683,5248676,5248674,5248670,1237059,1237057,1237056,1237055,1237054,1237053,1237052,1237051,1237050,1237043,1237042,1237041,1237040,1237039,1237038,1237037,1237036,1237034,1237033,1237032,1237031,1237030,1237028,1237027,1237026,1237024,1237022,1237018,1237017,1237015,1237013,1237009,1237006,1237003,1237002,1236999,1236995,1236994,1236992,1236991,1236990,1236988,1236987,1236985,1236984,1236980,1236974,1236973,1236972,1236971,1236970,1236969,1236968,1236967,1236965,1236963,1236962,1236961,1236960,1236959,1236958,1236957,1236953,1236952,1236951,1236950,1236948,1236947,1236946,1236945,1236944,1236940,1236939";imageSets[2]="6312042,6312041,6312040,6312038,6312037,6312033,6312029,6312028,6312027,6312025,6312024,6312023,6312022,6312021,6312019,6312018,6312016,5248816,5248810,5248796,5248713,5248687,5248683,5248676,5248674,5248670,1237059,1237057,1237056,1237055,1237054,1237053,1237052,1237051,1237050,1237043,1237042,1237041,1237040,1237039,1237038,1237037,1237036,1237034,1237033,1237032,1237031,1237028,1237026,1237024,1237018,1237017,1237015,1237013,1237009,1237006,1237003,1237002,1236999,1236995,1236994,1236992,1236991,1236990,1236988,1236987,1236985,1236984,1236980,1236974,1236973,1236972,1236971,1236970,1236969,1236968,1236967,1236965,1236963,1236962,1236961,1236960,1236959,1236958,1236957,1236953,1236952,1236951,1236950,1236948,1236947,1236946,1236945,1236944,1236940,1236939";imageSets[3]="6312042,6312041,6312040,6312038,6312037,6312033,6312029,6312028,6312027,6312025,6312024,6312023,6312022,6312021,6312019,6312018,6312016,5248816,5248810,5248796,5248713,5248687,5248683,5248676,5248674,5248670,1237059,1237057,1237056,1237055,1237054,1237053,1237052,1237051,1237050,1237043,1237042,1237041,1237040,1237039,1237038,1237037,1237036,1237034,1237033,1237032,1237031,1237028,1237026,1237024,1237018,1237017,1237015,1237013,1237009,1237006,1237003,1237002,1236999,1236995,1236994,1236992,1236991,1236990,1236988,1236987,1236985,1236984,1236980,1236974,1236973,1236972,1236971,1236970,1236969,1236968,1236967,1236965,1236963,1236962,1236961,1236960,1236959,1236958,1236957,1236953,1236952,1236951,1236950,1236948,1236947,1236946,1236945,1236944,1236940,1236939";function randomListVal(a){arrayVals=a.split(",");if(arrayVals.length){pos=Math.round(Math.random()*(arrayVals.length-1));val=arrayVals[pos]}else{val=0}return val}function getServerPath(a){var b=-1;switch(a){case 21:b="http://www6.clikpic.com/LighthouseImages/images";break}switch(a){case 1:b="http://www1.clikpic.com/LighthouseImages/images";break}switch(a){case 2:b="http://admin.clikpic.com/LighthouseImages/images";break}switch(a){case 24:b="http://tpc15/clikpic/LighthouseImages/images";break}switch(a){case 4:b="http://www.clikchurch.com/LighthouseImages/images";break}switch(a){case 5:b="http://www2.clikpic.com/LighthouseImages/images";break}switch(a){case 22:b="http://tpc5/clikpic/LighthouseImages/images";break}switch(a){case 23:b="http://tpc10/clikpic/LighthouseImages/images";break}switch(a){case 25:b="http://tpc16/clikpic/LighthouseImages/images";break}switch(a){case 15:b="http://www3.clikpic.com/LighthouseImages/images";break}switch(a){case 18:b="http://www4.clikpic.com/LighthouseImages/images";break}switch(a){case 19:b="http://www5.clikpic.com/LighthouseImages/images";break}switch(a){case 31:b="http://www7.clikpic.com/LighthouseImages/images";break}switch(a){case 32:b="http://admin2.clikpic.com/LighthouseImages/images";break}switch(a){case 33:b="http://www8.clikpic.com/LighthouseImages/images";break}switch(a){case 34:b="http://www9.clikpic.com/LighthouseImages/images";break}switch(a){case 35:b="http://admin3.clikpic.com/LighthouseImages/images";break}switch(a){case 37:b="http://admin4.clikpic.com/LighthouseImages/images";break}return b}function showHomeImage(a){imageID=randomListVal("");if(!basic){a.src=photos[imageID].src;a.width=photos[imageID].width;a.height=photos[imageID].height}else{newImage=new Image(photos[imageID].width,photos[imageID].height);newImage.src=photos[imageID].src;document.images[a.name]=newImage}}function showHomeImageInline(){html="";imageID=randomListVal(imageSets[1]);if("gallery"!=""){if(backgrounds[imageID].galleries_id!=""){html+='<a href="'+backgrounds[imageID].section_code+"_"+backgrounds[imageID].galleries_id+'.html">'}else{html+='<a href="gallery.html">'}}html+='<img src="'+backgrounds[imageID].src+'" width="'+backgrounds[imageID].width+'" height="'+backgrounds[imageID].height+'" class="mainhomepageimage photo" id="mainSample" name="mainSample" alt="'+escape(backgrounds[imageID].caption)+'" border="0">';if("gallery"!=""){html+="</a>"}$("#homepageimage").html(html)}function getNextId(b,d,a){var c=getArrayPos(d,b);if(a){if(c==0){nextImgPos=d.length-1}else{nextImgPos=c-1}}else{if(c==d.length-1){nextImgPos=0}else{nextImgPos=c+1}}nextImg=d[nextImgPos];return nextImg}function next(d,b){var c=d.value;var a=galleries[photos[c].galleries_id].photoIDs;nextImg=getNextId(c,a);if(nextImg!=-1){updateImage(nextImg,d,b)}}function updateImage(f,e,b){if(!basic){document.getElementById("imagePhoto").innerHTML='<img class="mainphoto photo" src="'+photos[f].src+' " id="mainPic" name="mainPic" width="'+photos[f].width+'" height="'+photos[f].height+'" alt="'+photos[f].caption+'">';e.value=photos[f].id;$("#imageTitle").html(photos[f].caption);document.title="Lighthouse Images with Photography by Phil Rider: "+photos[f].caption;if(photos[f].caption==""){document.getElementById("imageTitle").style.display="none"}else{document.getElementById("imageTitle").style.display="block"}var a=fnGetImageDetails(f);if(a==""){document.getElementById("imageDetails").style.display="none";var c=document.getElementById("infoWrap");var d=document.getElementById("photoInfo");if(photos[f].caption==""){if(c!=null){c.className="empty"}if(d!=null){d.className="empty"}}else{if(c!=null){c.className="noinfo"}if(d!=null){d.className="noinfo"}}}else{document.getElementById("imageDetails").style.display="block";var c=document.getElementById("infoWrap");if(c!=null){c.className="normal"}var d=document.getElementById("photoInfo");if(d!=null){d.className="normal"}}document.getElementById("imageDetails").innerHTML=a;toggleAddToCartConfirm()}else{window.location="photo_"+photos[f].id+".html"}}function toggleAddToCartConfirm(){if($("#paymentConfirm").size()){$("#paymentConfirm").hide();$("#paymentAddButton").unbind().click(function(){form=document.getElementById("paymentForm");option_id=0;if(form.item_option.value){option_id=form.item_option.value}if(addItemToBasket(form.item_number.value,photos,form.site.value,parseInt(form.quantity.value,10),option_id)){if($.browser.msie){$("#paymentConfirm").text("Item added to cart").show()}else{$("#paymentConfirm").text("Item added to cart").fadeIn()}}else{$("#paymentConfirm").text("Item not added - check cookies are enabled in your browser.").fadeIn()}})}}function fnGetImageDetails(b){var a="";if(photos[b].description!=""){a=a+'<p id="imageDescription">'+photos[b].description+"</p>"}if(photos[b].photo_ref!=""){a=a+'<p class="imageinfo" id="imageRef"><strong>Ref: </strong>'+photos[b].photo_ref+"</p>"}if(photos[b].takendate!=""){a=a+'<p class="imageinfo" id="imageDate"><strong>Date: </strong>'+photos[b].takendate+"</p>"}if(photos[b].location!=""){a=a+'<p class="imageinfo" id="imageLocation"><strong>Location: </strong>'+photos[b].location+"</p>"}if(photos[b].photographer!=""){a=a+'<p class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>'+photos[b].photographer+"</p>"}if(a!=""){a=a+'<div class="spacer"></div>'}return a}function fnGetPaymentInfo(c){var b="";if(c.item_price!==""){b=b+"<p>Order this print:</p>";b=b+'<p class="imageinfo" id="imagePrice"><strong>'+c.purchase_instruction+"</strong> 							"+(c.item_price).toFixed(2)+"</p>";var e=c.purchase_instruction;var d=(c.item_price).toFixed(2);var a=0}else{if(c.payment_groups_id!==""){b=b+"<p>Buy this print online:</p>";b=b+'<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';b=b+'<select class="paymentlink" name="payment_options_id" onchange="updateItemValues(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';b=b+getPaymentOptions(c.payment_groups_id);b=b+"</select>";b=b+"</form>";var a=paymentGroups[c.payment_groups_id].options[0];if(paymentOptions[a]){var e=paymentOptions[a].payment_option;var d=paymentOptions[a].price}}else{}}if(c.item_price!==""||c.payment_groups_id!==""){b=b+'<div class="clearing">&nbsp;</div>'}return b}function previous(d,b){var c=d.value;var a=galleries[photos[c].galleries_id].photoIDs;nextImg=getNextId(c,a,1);if(nextImg!=-1){updateImage(nextImg,d,b)}}function showGalleryImage(c,b){imageID=randomListVal(galleries[c].featured_images);if(imageID!=0){b.src=thumbnails[imageID].src;b.width=thumbnails[imageID].width;b.height=thumbnails[imageID].height;if(b.width<130){var f=$("img#gallery"+c);f.parents(".thumbWrap").width(b.width);var a=f.siblings("h3").size()==1?f.siblings("h3"):f.parent(".thumbWrap").siblings("h3");var g=parseInt(a.css("padding-left"))+parseInt(a.css("padding-right"));var d=parseInt(a.css("border-left-width"))+parseInt(a.css("border-right-width"));var e=parseInt(f.parents(".thumbWrap").css("border-left-width"))+parseInt(f.parents(".thumbWrap").css("border-right-width"));a.width(f.outerWidth(true)-g-d+e)}}}function showGalleries(a){if(!basic){temp="";for(i=0;i<galleries.length;i++){if(galleries[i].id!=a){if(temp!=""){temp=temp+" | "}temp=temp+'<a href="gallery_'+galleries[i].id+'.html">'+galleries[i].title+"</a>"}}document.all.galleryLinks.innerHTML="Other galleries: "+temp}}function resizePhotoInfo(n){var b=$.extend({centre:false},n||{});var d=3;$("div#photoPanelOuter").height("auto");$("div#infoWrap").width(200);$("div#photoDetail").css("width","auto");var h=$("div#maincolContent").width();var j=$("div#photoWrap").outerWidth(true);var m=$("div#infoWrap").outerWidth(true);var k=$("div#photoWrap").outerHeight();var f=$("div#infoWrap").outerHeight();var c=$("div#infoWrap").hasClass("empty");floatDrop=0;var g=j;if(!c){if(h<(j+m)){floatDrop=1}if(!floatDrop){var a=$("div#infoWrap").innerWidth();$("div#infoWrap").width(a+(h-j-m-d));m=$("div#infoWrap").outerWidth(true);g=j+m;if(k>f){var e=$("div#photoPanelOuter").height();$("div#photoPanelOuter").height(e+(k-f));var f=$("div#infoWrap").outerHeight()}}else{var l=$("div#photoWrap").outerWidth();$("div#infoWrap").width(l)}}if(b.centre){$("div#photoDetail").width(g);$("div#photoDetail").css("margin-left","auto");$("div#photoDetail").css("margin-right","auto")}else{$("div#photoDetail").css("margin-left","0");$("div#photoDetail").css("margin-right","0")}}function getArrayPos(c,b){for(var a=0;a<c.length;a++){if(c[a]==b){return a}}return -1}function changeBgImg(a,e){var c=randomListVal(imageSets[e]);var d=backgrounds[c].src;var b=$(a);if(b.size()>0){if(/\bimg$/.test(a)){b.attr({src:d})}else{b.css({"background-image":'url("'+d+'")'})}}};