window.thumbnails = {};
															thumbnails[3198329] = clik.newPhoto({"id":3198329,"src":"MJS294L_1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":92});
															thumbnails[3226227] = clik.newPhoto({"id":3226227,"src":"MJS294L_2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"CLICK TO ENTER GALLERY","height":92});
															thumbnails[677958] = clik.newPhoto({"id":677958,"src":"MJS294S.jpg","galleries_id":44632,"server_id":1,"link":"photo_677958.html","width":130,"caption":"'Big Wave'","height":92});
															thumbnails[979165] = clik.newPhoto({"id":979165,"src":"MJS324L_thumb.jpg","galleries_id":44614,"server_id":1,"link":"photo_979165.html","width":89,"caption":"199 Steps, Whitby","height":130});
															thumbnails[579822] = clik.newPhoto({"id":579822,"src":"MJS27S.jpg","galleries_id":44614,"server_id":1,"link":"photo_579822.html","width":87,"caption":"West Pier, Whitby","height":130});
															thumbnails[579827] = clik.newPhoto({"id":579827,"src":"MJS29S.jpg","galleries_id":44614,"server_id":1,"link":"photo_579827.html","width":87,"caption":"Crescent Gardens, Whitby","height":130});
															thumbnails[579831] = clik.newPhoto({"id":579831,"src":"MJS33S.jpg","galleries_id":44614,"server_id":1,"link":"photo_579831.html","width":87,"caption":"Warm Dawn, Whitby","height":130});
															thumbnails[579832] = clik.newPhoto({"id":579832,"src":"MJS061S.jpg","galleries_id":44614,"server_id":1,"link":"photo_579832.html","width":87,"caption":"Early Morning Stroll","height":130});
															thumbnails[579835] = clik.newPhoto({"id":579835,"src":"MJS063S.jpg","galleries_id":44614,"server_id":1,"link":"photo_579835.html","width":92,"caption":"Evening Light, Whitby Pier","height":130});
															thumbnails[579838] = clik.newPhoto({"id":579838,"src":"MJS75S.jpg","galleries_id":44614,"server_id":1,"link":"photo_579838.html","width":87,"caption":"Sun & Sea, Whitby","height":130});
															thumbnails[579840] = clik.newPhoto({"id":579840,"src":"MJS093S.jpg","galleries_id":44614,"server_id":1,"link":"photo_579840.html","width":87,"caption":"Misty Whalebones","height":130});
															thumbnails[579842] = clik.newPhoto({"id":579842,"src":"MJS109S.jpg","galleries_id":44614,"server_id":1,"link":"photo_579842.html","width":87,"caption":"Sunrise on Tate Hill Pier","height":130});
															thumbnails[579844] = clik.newPhoto({"id":579844,"src":"MJS142S.jpg","galleries_id":44614,"server_id":1,"link":"photo_579844.html","width":87,"caption":"Three gulls, Whitby bandstand","height":130});
															thumbnails[579845] = clik.newPhoto({"id":579845,"src":"MJS182S.jpg","galleries_id":44614,"server_id":1,"link":"photo_579845.html","width":87,"caption":"Sand & Stone","height":130});
															thumbnails[579847] = clik.newPhoto({"id":579847,"src":"MJS185S.jpg","galleries_id":44614,"server_id":1,"link":"photo_579847.html","width":87,"caption":"Beach Huts, Whitby","height":130});
															thumbnails[579848] = clik.newPhoto({"id":579848,"src":"MJS192S.jpg","galleries_id":44614,"server_id":1,"link":"photo_579848.html","width":87,"caption":"Sea Reflections, Whitby","height":130});
															thumbnails[579849] = clik.newPhoto({"id":579849,"src":"MJS197S.jpg","galleries_id":44614,"server_id":1,"link":"photo_579849.html","width":87,"caption":"East Pier Lighthouse","height":130});
															thumbnails[579850] = clik.newPhoto({"id":579850,"src":"MJS203S.jpg","galleries_id":44614,"server_id":1,"link":"photo_579850.html","width":87,"caption":"HMS Bark Endeavour","height":130});
															thumbnails[579851] = clik.newPhoto({"id":579851,"src":"MJS266S.jpg","galleries_id":44614,"server_id":1,"link":"photo_579851.html","width":87,"caption":"Tunnel Vision","height":130});
															thumbnails[579852] = clik.newPhoto({"id":579852,"src":"MJS286S.jpg","galleries_id":44614,"server_id":1,"link":"photo_579852.html","width":92,"caption":"Seagull from Sandsend","height":130});
															thumbnails[581312] = clik.newPhoto({"id":581312,"src":"MJS151S.jpg","galleries_id":44776,"server_id":1,"link":"photo_581312.html","width":130,"caption":"Trees at Saltersgate","height":87});
															thumbnails[581315] = clik.newPhoto({"id":581315,"src":"MJS152S.jpg","galleries_id":44776,"server_id":1,"link":"photo_581315.html","width":130,"caption":"Misty Hole of Horcum","height":87});
															thumbnails[581319] = clik.newPhoto({"id":581319,"src":"MJS289S.jpg","galleries_id":44776,"server_id":1,"link":"photo_581319.html","width":130,"caption":"Hay Bales","height":92});
															thumbnails[581323] = clik.newPhoto({"id":581323,"src":"TAS101S.jpg","galleries_id":128478,"server_id":1,"link":"photo_581323.html","width":130,"caption":"Lily Pond","height":92});
															thumbnails[581334] = clik.newPhoto({"id":581334,"src":"MJS19S.jpg","galleries_id":44782,"server_id":1,"link":"photo_581334.html","width":87,"caption":"Top Dog","height":130});
															thumbnails[581339] = clik.newPhoto({"id":581339,"src":"TAS104S.jpg","galleries_id":128478,"server_id":1,"link":"photo_581339.html","width":92,"caption":"Sea Dogs","height":130});
															thumbnails[581366] = clik.newPhoto({"id":581366,"src":"MJS012S.jpg","galleries_id":44782,"server_id":1,"link":"photo_581366.html","width":92,"caption":"Old Goat","height":130});
															thumbnails[581370] = clik.newPhoto({"id":581370,"src":"MJS010S.jpg","galleries_id":44782,"server_id":1,"link":"photo_581370.html","width":92,"caption":"Herd the News?","height":130});
															thumbnails[583476] = clik.newPhoto({"id":583476,"src":"Book[1]1.jpg","galleries_id":47877,"server_id":1,"link":"photo_583476.html","width":130,"caption":"'Scene Through a Lens'<br>\r\nHardback Book","height":127});
															thumbnails[583502] = clik.newPhoto({"id":583502,"src":"MJS072S.jpg","galleries_id":44782,"server_id":1,"link":"photo_583502.html","width":92,"caption":"Sheep at Beck Hole","height":130});
															thumbnails[583505] = clik.newPhoto({"id":583505,"src":"MJS085S.jpg","galleries_id":44782,"server_id":1,"link":"photo_583505.html","width":92,"caption":"Fowl Play","height":130});
															thumbnails[583514] = clik.newPhoto({"id":583514,"src":"MJS077S.jpg","galleries_id":44782,"server_id":1,"link":"photo_583514.html","width":87,"caption":"'Twins'","height":130});
															thumbnails[583516] = clik.newPhoto({"id":583516,"src":"MJS098S.jpg","galleries_id":44782,"server_id":1,"link":"photo_583516.html","width":87,"caption":"Ducklings at Sandsend","height":130});
															thumbnails[583517] = clik.newPhoto({"id":583517,"src":"MJS293S.jpg","galleries_id":44782,"server_id":1,"link":"photo_583517.html","width":92,"caption":"Bucking Bronco","height":130});
															thumbnails[583520] = clik.newPhoto({"id":583520,"src":"MJS086S.jpg","galleries_id":44782,"server_id":1,"link":"photo_583520.html","width":87,"caption":"'Deputy Dawg'","height":130});
															thumbnails[583521] = clik.newPhoto({"id":583521,"src":"MJS244S.jpg","galleries_id":44782,"server_id":1,"link":"photo_583521.html","width":130,"caption":"'Candy Floss'","height":92});
															thumbnails[591996] = clik.newPhoto({"id":591996,"src":"MJS094S.jpg","galleries_id":44614,"server_id":1,"link":"photo_591996.html","width":92,"caption":"Whalebones, Whitby","height":130});
															thumbnails[592012] = clik.newPhoto({"id":592012,"src":"MJS166S.jpg","galleries_id":47653,"server_id":1,"link":"photo_592012.html","width":130,"caption":"Boats Aground,<br>\r\nWhitby Marina","height":92});
															thumbnails[597351] = clik.newPhoto({"id":597351,"src":"MJS009S.jpg","galleries_id":44614,"server_id":1,"link":"photo_597351.html","width":92,"caption":"Top of the 199 steps","height":130});
															thumbnails[597352] = clik.newPhoto({"id":597352,"src":"MJS037S.jpg","galleries_id":44614,"server_id":1,"link":"photo_597352.html","width":92,"caption":"Cold Front","height":130});
															thumbnails[623732] = clik.newPhoto({"id":623732,"src":"MJS601S.jpg","galleries_id":47689,"server_id":1,"link":"photo_623732.html","width":130,"caption":"","height":86});
															thumbnails[623733] = clik.newPhoto({"id":623733,"src":"MJS602S.jpg","galleries_id":47689,"server_id":1,"link":"photo_623733.html","width":130,"caption":"","height":86});
															thumbnails[623734] = clik.newPhoto({"id":623734,"src":"MJS604S.jpg","galleries_id":47689,"server_id":1,"link":"photo_623734.html","width":130,"caption":"","height":86});
															thumbnails[623735] = clik.newPhoto({"id":623735,"src":"MJS605S.jpg","galleries_id":47689,"server_id":1,"link":"photo_623735.html","width":130,"caption":"","height":86});
															thumbnails[623737] = clik.newPhoto({"id":623737,"src":"MJS606S.jpg","galleries_id":47689,"server_id":1,"link":"photo_623737.html","width":130,"caption":"","height":86});
															thumbnails[623738] = clik.newPhoto({"id":623738,"src":"MJS607S.jpg","galleries_id":47689,"server_id":1,"link":"photo_623738.html","width":130,"caption":"","height":86});
															thumbnails[623740] = clik.newPhoto({"id":623740,"src":"MJS608S.jpg","galleries_id":47689,"server_id":1,"link":"photo_623740.html","width":130,"caption":"","height":86});
															thumbnails[623741] = clik.newPhoto({"id":623741,"src":"MJS609S.jpg","galleries_id":47689,"server_id":1,"link":"photo_623741.html","width":130,"caption":"","height":86});
															thumbnails[623744] = clik.newPhoto({"id":623744,"src":"MJS610S.jpg","galleries_id":47689,"server_id":1,"link":"photo_623744.html","width":130,"caption":"","height":86});
															thumbnails[623745] = clik.newPhoto({"id":623745,"src":"MJS611S.jpg","galleries_id":47689,"server_id":1,"link":"photo_623745.html","width":130,"caption":"","height":86});
															thumbnails[623750] = clik.newPhoto({"id":623750,"src":"MJS612S.jpg","galleries_id":47689,"server_id":1,"link":"photo_623750.html","width":130,"caption":"","height":86});
															thumbnails[623751] = clik.newPhoto({"id":623751,"src":"MJS613S.jpg","galleries_id":47689,"server_id":1,"link":"photo_623751.html","width":130,"caption":"","height":86});
															thumbnails[623777] = clik.newPhoto({"id":623777,"src":"MJS614S.jpg","galleries_id":47689,"server_id":1,"link":"photo_623777.html","width":130,"caption":"","height":86});
															thumbnails[623779] = clik.newPhoto({"id":623779,"src":"MJS615S.jpg","galleries_id":47689,"server_id":1,"link":"photo_623779.html","width":130,"caption":"","height":86});
															thumbnails[623783] = clik.newPhoto({"id":623783,"src":"MJS616S.jpg","galleries_id":47689,"server_id":1,"link":"photo_623783.html","width":130,"caption":"","height":90});
															thumbnails[634457] = clik.newPhoto({"id":634457,"src":"MJS003S.jpg","galleries_id":47653,"server_id":1,"link":"photo_634457.html","width":130,"caption":"Red Buoy, Whitby<br>\r\n","height":92});
															thumbnails[634470] = clik.newPhoto({"id":634470,"src":"MJS128S.jpg","galleries_id":47653,"server_id":1,"link":"photo_634470.html","width":130,"caption":"Grand Turk, Whitby Harbour","height":92});
															thumbnails[634483] = clik.newPhoto({"id":634483,"src":"MJS148S.jpg","galleries_id":47653,"server_id":1,"link":"photo_634483.html","width":130,"caption":"Upturned boat on Whitby beach","height":92});
															thumbnails[634494] = clik.newPhoto({"id":634494,"src":"MJS263S.jpg","galleries_id":47653,"server_id":1,"link":"photo_634494.html","width":130,"caption":"Boats in Whitby Upper Harbour","height":92});
															thumbnails[634497] = clik.newPhoto({"id":634497,"src":"MJS039S.jpg","galleries_id":47653,"server_id":1,"link":"photo_634497.html","width":92,"caption":"Under the Willow Tree","height":130});
															thumbnails[634502] = clik.newPhoto({"id":634502,"src":"MJS038S.jpg","galleries_id":47653,"server_id":1,"link":"photo_634502.html","width":92,"caption":"Boat at Grasmere","height":130});
															thumbnails[634509] = clik.newPhoto({"id":634509,"src":"MJS053S.jpg","galleries_id":47653,"server_id":1,"link":"photo_634509.html","width":92,"caption":"Tin Ghaut, Whitby","height":130});
															thumbnails[634511] = clik.newPhoto({"id":634511,"src":"MJS167S.jpg","galleries_id":47653,"server_id":1,"link":"photo_634511.html","width":92,"caption":"Boats and Oars at Whitby","height":130});
															thumbnails[634515] = clik.newPhoto({"id":634515,"src":"MJS191S.jpg","galleries_id":47653,"server_id":1,"link":"photo_634515.html","width":92,"caption":"Rowing Boats at Ruswarp","height":130});
															thumbnails[634522] = clik.newPhoto({"id":634522,"src":"MJS204S.jpg","galleries_id":47653,"server_id":1,"link":"photo_634522.html","width":92,"caption":"Grand Turk","height":130});
															thumbnails[634525] = clik.newPhoto({"id":634525,"src":"MJS205S.jpg","galleries_id":47653,"server_id":1,"link":"photo_634525.html","width":92,"caption":"Endeavour Departs","height":130});
															thumbnails[634529] = clik.newPhoto({"id":634529,"src":"MJS206S.jpg","galleries_id":47653,"server_id":1,"link":"photo_634529.html","width":92,"caption":"Endeavour Arrives","height":130});
															thumbnails[678270] = clik.newPhoto({"id":678270,"src":"MJS296S.jpg","galleries_id":51791,"server_id":1,"link":"photo_678270.html","width":130,"caption":"Newcastle 1","height":92});
															thumbnails[678276] = clik.newPhoto({"id":678276,"src":"MJS297S.jpg","galleries_id":51791,"server_id":1,"link":"photo_678276.html","width":130,"caption":"Newcastle 2","height":92});
															thumbnails[678281] = clik.newPhoto({"id":678281,"src":"MJS298S.jpg","galleries_id":51791,"server_id":1,"link":"photo_678281.html","width":130,"caption":"Newcastle 3","height":92});
															thumbnails[678293] = clik.newPhoto({"id":678293,"src":"MJS299S.jpg","galleries_id":51791,"server_id":1,"link":"photo_678293.html","width":130,"caption":"Newcastle 4","height":92});
															thumbnails[678296] = clik.newPhoto({"id":678296,"src":"MJS300S.jpg","galleries_id":51791,"server_id":1,"link":"photo_678296.html","width":130,"caption":"Newcastle 5","height":92});
															thumbnails[683092] = clik.newPhoto({"id":683092,"src":"MJS016S.jpg","galleries_id":52256,"server_id":1,"link":"photo_683092.html","width":130,"caption":"","height":92});
															thumbnails[683602] = clik.newPhoto({"id":683602,"src":"MJS269S.jpg","galleries_id":52256,"server_id":1,"link":"photo_683602.html","width":130,"caption":"","height":92});
															thumbnails[683607] = clik.newPhoto({"id":683607,"src":"MJS270S.jpg","galleries_id":52256,"server_id":1,"link":"photo_683607.html","width":130,"caption":"","height":92});
															thumbnails[683608] = clik.newPhoto({"id":683608,"src":"MJS274S.jpg","galleries_id":52256,"server_id":1,"link":"photo_683608.html","width":130,"caption":"","height":92});
															thumbnails[683610] = clik.newPhoto({"id":683610,"src":"MJS301S.jpg","galleries_id":52256,"server_id":1,"link":"photo_683610.html","width":130,"caption":"","height":92});
															thumbnails[683620] = clik.newPhoto({"id":683620,"src":"MJS302S.jpg","galleries_id":52256,"server_id":1,"link":"photo_683620.html","width":130,"caption":"","height":92});
															thumbnails[683630] = clik.newPhoto({"id":683630,"src":"MJS303S.jpg","galleries_id":52256,"server_id":1,"link":"photo_683630.html","width":130,"caption":"","height":92});
															thumbnails[683633] = clik.newPhoto({"id":683633,"src":"MJS304S.jpg","galleries_id":52256,"server_id":1,"link":"photo_683633.html","width":130,"caption":"","height":92});
															thumbnails[683637] = clik.newPhoto({"id":683637,"src":"MJS305S.jpg","galleries_id":52256,"server_id":1,"link":"photo_683637.html","width":130,"caption":"","height":92});
															thumbnails[683640] = clik.newPhoto({"id":683640,"src":"MJS306S.jpg","galleries_id":52256,"server_id":1,"link":"photo_683640.html","width":130,"caption":"","height":92});
															thumbnails[683644] = clik.newPhoto({"id":683644,"src":"MJS307S.jpg","galleries_id":52256,"server_id":1,"link":"photo_683644.html","width":130,"caption":"","height":92});
															thumbnails[683646] = clik.newPhoto({"id":683646,"src":"MJS308S.jpg","galleries_id":52256,"server_id":1,"link":"photo_683646.html","width":130,"caption":"","height":92});
															thumbnails[683650] = clik.newPhoto({"id":683650,"src":"MJS309S.jpg","galleries_id":52256,"server_id":1,"link":"photo_683650.html","width":130,"caption":"","height":92});
															thumbnails[683658] = clik.newPhoto({"id":683658,"src":"MJS310S.jpg","galleries_id":52256,"server_id":1,"link":"photo_683658.html","width":130,"caption":"","height":92});
															thumbnails[683664] = clik.newPhoto({"id":683664,"src":"MJS311S.jpg","galleries_id":52256,"server_id":1,"link":"photo_683664.html","width":130,"caption":"","height":92});
															thumbnails[683670] = clik.newPhoto({"id":683670,"src":"MJS312S.jpg","galleries_id":52256,"server_id":1,"link":"photo_683670.html","width":130,"caption":"","height":92});
															thumbnails[683676] = clik.newPhoto({"id":683676,"src":"MJS313S.jpg","galleries_id":52256,"server_id":1,"link":"photo_683676.html","width":130,"caption":"","height":92});
															thumbnails[683681] = clik.newPhoto({"id":683681,"src":"MJS314S.jpg","galleries_id":52256,"server_id":1,"link":"photo_683681.html","width":130,"caption":"","height":92});
															thumbnails[683684] = clik.newPhoto({"id":683684,"src":"MJS315S.jpg","galleries_id":52256,"server_id":1,"link":"photo_683684.html","width":130,"caption":"","height":86});
															thumbnails[683688] = clik.newPhoto({"id":683688,"src":"MJS316S.jpg","galleries_id":52256,"server_id":1,"link":"photo_683688.html","width":130,"caption":"","height":92});
															thumbnails[685435] = clik.newPhoto({"id":685435,"src":"TAS103S.jpg","galleries_id":128478,"server_id":1,"link":"photo_685435.html","width":92,"caption":"St. Marks Square, Venice","height":130});
															thumbnails[685468] = clik.newPhoto({"id":685468,"src":"MJS015S.jpg","galleries_id":52443,"server_id":1,"link":"photo_685468.html","width":92,"caption":"","height":130});
															thumbnails[685470] = clik.newPhoto({"id":685470,"src":"MJS172S.jpg","galleries_id":52443,"server_id":1,"link":"photo_685470.html","width":92,"caption":"","height":130});
															thumbnails[685471] = clik.newPhoto({"id":685471,"src":"MJS278S.jpg","galleries_id":52443,"server_id":1,"link":"photo_685471.html","width":92,"caption":"","height":130});
															thumbnails[685473] = clik.newPhoto({"id":685473,"src":"MJS090S.jpg","galleries_id":52443,"server_id":1,"link":"photo_685473.html","width":92,"caption":"","height":130});
															thumbnails[685474] = clik.newPhoto({"id":685474,"src":"MJS091S.jpg","galleries_id":52443,"server_id":1,"link":"photo_685474.html","width":92,"caption":"","height":130});
															thumbnails[685475] = clik.newPhoto({"id":685475,"src":"MJS017S.jpg","galleries_id":52443,"server_id":1,"link":"photo_685475.html","width":92,"caption":"","height":130});
															thumbnails[685476] = clik.newPhoto({"id":685476,"src":"MJS271S.jpg","galleries_id":52443,"server_id":1,"link":"photo_685476.html","width":92,"caption":"","height":130});
															thumbnails[685478] = clik.newPhoto({"id":685478,"src":"MJS276S.jpg","galleries_id":52443,"server_id":1,"link":"photo_685478.html","width":92,"caption":"","height":130});
															thumbnails[685479] = clik.newPhoto({"id":685479,"src":"MJS014S.jpg","galleries_id":52443,"server_id":1,"link":"photo_685479.html","width":92,"caption":"","height":130});
															thumbnails[685481] = clik.newPhoto({"id":685481,"src":"MJS101S.jpg","galleries_id":52443,"server_id":1,"link":"photo_685481.html","width":92,"caption":"","height":130});
															thumbnails[685483] = clik.newPhoto({"id":685483,"src":"MJS102S.jpg","galleries_id":52443,"server_id":1,"link":"photo_685483.html","width":92,"caption":"","height":130});
															thumbnails[685485] = clik.newPhoto({"id":685485,"src":"MJS103S.jpg","galleries_id":52443,"server_id":1,"link":"photo_685485.html","width":92,"caption":"","height":130});
															thumbnails[685486] = clik.newPhoto({"id":685486,"src":"MJS104S.jpg","galleries_id":52443,"server_id":1,"link":"photo_685486.html","width":92,"caption":"","height":130});
															thumbnails[685487] = clik.newPhoto({"id":685487,"src":"MJS105S.jpg","galleries_id":52443,"server_id":1,"link":"photo_685487.html","width":92,"caption":"","height":130});
															thumbnails[685489] = clik.newPhoto({"id":685489,"src":"MJS106S.jpg","galleries_id":52443,"server_id":1,"link":"photo_685489.html","width":92,"caption":"","height":130});
															thumbnails[685490] = clik.newPhoto({"id":685490,"src":"MJS107S.jpg","galleries_id":52443,"server_id":1,"link":"photo_685490.html","width":92,"caption":"","height":130});
															thumbnails[685491] = clik.newPhoto({"id":685491,"src":"MJS108S.jpg","galleries_id":52443,"server_id":1,"link":"photo_685491.html","width":92,"caption":"","height":130});
															thumbnails[685492] = clik.newPhoto({"id":685492,"src":"MJS113S.jpg","galleries_id":52443,"server_id":1,"link":"photo_685492.html","width":92,"caption":"","height":130});
															thumbnails[685493] = clik.newPhoto({"id":685493,"src":"MJS089S.jpg","galleries_id":52443,"server_id":1,"link":"photo_685493.html","width":92,"caption":"","height":130});
															thumbnails[686435] = clik.newPhoto({"id":686435,"src":"MJS19S3.jpg","galleries_id":47877,"server_id":1,"link":"photo_686435.html","width":87,"caption":"","height":130});
															thumbnails[686450] = clik.newPhoto({"id":686450,"src":"MJS27S2.jpg","galleries_id":47877,"server_id":1,"link":"photo_686450.html","width":87,"caption":"","height":130});
															thumbnails[686461] = clik.newPhoto({"id":686461,"src":"MJS26S1.jpg","galleries_id":47877,"server_id":1,"link":"photo_686461.html","width":87,"caption":"","height":130});
															thumbnails[686467] = clik.newPhoto({"id":686467,"src":"MJS33S1.jpg","galleries_id":47877,"server_id":1,"link":"photo_686467.html","width":87,"caption":"","height":130});
															thumbnails[979141] = clik.newPhoto({"id":979141,"src":"MJS317S.jpg","galleries_id":44632,"server_id":1,"link":"photo_979141.html","width":130,"caption":"'Tranquility'","height":92});
															thumbnails[979189] = clik.newPhoto({"id":979189,"src":"MJS318S.jpg","galleries_id":44632,"server_id":1,"link":"photo_979189.html","width":130,"caption":"Moonlight on Whitby Piers","height":92});
															thumbnails[979204] = clik.newPhoto({"id":979204,"src":"MJS325S.jpg","galleries_id":44776,"server_id":1,"link":"photo_979204.html","width":130,"caption":"Goathland","height":92});
															thumbnails[1201296] = clik.newPhoto({"id":1201296,"src":"MJS326S.jpg","galleries_id":86196,"server_id":1,"link":"photo_1201296.html","width":130,"caption":"Robin Hood's Bay 1","height":92});
															thumbnails[1201303] = clik.newPhoto({"id":1201303,"src":"MJS327S.jpg","galleries_id":86196,"server_id":1,"link":"photo_1201303.html","width":130,"caption":"Robin Hood's Bay 2","height":92});
															thumbnails[1201324] = clik.newPhoto({"id":1201324,"src":"MJS328S.jpg","galleries_id":86196,"server_id":1,"link":"photo_1201324.html","width":130,"caption":"Whitby 1","height":92});
															thumbnails[1201326] = clik.newPhoto({"id":1201326,"src":"MJS329S.jpg","galleries_id":86196,"server_id":1,"link":"photo_1201326.html","width":130,"caption":"Whitby Viaduct","height":92});
															thumbnails[1201329] = clik.newPhoto({"id":1201329,"src":"MJS330S.jpg","galleries_id":86196,"server_id":1,"link":"photo_1201329.html","width":130,"caption":"Whitby 2","height":92});
															thumbnails[1201333] = clik.newPhoto({"id":1201333,"src":"MJS331S.jpg","galleries_id":86196,"server_id":1,"link":"photo_1201333.html","width":130,"caption":"Whitby 3","height":92});
															thumbnails[1201334] = clik.newPhoto({"id":1201334,"src":"MJS332S.jpg","galleries_id":86196,"server_id":1,"link":"photo_1201334.html","width":130,"caption":"Whitby 4","height":92});
															thumbnails[1201337] = clik.newPhoto({"id":1201337,"src":"MJS333S.jpg","galleries_id":86196,"server_id":1,"link":"photo_1201337.html","width":130,"caption":"Whitby 5","height":92});
															thumbnails[1497791] = clik.newPhoto({"id":1497791,"src":"MJS600S1.jpg","galleries_id":102539,"server_id":1,"link":"photo_1497791.html","width":92,"caption":"","height":130});
															thumbnails[1497819] = clik.newPhoto({"id":1497819,"src":"MJS601S1.jpg","galleries_id":102539,"server_id":1,"link":"photo_1497819.html","width":130,"caption":"","height":92});
															thumbnails[1497833] = clik.newPhoto({"id":1497833,"src":"MJS602S1.jpg","galleries_id":102539,"server_id":1,"link":"photo_1497833.html","width":130,"caption":"","height":92});
															thumbnails[1497837] = clik.newPhoto({"id":1497837,"src":"MJS603S.jpg","galleries_id":102539,"server_id":1,"link":"photo_1497837.html","width":92,"caption":"","height":130});
															thumbnails[1497839] = clik.newPhoto({"id":1497839,"src":"MJS604S1.jpg","galleries_id":102539,"server_id":1,"link":"photo_1497839.html","width":130,"caption":"","height":92});
															thumbnails[1497840] = clik.newPhoto({"id":1497840,"src":"TAS115S.jpg","galleries_id":128478,"server_id":1,"link":"photo_1497840.html","width":92,"caption":"Scarborough","height":130});
															thumbnails[1650206] = clik.newPhoto({"id":1650206,"src":"MJS336L_thumb.jpg","galleries_id":44632,"server_id":1,"link":"photo_1650206.html","width":130,"caption":"Wave against Whitby Pier Extension","height":89});
															thumbnails[1650210] = clik.newPhoto({"id":1650210,"src":"MJS337L_thumb.jpg","galleries_id":44632,"server_id":1,"link":"photo_1650210.html","width":130,"caption":"Rough Seas at Whitby","height":89});
															thumbnails[1916363] = clik.newPhoto({"id":1916363,"src":"TAS113L_thumb.jpg","galleries_id":128478,"server_id":1,"link":"photo_1916363.html","width":98,"caption":"Flowers at Burton Agnes Hall","height":130});
															thumbnails[1916369] = clik.newPhoto({"id":1916369,"src":"TAS123L_thumb.jpg","galleries_id":128478,"server_id":1,"link":"photo_1916369.html","width":87,"caption":"Sunflowers at Lythe, Near Whitby","height":130});
															thumbnails[1916399] = clik.newPhoto({"id":1916399,"src":"TAS106L_thumb.jpg","galleries_id":128478,"server_id":1,"link":"photo_1916399.html","width":98,"caption":"Red Poppy","height":130});
															thumbnails[1916418] = clik.newPhoto({"id":1916418,"src":"TAS124L_thumb.jpg","galleries_id":128478,"server_id":1,"link":"photo_1916418.html","width":130,"caption":"Red Gerbera","height":87});
															thumbnails[2687422] = clik.newPhoto({"id":2687422,"src":"TAS112L_thumb.jpg","galleries_id":128478,"server_id":1,"link":"photo_2687422.html","width":130,"caption":"Salmon Fishing, Sandsend","height":92});
															thumbnails[2687424] = clik.newPhoto({"id":2687424,"src":"TAS116L_thumb.jpg","galleries_id":128478,"server_id":1,"link":"photo_2687424.html","width":87,"caption":"Burton Agnes Hall, near Bridlington.","height":130});
															thumbnails[2687479] = clik.newPhoto({"id":2687479,"src":"TAS117L_thumb.jpg","galleries_id":128478,"server_id":1,"link":"photo_2687479.html","width":130,"caption":"Grand Turk in Whitby Upper Harbour","height":87});
															thumbnails[2687482] = clik.newPhoto({"id":2687482,"src":"TAS121L_thumb.jpg","galleries_id":128478,"server_id":1,"link":"photo_2687482.html","width":87,"caption":"Lobster Pots, Runswick Bay","height":130});
															thumbnails[2687490] = clik.newPhoto({"id":2687490,"src":"TAS122L_thumb.jpg","galleries_id":128478,"server_id":1,"link":"photo_2687490.html","width":130,"caption":"Fishing boat, Runswick Bay","height":87});
															thumbnails[2687494] = clik.newPhoto({"id":2687494,"src":"TAS130L_thumb.jpg","galleries_id":128478,"server_id":1,"link":"photo_2687494.html","width":130,"caption":"Cliff Lift, Saltburn","height":92});
															thumbnails[2687495] = clik.newPhoto({"id":2687495,"src":"TAS131L_thumb.jpg","galleries_id":128478,"server_id":1,"link":"photo_2687495.html","width":130,"caption":"Saltburn, Top of the cliff lift.","height":87});
															thumbnails[2687565] = clik.newPhoto({"id":2687565,"src":"TAS134L_thumb.jpg","galleries_id":128478,"server_id":1,"link":"photo_2687565.html","width":87,"caption":"Warm Glow","height":130});
															thumbnails[2687569] = clik.newPhoto({"id":2687569,"src":"TAS135L_thumb.jpg","galleries_id":128478,"server_id":1,"link":"photo_2687569.html","width":130,"caption":"Golden Light towards Sandsend","height":92});
															thumbnails[2687580] = clik.newPhoto({"id":2687580,"src":"TAS136L_thumb.jpg","galleries_id":128478,"server_id":1,"link":"photo_2687580.html","width":130,"caption":"Old Barn at Beck Hole, Goathland.","height":87});
															thumbnails[2687583] = clik.newPhoto({"id":2687583,"src":"TAS137L_thumb.jpg","galleries_id":128478,"server_id":1,"link":"photo_2687583.html","width":130,"caption":"Haygate Cross above Rosedale, North York Moors.","height":86});
															thumbnails[2687586] = clik.newPhoto({"id":2687586,"src":"TAS138L_thumb.jpg","galleries_id":128478,"server_id":1,"link":"photo_2687586.html","width":130,"caption":"The Quiet Garden","height":87});
															thumbnails[2687592] = clik.newPhoto({"id":2687592,"src":"TAS139L_thumb.jpg","galleries_id":128478,"server_id":1,"link":"photo_2687592.html","width":87,"caption":"'Helicopters'","height":130});
															thumbnails[2687594] = clik.newPhoto({"id":2687594,"src":"TAS140L_thumb.jpg","galleries_id":128478,"server_id":1,"link":"photo_2687594.html","width":87,"caption":"Dragon Drummer","height":130});
															thumbnails[2687608] = clik.newPhoto({"id":2687608,"src":"TAS141L_thumb.jpg","galleries_id":128478,"server_id":1,"link":"photo_2687608.html","width":87,"caption":"Rose and Bird House","height":130});
															thumbnails[2696923] = clik.newPhoto({"id":2696923,"src":"TAS142L_thumb.jpg","galleries_id":128478,"server_id":1,"link":"photo_2696923.html","width":130,"caption":"Evening Sunlight on Whitby's West Cliff","height":92});
															thumbnails[2696925] = clik.newPhoto({"id":2696925,"src":"TAS108L_thumb.jpg","galleries_id":128478,"server_id":1,"link":"photo_2696925.html","width":130,"caption":"Aboard H.M.S. Bark Endeavour in Whitby Harbour","height":92});
															thumbnails[3228910] = clik.newPhoto({"id":3228910,"src":"MJS339L_thumb.jpg","galleries_id":47653,"server_id":1,"link":"photo_3228910.html","width":89,"caption":"Grand Turk at Night","height":130});
															thumbnails[7510348] = clik.newPhoto({"id":7510348,"src":"MJS343L_thumb.jpg","galleries_id":407259,"server_id":1,"link":"photo_7510348.html","width":130,"caption":"","height":94});
															thumbnails[7510432] = clik.newPhoto({"id":7510432,"src":"MJS344L_thumb.jpg","galleries_id":407259,"server_id":1,"link":"photo_7510432.html","width":130,"caption":"","height":94});
															thumbnails[7510461] = clik.newPhoto({"id":7510461,"src":"MJS318L_A1BDB39A-24E8-5EC4-4FE03CC009506B8F_thumb.jpg","galleries_id":407259,"server_id":1,"link":"photo_7510461.html","width":130,"caption":"","height":92});
															thumbnails[7510467] = clik.newPhoto({"id":7510467,"src":"MJS341L_thumb.jpg","galleries_id":407259,"server_id":1,"link":"photo_7510467.html","width":130,"caption":"","height":94});
															thumbnails[7510478] = clik.newPhoto({"id":7510478,"src":"MJS296L_A1C08897-24E8-5EC4-4FD66DE47036248A_thumb.jpg","galleries_id":407259,"server_id":1,"link":"photo_7510478.html","width":130,"caption":"","height":92});
															thumbnails[7510482] = clik.newPhoto({"id":7510482,"src":"MJS315L_A1C19F77-24E8-5EC4-4F503D8484F46391_thumb.jpg","galleries_id":407259,"server_id":1,"link":"photo_7510482.html","width":130,"caption":"","height":86});
															thumbnails[7510485] = clik.newPhoto({"id":7510485,"src":"MJS324L_A1C2962C-24E8-5EC4-4FA03C2F5AA96342_thumb.jpg","galleries_id":407259,"server_id":1,"link":"photo_7510485.html","width":89,"caption":"","height":130});
															thumbnails[7510491] = clik.newPhoto({"id":7510491,"src":"MJS342L_thumb.jpg","galleries_id":407259,"server_id":1,"link":"photo_7510491.html","width":94,"caption":"","height":130});
															thumbnails[581306] = clik.newPhoto({"id":581306,"src":"MJS08S1.jpg","galleries_id":44632,"server_id":1,"link":"photo_581306.html","width":130,"caption":"Through the Keyhole","height":87});
															thumbnails[581332] = clik.newPhoto({"id":581332,"src":"MJS005s.jpg","galleries_id":44782,"server_id":1,"link":"photo_581332.html","width":130,"caption":"Pure New Wool","height":92});
															thumbnails[579580] = clik.newPhoto({"id":579580,"src":"MJS26S.jpg","galleries_id":44614,"server_id":1,"link":"photo_579580.html","width":87,"caption":"Sunrise","height":130});
															thumbnails[579862] = clik.newPhoto({"id":579862,"src":"MJS067S.jpg","galleries_id":44632,"server_id":1,"link":"photo_579862.html","width":130,"caption":"Sunset, Whitby Pier","height":92});
															thumbnails[581343] = clik.newPhoto({"id":581343,"src":"MJS11S1.jpg","galleries_id":44782,"server_id":1,"link":"photo_581343.html","width":130,"caption":"Curious Cow","height":87});
															thumbnails[7510439] = clik.newPhoto({"id":7510439,"src":"MJS339L_A1B9BB87-24E8-5EC4-4FB322035B6BB616_thumb.jpg","galleries_id":407259,"server_id":1,"link":"photo_7510439.html","width":89,"caption":"","height":130});
															thumbnails[579864] = clik.newPhoto({"id":579864,"src":"MJS129S.jpg","galleries_id":44632,"server_id":1,"link":"photo_579864.html","width":130,"caption":"Stormy Seas, Whitby","height":87});
															thumbnails[581369] = clik.newPhoto({"id":581369,"src":"MJS041S.jpg","galleries_id":44782,"server_id":1,"link":"photo_581369.html","width":130,"caption":"Running Deer","height":92});
															thumbnails[591970] = clik.newPhoto({"id":591970,"src":"MJS020S.jpg","galleries_id":44776,"server_id":1,"link":"photo_591970.html","width":130,"caption":"A New Dawn","height":92});
															thumbnails[581374] = clik.newPhoto({"id":581374,"src":"MJS065S.jpg","galleries_id":44782,"server_id":1,"link":"photo_581374.html","width":130,"caption":"Daisy","height":92});
															thumbnails[579905] = clik.newPhoto({"id":579905,"src":"MJS292S.jpg","galleries_id":44632,"server_id":1,"link":"photo_579905.html","width":130,"caption":"High Tide on Whitby Pier","height":92});
															thumbnails[581336] = clik.newPhoto({"id":581336,"src":"MJS080S.jpg","galleries_id":44776,"server_id":1,"link":"photo_581336.html","width":87,"caption":"Morning Glory","height":130});
															thumbnails[579861] = clik.newPhoto({"id":579861,"src":"MJS062S.jpg","galleries_id":44632,"server_id":1,"link":"photo_579861.html","width":130,"caption":"Sunrise on Whitby's Piers","height":92});
															thumbnails[581337] = clik.newPhoto({"id":581337,"src":"MJS88S.jpg","galleries_id":44776,"server_id":1,"link":"photo_581337.html","width":87,"caption":"Hole of Horcum","height":130});
															thumbnails[591979] = clik.newPhoto({"id":591979,"src":"MJS021S.jpg","galleries_id":47653,"server_id":1,"link":"photo_591979.html","width":92,"caption":"On Reflection...","height":130});
															thumbnails[579863] = clik.newPhoto({"id":579863,"src":"MJS096S.jpg","galleries_id":44632,"server_id":1,"link":"photo_579863.html","width":130,"caption":"Evening Sunlight, Whitby","height":87});
															thumbnails[591982] = clik.newPhoto({"id":591982,"src":"MJS074S.jpg","galleries_id":44776,"server_id":1,"link":"photo_591982.html","width":92,"caption":"Acaster Malbis","height":130});
															thumbnails[579865] = clik.newPhoto({"id":579865,"src":"MJS133S.jpg","galleries_id":44632,"server_id":1,"link":"photo_579865.html","width":130,"caption":"Under the pier extensions, Whitby","height":87});
															thumbnails[591986] = clik.newPhoto({"id":591986,"src":"MJS073S.jpg","galleries_id":44776,"server_id":1,"link":"photo_591986.html","width":92,"caption":"Rowing Boat","height":130});
															thumbnails[579866] = clik.newPhoto({"id":579866,"src":"MJS186S.jpg","galleries_id":44632,"server_id":1,"link":"photo_579866.html","width":130,"caption":"Early Morning, Whitby Sands","height":87});
															thumbnails[579901] = clik.newPhoto({"id":579901,"src":"MJS200S.jpg","galleries_id":44632,"server_id":1,"link":"photo_579901.html","width":130,"caption":"Bright Beach Huts, Whitby","height":87});
															thumbnails[579907] = clik.newPhoto({"id":579907,"src":"TAS107S.jpg","galleries_id":128478,"server_id":1,"link":"photo_579907.html","width":130,"caption":"Rainbow on Whitby Abbey","height":92});
															thumbnails[579868] = clik.newPhoto({"id":579868,"src":"MJS196S.jpg","galleries_id":44632,"server_id":1,"link":"photo_579868.html","width":130,"caption":"New day dawning, Sandsend","height":87});
															thumbnails[579908] = clik.newPhoto({"id":579908,"src":"TAS111S.jpg","galleries_id":128478,"server_id":1,"link":"photo_579908.html","width":130,"caption":"Coble on Sandsend beach","height":92});
															thumbnails[677936] = clik.newPhoto({"id":677936,"src":"MJS045S.jpg","galleries_id":44632,"server_id":1,"link":"photo_677936.html","width":130,"caption":"Foaming at the Harbour Mouth","height":92});
															thumbnails[677941] = clik.newPhoto({"id":677941,"src":"MJS059S.jpg","galleries_id":44632,"server_id":1,"link":"photo_677941.html","width":130,"caption":"Partial Eclipse, Whitby","height":92});
															thumbnails[592002] = clik.newPhoto({"id":592002,"src":"MJS115S.jpg","galleries_id":44632,"server_id":1,"link":"photo_592002.html","width":130,"caption":"Misty Abbey,<br>\r\nWhitby","height":92});
															thumbnails[592004] = clik.newPhoto({"id":592004,"src":"MJS125S.jpg","galleries_id":44632,"server_id":1,"link":"photo_592004.html","width":130,"caption":"Tin Ghaut, Whitby","height":92});
															thumbnails[579903] = clik.newPhoto({"id":579903,"src":"MJS288S.jpg","galleries_id":44632,"server_id":1,"link":"photo_579903.html","width":130,"caption":"From the Sail Loft","height":92});
															thumbnails[677947] = clik.newPhoto({"id":677947,"src":"MJS287S.jpg","galleries_id":44632,"server_id":1,"link":"photo_677947.html","width":130,"caption":"Whitby from the 'New Bridge'","height":92});
															thumbnails[622881] = clik.newPhoto({"id":622881,"src":"MJS183S.jpg","galleries_id":44632,"server_id":1,"link":"photo_622881.html","width":130,"caption":"Morning Light, Whitby Beach","height":92});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[44614] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Whitby 1","link":"gallery_44614.html","maxRecords":0.0,"photoIDs":[979165.0,579822.0,579827.0,579831.0,579832.0,579835.0,579838.0,579840.0,579842.0,579844.0,579845.0,579847.0,579848.0,579849.0,579850.0,579851.0,579852.0,591996.0,597351.0,597352.0,579580.0],"skipIndex":0,"section_code":"gallery","featured_images":979165.0,"id":44614,"singleSection":false});				  						galleries[44632] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Whitby 2","link":"gallery_44632.html","maxRecords":0.0,"photoIDs":[677958.0,979141.0,979189.0,1650206.0,1650210.0,581306.0,579862.0,579864.0,579905.0,579861.0,579863.0,579865.0,579866.0,579901.0,579868.0,677936.0,677941.0,592002.0,592004.0,579903.0,677947.0,622881.0],"skipIndex":0,"section_code":"gallery","featured_images":677958.0,"id":44632,"singleSection":false});				  						galleries[407259] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Evening Shots","link":"gallery_407259.html","maxRecords":0.0,"photoIDs":[7510348.0,7510432.0,7510461.0,7510467.0,7510478.0,7510482.0,7510485.0,7510491.0,7510439.0],"skipIndex":0,"section_code":"gallery","featured_images":7510348.0,"id":407259,"singleSection":false});				  						galleries[47653] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Boats","link":"gallery_47653.html","maxRecords":0.0,"photoIDs":[592012.0,634457.0,634470.0,634483.0,634494.0,634497.0,634502.0,634509.0,634511.0,634515.0,634522.0,634525.0,634529.0,3228910.0,591979.0],"skipIndex":0,"section_code":"gallery","featured_images":592012.0,"id":47653,"singleSection":false});				  						galleries[86196] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Aerial Views","link":"gallery_86196.html","maxRecords":0.0,"photoIDs":[1201296.0,1201303.0,1201324.0,1201326.0,1201329.0,1201333.0,1201334.0,1201337.0],"skipIndex":0,"section_code":"gallery","featured_images":1201324.0,"id":86196,"singleSection":false});				  						galleries[44776] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Countryside","link":"gallery_44776.html","maxRecords":0.0,"photoIDs":[581312.0,581315.0,581319.0,979204.0,591970.0,581336.0,581337.0,591982.0,591986.0],"skipIndex":0,"section_code":"gallery","featured_images":581315.0,"id":44776,"singleSection":false});				  						galleries[44782] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Animals","link":"gallery_44782.html","maxRecords":0.0,"photoIDs":[581334.0,581366.0,581370.0,583502.0,583505.0,583514.0,583516.0,583517.0,583520.0,583521.0,581332.0,581343.0,581369.0,581374.0],"skipIndex":0,"section_code":"gallery","featured_images":581343.0,"id":44782,"singleSection":false});				  						galleries[102539] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Scarborough","link":"gallery_102539.html","maxRecords":0.0,"photoIDs":[1497791.0,1497819.0,1497833.0,1497837.0,1497839.0],"skipIndex":0,"section_code":"gallery","featured_images":1497839.0,"id":102539,"singleSection":false});				  						galleries[51791] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Newcastle","link":"gallery_51791.html","maxRecords":0.0,"photoIDs":[678270.0,678276.0,678281.0,678293.0,678296.0],"skipIndex":0,"section_code":"gallery","featured_images":678270.0,"id":51791,"singleSection":false});				  						galleries[47689] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Rome","link":"gallery_47689.html","maxRecords":0.0,"photoIDs":[623732.0,623733.0,623734.0,623735.0,623737.0,623738.0,623740.0,623741.0,623744.0,623745.0,623750.0,623751.0,623777.0,623779.0,623783.0],"skipIndex":0,"section_code":"gallery","featured_images":623732.0,"id":47689,"singleSection":false});				  						galleries[52256] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Venice 1","link":"gallery_52256.html","maxRecords":0.0,"photoIDs":[683092.0,683602.0,683607.0,683608.0,683610.0,683620.0,683630.0,683633.0,683637.0,683640.0,683644.0,683646.0,683650.0,683658.0,683664.0,683670.0,683676.0,683681.0,683684.0,683688.0],"skipIndex":0,"section_code":"gallery","featured_images":683602.0,"id":52256,"singleSection":false});				  						galleries[52443] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Venice 2","link":"gallery_52443.html","maxRecords":0.0,"photoIDs":[685468.0,685470.0,685471.0,685473.0,685474.0,685475.0,685476.0,685478.0,685479.0,685481.0,685483.0,685485.0,685486.0,685487.0,685489.0,685490.0,685491.0,685492.0,685493.0],"skipIndex":0,"section_code":"gallery","featured_images":"685493,685492,685491,685490,685489,685487,685486,685485,685483,685481","id":52443,"singleSection":false});				  						galleries[128478] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Tricia's Photographs","link":"gallery_128478.html","maxRecords":0.0,"photoIDs":[581323.0,581339.0,685435.0,1497840.0,1916363.0,1916369.0,1916399.0,1916418.0,2687422.0,2687424.0,2687479.0,2687482.0,2687490.0,2687494.0,2687495.0,2687565.0,2687569.0,2687580.0,2687583.0,2687586.0,2687592.0,2687594.0,2687608.0,2696923.0,2696925.0,579907.0,579908.0],"skipIndex":0,"section_code":"gallery","featured_images":2687580.0,"id":128478,"singleSection":false});				  						galleries[47877] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Book - 'Scene Through a Lens'","link":"gallery_47877.html","maxRecords":0.0,"photoIDs":[583476.0,686435.0,686450.0,686461.0,686467.0],"skipIndex":0,"section_code":"gallery","featured_images":583476.0,"id":47877,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '7510348,3226227,3198329';
imageSets[2] = '7510348,2687580,1497839,1201324,979165,683602,678270,677958,623732,592012,583476,581315,581343';
imageSets[3] = '7510491,7510485,7510482,7510478,7510467,7510461,7510439,7510432,7510348,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';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/flowergate/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/flowergate/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/flowergate/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/flowergate/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/flowergate/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/flowergate/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/flowergate/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/flowergate/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/flowergate/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/flowergate/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/flowergate/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/flowergate/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/flowergate/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/flowergate/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/flowergate/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/flowergate/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/flowergate/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/flowergate/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/flowergate/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/flowergate/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/flowergate/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/flowergate/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/flowergate/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/flowergate/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/flowergate/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/flowergate/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/flowergate/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = (backgrounds || photos || {})[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'whitby photos.co.uk: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
	temp += this.fnGetPaymentInfo();
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
																		temp += '<p>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
		 									temp += '<select class="paymentlink" name="payment_options_id" onchange="updateCartValue($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
		else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
											temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm">';
			temp += '	<input type="hidden" name="item_option" value="' + item_option + '">';
			temp += '	<input type="hidden" name="site" value="FLOWERGATE">';
			temp += '	<input type="hidden" name="item_number" value="'+ this.id +'">';
			temp += '	<input type="hidden" name="quantity" value="1">';
						temp += '	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\'\;" onmouseout="this.className=\'button\'\;" type="Button">';
							temp += '	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';
			temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
			temp += '<div id="confirmContainer">';
			temp += '<div id="paymentConfirm">Item added to cart</div>';
			temp += '</div>';
			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;
	}
}

			

