window.thumbnails = {};
thumbnails[7368430] = clik.newPhoto({"link":"#","caption":"","height":130,"id":7368430,"server_id":31,"src":"waynerooneyblancheandrockydavidbowiewhitbyharbour_thumb.jpg","galleries_id":"","width":130});
thumbnails[9061536] = clik.newPhoto({"link":"#","caption":"JOHN WAYNE","height":130,"id":9061536,"server_id":31,"src":"johnwaynebobbycharltoncaptainscarlet1_thumb.jpg","galleries_id":"","width":130});
thumbnails[9061541] = clik.newPhoto({"link":"#","caption":"BOOKS, MAGAZINES & POSTERS","height":130,"id":9061541,"server_id":31,"src":"thebeatlesmarilynmonroedoctorwho_thumb.jpg","galleries_id":"","width":130});
thumbnails[9061543] = clik.newPhoto({"link":"#","caption":"CHILDREN'S BOOKS","height":130,"id":9061543,"server_id":31,"src":"cowgirlrosieblancheandrockylilyandthemagicalmoonbeam_thumb.jpg","galleries_id":"","width":130});
thumbnails[9061547] = clik.newPhoto({"link":"#","caption":"FOOTBALL MAGAZINES","height":130,"id":9061547,"server_id":31,"src":"georgebestlionelmessisergioaguerojavierhernandezwaynerooney_33A8F391-24E8-5EC4-4FDE5D800890CA5C_thumb.jpg","galleries_id":"","width":130});
thumbnails[9061544] = clik.newPhoto({"link":"#","caption":"NUTS CARTOON STRIP","height":130,"id":9061544,"server_id":31,"src":"robertomancinimariobalotelli_thumb.jpg","galleries_id":"","width":130});
thumbnails[9063572] = clik.newPhoto({"link":"#","caption":"POP ART","height":130,"id":9063572,"server_id":31,"src":"thebeatlessquirrelswanswans_thumb.jpg","galleries_id":"","width":130});
thumbnails[7870053] = clik.newPhoto({"link":"photo_7870053.html","caption":"3-D POP ART COLLECTION","height":130,"id":7870053,"server_id":31,"src":"popart_thumb.jpg","galleries_id":398854,"width":130});
thumbnails[7368649] = clik.newPhoto({"link":"photo_7368649.html","caption":"BLANCHE AND ROCKY","height":130,"id":7368649,"server_id":31,"src":"blancheandrockypolarbearbearspenguinpenguins11_thumb.jpg","galleries_id":398850,"width":130});
thumbnails[7379868] = clik.newPhoto({"link":"photo_7379868.html","caption":"ROONEY ","height":130,"id":7379868,"server_id":31,"src":"roo4_thumb.jpg","galleries_id":398852,"width":130});
thumbnails[7867146] = clik.newPhoto({"link":"photo_7867146.html","caption":"ZIGGY","height":130,"id":7867146,"server_id":31,"src":"davidbowieziggystardustpopart_thumb.jpg","galleries_id":398854,"width":130});
thumbnails[9041790] = clik.newPhoto({"link":"photo_9041790.html","caption":"WHITBY HARBOUR","height":130,"id":9041790,"server_id":31,"src":"whitbyharbour_thumb.jpg","galleries_id":476481,"width":130});
thumbnails[9043121] = clik.newPhoto({"link":"photo_9043121.html","caption":"NUTS","height":130,"id":9043121,"server_id":31,"src":"outsidetheboxrobertomancinimariobalotelli_thumb.jpg","galleries_id":476543,"width":130});
thumbnails[7379977] = clik.newPhoto({"link":"photo_7379977.html","caption":"BEST","height":130,"id":7379977,"server_id":31,"src":"georgebest4_thumb.jpg","galleries_id":398852,"width":130});
thumbnails[7390606] = clik.newPhoto({"link":"photo_7390606.html","caption":"BLANCHE AND ROCKY","height":130,"id":7390606,"server_id":31,"src":"blancheandrockypolarbearbearspenguinpenguins3_thumb.jpg","galleries_id":398850,"width":130});
thumbnails[7867152] = clik.newPhoto({"link":"photo_7867152.html","caption":"SUN KING","height":130,"id":7867152,"server_id":31,"src":"elvispresleypopart_thumb.jpg","galleries_id":398854,"width":130});
thumbnails[9041798] = clik.newPhoto({"link":"photo_9041798.html","caption":"WHITBY 199 STEPS","height":130,"id":9041798,"server_id":31,"src":"whitby199steps_thumb.jpg","galleries_id":476481,"width":130});
thumbnails[9043132] = clik.newPhoto({"link":"photo_9043132.html","caption":"NUTS","height":130,"id":9043132,"server_id":31,"src":"outsidetheboxkennydalglishluissaurez_thumb.jpg","galleries_id":476543,"width":130});
thumbnails[7390593] = clik.newPhoto({"link":"photo_7390593.html","caption":"A MUM IN A MILLION","height":130,"id":7390593,"server_id":31,"src":"amominamillionpenguinpenguins11_thumb.jpg","galleries_id":398850,"width":130});
thumbnails[7397427] = clik.newPhoto({"link":"photo_7397427.html","caption":"MESSI, AGUERO & HERNANDEZ","height":130,"id":7397427,"server_id":31,"src":"messiaguerohernandez_thumb.jpg","galleries_id":398852,"width":130});
thumbnails[7867154] = clik.newPhoto({"link":"photo_7867154.html","caption":"MOP TOPS","height":130,"id":7867154,"server_id":31,"src":"thebeatlespopart_thumb.jpg","galleries_id":398854,"width":130});
thumbnails[9041811] = clik.newPhoto({"link":"photo_9041811.html","caption":"RUNWICK RAINBOW","height":130,"id":9041811,"server_id":31,"src":"runswickbayrainbow_thumb.jpg","galleries_id":476481,"width":130});
thumbnails[9043135] = clik.newPhoto({"link":"photo_9043135.html","caption":"NUTS","height":130,"id":9043135,"server_id":31,"src":"outsidetheboxrobertomartinezdavewhelan_thumb.jpg","galleries_id":476543,"width":130});
thumbnails[7379972] = clik.newPhoto({"link":"photo_7379972.html","caption":"VAN PERSIE","height":130,"id":7379972,"server_id":31,"src":"robinvanpersie1_thumb.jpg","galleries_id":398852,"width":130});
thumbnails[7390597] = clik.newPhoto({"link":"photo_7390597.html","caption":"A MUM IN A MILLION","height":130,"id":7390597,"server_id":31,"src":"amominamillioniglooigloossnowy1_thumb.jpg","galleries_id":398850,"width":130});
thumbnails[7867158] = clik.newPhoto({"link":"photo_7867158.html","caption":"BOHEMIAN QUEEN","height":130,"id":7867158,"server_id":31,"src":"freddiemercuryqueenpopart_thumb.jpg","galleries_id":398854,"width":130});
thumbnails[9041817] = clik.newPhoto({"link":"photo_9041817.html","caption":"LINDISFARNE CASTLE","height":130,"id":9041817,"server_id":31,"src":"lindisfarneholyisland_thumb.jpg","galleries_id":476481,"width":130});
thumbnails[9043137] = clik.newPhoto({"link":"photo_9043137.html","caption":"NUTS","height":130,"id":9043137,"server_id":31,"src":"outsidetheboxneilwarnock_thumb.jpg","galleries_id":476543,"width":130});
thumbnails[7368624] = clik.newPhoto({"link":"photo_7368624.html","caption":"YAKIMA'S COLOURS","height":130,"id":7368624,"server_id":31,"src":"yakimaeskimospolarbearbearsiglooigloossnowy1_thumb.jpg","galleries_id":398850,"width":130});
thumbnails[7379969] = clik.newPhoto({"link":"photo_7379969.html","caption":"ROONEY","height":130,"id":7379969,"server_id":31,"src":"waynerooney2_thumb.jpg","galleries_id":398852,"width":130});
thumbnails[7867162] = clik.newPhoto({"link":"photo_7867162.html","caption":"PURPLE JIMI","height":130,"id":7867162,"server_id":31,"src":"jimihendrixpopart_thumb.jpg","galleries_id":398854,"width":130});
thumbnails[9041823] = clik.newPhoto({"link":"photo_9041823.html","caption":"STORM OVER ROSEBERRY","height":130,"id":9041823,"server_id":31,"src":"roseberrytoppingstorm_thumb.jpg","galleries_id":476481,"width":130});
thumbnails[9043139] = clik.newPhoto({"link":"photo_9043139.html","caption":"NUTS","height":130,"id":9043139,"server_id":31,"src":"outsidetheboxjohnterryfranklampard_thumb.jpg","galleries_id":476543,"width":130});
thumbnails[7368623] = clik.newPhoto({"link":"photo_7368623.html","caption":"YAKIMA'S COLOURS","height":130,"id":7368623,"server_id":31,"src":"yakimaeskimospolarbearbearssnowy21_thumb.jpg","galleries_id":398850,"width":130});
thumbnails[7379971] = clik.newPhoto({"link":"photo_7379971.html","caption":"ROONEY","height":130,"id":7379971,"server_id":31,"src":"waynerooney3_thumb.jpg","galleries_id":398852,"width":130});
thumbnails[7867163] = clik.newPhoto({"link":"photo_7867163.html","caption":"WILD ONE","height":130,"id":7867163,"server_id":31,"src":"marlonbrandopopart_thumb.jpg","galleries_id":398854,"width":130});
thumbnails[9041876] = clik.newPhoto({"link":"photo_9041876.html","caption":"ST NICHOLAS CHURCH, TADMARTON","height":130,"id":9041876,"server_id":31,"src":"stnicholaschurchtadmarton_thumb.jpg","galleries_id":476481,"width":130});
thumbnails[9043142] = clik.newPhoto({"link":"photo_9043142.html","caption":"THE SUN","height":130,"id":9043142,"server_id":31,"src":"waynerooney1_thumb.jpg","galleries_id":476543,"width":130});
thumbnails[7368605] = clik.newPhoto({"link":"photo_7368605.html","caption":"TIGER TOM","height":130,"id":7368605,"server_id":31,"src":"tigertomtigers2_thumb.jpg","galleries_id":398850,"width":130});
thumbnails[7379994] = clik.newPhoto({"link":"photo_7379994.html","caption":"CARROLL","height":130,"id":7379994,"server_id":31,"src":"carroll_thumb.jpg","galleries_id":398852,"width":130});
thumbnails[8737997] = clik.newPhoto({"link":"photo_8737997.html","caption":"MILES DAVIS","height":130,"id":8737997,"server_id":31,"src":"milesdavis_thumb.jpg","galleries_id":398854,"width":130});
thumbnails[9006477] = clik.newPhoto({"link":"photo_9006477.html","caption":"THE SUN","height":130,"id":9006477,"server_id":31,"src":"alanpardewmikeashley_thumb.jpg","galleries_id":476543,"width":130});
thumbnails[9041878] = clik.newPhoto({"link":"photo_9041878.html","caption":"SWAN & CYGNET","height":129,"id":9041878,"server_id":31,"src":"swanswanscygnet_thumb.jpg","galleries_id":476481,"width":130});
thumbnails[7368615] = clik.newPhoto({"link":"photo_7368615.html","caption":"TIGER TOM","height":130,"id":7368615,"server_id":31,"src":"tigertomtigersmoon4_thumb.jpg","galleries_id":398850,"width":130});
thumbnails[7397431] = clik.newPhoto({"link":"photo_7397431.html","caption":"AGUERO","height":130,"id":7397431,"server_id":31,"src":"sergioaguero3_thumb.jpg","galleries_id":398852,"width":130});
thumbnails[8738002] = clik.newPhoto({"link":"photo_8738002.html","caption":"ROLLING STONES","height":130,"id":8738002,"server_id":31,"src":"rollingstones_thumb.jpg","galleries_id":398854,"width":130});
thumbnails[9041881] = clik.newPhoto({"link":"photo_9041881.html","caption":"SWALCLIFFE SUNSET","height":130,"id":9041881,"server_id":31,"src":"swalcliffesunset_thumb.jpg","galleries_id":476481,"width":130});
thumbnails[9043147] = clik.newPhoto({"link":"photo_9043147.html","caption":"THE SUN","height":130,"id":9043147,"server_id":31,"src":"alexfergusonwaynerooney_thumb.jpg","galleries_id":476543,"width":130});
thumbnails[7368630] = clik.newPhoto({"link":"photo_7368630.html","caption":"BY THE LIGHT OF THE SILVERY MOON","height":130,"id":7368630,"server_id":31,"src":"haresmoon1_thumb.jpg","galleries_id":398850,"width":130});
thumbnails[8737986] = clik.newPhoto({"link":"photo_8737986.html","caption":"FRANK SINATRA","height":130,"id":8737986,"server_id":31,"src":"franksinatra_3DC8795E-1EC9-D45B-1CAC36BDED97E836_thumb.jpg","galleries_id":398854,"width":130});
thumbnails[9014858] = clik.newPhoto({"link":"photo_9014858.html","caption":"ROONEY","height":130,"id":9014858,"server_id":31,"src":"rooneyyell_thumb.jpg","galleries_id":398852,"width":130});
thumbnails[9041885] = clik.newPhoto({"link":"photo_9041885.html","caption":"SUNSHINE BECK","height":130,"id":9041885,"server_id":31,"src":"sunshinebeck_thumb.jpg","galleries_id":476481,"width":130});
thumbnails[9043152] = clik.newPhoto({"link":"photo_9043152.html","caption":"THE SUN","height":130,"id":9043152,"server_id":31,"src":"jeremykylewaynebridgejohnterry_thumb.jpg","galleries_id":476543,"width":130});
thumbnails[7368642] = clik.newPhoto({"link":"photo_7368642.html","caption":"BY THE LIGHT OF THE SILVERY MOON","height":130,"id":7368642,"server_id":31,"src":"haresmoonchickshens1_thumb.jpg","galleries_id":398850,"width":130});
thumbnails[7379973] = clik.newPhoto({"link":"photo_7379973.html","caption":"SCHOLES","height":130,"id":7379973,"server_id":31,"src":"scholes2_thumb.jpg","galleries_id":398852,"width":130});
thumbnails[9041888] = clik.newPhoto({"link":"photo_9041888.html","caption":"AUTUMN SHADOWS","height":130,"id":9041888,"server_id":31,"src":"autumnshadows_thumb.jpg","galleries_id":476481,"width":130});
thumbnails[9043155] = clik.newPhoto({"link":"photo_9043155.html","caption":"THE SUN","height":130,"id":9043155,"server_id":31,"src":"avramgrant_thumb.jpg","galleries_id":476543,"width":130});
thumbnails[9044226] = clik.newPhoto({"link":"photo_9044226.html","caption":"ELLA FITZGERALD","height":130,"id":9044226,"server_id":31,"src":"ellafitzgerald_thumb.jpg","galleries_id":398854,"width":130});
thumbnails[7368645] = clik.newPhoto({"link":"photo_7368645.html","caption":"LILY AND THE MAGICAL MOONBEAM","height":130,"id":7368645,"server_id":31,"src":"lilyandthemagicalmoonbeammoon11_thumb.jpg","galleries_id":398850,"width":130});
thumbnails[9041922] = clik.newPhoto({"link":"photo_9041922.html","caption":"JESTERS HILL","height":130,"id":9041922,"server_id":31,"src":"jestershill_thumb.jpg","galleries_id":476481,"width":130});
thumbnails[9044233] = clik.newPhoto({"link":"photo_9044233.html","caption":"DJANGO REINHARDT","height":130,"id":9044233,"server_id":31,"src":"djangoreinhardt_thumb.jpg","galleries_id":398854,"width":130});
thumbnails[7390603] = clik.newPhoto({"link":"photo_7390603.html","caption":"LILY AND THE MAGICAL MOONBEAM","height":130,"id":7390603,"server_id":31,"src":"lilyandthemagicalmoonbeammoon2_thumb.jpg","galleries_id":398850,"width":130});
thumbnails[8737993] = clik.newPhoto({"link":"photo_8737993.html","caption":"CHUCK BERRY","height":130,"id":8737993,"server_id":31,"src":"chuckberry_thumb.jpg","galleries_id":398854,"width":130});
thumbnails[9006497] = clik.newPhoto({"link":"photo_9006497.html","caption":"ROONEY","height":130,"id":9006497,"server_id":31,"src":"waynerooney2004_thumb.jpg","galleries_id":398852,"width":130});
thumbnails[9041923] = clik.newPhoto({"link":"photo_9041923.html","caption":"SUNSET ON THE LEA","height":130,"id":9041923,"server_id":31,"src":"sunsetlea_thumb.jpg","galleries_id":476481,"width":130});
thumbnails[7368643] = clik.newPhoto({"link":"photo_7368643.html","caption":"COWGIRL ROSIE AND HER FIVE BABY BISON","height":130,"id":7368643,"server_id":31,"src":"cowgirlrosiecowgirlsbison11_thumb.jpg","galleries_id":398850,"width":130});
thumbnails[8738006] = clik.newPhoto({"link":"photo_8738006.html","caption":"STRAY CATS","height":130,"id":8738006,"server_id":31,"src":"straycats_thumb.jpg","galleries_id":398854,"width":130});
thumbnails[9006466] = clik.newPhoto({"link":"photo_9006466.html","caption":"SHEARER & SUTTON","height":130,"id":9006466,"server_id":31,"src":"alanshearerstevesutton_thumb.jpg","galleries_id":398852,"width":130});
thumbnails[9041931] = clik.newPhoto({"link":"photo_9041931.html","caption":"TURQUOISE SHUTTERS","height":130,"id":9041931,"server_id":31,"src":"turquoiseshutters_thumb.jpg","galleries_id":476481,"width":130});
thumbnails[7507110] = clik.newPhoto({"link":"photo_7507110.html","caption":"COWGIRL ROSIE AND HER FIVE BABY BISON","height":130,"id":7507110,"server_id":31,"src":"cowgirlrosiecowgirlsbison4_thumb.jpg","galleries_id":398850,"width":130});
thumbnails[8802285] = clik.newPhoto({"link":"photo_8802285.html","caption":"ENGLAND v DENMARK","height":130,"id":8802285,"server_id":31,"src":"englanddenmarkprogramme_thumb.jpg","galleries_id":398852,"width":130});
thumbnails[9041933] = clik.newPhoto({"link":"photo_9041933.html","caption":"COBALT SHUTTERS","height":130,"id":9041933,"server_id":31,"src":"cobaltshutters_thumb.jpg","galleries_id":476481,"width":130});
thumbnails[9043072] = clik.newPhoto({"link":"photo_9043072.html","caption":"MARILYN MONROE","height":130,"id":9043072,"server_id":31,"src":"marilynmonroeathena_thumb.jpg","galleries_id":398854,"width":130});
thumbnails[7507111] = clik.newPhoto({"link":"photo_7507111.html","caption":"THE RUNAWAY TRAIN","height":130,"id":7507111,"server_id":31,"src":"runawaytrain1_thumb.jpg","galleries_id":398850,"width":130});
thumbnails[8802287] = clik.newPhoto({"link":"photo_8802287.html","caption":"ENGLAND v NORWAY","height":130,"id":8802287,"server_id":31,"src":"englandnorwayprogramme_thumb.jpg","galleries_id":398852,"width":130});
thumbnails[9041940] = clik.newPhoto({"link":"photo_9041940.html","caption":"LEAPING SQUIRREL","height":130,"id":9041940,"server_id":31,"src":"squirrelsquirrelsgouache_thumb.jpg","galleries_id":476481,"width":130});
thumbnails[9043082] = clik.newPhoto({"link":"photo_9043082.html","caption":"ERIC CLAPTON","height":130,"id":9043082,"server_id":31,"src":"ericclaptonsurvivor_thumb.jpg","galleries_id":398854,"width":130});
thumbnails[7507112] = clik.newPhoto({"link":"photo_7507112.html","caption":"THE RUNAWAY TRAIN","height":130,"id":7507112,"server_id":31,"src":"runawaytraintrains2_thumb.jpg","galleries_id":398850,"width":130});
thumbnails[8802288] = clik.newPhoto({"link":"photo_8802288.html","caption":"COLLYMORE","height":130,"id":8802288,"server_id":31,"src":"stancollymorenewbalanceposter1_thumb.jpg","galleries_id":398852,"width":130});
thumbnails[9041962] = clik.newPhoto({"link":"photo_9041962.html","caption":"NIGHT OWL","height":130,"id":9041962,"server_id":31,"src":"owlowlsgouache_thumb.jpg","galleries_id":476481,"width":130});
thumbnails[9043086] = clik.newPhoto({"link":"photo_9043086.html","caption":"ELVIS","height":130,"id":9043086,"server_id":31,"src":"elvispresleyathena_thumb.jpg","galleries_id":398854,"width":130});
thumbnails[7783972] = clik.newPhoto({"link":"photo_7783972.html","caption":"BUNNY DAYS","height":130,"id":7783972,"server_id":31,"src":"allpresent_thumb.jpg","galleries_id":398850,"width":130});
thumbnails[8789233] = clik.newPhoto({"link":"photo_8789233.html","caption":"CLOUGH","height":130,"id":8789233,"server_id":31,"src":"brianclough1_thumb.jpg","galleries_id":398852,"width":117});
thumbnails[9041950] = clik.newPhoto({"link":"photo_9041950.html","caption":"WOODLAND BADGER","height":130,"id":9041950,"server_id":31,"src":"badgerbadgergouache_thumb.jpg","galleries_id":476481,"width":130});
thumbnails[9043092] = clik.newPhoto({"link":"photo_9043092.html","caption":"THE BEATLES","height":130,"id":9043092,"server_id":31,"src":"thebeatleswhoswho_thumb.jpg","galleries_id":398854,"width":130});
thumbnails[9043191] = clik.newPhoto({"link":"photo_9043191.html","caption":"FRANCIS","height":130,"id":9043191,"server_id":31,"src":"trevorfrancis_thumb.jpg","galleries_id":398852,"width":130});
thumbnails[7783966] = clik.newPhoto({"link":"photo_7783966.html","caption":"BUNNY DAYS","height":130,"id":7783966,"server_id":31,"src":"galeforce_thumb.jpg","galleries_id":398850,"width":130});
thumbnails[9014412] = clik.newPhoto({"link":"photo_9014412.html","caption":"NEESKENS","height":130,"id":9014412,"server_id":31,"src":"neeskens_DFF237E7-1EC9-D45B-1CF4BFD8657D552A_thumb.jpg","galleries_id":398852,"width":130});
thumbnails[9041960] = clik.newPhoto({"link":"photo_9041960.html","caption":"KINGFISHER","height":130,"id":9041960,"server_id":31,"src":"kingfishekingfishersgouache_thumb.jpg","galleries_id":476481,"width":130});
thumbnails[9043102] = clik.newPhoto({"link":"photo_9043102.html","caption":"TONY BALDRY MP","height":130,"id":9043102,"server_id":31,"src":"tonybaldry_thumb.jpg","galleries_id":398854,"width":130});
thumbnails[7783975] = clik.newPhoto({"link":"photo_7783975.html","caption":"BUNNY DAYS","height":130,"id":7783975,"server_id":31,"src":"pairofdrips_thumb.jpg","galleries_id":398850,"width":130});
thumbnails[9006485] = clik.newPhoto({"link":"photo_9006485.html","caption":"SHILTON","height":130,"id":9006485,"server_id":31,"src":"petershilton_thumb.jpg","galleries_id":398852,"width":130});
thumbnails[9041964] = clik.newPhoto({"link":"photo_9041964.html","caption":"BALLERINA ON WHITE","height":130,"id":9041964,"server_id":31,"src":"balletballerinaswhite_thumb.jpg","galleries_id":476481,"width":130});
thumbnails[7379980] = clik.newPhoto({"link":"photo_7379980.html","caption":"PELE","height":130,"id":7379980,"server_id":31,"src":"pele1_thumb.jpg","galleries_id":398852,"width":130});
thumbnails[7783973] = clik.newPhoto({"link":"photo_7783973.html","caption":"BUNNY DAYS","height":130,"id":7783973,"server_id":31,"src":"readyornot_thumb.jpg","galleries_id":398850,"width":130});
thumbnails[9041967] = clik.newPhoto({"link":"photo_9041967.html","caption":"BALLERINA ON BLACK","height":130,"id":9041967,"server_id":31,"src":"balletballerinasblack_thumb.jpg","galleries_id":476481,"width":130});
thumbnails[9014393] = clik.newPhoto({"link":"photo_9014393.html","caption":"DALY","height":130,"id":9014393,"server_id":31,"src":"johndaly_thumb.jpg","galleries_id":398852,"width":130});
thumbnails[9006490] = clik.newPhoto({"link":"photo_9006490.html","caption":"OVETT","height":130,"id":9006490,"server_id":31,"src":"steveovett_thumb.jpg","galleries_id":398852,"width":130});
thumbnails[8802336] = clik.newPhoto({"link":"photo_8802336.html","caption":"THOMPSON","height":130,"id":8802336,"server_id":31,"src":"daleythompson_thumb.jpg","galleries_id":398852,"width":130});
thumbnails[8737975] = clik.newPhoto({"link":"photo_8737975.html","caption":"CHRISTIE","height":130,"id":8737975,"server_id":31,"src":"linfordchristie1_thumb.jpg","galleries_id":398852,"width":130});
thumbnails[9006474] = clik.newPhoto({"link":"photo_9006474.html","caption":"NEW BALANCE","height":130,"id":9006474,"server_id":31,"src":"newbalance_thumb.jpg","galleries_id":398852,"width":130});
thumbnails[9044220] = clik.newPhoto({"link":"photo_9044220.html","caption":"BRIAN CLOUGH","height":130,"id":9044220,"server_id":31,"src":"brianclough_thumb.jpg","galleries_id":398854,"width":117});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
galleries[398852] = clik.newGallery({"photoIDs":[7379868,7379977,7397427,7379972,7379969,7379971,7379994,7397431,9014858,7379973,9006497,9006466,8802285,8802287,8802288,8789233,9043191,9014412,9006485,7379980,9014393,9006490,8802336,8737975,9006474],"link":"section475177_398852.html","skipIndex":0,"section_code":"section475177","id":398852,"parentGallery":"","featured_images":7379868,"maxRecords":0,"usePopups":true,"singleSection":false,"title":"SPORT"});galleries[476543] = clik.newGallery({"photoIDs":[9043121,9043132,9043135,9043137,9043139,9043142,9006477,9043147,9043152,9043155],"link":"section475177_476543.html","skipIndex":0,"section_code":"section475177","id":476543,"parentGallery":"","featured_images":9043121,"maxRecords":0,"usePopups":true,"singleSection":false,"title":"CARTOON STRIPS"});galleries[398850] = clik.newGallery({"photoIDs":[7368649,7390606,7390593,7390597,7368624,7368623,7368605,7368615,7368630,7368642,7368645,7390603,7368643,7507110,7507111,7507112,7783972,7783966,7783975,7783973],"link":"section475177_398850.html","skipIndex":0,"section_code":"section475177","id":398850,"parentGallery":"","featured_images":7368649,"maxRecords":0,"usePopups":true,"singleSection":false,"title":"CHILDREN'S BOOKS"});galleries[398854] = clik.newGallery({"photoIDs":[7870053,7867146,7867152,7867154,7867158,7867162,7867163,8737997,8738002,8737986,9044226,9044233,8737993,8738006,9043072,9043082,9043086,9043092,9043102,9044220],"link":"section475177_398854.html","skipIndex":0,"section_code":"section475177","id":398854,"parentGallery":"","featured_images":7867146,"maxRecords":0,"usePopups":true,"singleSection":false,"title":"PORTRAITS"});galleries[476481] = clik.newGallery({"photoIDs":[9041790,9041798,9041811,9041817,9041823,9041876,9041878,9041881,9041885,9041888,9041922,9041923,9041931,9041933,9041940,9041962,9041950,9041960,9041964,9041967],"link":"section475177_476481.html","skipIndex":0,"section_code":"section475177","id":476481,"parentGallery":"","featured_images":9041790,"maxRecords":0,"usePopups":true,"singleSection":false,"title":"PAINTINGS"});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[3] = '9063572,9061547,9061544,9061543,9061541,9061536,9044233,9044226,9044220,9043191,9043155,9043152,9043147,9043142,9043139,9043137,9043135,9043132,9043121,9043102,9043092,9043086,9043082,9043072,9041967,9041964,9041962,9041960,9041950,9041940,9041933,9041931,9041923,9041922,9041888,9041885,9041881,9041878,9041876,9041823,9041817,9041811,9041798,9041790,9014858,9014412,9014393,9006497,9006490,9006485';
imageSets[2] = '9043121,9041790,7867146,7379868,7368649';
imageSets[1] = '7368430';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/sgulbis/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/sgulbis/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/sgulbis/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/sgulbis/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/sgulbis/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/sgulbis/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/sgulbis/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/sgulbis/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/sgulbis/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/sgulbis/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/sgulbis/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/sgulbis/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/sgulbis/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/sgulbis/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/sgulbis/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/sgulbis/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/sgulbis/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/sgulbis/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/sgulbis/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/sgulbis/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/sgulbis/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/sgulbis/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/sgulbis/images';
		break;
	}
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/sgulbis/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/sgulbis/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/sgulbis/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/sgulbis/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 += 'section475177.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 && 'section475177' != '') {
					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 = 'Stephen Gulbis artist & illustrator: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
			
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.item_price !== '') {
			temp += '<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;
	}
}

		

