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[3198329]=new thumbnail(3198329,"","","MJS294L_1_thumb.jpg",130,92,1);thumbnails[3226227]=new thumbnail(3226227,"","CLICK TO ENTER GALLERY","MJS294L_2_thumb.jpg",130,92,1);thumbnails[979165]=new thumbnail(979165,"44614","199 Steps, Whitby","MJS324L_thumb.jpg",89,130,1);thumbnails[579822]=new thumbnail(579822,"44614","West Pier, Whitby","MJS27S.jpg",87,130,1);thumbnails[579827]=new thumbnail(579827,"44614","Crescent Gardens, Whitby","MJS29S.jpg",87,130,1);thumbnails[579831]=new thumbnail(579831,"44614","Warm Dawn, Whitby","MJS33S.jpg",87,130,1);thumbnails[579832]=new thumbnail(579832,"44614","Early Morning Stroll","MJS061S.jpg",87,130,1);thumbnails[579835]=new thumbnail(579835,"44614","Evening Light, Whitby Pier","MJS063S.jpg",92,130,1);thumbnails[579838]=new thumbnail(579838,"44614","Sun & Sea, Whitby","MJS75S.jpg",87,130,1);thumbnails[579840]=new thumbnail(579840,"44614","Misty Whalebones","MJS093S.jpg",87,130,1);thumbnails[579842]=new thumbnail(579842,"44614","Sunrise on Tate Hill Pier","MJS109S.jpg",87,130,1);thumbnails[579844]=new thumbnail(579844,"44614","Three gulls, Whitby bandstand","MJS142S.jpg",87,130,1);thumbnails[579845]=new thumbnail(579845,"44614","Sand & Stone","MJS182S.jpg",87,130,1);thumbnails[579847]=new thumbnail(579847,"44614","Beach Huts, Whitby","MJS185S.jpg",87,130,1);thumbnails[579848]=new thumbnail(579848,"44614","Sea Reflections, Whitby","MJS192S.jpg",87,130,1);thumbnails[579849]=new thumbnail(579849,"44614","East Pier Lighthouse","MJS197S.jpg",87,130,1);thumbnails[579850]=new thumbnail(579850,"44614","HMS Bark Endeavour","MJS203S.jpg",87,130,1);thumbnails[579851]=new thumbnail(579851,"44614","Tunnel Vision","MJS266S.jpg",87,130,1);thumbnails[579852]=new thumbnail(579852,"44614","Seagull from Sandsend","MJS286S.jpg",92,130,1);thumbnails[591996]=new thumbnail(591996,"44614","Whalebones, Whitby","MJS094S.jpg",92,130,1);thumbnails[597351]=new thumbnail(597351,"44614","Top of the 199 steps","MJS009S.jpg",92,130,1);thumbnails[597352]=new thumbnail(597352,"44614","Cold Front","MJS037S.jpg",92,130,1);thumbnails[579580]=new thumbnail(579580,"44614","Sunrise","MJS26S.jpg",87,130,1);thumbnails[677958]=new thumbnail(677958,"44632","'Big Wave'","MJS294S.jpg",130,92,1);thumbnails[979141]=new thumbnail(979141,"44632","'Tranquility'","MJS317S.jpg",130,92,1);thumbnails[979189]=new thumbnail(979189,"44632","Moonlight on Whitby Piers","MJS318S.jpg",130,92,1);thumbnails[1650206]=new thumbnail(1650206,"44632","Wave against Whitby Pier Extension","MJS336L_thumb.jpg",130,89,1);thumbnails[1650210]=new thumbnail(1650210,"44632","Rough Seas at Whitby","MJS337L_thumb.jpg",130,89,1);thumbnails[581306]=new thumbnail(581306,"44632","Through the Keyhole","MJS08S1.jpg",130,87,1);thumbnails[579862]=new thumbnail(579862,"44632","Sunset, Whitby Pier","MJS067S.jpg",130,92,1);thumbnails[579864]=new thumbnail(579864,"44632","Stormy Seas, Whitby","MJS129S.jpg",130,87,1);thumbnails[579905]=new thumbnail(579905,"44632","High Tide on Whitby Pier","MJS292S.jpg",130,92,1);thumbnails[579861]=new thumbnail(579861,"44632","Sunrise on Whitby's Piers","MJS062S.jpg",130,92,1);thumbnails[579863]=new thumbnail(579863,"44632","Evening Sunlight, Whitby","MJS096S.jpg",130,87,1);thumbnails[579865]=new thumbnail(579865,"44632","Under the pier extensions, Whitby","MJS133S.jpg",130,87,1);thumbnails[579866]=new thumbnail(579866,"44632","Early Morning, Whitby Sands","MJS186S.jpg",130,87,1);thumbnails[579901]=new thumbnail(579901,"44632","Bright Beach Huts, Whitby","MJS200S.jpg",130,87,1);thumbnails[579868]=new thumbnail(579868,"44632","New day dawning, Sandsend","MJS196S.jpg",130,87,1);thumbnails[677936]=new thumbnail(677936,"44632","Foaming at the Harbour Mouth","MJS045S.jpg",130,92,1);thumbnails[677941]=new thumbnail(677941,"44632","Partial Eclipse, Whitby","MJS059S.jpg",130,92,1);thumbnails[592002]=new thumbnail(592002,"44632","Misty Abbey,<br>\r\nWhitby","MJS115S.jpg",130,92,1);thumbnails[592004]=new thumbnail(592004,"44632","Tin Ghaut, Whitby","MJS125S.jpg",130,92,1);thumbnails[579903]=new thumbnail(579903,"44632","From the Sail Loft","MJS288S.jpg",130,92,1);thumbnails[677947]=new thumbnail(677947,"44632","Whitby from the 'New Bridge'","MJS287S.jpg",130,92,1);thumbnails[622881]=new thumbnail(622881,"44632","Morning Light, Whitby Beach","MJS183S.jpg",130,92,1);thumbnails[592012]=new thumbnail(592012,"47653","Boats Aground,<br>\r\nWhitby Marina","MJS166S.jpg",130,92,1);thumbnails[634457]=new thumbnail(634457,"47653","Red Buoy, Whitby<br>\r\n","MJS003S.jpg",130,92,1);thumbnails[634470]=new thumbnail(634470,"47653","Grand Turk, Whitby Harbour","MJS128S.jpg",130,92,1);thumbnails[634483]=new thumbnail(634483,"47653","Upturned boat on Whitby beach","MJS148S.jpg",130,92,1);thumbnails[634494]=new thumbnail(634494,"47653","Boats in Whitby Upper Harbour","MJS263S.jpg",130,92,1);thumbnails[634497]=new thumbnail(634497,"47653","Under the Willow Tree","MJS039S.jpg",92,130,1);thumbnails[634502]=new thumbnail(634502,"47653","Boat at Grasmere","MJS038S.jpg",92,130,1);thumbnails[634509]=new thumbnail(634509,"47653","Tin Ghaut, Whitby","MJS053S.jpg",92,130,1);thumbnails[634511]=new thumbnail(634511,"47653","Boats and Oars at Whitby","MJS167S.jpg",92,130,1);thumbnails[634515]=new thumbnail(634515,"47653","Rowing Boats at Ruswarp","MJS191S.jpg",92,130,1);thumbnails[634522]=new thumbnail(634522,"47653","Grand Turk","MJS204S.jpg",92,130,1);thumbnails[634525]=new thumbnail(634525,"47653","Endeavour Departs","MJS205S.jpg",92,130,1);thumbnails[634529]=new thumbnail(634529,"47653","Endeavour Arrives","MJS206S.jpg",92,130,1);thumbnails[3228910]=new thumbnail(3228910,"47653","Grand Turk at Night","MJS339L_thumb.jpg",89,130,1);thumbnails[591979]=new thumbnail(591979,"47653","On Reflection...","MJS021S.jpg",92,130,1);thumbnails[1201296]=new thumbnail(1201296,"86196","Robin Hood's Bay 1","MJS326S.jpg",130,92,1);thumbnails[1201303]=new thumbnail(1201303,"86196","Robin Hood's Bay 2","MJS327S.jpg",130,92,1);thumbnails[1201324]=new thumbnail(1201324,"86196","Whitby 1","MJS328S.jpg",130,92,1);thumbnails[1201326]=new thumbnail(1201326,"86196","Whitby Viaduct","MJS329S.jpg",130,92,1);thumbnails[1201329]=new thumbnail(1201329,"86196","Whitby 2","MJS330S.jpg",130,92,1);thumbnails[1201333]=new thumbnail(1201333,"86196","Whitby 3","MJS331S.jpg",130,92,1);thumbnails[1201334]=new thumbnail(1201334,"86196","Whitby 4","MJS332S.jpg",130,92,1);thumbnails[1201337]=new thumbnail(1201337,"86196","Whitby 5","MJS333S.jpg",130,92,1);thumbnails[581312]=new thumbnail(581312,"44776","Trees at Saltersgate","MJS151S.jpg",130,87,1);thumbnails[581315]=new thumbnail(581315,"44776","Misty Hole of Horcum","MJS152S.jpg",130,87,1);thumbnails[581319]=new thumbnail(581319,"44776","Hay Bales","MJS289S.jpg",130,92,1);thumbnails[979204]=new thumbnail(979204,"44776","Goathland","MJS325S.jpg",130,92,1);thumbnails[591970]=new thumbnail(591970,"44776","A New Dawn","MJS020S.jpg",130,92,1);thumbnails[581336]=new thumbnail(581336,"44776","Morning Glory","MJS080S.jpg",87,130,1);thumbnails[581337]=new thumbnail(581337,"44776","Hole of Horcum","MJS88S.jpg",87,130,1);thumbnails[591982]=new thumbnail(591982,"44776","Acaster Malbis","MJS074S.jpg",92,130,1);thumbnails[591986]=new thumbnail(591986,"44776","Rowing Boat","MJS073S.jpg",92,130,1);thumbnails[581334]=new thumbnail(581334,"44782","Top Dog","MJS19S.jpg",87,130,1);thumbnails[581366]=new thumbnail(581366,"44782","Old Goat","MJS012S.jpg",92,130,1);thumbnails[581370]=new thumbnail(581370,"44782","Herd the News?","MJS010S.jpg",92,130,1);thumbnails[583502]=new thumbnail(583502,"44782","Sheep at Beck Hole","MJS072S.jpg",92,130,1);thumbnails[583505]=new thumbnail(583505,"44782","Fowl Play","MJS085S.jpg",92,130,1);thumbnails[583514]=new thumbnail(583514,"44782","'Twins'","MJS077S.jpg",87,130,1);thumbnails[583516]=new thumbnail(583516,"44782","Ducklings at Sandsend","MJS098S.jpg",87,130,1);thumbnails[583517]=new thumbnail(583517,"44782","Bucking Bronco","MJS293S.jpg",92,130,1);thumbnails[583520]=new thumbnail(583520,"44782","'Deputy Dawg'","MJS086S.jpg",87,130,1);thumbnails[583521]=new thumbnail(583521,"44782","'Candy Floss'","MJS244S.jpg",130,92,1);thumbnails[581332]=new thumbnail(581332,"44782","Pure New Wool","MJS005s.jpg",130,92,1);thumbnails[581343]=new thumbnail(581343,"44782","Curious Cow","MJS11S1.jpg",130,87,1);thumbnails[581369]=new thumbnail(581369,"44782","Running Deer","MJS041S.jpg",130,92,1);thumbnails[581374]=new thumbnail(581374,"44782","Daisy","MJS065S.jpg",130,92,1);thumbnails[1497791]=new thumbnail(1497791,"102539","","MJS600S1.jpg",92,130,1);thumbnails[1497819]=new thumbnail(1497819,"102539","","MJS601S1.jpg",130,92,1);thumbnails[1497833]=new thumbnail(1497833,"102539","","MJS602S1.jpg",130,92,1);thumbnails[1497837]=new thumbnail(1497837,"102539","","MJS603S.jpg",92,130,1);thumbnails[1497839]=new thumbnail(1497839,"102539","","MJS604S1.jpg",130,92,1);thumbnails[678270]=new thumbnail(678270,"51791","Newcastle 1","MJS296S.jpg",130,92,1);thumbnails[678276]=new thumbnail(678276,"51791","Newcastle 2","MJS297S.jpg",130,92,1);thumbnails[678281]=new thumbnail(678281,"51791","Newcastle 3","MJS298S.jpg",130,92,1);thumbnails[678293]=new thumbnail(678293,"51791","Newcastle 4","MJS299S.jpg",130,92,1);thumbnails[678296]=new thumbnail(678296,"51791","Newcastle 5","MJS300S.jpg",130,92,1);thumbnails[623732]=new thumbnail(623732,"47689","","MJS601S.jpg",130,86,1);thumbnails[623733]=new thumbnail(623733,"47689","","MJS602S.jpg",130,86,1);thumbnails[623734]=new thumbnail(623734,"47689","","MJS604S.jpg",130,86,1);thumbnails[623735]=new thumbnail(623735,"47689","","MJS605S.jpg",130,86,1);thumbnails[623737]=new thumbnail(623737,"47689","","MJS606S.jpg",130,86,1);thumbnails[623738]=new thumbnail(623738,"47689","","MJS607S.jpg",130,86,1);thumbnails[623740]=new thumbnail(623740,"47689","","MJS608S.jpg",130,86,1);thumbnails[623741]=new thumbnail(623741,"47689","","MJS609S.jpg",130,86,1);thumbnails[623744]=new thumbnail(623744,"47689","","MJS610S.jpg",130,86,1);thumbnails[623745]=new thumbnail(623745,"47689","","MJS611S.jpg",130,86,1);thumbnails[623750]=new thumbnail(623750,"47689","","MJS612S.jpg",130,86,1);thumbnails[623751]=new thumbnail(623751,"47689","","MJS613S.jpg",130,86,1);thumbnails[623777]=new thumbnail(623777,"47689","","MJS614S.jpg",130,86,1);thumbnails[623779]=new thumbnail(623779,"47689","","MJS615S.jpg",130,86,1);thumbnails[623783]=new thumbnail(623783,"47689","","MJS616S.jpg",130,90,1);thumbnails[683092]=new thumbnail(683092,"52256","","MJS016S.jpg",130,92,1);thumbnails[683602]=new thumbnail(683602,"52256","","MJS269S.jpg",130,92,1);thumbnails[683607]=new thumbnail(683607,"52256","","MJS270S.jpg",130,92,1);thumbnails[683608]=new thumbnail(683608,"52256","","MJS274S.jpg",130,92,1);thumbnails[683610]=new thumbnail(683610,"52256","","MJS301S.jpg",130,92,1);thumbnails[683620]=new thumbnail(683620,"52256","","MJS302S.jpg",130,92,1);thumbnails[683630]=new thumbnail(683630,"52256","","MJS303S.jpg",130,92,1);thumbnails[683633]=new thumbnail(683633,"52256","","MJS304S.jpg",130,92,1);thumbnails[683637]=new thumbnail(683637,"52256","","MJS305S.jpg",130,92,1);thumbnails[683640]=new thumbnail(683640,"52256","","MJS306S.jpg",130,92,1);thumbnails[683644]=new thumbnail(683644,"52256","","MJS307S.jpg",130,92,1);thumbnails[683646]=new thumbnail(683646,"52256","","MJS308S.jpg",130,92,1);thumbnails[683650]=new thumbnail(683650,"52256","","MJS309S.jpg",130,92,1);thumbnails[683658]=new thumbnail(683658,"52256","","MJS310S.jpg",130,92,1);thumbnails[683664]=new thumbnail(683664,"52256","","MJS311S.jpg",130,92,1);thumbnails[683670]=new thumbnail(683670,"52256","","MJS312S.jpg",130,92,1);thumbnails[683676]=new thumbnail(683676,"52256","","MJS313S.jpg",130,92,1);thumbnails[683681]=new thumbnail(683681,"52256","","MJS314S.jpg",130,92,1);thumbnails[683684]=new thumbnail(683684,"52256","","MJS315S.jpg",130,86,1);thumbnails[683688]=new thumbnail(683688,"52256","","MJS316S.jpg",130,92,1);thumbnails[685468]=new thumbnail(685468,"52443","","MJS015S.jpg",92,130,1);thumbnails[685470]=new thumbnail(685470,"52443","","MJS172S.jpg",92,130,1);thumbnails[685471]=new thumbnail(685471,"52443","","MJS278S.jpg",92,130,1);thumbnails[685473]=new thumbnail(685473,"52443","","MJS090S.jpg",92,130,1);thumbnails[685474]=new thumbnail(685474,"52443","","MJS091S.jpg",92,130,1);thumbnails[685475]=new thumbnail(685475,"52443","","MJS017S.jpg",92,130,1);thumbnails[685476]=new thumbnail(685476,"52443","","MJS271S.jpg",92,130,1);thumbnails[685478]=new thumbnail(685478,"52443","","MJS276S.jpg",92,130,1);thumbnails[685479]=new thumbnail(685479,"52443","","MJS014S.jpg",92,130,1);thumbnails[685481]=new thumbnail(685481,"52443","","MJS101S.jpg",92,130,1);thumbnails[685483]=new thumbnail(685483,"52443","","MJS102S.jpg",92,130,1);thumbnails[685485]=new thumbnail(685485,"52443","","MJS103S.jpg",92,130,1);thumbnails[685486]=new thumbnail(685486,"52443","","MJS104S.jpg",92,130,1);thumbnails[685487]=new thumbnail(685487,"52443","","MJS105S.jpg",92,130,1);thumbnails[685489]=new thumbnail(685489,"52443","","MJS106S.jpg",92,130,1);thumbnails[685490]=new thumbnail(685490,"52443","","MJS107S.jpg",92,130,1);thumbnails[685491]=new thumbnail(685491,"52443","","MJS108S.jpg",92,130,1);thumbnails[685492]=new thumbnail(685492,"52443","","MJS113S.jpg",92,130,1);thumbnails[685493]=new thumbnail(685493,"52443","","MJS089S.jpg",92,130,1);thumbnails[581323]=new thumbnail(581323,"128478","Lily Pond","TAS101S.jpg",130,92,1);thumbnails[581339]=new thumbnail(581339,"128478","Sea Dogs","TAS104S.jpg",92,130,1);thumbnails[685435]=new thumbnail(685435,"128478","St. Marks Square, Venice","TAS103S.jpg",92,130,1);thumbnails[1497840]=new thumbnail(1497840,"128478","Scarborough","TAS115S.jpg",92,130,1);thumbnails[1916363]=new thumbnail(1916363,"128478","Flowers at Burton Agnes Hall","TAS113L_thumb.jpg",98,130,1);thumbnails[1916369]=new thumbnail(1916369,"128478","Sunflowers at Lythe, Near Whitby","TAS123L_thumb.jpg",87,130,1);thumbnails[1916399]=new thumbnail(1916399,"128478","Red Poppy","TAS106L_thumb.jpg",98,130,1);thumbnails[1916418]=new thumbnail(1916418,"128478","Red Gerbera","TAS124L_thumb.jpg",130,87,1);thumbnails[2687422]=new thumbnail(2687422,"128478","Salmon Fishing, Sandsend","TAS112L_thumb.jpg",130,92,1);thumbnails[2687424]=new thumbnail(2687424,"128478","Burton Agnes Hall, near Bridlington.","TAS116L_thumb.jpg",87,130,1);thumbnails[2687479]=new thumbnail(2687479,"128478","Grand Turk in Whitby Upper Harbour","TAS117L_thumb.jpg",130,87,1);thumbnails[2687482]=new thumbnail(2687482,"128478","Lobster Pots, Runswick Bay","TAS121L_thumb.jpg",87,130,1);thumbnails[2687490]=new thumbnail(2687490,"128478","Fishing boat, Runswick Bay","TAS122L_thumb.jpg",130,87,1);thumbnails[2687494]=new thumbnail(2687494,"128478","Cliff Lift, Saltburn","TAS130L_thumb.jpg",130,92,1);thumbnails[2687495]=new thumbnail(2687495,"128478","Saltburn, Top of the cliff lift.","TAS131L_thumb.jpg",130,87,1);thumbnails[2687565]=new thumbnail(2687565,"128478","Warm Glow","TAS134L_thumb.jpg",87,130,1);thumbnails[2687569]=new thumbnail(2687569,"128478","Golden Light towards Sandsend","TAS135L_thumb.jpg",130,92,1);thumbnails[2687580]=new thumbnail(2687580,"128478","Old Barn at Beck Hole, Goathland.","TAS136L_thumb.jpg",130,87,1);thumbnails[2687583]=new thumbnail(2687583,"128478","Haygate Cross above Rosedale, North York Moors.","TAS137L_thumb.jpg",130,86,1);thumbnails[2687586]=new thumbnail(2687586,"128478","The Quiet Garden","TAS138L_thumb.jpg",130,87,1);thumbnails[2687592]=new thumbnail(2687592,"128478","'Helicopters'","TAS139L_thumb.jpg",87,130,1);thumbnails[2687594]=new thumbnail(2687594,"128478","Dragon Drummer","TAS140L_thumb.jpg",87,130,1);thumbnails[2687608]=new thumbnail(2687608,"128478","Rose and Bird House","TAS141L_thumb.jpg",87,130,1);thumbnails[2696923]=new thumbnail(2696923,"128478","Evening Sunlight on Whitby's West Cliff","TAS142L_thumb.jpg",130,92,1);thumbnails[2696925]=new thumbnail(2696925,"128478","Aboard H.M.S. Bark Endeavour in Whitby Harbour","TAS108L_thumb.jpg",130,92,1);thumbnails[579907]=new thumbnail(579907,"128478","Rainbow on Whitby Abbey","TAS107S.jpg",130,92,1);thumbnails[579908]=new thumbnail(579908,"128478","Coble on Sandsend beach","TAS111S.jpg",130,92,1);thumbnails[583476]=new thumbnail(583476,"47877","'Scene Through a Lens'<br>\r\nHardback Book","Book[1]1.jpg",130,127,1);thumbnails[686435]=new thumbnail(686435,"47877","","MJS19S3.jpg",87,130,1);thumbnails[686450]=new thumbnail(686450,"47877","","MJS27S2.jpg",87,130,1);thumbnails[686461]=new thumbnail(686461,"47877","","MJS26S1.jpg",87,130,1);thumbnails[686467]=new thumbnail(686467,"47877","","MJS33S1.jpg",87,130,1);var galleries=new Object();galleries[44614]=new gallery(44614,"979165","Whitby 1","gallery",[979165,579822,579827,579831,579832,579835,579838,579840,579842,579844,579845,579847,579848,579849,579850,579851,579852,591996,597351,597352,579580]);galleries[44632]=new gallery(44632,"677958","Whitby 2","gallery",[677958,979141,979189,1650206,1650210,581306,579862,579864,579905,579861,579863,579865,579866,579901,579868,677936,677941,592002,592004,579903,677947,622881]);galleries[47653]=new gallery(47653,"592012","Boats","gallery",[592012,634457,634470,634483,634494,634497,634502,634509,634511,634515,634522,634525,634529,3228910,591979]);galleries[86196]=new gallery(86196,"1201324","Aerial Views","gallery",[1201296,1201303,1201324,1201326,1201329,1201333,1201334,1201337]);galleries[44776]=new gallery(44776,"581315","Countryside","gallery",[581312,581315,581319,979204,591970,581336,581337,591982,591986]);galleries[44782]=new gallery(44782,"581343","Animals","gallery",[581334,581366,581370,583502,583505,583514,583516,583517,583520,583521,581332,581343,581369,581374]);galleries[102539]=new gallery(102539,"1497839","Scarborough","gallery",[1497791,1497819,1497833,1497837,1497839]);galleries[51791]=new gallery(51791,"678270","Newcastle","gallery",[678270,678276,678281,678293,678296]);galleries[47689]=new gallery(47689,"623732","Rome","gallery",[623732,623733,623734,623735,623737,623738,623740,623741,623744,623745,623750,623751,623777,623779,623783]);galleries[52256]=new gallery(52256,"683602","Venice 1","gallery",[683092,683602,683607,683608,683610,683620,683630,683633,683637,683640,683644,683646,683650,683658,683664,683670,683676,683681,683684,683688]);galleries[52443]=new gallery(52443,"685493,685492,685491,685490,685489,685487,685486,685485,685483,685481","Venice 2","gallery",[685468,685470,685471,685473,685474,685475,685476,685478,685479,685481,685483,685485,685486,685487,685489,685490,685491,685492,685493]);galleries[128478]=new gallery(128478,"2687580","Tricia's Photographs","gallery",[581323,581339,685435,1497840,1916363,1916369,1916399,1916418,2687422,2687424,2687479,2687482,2687490,2687494,2687495,2687565,2687569,2687580,2687583,2687586,2687592,2687594,2687608,2696923,2696925,579907,579908]);galleries[47877]=new gallery(47877,"583476","Book - 'Scene Through a Lens'","gallery",[583476,686435,686450,686461,686467]);var imageSets=new Object();imageSets[1]="3226227,3198329";imageSets[2]="2687580,1497839,1201324,979165,683602,678270,677958,623732,592012,583476,581343,581315";imageSets[3]="3228910,3226227,3198329,2696925,2696923,2687608,2687594,2687592,2687586,2687583,2687580,2687569,2687565,2687495,2687494,2687490,2687482,2687479,2687424,2687422,1916418,1916399,1916369,1916363,1650210,1650206,1497840,1497839,1497837,1497833,1497819,1497791,1201337,1201334,1201333,1201329,1201326,1201324,1201303,1201296,979204,979189,979165,979141,686467,686461,686450,686435,685493,685492";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/flowergate/images";break}switch(a){case 1:b="http://www1.clikpic.com/flowergate/images";break}switch(a){case 2:b="http://admin.clikpic.com/flowergate/images";break}switch(a){case 24:b="http://tpc15/clikpic/flowergate/images";break}switch(a){case 4:b="http://www.clikchurch.com/flowergate/images";break}switch(a){case 5:b="http://www2.clikpic.com/flowergate/images";break}switch(a){case 22:b="http://tpc5/clikpic/flowergate/images";break}switch(a){case 23:b="http://tpc10/clikpic/flowergate/images";break}switch(a){case 25:b="http://tpc16/clikpic/flowergate/images";break}switch(a){case 15:b="http://www3.clikpic.com/flowergate/images";break}switch(a){case 18:b="http://www4.clikpic.com/flowergate/images";break}switch(a){case 19:b="http://www5.clikpic.com/flowergate/images";break}switch(a){case 31:b="http://www7.clikpic.com/flowergate/images";break}switch(a){case 32:b="http://admin2.clikpic.com/flowergate/images";break}switch(a){case 33:b="http://www8.clikpic.com/flowergate/images";break}switch(a){case 34:b="http://www9.clikpic.com/flowergate/images";break}switch(a){case 35:b="http://admin3.clikpic.com/flowergate/images";break}switch(a){case 37:b="http://admin4.clikpic.com/flowergate/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="whitby photos.co.uk: "+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>"}a=a+fnGetPaymentInfo(photos[b]);if(a!=""){a=a+'<div class="spacer"></div>'}return a}function fnGetPaymentInfo(c){var b="";if(c.item_price!==""){b=b+"<p>Buy now using PayPal:</p>";b=b+'<p class="imageinfo" id="imagePrice"><strong>'+c.purchase_instruction+"</strong> 				&pound;"+(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="updateCartValue(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';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+'<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm">';b=b+'	<input type="hidden" name="item_option" value="'+a+'">';b=b+'	<input type="hidden" name="site" value="FLOWERGATE">';b=b+'	<input type="hidden" name="item_number" value="'+c.id+'">';b=b+'	<input type="hidden" name="quantity" value="1">';b=b+'	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button">';b=b+'	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';b=b+"</form>";b=b+'<div class="clearing">&nbsp;</div>';b=b+'<div id="confirmContainer">';b=b+'<div id="paymentConfirm">Item added to cart</div>';b=b+"</div>";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+'")'})}}};