window.thumbnails = {};
															thumbnails[9107898] = clik.newPhoto({"id":9107898,"src":"Winter_Seas_-_Cromer_1_thumb.JPG","galleries_id":302356,"server_id":5,"link":"photo_9107898.html","width":130,"caption":"Winter Seas - Cromer","height":98});
															thumbnails[9107893] = clik.newPhoto({"id":9107893,"src":"Sunset_across_the_Humber_1_thumb.JPG","galleries_id":302356,"server_id":5,"link":"photo_9107893.html","width":130,"caption":"Sunset Across the Humber","height":105});
															thumbnails[9107890] = clik.newPhoto({"id":9107890,"src":"Summer_-_Great_Massingham_1_thumb.JPG","galleries_id":302356,"server_id":5,"link":"photo_9107890.html","width":130,"caption":"Summer - Great Massingham","height":108});
															thumbnails[9107886] = clik.newPhoto({"id":9107886,"src":"Stormy_seas_Bryher_1_thumb.JPG","galleries_id":302356,"server_id":5,"link":"photo_9107886.html","width":130,"caption":"Stormy Seas - Bryher","height":98});
															thumbnails[9107835] = clik.newPhoto({"id":9107835,"src":"Hells_Bay_-_Bryher_1_thumb.JPG","galleries_id":302356,"server_id":5,"link":"photo_9107835.html","width":130,"caption":"Hells Bay - Bryher","height":109});
															thumbnails[9107830] = clik.newPhoto({"id":9107830,"src":"Rock_of_Ages_1_thumb.JPG","galleries_id":302356,"server_id":5,"link":"photo_9107830.html","width":130,"caption":"Rock of Ages","height":105});
															thumbnails[8611056] = clik.newPhoto({"id":8611056,"src":"oilsflowersoct11_001_thumb.JPG","galleries_id":355310,"server_id":5,"link":"photo_8611056.html","width":130,"caption":"Poppies near Burnham","height":103});
															thumbnails[8611052] = clik.newPhoto({"id":8611052,"src":"oilsflowersoct11_002_thumb.JPG","galleries_id":355310,"server_id":5,"link":"photo_8611052.html","width":130,"caption":"Sunflowers at Glandford","height":104});
															thumbnails[7520542] = clik.newPhoto({"id":7520542,"src":"paintings2Feb11_001_thumb.JPG","galleries_id":407821,"server_id":5,"link":"photo_7520542.html","width":130,"caption":"Storm Watching - Cley beach","height":96});
															thumbnails[7520553] = clik.newPhoto({"id":7520553,"src":"paintings2Feb11_004_thumb.JPG","galleries_id":407821,"server_id":5,"link":"photo_7520553.html","width":130,"caption":"Gathering dawn","height":98});
															thumbnails[7520559] = clik.newPhoto({"id":7520559,"src":"paintings2Feb11_006_thumb.JPG","galleries_id":407821,"server_id":5,"link":"photo_7520559.html","width":130,"caption":"East End Dawn - Wells","height":99});
															thumbnails[7520568] = clik.newPhoto({"id":7520568,"src":"paintings2Feb11_012_thumb.JPG","galleries_id":407821,"server_id":5,"link":"photo_7520568.html","width":130,"caption":"Sublime Cloud Study 1","height":104});
															thumbnails[7520574] = clik.newPhoto({"id":7520574,"src":"paintings2Feb11_011_thumb.JPG","galleries_id":407821,"server_id":5,"link":"photo_7520574.html","width":130,"caption":"Sublime Cloud Study 2","height":102});
															thumbnails[7520590] = clik.newPhoto({"id":7520590,"src":"paintingsFeb11_008_thumb.JPG","galleries_id":407821,"server_id":5,"link":"photo_7520590.html","width":130,"caption":"At Rest Burnham Sunset","height":97});
															thumbnails[7520598] = clik.newPhoto({"id":7520598,"src":"paintingsFeb11_019_thumb.JPG","galleries_id":407821,"server_id":5,"link":"photo_7520598.html","width":130,"caption":"Stormy dawn - Wells","height":108});
															thumbnails[7520602] = clik.newPhoto({"id":7520602,"src":"paintingsFeb11_018_thumb.JPG","galleries_id":407821,"server_id":5,"link":"photo_7520602.html","width":130,"caption":"Dawn - Wells Harbour","height":97});
															thumbnails[7520605] = clik.newPhoto({"id":7520605,"src":"paintingsFeb11_017_thumb.JPG","galleries_id":407821,"server_id":5,"link":"photo_7520605.html","width":130,"caption":"Irish Gold","height":97});
															thumbnails[7520611] = clik.newPhoto({"id":7520611,"src":"paintingsFeb11_002_thumb.JPG","galleries_id":407821,"server_id":5,"link":"photo_7520611.html","width":130,"caption":"Approaching Day","height":97});
															thumbnails[7520618] = clik.newPhoto({"id":7520618,"src":"paintings2Feb11_014_thumb.JPG","galleries_id":407821,"server_id":5,"link":"photo_7520618.html","width":130,"caption":"Wintry sun","height":103});
															thumbnails[7520623] = clik.newPhoto({"id":7520623,"src":"paintings2Feb11_007_thumb.JPG","galleries_id":407821,"server_id":5,"link":"photo_7520623.html","width":130,"caption":"Approach of Evening","height":99});
															thumbnails[5365742] = clik.newPhoto({"id":5365742,"src":"paintmarch209_011_thumb.JPG","galleries_id":300338,"server_id":5,"link":"photo_5365742.html","width":130,"caption":"Stillness at the Break of day","height":97});
															thumbnails[8600905] = clik.newPhoto({"id":8600905,"src":"paintingsgalJune11_001_thumb.JPG","galleries_id":355310,"server_id":5,"link":"photo_8600905.html","width":130,"caption":"Rosy dawn","height":104});
															thumbnails[6438022] = clik.newPhoto({"id":6438022,"src":"norfolkjuly10_210_thumb.JPG","galleries_id":355310,"server_id":5,"link":"photo_6438022.html","width":130,"caption":"Sunset and Snow - Wells","height":103});
															thumbnails[6438034] = clik.newPhoto({"id":6438034,"src":"norfolkjuly10_213_thumb.JPG","galleries_id":355310,"server_id":5,"link":"photo_6438034.html","width":130,"caption":"Majorcan Sunset","height":103});
															thumbnails[6438037] = clik.newPhoto({"id":6438037,"src":"norfolkjuly10_214_thumb.JPG","galleries_id":355310,"server_id":5,"link":"photo_6438037.html","width":130,"caption":"Sun and Shadow - Holkham Beach","height":104});
															thumbnails[6438042] = clik.newPhoto({"id":6438042,"src":"norfolkjuly10_215_thumb.JPG","galleries_id":355310,"server_id":5,"link":"photo_6438042.html","width":130,"caption":"Granary - Wells - winter's Dawn","height":104});
															thumbnails[6438050] = clik.newPhoto({"id":6438050,"src":"norfolkjuly10_218_thumb.JPG","galleries_id":355310,"server_id":5,"link":"photo_6438050.html","width":130,"caption":"Granary and Albatross at Dawn","height":108});
															thumbnails[6438030] = clik.newPhoto({"id":6438030,"src":"norfolkjuly10_212_thumb.JPG","galleries_id":355310,"server_id":5,"link":"photo_6438030.html","width":130,"caption":"Wells Channel at dawn","height":162});
															thumbnails[5929025] = clik.newPhoto({"id":5929025,"src":"weddingartmay_063_thumb.JPG","galleries_id":330737,"server_id":5,"link":"photo_5929025.html","width":130,"caption":"Early Morning Light - East Quay","height":107});
															thumbnails[5929001] = clik.newPhoto({"id":5929001,"src":"weddingartmay_054_-_Copy_thumb.JPG","galleries_id":330737,"server_id":5,"link":"photo_5929001.html","width":130,"caption":"Sunrise - Wells","height":105});
															thumbnails[5928976] = clik.newPhoto({"id":5928976,"src":"weddingartmay_059_-_Copy_thumb.JPG","galleries_id":330737,"server_id":5,"link":"photo_5928976.html","width":130,"caption":"Spurn","height":108});
															thumbnails[5928999] = clik.newPhoto({"id":5928999,"src":"weddingartmay_060_thumb.JPG","galleries_id":330737,"server_id":5,"link":"photo_5928999.html","width":130,"caption":"winter evening - Flamboro","height":109});
															thumbnails[5929020] = clik.newPhoto({"id":5929020,"src":"weddingartmay_058_thumb.JPG","galleries_id":330737,"server_id":5,"link":"photo_5929020.html","width":130,"caption":"East Runton Beach","height":109});
															thumbnails[5929021] = clik.newPhoto({"id":5929021,"src":"weddingartmay_061_thumb.JPG","galleries_id":330737,"server_id":5,"link":"photo_5929021.html","width":130,"caption":"East Quay dawn","height":108});
															thumbnails[5929005] = clik.newPhoto({"id":5929005,"src":"weddingartmay_056_thumb.JPG","galleries_id":330737,"server_id":5,"link":"photo_5929005.html","width":130,"caption":"Holkham Beach - White Sail","height":108});
															thumbnails[5929028] = clik.newPhoto({"id":5929028,"src":"weddingartmay_064_thumb.JPG","galleries_id":330737,"server_id":5,"link":"photo_5929028.html","width":130,"caption":"Across the marshes - Burnham Norton","height":109});
															thumbnails[5929031] = clik.newPhoto({"id":5929031,"src":"weddingartmay_0551_thumb.JPG","galleries_id":330737,"server_id":5,"link":"photo_5929031.html","width":130,"caption":"Wells Beach","height":103});
															thumbnails[5663832] = clik.newPhoto({"id":5663832,"src":"Cornish_Surf_thumb.JPG","galleries_id":303567,"server_id":5,"link":"photo_5663832.html","width":130,"caption":"Cornish Surf","height":109});
															thumbnails[5663852] = clik.newPhoto({"id":5663852,"src":"skiespaintingsfeb10_004_thumb.JPG","galleries_id":303567,"server_id":5,"link":"photo_5663852.html","width":130,"caption":"Inspirations","height":109});
															thumbnails[5380994] = clik.newPhoto({"id":5380994,"src":"PaintingsJan10_079_thumb.JPG","galleries_id":303756,"server_id":5,"link":"photo_5380994.html","width":130,"caption":"Autumn Seas","height":108});
															thumbnails[5381013] = clik.newPhoto({"id":5381013,"src":"PaintingsJan10_077_thumb.JPG","galleries_id":302353,"server_id":5,"link":"photo_5381013.html","width":130,"caption":"High and Wide","height":108});
															thumbnails[5380987] = clik.newPhoto({"id":5380987,"src":"PaintingsJan10_071_-_Copy_thumb.JPG","galleries_id":302354,"server_id":5,"link":"photo_5380987.html","width":130,"caption":"Visitor Centre","height":102});
															thumbnails[5380934] = clik.newPhoto({"id":5380934,"src":"PaintingsJan10_046_thumb.JPG","galleries_id":300337,"server_id":5,"link":"photo_5380934.html","width":130,"caption":"Evening Calm","height":104});
															thumbnails[5380960] = clik.newPhoto({"id":5380960,"src":"PaintingsJan10_068_thumb.JPG","galleries_id":302354,"server_id":5,"link":"photo_5380960.html","width":130,"caption":"Winter's Afternoon","height":103});
															thumbnails[5380985] = clik.newPhoto({"id":5380985,"src":"PaintingsJan10_070_thumb.JPG","galleries_id":302354,"server_id":5,"link":"photo_5380985.html","width":130,"caption":"Lazy Afternoons","height":103});
															thumbnails[5380997] = clik.newPhoto({"id":5380997,"src":"PaintingsJan10_081_-_Copy_thumb.JPG","galleries_id":300337,"server_id":5,"link":"photo_5380997.html","width":130,"caption":"High and Dry","height":109});
															thumbnails[5365720] = clik.newPhoto({"id":5365720,"src":"Yorkshire09_011_thumb.JPG","galleries_id":300338,"server_id":5,"link":"photo_5365720.html","width":130,"caption":"Wide Open","height":97});
															thumbnails[5367297] = clik.newPhoto({"id":5367297,"src":"paintmarch209_019_thumb.JPG","galleries_id":300337,"server_id":5,"link":"photo_5367297.html","width":130,"caption":"Winter Sunshine","height":97});
															thumbnails[5380899] = clik.newPhoto({"id":5380899,"src":"PaintingsJan10_026_thumb.JPG","galleries_id":300337,"server_id":5,"link":"photo_5380899.html","width":130,"caption":"Approaching Storm","height":98});
															thumbnails[5380901] = clik.newPhoto({"id":5380901,"src":"PaintingsJan10_027_thumb.JPG","galleries_id":300337,"server_id":5,"link":"photo_5380901.html","width":130,"caption":"The White Horse","height":95});
															thumbnails[5380913] = clik.newPhoto({"id":5380913,"src":"PaintingsJan10_039_thumb.JPG","galleries_id":302354,"server_id":5,"link":"photo_5380913.html","width":130,"caption":"Light","height":93});
															thumbnails[5364946] = clik.newPhoto({"id":5364946,"src":"paintfeb09_055_thumb.JPG","galleries_id":302354,"server_id":5,"link":"photo_5364946.html","width":130,"caption":"Snow over the Trent","height":97});
															thumbnails[5365712] = clik.newPhoto({"id":5365712,"src":"paintfeb09_064_thumb.JPG","galleries_id":300338,"server_id":5,"link":"photo_5365712.html","width":130,"caption":"Spring Morning - Salthouse","height":96});
															thumbnails[5365766] = clik.newPhoto({"id":5365766,"src":"Feb09_014_thumb.JPG","galleries_id":302354,"server_id":5,"link":"photo_5365766.html","width":130,"caption":"Autumn Gold","height":96});
															thumbnails[5380910] = clik.newPhoto({"id":5380910,"src":"PaintingsJan10_035_thumb.JPG","galleries_id":302354,"server_id":5,"link":"photo_5380910.html","width":130,"caption":"In The Bleak Mid Winter","height":94});
															thumbnails[5380929] = clik.newPhoto({"id":5380929,"src":"PaintingsJan10_043_thumb.JPG","galleries_id":303756,"server_id":5,"link":"photo_5380929.html","width":130,"caption":"Lazy Sunday Afternoon","height":92});
															thumbnails[5380940] = clik.newPhoto({"id":5380940,"src":"PaintingsJan10_054_thumb.JPG","galleries_id":302353,"server_id":5,"link":"photo_5380940.html","width":130,"caption":"For Ever and Ever","height":104});
															thumbnails[5364913] = clik.newPhoto({"id":5364913,"src":"NottmApril09_071_thumb.JPG","galleries_id":302354,"server_id":5,"link":"photo_5364913.html","width":130,"caption":"Village Green","height":96});
															thumbnails[5364924] = clik.newPhoto({"id":5364924,"src":"paintingsJan08_001_thumb.JPG","galleries_id":302355,"server_id":5,"link":"photo_5364924.html","width":130,"caption":"Autumn at the University","height":90});
															thumbnails[5367289] = clik.newPhoto({"id":5367289,"src":"paintmarch09_034_thumb.JPG","galleries_id":302353,"server_id":5,"link":"photo_5367289.html","width":130,"caption":"Summer love","height":97});
															thumbnails[5380955] = clik.newPhoto({"id":5380955,"src":"PaintingsJan10_063_thumb.JPG","galleries_id":302353,"server_id":5,"link":"photo_5380955.html","width":130,"caption":"Summer Holidays","height":103});
															thumbnails[5365771] = clik.newPhoto({"id":5365771,"src":"Norfolksept09_321_thumb.JPG","galleries_id":302354,"server_id":5,"link":"photo_5365771.html","width":130,"caption":"Peace in the Afternoon","height":108});
															thumbnails[5367287] = clik.newPhoto({"id":5367287,"src":"PaintingsMay08_003_thumb.JPG","galleries_id":302353,"server_id":5,"link":"photo_5367287.html","width":130,"caption":"Twitcher","height":96});
															thumbnails[5380918] = clik.newPhoto({"id":5380918,"src":"PaintingsJan10_040_thumb.JPG","galleries_id":303567,"server_id":5,"link":"photo_5380918.html","width":130,"caption":"Fabulous Flamboro","height":95});
															thumbnails[5380923] = clik.newPhoto({"id":5380923,"src":"PaintingsJan10_041_thumb.JPG","galleries_id":303756,"server_id":5,"link":"photo_5380923.html","width":130,"caption":"Over the Brow","height":94});
															thumbnails[5380938] = clik.newPhoto({"id":5380938,"src":"PaintingsJan10_045_thumb.JPG","galleries_id":303567,"server_id":5,"link":"photo_5380938.html","width":130,"caption":"wild and Wonderful","height":103});
															thumbnails[5380946] = clik.newPhoto({"id":5380946,"src":"PaintingsJan10_058_thumb.JPG","galleries_id":302353,"server_id":5,"link":"photo_5380946.html","width":130,"caption":"Behold!","height":103});
															thumbnails[5367284] = clik.newPhoto({"id":5367284,"src":"paintfeb09_079_thumb.JPG","galleries_id":302353,"server_id":5,"link":"photo_5367284.html","width":130,"caption":"Ready and Waiting","height":105});
															thumbnails[5365735] = clik.newPhoto({"id":5365735,"src":"paintingsJune08_024_thumb.JPG","galleries_id":300338,"server_id":5,"link":"photo_5365735.html","width":130,"caption":"Juno at Rest","height":96});
															thumbnails[5380943] = clik.newPhoto({"id":5380943,"src":"PaintingsJan10_057_thumb.JPG","galleries_id":302353,"server_id":5,"link":"photo_5380943.html","width":130,"caption":"Wide Open Skies","height":104});
															thumbnails[5380952] = clik.newPhoto({"id":5380952,"src":"PaintingsJan10_061_thumb.JPG","galleries_id":302355,"server_id":5,"link":"photo_5380952.html","width":130,"caption":"Autumn's Late Afternoon Gold","height":103});
															thumbnails[5337873] = clik.newPhoto({"id":5337873,"src":"paintmarch09_024_thumb.JPG","galleries_id":300338,"server_id":5,"link":"photo_5337873.html","width":130,"caption":"A Day's Work Done","height":97});
															thumbnails[5365727] = clik.newPhoto({"id":5365727,"src":"paintfeb09_070_thumb.JPG","galleries_id":300338,"server_id":5,"link":"photo_5365727.html","width":130,"caption":" A Spring Breeze","height":104});
															thumbnails[5337933] = clik.newPhoto({"id":5337933,"src":"paintmarch209_025_thumb.JPG","galleries_id":300337,"server_id":5,"link":"photo_5337933.html","width":130,"caption":"At Rest - Burnham OverySold","height":98});
															thumbnails[5333253] = clik.newPhoto({"id":5333253,"src":"paintfeb09_085_thumb.JPG","galleries_id":300337,"server_id":5,"link":"photo_5333253.html","width":130,"caption":"Brancaster Club House","height":105});
															thumbnails[5365705] = clik.newPhoto({"id":5365705,"src":"paintfeb09_043_thumb.JPG","galleries_id":300338,"server_id":5,"link":"photo_5365705.html","width":130,"caption":"Cley Village Sunday","height":96});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[302354] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Attenborough, Notts","link":"gallery_302354.html","maxRecords":0.0,"photoIDs":[5380987.0,5380960.0,5380985.0,5380913.0,5364946.0,5365766.0,5380910.0,5364913.0,5365771.0],"skipIndex":0,"section_code":"gallery","featured_images":"5380987,5380985,5380960,5380913,5380910,5365771,5365766,5364946,5364913","id":302354,"singleSection":false});				  						galleries[355310] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Latest Oil Paintings","link":"gallery_355310.html","maxRecords":0.0,"photoIDs":[8611056.0,8611052.0,8600905.0,6438022.0,6438034.0,6438037.0,6438042.0,6438050.0,6438030.0],"skipIndex":0,"section_code":"gallery","featured_images":"8611056,8611052,8600905,6438050,6438042,6438037,6438034,6438030,6438022","id":355310,"singleSection":false});				  						galleries[303756] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Norfolk","link":"gallery_303756.html","maxRecords":0.0,"photoIDs":[5380994.0,5380929.0,5380923.0],"skipIndex":0,"section_code":"gallery","featured_images":"5380994,5380929,5380923","id":303756,"singleSection":false});				  						galleries[302355] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Nottinghamshire","link":"gallery_302355.html","maxRecords":0.0,"photoIDs":[5364924.0,5380952.0],"skipIndex":0,"section_code":"gallery","featured_images":"5380952,5364924","id":302355,"singleSection":false});				  						galleries[330737] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Oil Paintings 2010","link":"gallery_330737.html","maxRecords":0.0,"photoIDs":[5929025.0,5929001.0,5928976.0,5928999.0,5929020.0,5929021.0,5929005.0,5929028.0,5929031.0],"skipIndex":0,"section_code":"gallery","featured_images":"5929031,5929028,5929025,5929021,5929020,5929005,5929001,5928999,5928976","id":330737,"singleSection":false});				  						galleries[302356] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Oil Paintings 2012","link":"gallery_302356.html","maxRecords":0.0,"photoIDs":[9107898.0,9107893.0,9107890.0,9107886.0,9107835.0,9107830.0],"skipIndex":0,"section_code":"gallery","featured_images":"9107898,9107893,9107890,9107886,9107835,9107830","id":302356,"singleSection":false});				  						galleries[407821] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Oils 2011","link":"gallery_407821.html","maxRecords":0.0,"photoIDs":[7520542.0,7520553.0,7520559.0,7520568.0,7520574.0,7520590.0,7520598.0,7520602.0,7520605.0,7520611.0,7520618.0,7520623.0],"skipIndex":0,"section_code":"gallery","featured_images":"7520623,7520618,7520611,7520605,7520602,7520598,7520590,7520574,7520568,7520559","id":407821,"singleSection":false});				  						galleries[303567] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Other Places","link":"gallery_303567.html","maxRecords":0.0,"photoIDs":[5663832.0,5663852.0,5380918.0,5380938.0],"skipIndex":0,"section_code":"gallery","featured_images":"5663852,5663832,5380938,5380918","id":303567,"singleSection":false});				  						galleries[302353] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wells-Next-The-Sea area","link":"gallery_302353.html","maxRecords":0.0,"photoIDs":[5381013.0,5380940.0,5367289.0,5380955.0,5367287.0,5380946.0,5367284.0,5380943.0],"skipIndex":0,"section_code":"gallery","featured_images":"5381013,5380955,5380946,5380943,5380940,5367289,5367287,5367284","id":302353,"singleSection":false});				  						galleries[300337] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Brancaster Area","link":"gallery_300337.html","maxRecords":0.0,"photoIDs":[5380934.0,5380997.0,5367297.0,5380899.0,5380901.0,5337933.0,5333253.0],"skipIndex":0,"section_code":"gallery","featured_images":"5380997,5380934,5380901,5380899,5367297,5337933,5333253","id":300337,"singleSection":false});				  						galleries[300338] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Morston & Cley Area","link":"gallery_300338.html","maxRecords":0.0,"photoIDs":[5365742.0,5365720.0,5365712.0,5365735.0,5337873.0,5365727.0,5365705.0],"skipIndex":0,"section_code":"gallery","featured_images":"5365742,5365735,5365727,5365720,5365712,5365705,5337873","id":300338,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '9107898,9107893,9107890,9107886,9107835,9107830,8611056,8611052,8600905,7520623,7520618,7520611,7520605,7520602,7520598,7520590,7520574,7520568,7520559,7520553,7520542,6438050,6438042,6438037,6438034,6438030,6438022,5929031,5929028,5929025,5929021,5929020,5929005,5929001,5928999,5928976,5663852,5663832,5381013,5380997,5380994,5380987,5380985,5380960,5380955,5380952,5380946,5380943,5380940,5380938';
imageSets[3] = '9107898,9107893,9107890,9107886,9107835,9107830,8611056,8611052,8600905,7520623,7520618,7520611,7520605,7520602,7520598,7520590,7520574,7520568,7520559,7520553,7520542,6438050,6438042,6438037,6438034,6438030,6438022,5929031,5929028,5929025,5929021,5929020,5929005,5929001,5928999,5928976,5663852,5663832,5381013,5380997,5380994,5380987,5380985,5380960,5380955,5380952,5380946,5380943,5380940,5380938';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/richardde/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/richardde/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/richardde/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/richardde/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/richardde/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/richardde/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/richardde/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/richardde/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/richardde/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/richardde/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/richardde/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/richardde/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/richardde/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/richardde/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/richardde/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/richardde/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/richardde/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/richardde/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/richardde/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/richardde/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/richardde/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/richardde/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/richardde/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/richardde/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/richardde/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/richardde/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/richardde/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 = 'Richard Eddleston Artist: ' + 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> &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.item_price !== '') {
																		temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						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;
	}
}

			

