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[1013076]=new thumbnail(1013076,"84454","Crusty loaves, Sunfresh Bakery","IMG_1153_thumb.jpg",130,87,18);thumbnails[1013080]=new thumbnail(1013080,"84454","Fresh from the oven, Sunfresh Bakery","IMG_1154_thumb.jpg",130,87,18);thumbnails[1013104]=new thumbnail(1013104,"","Going for Gold","IMG_3120 Adventure21_thumb.jpg",130,87,18);thumbnails[1013456]=new thumbnail(1013456,"","Target and arrows","target clikpic_thumb.jpg",130,87,18);thumbnails[1073925]=new thumbnail(1073925,"","Being timed","Being Timed_thumb.jpg",130,130,18);thumbnails[1073927]=new thumbnail(1073927,"","Airborne BMX racer","BMX, Airborne_thumb.jpg",130,195,18);thumbnails[1073976]=new thumbnail(1073976,"84455","Mossley Brass Band","Mossley Band_thumb.jpg",130,79,18);thumbnails[1074024]=new thumbnail(1074024,"84454","Sunfresh Bakers lorry advertising","Sunfresh Logo_thumb.jpg",130,78,18);thumbnails[1088746]=new thumbnail(1088746,"84455","Mossley Band musician","Mossley Portrait 2_thumb.jpg",130,195,18);thumbnails[1088750]=new thumbnail(1088750,"84455","Whit Friday Contest","Mossley portrait 11_thumb.jpg",130,130,18);thumbnails[1168447]=new thumbnail(1168447,"","Go-Ride 033","Go-Ride 033_thumb.jpg",130,130,18);thumbnails[1287539]=new thumbnail(1287539,"84454","Sunfresh bun","SunfreshAug07_005 web_thumb.jpg",130,156,18);thumbnails[1803411]=new thumbnail(1803411,"","Early morning, Manchester Victoria","IMG_0114 web_thumb.jpg",130,87,18);thumbnails[2060442]=new thumbnail(2060442,"84455","Whit Friday, getting late","Mossley Band, Drum_thumb.jpg",130,87,18);thumbnails[2817016]=new thumbnail(2817016,"175952","Rob Hayles racing equipment","CEd_TrackLoProJuly08__0031_thumb.jpg",130,87,18);thumbnails[2864351]=new thumbnail(2864351,"331782","Peekaboo","SG09_020_thumb.jpg",130,130,18);thumbnails[2864412]=new thumbnail(2864412,"175952","Pursuit position","CEd_TrackLoProJuly08__029_thumb.jpg",130,195,18);thumbnails[2864414]=new thumbnail(2864414,"175952","Tri Bars","CEd_TrackLoProJuly08__034_thumb.jpg",130,195,18);thumbnails[2951039]=new thumbnail(2951039,"","Portrait of the congregation","SC09_172_WEB_thumb.jpg",130,130,18);thumbnails[3286059]=new thumbnail(3286059,"200380","Waiting for the special occasion!","CharliesShoes_001 web_thumb.jpg",130,100,18);thumbnails[3286064]=new thumbnail(3286064,"200380","Two of a kind","CharliesShoes_020 web_thumb.jpg",130,100,18);thumbnails[3286071]=new thumbnail(3286071,"200380","Study in red and white","CharliesShoes_034 web_thumb.jpg",130,100,18);thumbnails[3286074]=new thumbnail(3286074,"200380","Classic Elegance","CharliesShoes_007  web_thumb.jpg",130,100,18);thumbnails[3350056]=new thumbnail(3350056,"","","MTP Lh head v3_thumb.jpg",130,60,18);thumbnails[3402188]=new thumbnail(3402188,"","Marshall Thomas","Marshall with Camera_thumb.JPG",130,174,18);thumbnails[3439783]=new thumbnail(3439783,"","Orchid Too","IMG_1125 for web_thumb.jpg",130,130,18);thumbnails[4019739]=new thumbnail(4019739,"","Mum's big day, my big day!","SG09_041_thumb.jpg",130,130,18);thumbnails[4019742]=new thumbnail(4019742,"","Silhouette","SG09_228_thumb.jpg",130,130,18);thumbnails[4019747]=new thumbnail(4019747,"","Bride and Groom, beach walk!","SG09_372_thumb.jpg",130,130,18);thumbnails[4019813]=new thumbnail(4019813,"","Wedding dreams","SG09_391_thumb.jpg",130,130,18);thumbnails[5238251]=new thumbnail(5238251,"331782","Twins in technicolour!","FJ09_018_to_printw_thumb.jpg",130,130,18);thumbnails[5238252]=new thumbnail(5238252,"331782","Hey you!","FJ09_021w_thumb.jpg",130,130,18);thumbnails[5238255]=new thumbnail(5238255,"331782","Thirty six weeks...","IMG_0073_v2w_thumb.jpg",130,130,18);thumbnails[5238256]=new thumbnail(5238256,"331782","Pensive mum","IMG_0034w_thumb.jpg",130,130,18);thumbnails[5238260]=new thumbnail(5238260,"331782","Bump","IMG_0051w_thumb.jpg",130,130,18);thumbnails[5238261]=new thumbnail(5238261,"331782","Blue eyes","Hall09_036w_thumb.jpg",130,130,18);thumbnails[5238262]=new thumbnail(5238262,"","Getting ready","SG09_020w_thumb.jpg",130,130,18);thumbnails[5238265]=new thumbnail(5238265,"","Mummy's makeup","SG09_041w_thumb.jpg",130,130,18);thumbnails[5609173]=new thumbnail(5609173,"","Downhill MTB","DH_mtb_web_thumb.jpg",130,130,18);thumbnails[5609175]=new thumbnail(5609175,"","Scott Beaumont","SB_web_thumb.jpg",130,130,18);thumbnails[5609226]=new thumbnail(5609226,"","Scott kitted up","Scott_Beaumont_web_thumb.jpg",130,130,18);thumbnails[5609234]=new thumbnail(5609234,"175952","Scott Beaumont portrait","SB_portrait_thumb.jpg",130,130,18);thumbnails[5871606]=new thumbnail(5871606,"331782","Mummy time in studio","IMG_0038w_thumb.jpg",130,130,18);thumbnails[5879319]=new thumbnail(5879319,"332158","I think you've pulled a thread in your cardy, Beren<br>\r\n-Neil","B_studio_wrap_web_4E19DB19-1D09-001F-99A006A79E69E900_thumb.jpg",130,130,18);thumbnails[5879407]=new thumbnail(5879407,"332158","I thought you said it would go bing when the potatoes are done?<br>\r\n-Adam","LDstu_049w_thumb.jpg",130,130,18);thumbnails[5920089]=new thumbnail(5920089,"332158","I think I've left the iron on...<br>\r\n-Andrea","IMG_0316w_thumb.JPG",130,130,18);thumbnails[5920094]=new thumbnail(5920094,"","Makeover time","Bridesmaid_makeover_web_thumb.jpg",130,130,18);thumbnails[5940184]=new thumbnail(5940184,"332158","The honeymoon flight leaves when???????<br>\r\n-John","SG09_380_86E7A160-1D09-001F-99D6D4C069EF4361_thumb.jpg",130,130,18);thumbnails[6033082]=new thumbnail(6033082,"332158","'Help!  I've sat on a trifid!!'<br>\r\n-Adam","Nicky_Mar08__035w_thumb.jpg",130,130,18);thumbnails[6253654]=new thumbnail(6253654,"332158","Mrs Gollum looks for hubby in the garden...<br>\r\n-Les","IMG_1130_BWw_thumb.jpg",130,130,18);thumbnails[6253669]=new thumbnail(6253669,"332158","Simple Simon says: 'stand on one leg.  Put your arms out.'  Oops you lose!<br>\r\n-Mel","LD10_260w_8882EB09-1D09-001F-9988DE7A62A4F7DA_thumb.jpg",130,130,18);thumbnails[6448060]=new thumbnail(6448060,"331782","","IMG_0043w_thumb.jpg",130,130,18);thumbnails[6448063]=new thumbnail(6448063,"331782","Eight months","IMG_0026w_thumb.jpg",130,130,18);thumbnails[6448065]=new thumbnail(6448065,"331782","Bumps in the studio","IMG_0037w_thumb.jpg",130,130,18);thumbnails[6448068]=new thumbnail(6448068,"331782","One month to go","IMG_0008w_thumb.jpg",130,130,18);thumbnails[5022244]=new thumbnail(5022244,"","Preparations, early morning","SC09_035_WEB12_thumb.jpg",130,130,18);thumbnails[3510584]=new thumbnail(3510584,"","Relaxed groom","SC09_080_WEB_thumb.jpg",130,130,18);thumbnails[2864431]=new thumbnail(2864431,"","Enjoying every moment","SM08_361_thumb.jpg",129,86,18);thumbnails[1805746]=new thumbnail(1805746,"79487","Pensive bride","BP10_055w_thumb.jpg",130,130,18);thumbnails[2060347]=new thumbnail(2060347,"137682","Dress designs!","Nicky_Mar08__0341_thumb.jpg",130,195,18);thumbnails[2060352]=new thumbnail(2060352,"137682","Wedding dress detail","Nicky_Mar08__0121_thumb.jpg",130,195,18);thumbnails[2060356]=new thumbnail(2060356,"137682","Formal dress","Nicky_Mar08__029_thumb.jpg",130,195,18);thumbnails[2060438]=new thumbnail(2060438,"137682","Elegant gown","Nicky_Mar08__025_thumb.jpg",130,195,18);thumbnails[2864432]=new thumbnail(2864432,"79487","After the ceremony..","RH10_097w_thumb.jpg",130,130,18);thumbnails[2901974]=new thumbnail(2901974,"79487","Beautiful bride","RH10_255w_thumb.jpg",130,130,18);thumbnails[2951046]=new thumbnail(2951046,"79487","Images to cherish","SC09_278_WEB1_thumb.jpg",130,130,18);thumbnails[2951051]=new thumbnail(2951051,"79487","Kiss","BP10_294w_thumb.jpg",130,130,18);thumbnails[2951053]=new thumbnail(2951053,"79487","Wedding party","LD10_303w_thumb.jpg",130,130,18);thumbnails[3102838]=new thumbnail(3102838,"79487","Wedding details","CA10_485w_thumb.jpg",130,130,18);thumbnails[3102849]=new thumbnail(3102849,"79487","Celebration","Celebration_web_thumb.jpg",130,130,18);thumbnails[3102853]=new thumbnail(3102853,"79487","Bride and groom at last!","LD10_263w_5B120E15-24E8-5EC4-4F81C565DF726BC1_thumb.jpg",130,130,18);thumbnails[4019609]=new thumbnail(4019609,"242637","Bagel Pile","CQ09_059_thumb.jpg",130,130,18);thumbnails[4019613]=new thumbnail(4019613,"242637","Soda bread","CQ09_255_thumb.jpg",130,130,18);thumbnails[4019615]=new thumbnail(4019615,"242637","Bun","CQ09_236_thumb.jpg",130,130,18);thumbnails[4019620]=new thumbnail(4019620,"242637","Danish Pastry","CQ09_060_thumb.jpg",130,130,18);thumbnails[4019625]=new thumbnail(4019625,"242637","Poppy seed pile","CQ09_307_thumb.jpg",130,108,18);thumbnails[4515310]=new thumbnail(4515310,"79487","Bride and groom kiss","CA10_211w_thumb.jpg",130,130,18);thumbnails[5499610]=new thumbnail(5499610,"79487","Quiet moment ","RH10_502w_thumb.jpg",130,130,18);thumbnails[2864434]=new thumbnail(2864434,"79487","Dutch courage!","CA10_424w_thumb.jpg",130,130,18);thumbnails[1606393]=new thumbnail(1606393,"75819","Black and white adds a new dimension to this striking picture","John D IMG_0066 bw WEB UPDATE_thumb.jpg",130,130,18);thumbnails[1805732]=new thumbnail(1805732,"103383","I Do Shoes","CA10_008w_thumb.jpg",130,130,18);thumbnails[1805736]=new thumbnail(1805736,"103383","The rings","NP09_452_web_thumb.jpg",130,130,18);thumbnails[1805739]=new thumbnail(1805739,"103383","Wedding details","BP10_012w_thumb.jpg",130,130,18);thumbnails[1805741]=new thumbnail(1805741,"103383","Details make all the difference","RH10_143w_thumb.jpg",130,130,18);thumbnails[2059503]=new thumbnail(2059503,"103383","Beautiful venue","BP10_021w_thumb.jpg",130,130,18);thumbnails[2060534]=new thumbnail(2060534,"103383","Cheers","LD10_026w_thumb.JPG",130,130,18);thumbnails[2161365]=new thumbnail(2161365,"75819","Jump","SallyOct07_016 WEB UPDATE_thumb.jpg",130,130,18);thumbnails[2864344]=new thumbnail(2864344,"103383","Shoes in waiting","LD10_005w_thumb.jpg",130,130,18);thumbnails[2864345]=new thumbnail(2864345,"103383","End of the night","LD10_526w_thumb.jpg",130,130,18);thumbnails[2864346]=new thumbnail(2864346,"103383","Party time!","BP10_037w_thumb.jpg",130,130,18);thumbnails[2864409]=new thumbnail(2864409,"75819","Wedding guest","CA10_315w_thumb.jpg",130,130,18);thumbnails[3103017]=new thumbnail(3103017,"75819","Bridesmaids","BP10_040w_thumb.jpg",130,130,18);thumbnails[3103023]=new thumbnail(3103023,"103383","Petals","Red_and_orange_web_thumb.jpg",130,130,18);thumbnails[3103025]=new thumbnail(3103025,"103383","Exquisite detail at venue","CA10_439w_thumb.jpg",130,130,18);thumbnails[5238245]=new thumbnail(5238245,"75819","Dad and son fun","SMJ10_26w_thumb.jpg",130,130,18);thumbnails[5499599]=new thumbnail(5499599,"75819","Grandad","IMG_0305w_thumb.jpg",130,130,18);thumbnails[5499601]=new thumbnail(5499601,"75819","Fun in the studio!","SMJ10_20w_thumb.jpg",130,130,18);thumbnails[5499606]=new thumbnail(5499606,"75819","First studio images","LDstu_013w_thumb.jpg",130,130,18);thumbnails[5499612]=new thumbnail(5499612,"75819","Pre-wedding portrait","LDstu_024w_thumb.jpg",130,130,18);thumbnails[5499616]=new thumbnail(5499616,"75819","Tattoo","LDstu_032w_thumb.jpg",130,130,18);thumbnails[5499625]=new thumbnail(5499625,"75819","Wedding day portrait","RH10_254w_thumb.jpg",130,130,18);thumbnails[5499629]=new thumbnail(5499629,"75819","Studio life portrait","B_studio_wrap_web_thumb.jpg",130,130,18);thumbnails[5499655]=new thumbnail(5499655,"103383","Tattoo Two","LDstu_033w_thumb.jpg",130,130,18);thumbnails[1439995]=new thumbnail(1439995,"75817","Industrial setting","Alison10_033w_thumb.jpg",130,130,18);thumbnails[2864429]=new thumbnail(2864429,"75817","Rock the Frock","Alison10_004w_thumb.jpg",130,130,18);thumbnails[4019809]=new thumbnail(4019809,"75817","Shoes off","Alison10_005w_thumb.jpg",130,130,18);thumbnails[5871633]=new thumbnail(5871633,"75817","Rock the Frock Industrial","Alison10_009w_thumb.jpg",130,130,18);thumbnails[5871635]=new thumbnail(5871635,"75817","Post-wedding fun!","Alison10_012w_thumb.jpg",130,130,18);thumbnails[5871637]=new thumbnail(5871637,"75817","Rock the Frock!","Alison10_013w_thumb.jpg",130,130,18);thumbnails[5871638]=new thumbnail(5871638,"75817","Great outdoor setting","Alison10_015w_thumb.jpg",130,130,18);thumbnails[5871640]=new thumbnail(5871640,"75817","Strong pose","Alison10_029w_thumb.jpg",130,130,18);thumbnails[6448050]=new thumbnail(6448050,"75817","Dark and light","Alison10_036w_thumb.jpg",130,130,18);thumbnails[6448053]=new thumbnail(6448053,"75817","Steelworks","Alison10_050w_thumb.jpg",130,130,18);thumbnails[6448055]=new thumbnail(6448055,"75817","Having fun on location","Alison10_052w_thumb.jpg",130,130,18);thumbnails[6448058]=new thumbnail(6448058,"75817","Enjoying the gown","Alison10_055w_thumb.jpg",130,130,18);thumbnails[1008525]=new thumbnail(1008525,"75488","White Lillies, Lakeland","WhiteLillies, Lakeland_thumb.jpg",130,130,18);thumbnails[1012980]=new thumbnail(1012980,"75488","Blue Anemone","Blue Anemone_thumb.jpg",130,130,18);thumbnails[1012985]=new thumbnail(1012985,"75488","Tulips!","Tulips_web1_thumb.jpg",130,130,18);thumbnails[1012986]=new thumbnail(1012986,"75488","Yellow Tulip with water droplets","Yellow Tulip with droplets_thumb.jpg",130,130,18);thumbnails[1805785]=new thumbnail(1805785,"75488","Splash of vibrant colour","IMG_3709_thumb.jpg",130,130,18);thumbnails[1805797]=new thumbnail(1805797,"75488","Phalaenopsis Spray","IMG_1123 for web_thumb.jpg",130,130,18);thumbnails[1805801]=new thumbnail(1805801,"75488","Wedding bouquet","LG40807_0003v2_web_thumb.jpg",130,130,18);thumbnails[2864416]=new thumbnail(2864416,"75488","Pink Gerbera Blue Glass","Pink Gerbera Blue Glass_thumb.jpg",130,130,18);thumbnails[6033339]=new thumbnail(6033339,"75488","Wedding bouquet","RH10_010w_thumb.jpg",130,130,18);thumbnails[6033343]=new thumbnail(6033343,"75488","Mixed spray","RH10_017w_thumb.jpg",130,130,18);thumbnails[6033345]=new thumbnail(6033345,"75488","Red rose","RH10_406w_thumb.jpg",130,130,18);thumbnails[6033349]=new thumbnail(6033349,"75488","Petals reflected","RH10_498w_thumb.jpg",130,130,18);thumbnails[1708618]=new thumbnail(1708618,"75815","Taking five","SallyOct07_032_thumb.jpg",130,179,18);thumbnails[1708633]=new thumbnail(1708633,"75815","Strike a confident pose","SallyOct07_052_thumb.jpg",130,195,18);thumbnails[1708636]=new thumbnail(1708636,"75815","Friends photo shoot","AJ09_021w_thumb.jpg",130,118,18);thumbnails[1803388]=new thumbnail(1803388,"75815","Mother and son","SMJ10_31w_thumb.jpg",130,130,18);thumbnails[1994582]=new thumbnail(1994582,"75815","Studio pose","CAstudio_035_thumb.jpg",130,130,18);thumbnails[2864417]=new thumbnail(2864417,"75815","Mother and daughter","SG09_405_thumb.jpg",130,130,18);thumbnails[2864419]=new thumbnail(2864419,"75815","Father and son","SMJ10_05w_thumb.jpg",130,130,18);thumbnails[2864422]=new thumbnail(2864422,"75815","Husband and wife (in pre-wedding portrait)","LDstu_026w_3DAAF844-1EC9-D45B-1CCA33684FE1357B_thumb.jpg",130,130,18);thumbnails[2864424]=new thumbnail(2864424,"75815","On the dancefloor","BP10_318w_thumb.jpg",130,130,18);thumbnails[2951064]=new thumbnail(2951064,"75815","Log surfing!","LD10_305w_thumb.jpg",130,130,18);thumbnails[4019804]=new thumbnail(4019804,"75815","Sisters","SG09_376_thumb.jpg",130,130,18);thumbnails[5499634]=new thumbnail(5499634,"75815","Brother and sister","Steph09_025w_thumb.jpg",130,130,18);thumbnails[1013110]=new thumbnail(1013110,"75820","Majorcan morning","Majorcan Morning_thumb.jpg",130,85,18);thumbnails[1013112]=new thumbnail(1013112,"75820","Majorcan sunset, tree silhouette","Majorcan Sunset, Tree Silouette_thumb.jpg",130,87,18);thumbnails[1013119]=new thumbnail(1013119,"75820","Stickle Tarn","Stickle Tarn_thumb.jpg",130,195,18);thumbnails[1013120]=new thumbnail(1013120,"75820","Sunrise, Ingleton","SunRise, Ingleton,W_thumb.Yorks.jpg",130,172,18);thumbnails[1013130]=new thumbnail(1013130,"75820","View towards Windermere from Holme Fell","View to Windermere from Holme Fell, Lakeland_thumb.jpg",130,195,18);thumbnails[3280932]=new thumbnail(3280932,"75820","Japanes Maple, Knott Hill Nature Reserve","japanese maple web_thumb.jpg",130,173,18);thumbnails[3286120]=new thumbnail(3286120,"75820","Maple Leaf Valentine","IMGP4485 Web Ready_thumb.jpg",130,130,18);thumbnails[3286121]=new thumbnail(3286121,"75820","Deep blue winter sky","IMGP4488 Web Ready_thumb.jpg",130,130,18);thumbnails[1013068]=new thumbnail(1013068,"75821","Blue Windows, New York","Blue Windows, New York_thumb.jpg",130,92,18);thumbnails[1803414]=new thumbnail(1803414,"75821","Manchester Victoria","IMG_0114 web1_thumb.jpg",130,87,18);thumbnails[1994580]=new thumbnail(1994580,"75821","Humber Bridge","IMG_0209v4    web_thumb.jpg",130,87,18);thumbnails[3437966]=new thumbnail(3437966,"75821","Concorde, Manchester Airport","concorde web_thumb.jpg",130,173,18);thumbnails[3439753]=new thumbnail(3439753,"75821","Hulme Arch, Manchester","BC CT Jan09_091 for web_thumb.jpg",130,130,18);thumbnails[5238268]=new thumbnail(5238268,"75821","Old mill steps","IMGP7756w_thumb.jpg",130,130,18);thumbnails[5238272]=new thumbnail(5238272,"75821","The remains of a steel pillar","IMGP7798w_thumb.jpg",130,130,18);thumbnails[5238274]=new thumbnail(5238274,"75821","Angles and textures","IMGP7800w_thumb.jpg",130,130,18);thumbnails[5238275]=new thumbnail(5238275,"75821","Winter blossom","IMGP7802w_thumb.jpg",130,130,18);thumbnails[5238276]=new thumbnail(5238276,"75821","Park Bridge. site of old mill","IMGP7804w1_thumb.jpg",130,130,18);thumbnails[5499556]=new thumbnail(5499556,"75821","Woodend Artists Studios","FreezeMT_012w_C7D1687E-1EC9-D45B-1C6960D685971EED_thumb.jpg",130,130,18);thumbnails[5499593]=new thumbnail(5499593,"75821","Spanner still life","FreezeMT_044w_thumb.jpg",130,130,18);thumbnails[1013064]=new thumbnail(1013064,"75825","Bataleur Eagle","BataleurEagle_thumb.jpg",130,130,18);thumbnails[1013117]=new thumbnail(1013117,"75825","Mandarin Duck, male","Mandarin Duck (male)_thumb.jpg",130,98,18);thumbnails[3286137]=new thumbnail(3286137,"75825","Fox close up","fox close up_thumb.jpg",130,173,18);thumbnails[3286160]=new thumbnail(3286160,"75825","The day a fox came to visit..","female fox_thumb.jpg",130,195,18);thumbnails[6448080]=new thumbnail(6448080,"75825","Hobbes","DSCN7639w_thumb.jpg",130,130,18);thumbnails[6448082]=new thumbnail(6448082,"75825","Lazy cat!","DSCN7644w_thumb.jpg",130,130,18);var galleries=new Object();galleries[175952]=new gallery(175952,"5609234,2864414,2864412,2817016","British Cycling","gallery",[2817016,2864412,2864414,5609234]);galleries[331782]=new gallery(331782,"6448068,6448065,6448063,6448060,5871606,5238261,5238260,5238256,5238255,5238252","Bumps and Babies","gallery",[2864351,5238251,5238252,5238255,5238256,5238260,5238261,5871606,6448060,6448063,6448065,6448068]);galleries[84455]=new gallery(84455,"2060442,1088750,1088746,1073976","Mossley Brass Band","gallery",[1073976,1088746,1088750,2060442]);galleries[332158]=new gallery(332158,"6253669,6253654,6033082,5940184,5920089,5879407,5879319","Narrative Images","gallery",[5879319,5879407,5920089,5940184,6033082,6253654,6253669]);galleries[200380]=new gallery(200380,"3286064","Shoe Portraits","gallery",[3286059,3286064,3286071,3286074]);galleries[84454]=new gallery(84454,"1287539,1074024,1013080,1013076","Sunfresh Bakery","gallery",[1013076,1013080,1074024,1287539]);galleries[242637]=new gallery(242637,"4019620","Coulton's Quayside Bakery","gallery",[4019609,4019613,4019615,4019620,4019625]);galleries[137682]=new gallery(137682,"2060438,2060356,2060352,2060347","Designs by Nicky","gallery",[2060347,2060352,2060356,2060438]);galleries[79487]=new gallery(79487,"5499610,4515310,3102853,3102849,3102838,2951053,2951051,2951046,2901974,2864434","Weddings","gallery",[1805746,2864432,2901974,2951046,2951051,2951053,3102838,3102849,3102853,4515310,5499610,2864434]);galleries[75819]=new gallery(75819,"5499629,5499625,5499616,5499612,5499606,5499601,5499599,5238245,3103017,2864409","Portraits","gallery",[1606393,2161365,2864409,3103017,5238245,5499599,5499601,5499606,5499612,5499616,5499625,5499629]);galleries[103383]=new gallery(103383,"5499655,3103025,3103023,2864346,2864345,2864344,2060534,2059503,1805741,1805739","Wedding Details","gallery",[1805732,1805736,1805739,1805741,2059503,2060534,2864344,2864345,2864346,3103023,3103025,5499655]);galleries[75823]=new gallery(75823,"4019620,3286064","Commissions","gallery",[]);galleries[75817]=new gallery(75817,"6448058,6448055,6448053,6448050,5871640,5871638,5871637,5871635,5871633,4019809","Rock the Frock","gallery",[1439995,2864429,4019809,5871633,5871635,5871637,5871638,5871640,6448050,6448053,6448055,6448058]);galleries[75488]=new gallery(75488,"1805785","Flowers","gallery",[1008525,1012980,1012985,1012986,1805785,1805797,1805801,2864416,6033339,6033343,6033345,6033349]);galleries[75815]=new gallery(75815,"1708636","Family Groups","gallery",[1708618,1708633,1708636,1803388,1994582,2864417,2864419,2864422,2864424,2951064,4019804,5499634]);galleries[75820]=new gallery(75820,"1013112","Landscapes","gallery",[1013110,1013112,1013119,1013120,1013130,3280932,3286120,3286121]);galleries[75821]=new gallery(75821,"5499593,5499556,5238276,5238275,5238274,5238272,5238268,3439753,3437966,1994580","Townscapes","gallery",[1013068,1803414,1994580,3437966,3439753,5238268,5238272,5238274,5238275,5238276,5499556,5499593]);galleries[75825]=new gallery(75825,"3286137,1013117","Wildlife","gallery",[1013064,1013117,3286137,3286160,6448080,6448082]);var imageSets=new Object();imageSets[1]="6448060,6033349,6033345,6033343,5920094,5879319,5871635,5871633,5609234,5499625,5499616,5499610,5499599,5238265,5238262,5238261,5238256,5238255,5238252,5022244,4019809,3439783,3286071,3103025,3102853,3102838,2951051,2901974,2864432,2864431,2864424,2864422,2864409,2161365,1805746,1805741,1805736,1805732,1439995";imageSets[2]="4019620,3286137,3286064,1805785,1708636,1013456,1013117,1013112";imageSets[3]="6448082,6448080,6448068,6448065,6448063,6448060,6448058,6448055,6448053,6448050,6253669,6253654,6033349,6033345,6033343,6033339,6033082,5940184,5920094,5920089,5879407,5879319,5871640,5871638,5871637,5871635,5871633,5871606,5609234,5609226,5609175,5609173,5499655,5499634,5499629,5499625,5499616,5499612,5499610,5499606,5499601,5499599,5499593,5499556,5238276,5238275,5238274,5238272,5238268,5238265";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/MTPhotography/images";break}switch(a){case 1:b="http://www1.clikpic.com/MTPhotography/images";break}switch(a){case 2:b="http://admin.clikpic.com/MTPhotography/images";break}switch(a){case 24:b="http://tpc15/clikpic/MTPhotography/images";break}switch(a){case 4:b="http://www.clikchurch.com/MTPhotography/images";break}switch(a){case 5:b="http://www2.clikpic.com/MTPhotography/images";break}switch(a){case 22:b="http://tpc5/clikpic/MTPhotography/images";break}switch(a){case 23:b="http://tpc10/clikpic/MTPhotography/images";break}switch(a){case 25:b="http://tpc16/clikpic/MTPhotography/images";break}switch(a){case 15:b="http://www3.clikpic.com/MTPhotography/images";break}switch(a){case 18:b="http://www4.clikpic.com/MTPhotography/images";break}switch(a){case 19:b="http://www5.clikpic.com/MTPhotography/images";break}switch(a){case 31:b="http://www7.clikpic.com/MTPhotography/images";break}switch(a){case 32:b="http://admin2.clikpic.com/MTPhotography/images";break}switch(a){case 33:b="http://www8.clikpic.com/MTPhotography/images";break}switch(a){case 34:b="http://www9.clikpic.com/MTPhotography/images";break}switch(a){case 35:b="http://admin3.clikpic.com/MTPhotography/images";break}switch(a){case 37:b="http://admin4.clikpic.com/MTPhotography/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="Marshall Thomas Photography: "+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+'")'})}}};