window.thumbnails = new Object();
												thumbnails[4468409] = new thumbnail(4468409,'196814','','Pink_Dress_thumb.jpg',130, 195,32,'photo_4468409.html');
												thumbnails[2135646] = new thumbnail(2135646,'142505','Dawn at Cefn Farm','Dawnatcefn1_thumb.jpg',130, 53,32,'photo_2135646.html');
												thumbnails[2146049] = new thumbnail(2146049,'142505','Late Evening, Llansadwrn','GreenFeet71102_thumb.jpg',130, 337,32,'photo_2146049.html');
												thumbnails[2146406] = new thumbnail(2146406,'142505','The Gower from Llansteffan Castle','2163_thumb.jpg',130, 53,32,'photo_2146406.html');
												thumbnails[2147087] = new thumbnail(2147087,'142503','Misty Trees','7008b_thumb.jpg',130, 195,32,'photo_2147087.html');
												thumbnails[2147114] = new thumbnail(2147114,'142503','Windswept Tree','7613_thumb.jpg',130, 184,32,'photo_2147114.html');
												thumbnails[2385352] = new thumbnail(2385352,'142503','Sunlit Tree Line, Cefn Farm','Sunlittreeline_thumb.jpg',130, 53,32,'photo_2385352.html');
												thumbnails[2385367] = new thumbnail(2385367,'142503','Lonely','lonely7417_thumb.jpg',130, 53,32,'photo_2385367.html');
												thumbnails[2907291] = new thumbnail(2907291,'180048','St Sadwrn\'s Church','Llansadwrn church_thumb.jpg',130, 86,32,'photo_2907291.html');
												thumbnails[3221627] = new thumbnail(3221627,'196814','','Dinefwr 1_thumb.jpg',130, 195,32,'photo_3221627.html');
												thumbnails[3737629] = new thumbnail(3737629,'142952','The Girl Claire','The_Girl_Claire_thumb.jpg',130, 55,32,'photo_3737629.html');
												thumbnails[4121924] = new thumbnail(4121924,'141847','Pendle in the Snow','7331web_thumb.jpg',130, 44,32,'photo_4121924.html');
												thumbnails[4666338] = new thumbnail(4666338,'180048','The Lightship Helwick','CRW_5675_webb_thumb.jpg',130, 55,32,'photo_4666338.html');
												thumbnails[4666398] = new thumbnail(4666398,'141853','The First Primrose','Image1-webb_thumb.jpg',130, 143,32,'photo_4666398.html');
												thumbnails[2173318] = new thumbnail(2173318,'142504','Pembury Sunset','71109_thumb.jpg',130, 53,32,'photo_2173318.html');
												thumbnails[2135398] = new thumbnail(2135398,'141847','Sunrise in the Towy Valley','Sunrise_thumb.jpg',130, 42,32,'photo_2135398.html');
												thumbnails[2146141] = new thumbnail(2146141,'141853','Sunlit Acer','FF09_thumb.jpg',130, 153,32,'photo_2146141.html');
												thumbnails[2146447] = new thumbnail(2146447,'142504','Winter Sunshine','71111_thumb.jpg',130, 53,32,'photo_2146447.html');
												thumbnails[2147140] = new thumbnail(2147140,'142435','Sunset over the Towy Valley','LS6_thumb.jpg',130, 53,32,'photo_2147140.html');
												thumbnails[2147142] = new thumbnail(2147142,'142465','Sunset over Green Hill','FS1_thumb.jpg',130, 53,32,'photo_2147142.html');
												thumbnails[2157648] = new thumbnail(2157648,'141844','Three Cliffs Bay','CS1_thumb.jpg',130, 53,32,'photo_2157648.html');
												thumbnails[2160899] = new thumbnail(2160899,'142952','Bonawe House','Bonawe_thumb.jpg',130, 53,32,'photo_2160899.html');
												thumbnails[2173279] = new thumbnail(2173279,'142503','Lonely','7551_thumb.jpg',130, 320,32,'photo_2173279.html');
												thumbnails[3328564] = new thumbnail(3328564,'180048','Waiting','CRW_4881hdrbp_thumb.jpg',130, 87,32,'photo_3328564.html');
												thumbnails[2135347] = new thumbnail(2135347,'142435','Dawn at Gelli Aur','DawnatGelliaur_thumb.jpg',130, 53,32,'photo_2135347.html');
												thumbnails[2135410] = new thumbnail(2135410,'141853','Graham Thomas','Rose_thumb.jpg',130, 130,32,'photo_2135410.html');
												thumbnails[2147725] = new thumbnail(2147725,'141847','Llansteffan Castle','IMG_2169bhdr_thumb.jpg',130, 53,32,'photo_2147725.html');
												thumbnails[2154841] = new thumbnail(2154841,'142504','Homecoming','soundersfoot1_thumb.jpg',130, 53,32,'photo_2154841.html');
												thumbnails[2173306] = new thumbnail(2173306,'142503','Lonely 2','7553_thumb.jpg',130, 320,32,'photo_2173306.html');
												thumbnails[2173464] = new thumbnail(2173464,'142435','Green Hill from Cefn Farm','FS04_thumb.jpg',130, 53,32,'photo_2173464.html');
												thumbnails[2135361] = new thumbnail(2135361,'141853','Flaming Leaves','Flamingleaves_thumb.jpg',130, 130,32,'photo_2135361.html');
												thumbnails[2146409] = new thumbnail(2146409,'141847','Bluebell Woods','74031_thumb.jpg',130, 43,32,'photo_2146409.html');
												thumbnails[2154848] = new thumbnail(2154848,'142504','Lookout','seahouses2_thumb.jpg',130, 53,32,'photo_2154848.html');
												thumbnails[2173467] = new thumbnail(2173467,'142503','Cefn Dawn','8520_thumb.jpg',130, 320,32,'photo_2173467.html');
												thumbnails[2135311] = new thumbnail(2135311,'141847','Stormy Brecons','stormybrecon_thumb.jpg',130, 53,32,'photo_2135311.html');
												thumbnails[2135374] = new thumbnail(2135374,'142504','Strolling','Strolling_thumb.jpg',130, 53,32,'photo_2135374.html');
												thumbnails[2147048] = new thumbnail(2147048,'141853','Sea Holly at Bury-Port','3ff_thumb.jpg',130, 130,32,'photo_2147048.html');
												thumbnails[2147115] = new thumbnail(2147115,'141847','Paradise!','7614_thumb.jpg',130, 53,32,'photo_2147115.html');
												thumbnails[2835114] = new thumbnail(2835114,'142504','Saundersfoot Harbour','Saundesfoot_thumb.jpg',130, 55,32,'photo_2835114.html');
												thumbnails[2147718] = new thumbnail(2147718,'141847','Flooded River Towy at Dryslwyn Castle','IMG_1692bhdr_thumb.jpg',130, 53,32,'photo_2147718.html');
												thumbnails[2907277] = new thumbnail(2907277,'180048','Carroll\'s Bench','Carrols Bench_thumb.jpg',130, 92,32,'photo_2907277.html');
												thumbnails[3328355] = new thumbnail(3328355,'142504','Boats at Saundersfoot','CRW_4934hdr_thumb.jpg',130, 55,32,'photo_3328355.html');
												thumbnails[2173324] = new thumbnail(2173324,'141847','Carmarthenshire Hillside','7612c_thumb.jpg',130, 53,32,'photo_2173324.html');
												thumbnails[3328383] = new thumbnail(3328383,'142504','Pier Hill, Tenby','7911_fhdrB&W_thumb.jpg',130, 53,32,'photo_3328383.html');
												thumbnails[2173379] = new thumbnail(2173379,'141847','Brooding Sky','derwentwater_thumb.jpg',130, 53,32,'photo_2173379.html');
												thumbnails[2135424] = new thumbnail(2135424,'141853','Helibore','Helibore_thumb.jpg',130, 89,32,'photo_2135424.html');
												thumbnails[2157653] = new thumbnail(2157653,'141844','Rolling Waves','CS2_thumb.jpg',130, 53,32,'photo_2157653.html');
												thumbnails[2160901] = new thumbnail(2160901,'142952','Old Jetty','IMG_5003 b_thumb.jpg',130, 53,32,'photo_2160901.html');
												thumbnails[2161409] = new thumbnail(2161409,'142504','Sunlit Waves, Seahouses','71104_thumb.jpg',130, 87,32,'photo_2161409.html');
												thumbnails[2907284] = new thumbnail(2907284,'180048','Poppy Head','Poppy_thumb.jpg',130, 195,32,'photo_2907284.html');
												thumbnails[2145679] = new thumbnail(2145679,'141853','Busy Bee','BusyBee1_thumb.jpg',130, 92,32,'photo_2145679.html');
												thumbnails[2147110] = new thumbnail(2147110,'142504','Glad Tidings','7011_thumb.jpg',130, 87,32,'photo_2147110.html');
												thumbnails[2147120] = new thumbnail(2147120,'142504','Lone Gull','7803_thumb.jpg',130, 87,32,'photo_2147120.html');
												thumbnails[2147118] = new thumbnail(2147118,'142504','Retired','7802_thumb.jpg',130, 195,32,'photo_2147118.html');
												thumbnails[2644381] = new thumbnail(2644381,'142504','Pier Hill, Tenby','Tenby2_thumb.jpg',130, 184,32,'photo_2644381.html');
												thumbnails[2821308] = new thumbnail(2821308,'180048','Burry Port Lighthouse','BurryLH_thumb.jpg',130, 192,32,'photo_2821308.html');
												thumbnails[3737591] = new thumbnail(3737591,'142504','Shells at Llansteffan','reflections_llansteffan_thumb.jpg',130, 184,32,'photo_3737591.html');
												thumbnails[2172957] = new thumbnail(2172957,'141847','Llandyfeisant Church','llandyfeisant_thumb.jpg',130, 92,32,'photo_2172957.html');
												thumbnails[2146127] = new thumbnail(2146127,'142952','Back Track at Bonawe','7419_thumb.jpg',130, 51,32,'photo_2146127.html');
												thumbnails[2157658] = new thumbnail(2157658,'141844','Saundersfoot Sunset','CS3_thumb.jpg',130, 53,32,'photo_2157658.html');
												thumbnails[2179199] = new thumbnail(2179199,'141847','Sexton\'s Hut, Llandyfeisant Church','85211_thumb.jpg',130, 87,32,'photo_2179199.html');
												thumbnails[2220537] = new thumbnail(2220537,'142465','Autumn Sky, Towy Valley','FS05_thumb.jpg',130, 53,32,'photo_2220537.html');
												thumbnails[2156113] = new thumbnail(2156113,'141847','Sexton\'s Hut, Llandyfeisant Church','IMG_2974bb&whdr_thumb.jpg',130, 87,32,'photo_2156113.html');
												thumbnails[2147699] = new thumbnail(2147699,'141847','Bay Spheres','8401_thumb.jpg',130, 87,32,'photo_2147699.html');
												thumbnails[2144119] = new thumbnail(2144119,'141847','Ripples','ripples1_thumb.jpg',130, 87,32,'photo_2144119.html');
												thumbnails[2135341] = new thumbnail(2135341,'141847','Last Snows','lastsnows_thumb.jpg',130, 195,32,'photo_2135341.html');
												thumbnails[2147849] = new thumbnail(2147849,'141847','Gatepost','7905_thumb.jpg',130, 195,32,'photo_2147849.html');
												thumbnails[2154843] = new thumbnail(2154843,'141847','Lindisfarne Castle','lindisfarne2_thumb.jpg',130, 195,32,'photo_2154843.html');
												thumbnails[2146142] = new thumbnail(2146142,'141847','Old Gatepost','7503_thumb.jpg',130, 195,32,'photo_2146142.html');
												thumbnails[2135654] = new thumbnail(2135654,'141847','Burning Bush, Gelli Aur','Sunlitbush_thumb.jpg',130, 184,32,'photo_2135654.html');
												thumbnails[2147670] = new thumbnail(2147670,'141847','Just Resting','8501_thumb.jpg',130, 195,32,'photo_2147670.html');
												thumbnails[2173337] = new thumbnail(2173337,'141847','Reflections','7914_thumb.jpg',130, 195,32,'photo_2173337.html');
												thumbnails[2146431] = new thumbnail(2146431,'142465','Dawn at Cefn Farm','F12_thumb.jpg',130, 53,32,'photo_2146431.html');
												thumbnails[2147122] = new thumbnail(2147122,'142504','Moored at Ferryside','7804_thumb.jpg',130, 320,32,'photo_2147122.html');
												thumbnails[2147126] = new thumbnail(2147126,'142435','Wood for the Trees','LS11_thumb.jpg',130, 53,32,'photo_2147126.html');
												thumbnails[2157660] = new thumbnail(2157660,'141844','Winter Waves','CS4_thumb.jpg',130, 53,32,'photo_2157660.html');
												thumbnails[2179135] = new thumbnail(2179135,'141847','Outside Dunny, Llandyfeisant, Llandeilo','8522_thumb.jpg',130, 195,32,'photo_2179135.html');
												thumbnails[2179149] = new thumbnail(2179149,'142952','Lochen, Bonawe House','SC10_thumb.jpg',130, 56,32,'photo_2179149.html');
												thumbnails[2220562] = new thumbnail(2220562,'142465','Pembury Sunset 2','FS02_thumb.jpg',130, 50,32,'photo_2220562.html');
												thumbnails[2913341] = new thumbnail(2913341,'141847','Carroll\'s Gate','carroll\'s gate_thumb.jpg',130, 203,32,'photo_2913341.html');
												thumbnails[3328442] = new thumbnail(3328442,'141847','Nice Tractor','Tractor_thumb.jpg',130, 195,32,'photo_3328442.html');
												thumbnails[2907317] = new thumbnail(2907317,'180048','The Sunday Papers','Sunday papers_thumb.jpg',130, 184,32,'photo_2907317.html');
												thumbnails[2157697] = new thumbnail(2157697,'141844','Moonlit Seas','CS6_thumb.jpg',130, 53,32,'photo_2157697.html');
												thumbnails[2157858] = new thumbnail(2157858,'142435','Autumn Sunset, West Wales','FS5_thumb.jpg',130, 53,32,'photo_2157858.html');
												thumbnails[2160910] = new thumbnail(2160910,'142952','Squark !','IMG_4985b_thumb.jpg',130, 53,32,'photo_2160910.html');
												thumbnails[3328573] = new thumbnail(3328573,'180048','The Nave, St. Michael\'s','CRW_4799hdrp_thumb.jpg',130, 184,32,'photo_3328573.html');
												thumbnails[3328546] = new thumbnail(3328546,'180048','St Michael\'s Church, Myddfai','CRW_4898hdrbp_thumb.jpg',130, 184,32,'photo_3328546.html');
												thumbnails[3328554] = new thumbnail(3328554,'180048','Ancient Window','CRW_4861hdrp_thumb.jpg',130, 184,32,'photo_3328554.html');
												thumbnails[3328559] = new thumbnail(3328559,'180048','Bibles','CRW_4892hdrp_thumb.jpg',130, 184,32,'photo_3328559.html');
												thumbnails[3328588] = new thumbnail(3328588,'180048','The Last Physician','tablet_thumb.jpg',130, 166,32,'photo_3328588.html');
												thumbnails[2161002] = new thumbnail(2161002,'142952','Bluebells at Achnacloich','7426_thumb.jpg',130, 43,32,'photo_2161002.html');
												thumbnails[2145682] = new thumbnail(2145682,'141847','Pond Dipping','Ponddipping_thumb.jpg',130, 320,32,'photo_2145682.html');
												thumbnails[2147869] = new thumbnail(2147869,'141844','Just Good Mates','IMG_1956 f_thumb.jpg',130, 53,32,'photo_2147869.html');
												thumbnails[2161008] = new thumbnail(2161008,'142952','Sea Pinks','7910_thumb.jpg',130, 47,32,'photo_2161008.html');
												thumbnails[2147111] = new thumbnail(2147111,'141847','Windblown grass','7525_thumb.jpg',130, 320,32,'photo_2147111.html');
												thumbnails[2147711] = new thumbnail(2147711,'141844','Sea Grass at Pembury','CS08hdr_thumb.jpg',130, 87,32,'photo_2147711.html');
												thumbnails[2135644] = new thumbnail(2135644,'141844','Distant Sqall','DistantSquall2_thumb.jpg',130, 53,32,'photo_2135644.html');
												thumbnails[2147131] = new thumbnail(2147131,'142435','Misty Morning at Sunnyhurst Park','LS09_thumb.jpg',130, 77,32,'photo_2147131.html');
												thumbnails[2147135] = new thumbnail(2147135,'142435','Tumbledown Wall','LS10_thumb.jpg',130, 195,32,'photo_2147135.html');
												thumbnails[2155132] = new thumbnail(2155132,'142952','Bell Tower','Scottishgarden_thumb.jpg',130, 87,32,'photo_2155132.html');
												thumbnails[2146038] = new thumbnail(2146038,'142435','Borrowdale ','Borrowdale_thumb.jpg',130, 163,32,'photo_2146038.html');
												thumbnails[2154839] = new thumbnail(2154839,'142952','Tired','bench_thumb.jpg',130, 80,32,'photo_2154839.html');
												thumbnails[2145839] = new thumbnail(2145839,'142435','Lone Pines, Cow Green','Landscape Series 12_thumb.jpg',130, 195,32,'photo_2145839.html');
												thumbnails[2179214] = new thumbnail(2179214,'142952','Belnahua Lighthouse','SC081_thumb.jpg',130, 65,32,'photo_2179214.html');
												thumbnails[2179137] = new thumbnail(2179137,'142952','Bliss !','SC09_thumb.jpg',130, 184,32,'photo_2179137.html');
												thumbnails[2146130] = new thumbnail(2146130,'141853','Foxglove','FieryFlowers141_thumb.jpg',130, 184,32,'photo_2146130.html');
												thumbnails[2160906] = new thumbnail(2160906,'142952','Scottish Trawler','IMG_5085bhdr_thumb.jpg',130, 184,32,'photo_2160906.html');
												thumbnails[3737717] = new thumbnail(3737717,'142952','The Wheelhouse','Wheelhouse_thumb.jpg',130, 184,32,'photo_3737717.html');
												thumbnails[2135408] = new thumbnail(2135408,'141853','','Pink_thumb.jpg',130, 180,32,'photo_2135408.html');
												thumbnails[2160903] = new thumbnail(2160903,'142952','Ouch !','IMG_5002 b_thumb.jpg',130, 320,32,'photo_2160903.html');
												thumbnails[2145889] = new thumbnail(2145889,'141853','Dandelion Clock','16ff_thumb.jpg',130, 195,32,'photo_2145889.html');
												thumbnails[2157641] = new thumbnail(2157641,'141853','I Love You','Trumpeter_thumb.jpg',130, 195,32,'photo_2157641.html');
												thumbnails[2145895] = new thumbnail(2145895,'141853','Ferns and Bluebells','17ff_thumb.jpg',130, 195,32,'photo_2145895.html');
												thumbnails[2135403] = new thumbnail(2135403,'141853','Orchid at Aberglasney','Orchid_thumb.jpg',130, 195,32,'photo_2135403.html');
												thumbnails[3328424] = new thumbnail(3328424,'141853','Autumn at Gelli Aur','CRW_5023_thumb.jpg',130, 184,32,'photo_3328424.html');
												thumbnails[4666418] = new thumbnail(4666418,'141853','Miss Whilmott\'s Ghost','Image1-37justfweb_thumb.jpg',130, 184,32,'photo_4666418.html');
												thumbnails[4858573] = new thumbnail(4858573,'141856','','_MG_6560_Marnieweb_thumb.jpg',130, 154,32,'photo_4858573.html');
												thumbnails[4858619] = new thumbnail(4858619,'141856','','_MG_6572_edited-2_thumb.jpg',130, 184,32,'photo_4858619.html');
												thumbnails[2161590] = new thumbnail(2161590,'141856','Silver Bangle, Necklace & Earings Set','Necklace3_thumb.jpg',130, 87,32,'photo_2161590.html');
												thumbnails[2161591] = new thumbnail(2161591,'141856','Coloured Bangles ','bangles_thumb.jpg',130, 87,32,'photo_2161591.html');
												thumbnails[2173670] = new thumbnail(2173670,'141856','Flower Brooch','Broach3_thumb.jpg',130, 87,32,'photo_2173670.html');
												thumbnails[2161592] = new thumbnail(2161592,'141856','Flower Brooch','Broach_thumb.jpg',130, 87,32,'photo_2161592.html');
												thumbnails[2168972] = new thumbnail(2168972,'141856','Low Collar ','Necklace1_thumb.jpg',130, 195,32,'photo_2168972.html');
												thumbnails[2220724] = new thumbnail(2220724,'141856','High Collar','Collar_thumb.jpg',130, 87,32,'photo_2220724.html');
												thumbnails[2143103] = new thumbnail(2143103,'141856','Fine wire necklace on a royal-blue ribbon.','Necklace 2_thumb.jpg',130, 87,32,'photo_2143103.html');
												thumbnails[2218877] = new thumbnail(2218877,'141856','Half Collar','silver&amber1_thumb.jpg',130, 195,32,'photo_2218877.html');
												thumbnails[2913468] = new thumbnail(2913468,'141856','Bead-Encrusted Set','CRW_4607_thumb.jpg',130, 184,32,'photo_2913468.html');
												thumbnails[2745153] = new thumbnail(2745153,'141856','Different Colours','CRW_4106_thumb.jpg',130, 87,32,'photo_2745153.html');
												thumbnails[2913376] = new thumbnail(2913376,'141856','Silver Clasp Detail.','CRW_4609a1_thumb.jpg',130, 92,32,'photo_2913376.html');
												thumbnails[2907412] = new thumbnail(2907412,'141856','Bead Encrusted Pendant','Pendant_thumb.jpg',130, 199,32,'photo_2907412.html');
												thumbnails[2745162] = new thumbnail(2745162,'141856','Crystal and Silver-plated Wire Drop Pendant','CRW_4110_thumb.jpg',130, 195,32,'photo_2745162.html');
												thumbnails[2745167] = new thumbnail(2745167,'141856','Crystal Detail','CRW_4107_thumb.jpg',130, 184,32,'photo_2745167.html');
												thumbnails[2745170] = new thumbnail(2745170,'141856','Crystal Detail','CRW_4108_thumb.jpg',130, 195,32,'photo_2745170.html');
												thumbnails[2143104] = new thumbnail(2143104,'141856','Waterfall necklace','Waterfall Necklace_thumb.jpg',130, 195,32,'photo_2143104.html');
												thumbnails[2913260] = new thumbnail(2913260,'141856','Cascade Necklace','CRW_46131_thumb.jpg',130, 195,32,'photo_2913260.html');
												thumbnails[3542299] = new thumbnail(3542299,'141856','Various Earings','Earings_web_thumb.jpg',130, 126,32,'photo_3542299.html');
												thumbnails[3542442] = new thumbnail(3542442,'141856','Fluorite Earings with Sterling Silver earwires.','Fluorspar_Earings_web_thumb.jpg',130, 184,32,'photo_3542442.html');
												thumbnails[2913360] = new thumbnail(2913360,'141856','Waterfall Series Earings','CRW_46391_thumb.jpg',130, 184,32,'photo_2913360.html');
												thumbnails[3567135] = new thumbnail(3567135,'141856','Jewelled Rope Necklace','Image1-16_web_thumb.jpg',130, 142,32,'photo_3567135.html');
												thumbnails[3566560] = new thumbnail(3566560,'141856','Silver Waterfall Necklace','Image1-18_web_thumb.jpg',130, 181,32,'photo_3566560.html');
												thumbnails[3816279] = new thumbnail(3816279,'141856','Collar and Earings in copper with pearls','Copper_and_Pearl_Set_thumb.jpg',130, 142,32,'photo_3816279.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[141847] = new gallery(141847,'4121924,3328442,2913341,2135341','Celtic Light, Landscapes','gallery',[4121924,2135398,2147725,2146409,2135311,2147115,2147718,2173324,2173379,2172957,2179199,2156113,2147699,2144119,2135341,2147849,2154843,2146142,2135654,2147670,2173337,2179135,2913341,3328442,2145682,2147111],0, 0, '', 'gallery_141847.html',0,0);
				  					galleries[142503] = new gallery(142503,'2385367,2385352,2173467,2173306,2173279,2147114,2147087','Celtic Light, Trees','gallery',[2147087,2147114,2385352,2385367,2173279,2173306,2173467],0, 0, '', 'gallery_142503.html',0,0);
				  					galleries[142505] = new gallery(142505,'2146406,2146049,2135646','Celtic Light, Skies','gallery',[2135646,2146049,2146406],0, 0, '', 'gallery_142505.html',0,0);
				  					galleries[142504] = new gallery(142504,'3737591,3328383,3328355','Celtic Light, Coastal','gallery',[2173318,2146447,2154841,2154848,2135374,2835114,3328355,3328383,2161409,2147110,2147120,2147118,2644381,3737591,2147122],0, 0, '', 'gallery_142504.html',0,0);
				  					galleries[142435] = new gallery(142435,'2173464,2157858,2147140,2147135,2147131,2147126,2146038,2145839,2135347','Celtic Fire, Landscapes','gallery',[2147140,2135347,2173464,2147126,2157858,2147131,2147135,2146038,2145839],0, 0, '', 'gallery_142435.html',0,0);
				  					galleries[141853] = new gallery(141853,'4666418,4666398,2135361','Celtic Fire, Flowers','gallery',[4666398,2146141,2135410,2135361,2147048,2135424,2145679,2146130,2135408,2145889,2157641,2145895,2135403,3328424,4666418],0, 0, '', 'gallery_141853.html',0,0);
				  					galleries[142465] = new gallery(142465,'2220562,2220537,2147142,2146431','Celtic Fire, Skies','gallery',[2147142,2220537,2146431,2220562],0, 0, '', 'gallery_142465.html',0,0);
				  					galleries[141844] = new gallery(141844,'2157697,2157660,2157658,2157653,2157648,2147869,2147711,2135644','Celtic Fire, Coastal','gallery',[2157648,2157653,2157658,2157660,2157697,2147869,2147711,2135644],0, 0, '', 'gallery_141844.html',0,0);
				  					galleries[180048] = new gallery(180048,'4666338,3328573,3328564,3328559,3328554,3328546,2907317,2907291,2907284,2907277,2821308','Digital-Pencil Sketches','gallery',[2907291,4666338,3328564,2907277,2907284,2821308,2907317,3328573,3328546,3328554,3328559,3328588],0, 0, '', 'gallery_180048.html',0,0);
				  					galleries[142952] = new gallery(142952,'3737717,3737629','Scotland','gallery',[3737629,2160899,2160901,2146127,2179149,2160910,2161002,2161008,2155132,2154839,2179214,2179137,2160906,3737717,2160903],0, 0, '', 'gallery_142952.html',0,0);
				  					galleries[196814] = new gallery(196814,'4468409,3221627','Period Photography','gallery',[4468409,3221627],0, 0, '', 'gallery_196814.html',0,0);
				  					galleries[141856] = new gallery(141856,'3816279,3567135,3566560,3542442,3542299,2913468,2913260,2220724','Jewellery','section184159',[4858573,4858619,2161590,2161591,2173670,2161592,2168972,2220724,2143103,2218877,2913468,2745153,2913376,2907412,2745162,2745167,2745170,2143104,2913260,3542299,3542442,2913360,3567135,3566560,3816279],0, 0, '', 'section184159.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '4666418,4666398,4666338,3737629,3328424,2913341,2907277,2835114,2220562,2179149,2173670,2173464,2173379,2173324,2173318,2172957,2161591,2161590,2161409,2160901,2160899,2157658,2157653,2157648,2156113,2154848,2154841,2147725,2147718,2147142,2147140,2147115,2146447,2146409,2146406,2143103,2135646,2135398,2135374,2135347,2135311';
imageSets[2] = '4666418,4666398,4666338,4121924,3816279,3737717,3737629,3737591,3567135,3566560,3542442,3542299,3328573,3328564,3328559,3328554,3328546,3328442,3328383,3328355,2913468,2913341,2913260,2907317,2907291,2907284,2907277,2821308,2220724,2135361,2135341';
imageSets[3] = '4858619,4858573,4666418,4666398,4666338,4468409,4121924,3816279,3737717,3737629,3737591,3567135,3566560,3542442,3542299,3328588,3328573,3328564,3328559,3328554,3328546,3328442,3328424,3328383,3328355,3221627,2913468,2913376,2913360,2913341,2913260,2907412,2907317,2907291,2907284,2907277,2835114,2821308,2745170,2745167,2745162,2745153,2644381,2385367,2385352,2220724,2220562,2220537,2218877,2179214';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/greenfeet/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/greenfeet/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/greenfeet/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/greenfeet/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/greenfeet/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/greenfeet/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/greenfeet/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/greenfeet/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/greenfeet/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/greenfeet/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/greenfeet/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/greenfeet/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/greenfeet/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/greenfeet/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/greenfeet/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/greenfeet/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/greenfeet/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/greenfeet/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/greenfeet/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/greenfeet/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/greenfeet/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/greenfeet/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 && backgrounds[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:'',
                    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 (!basic) {
    if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
    }
				
    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));		  $('body').trigger('clikUpdate');		}, op.onBefore);
      }    }
    	if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'Greenfeet Crafts: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
	    var options = {};	    	      	      resizePhotoInfo(options);
        if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
  	      toggleAddToCartConfirm(backgrounds);
  	    } else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
  	      toggleAddToCartConfirm(photos);
  	    }
	    });
    }
        if (!op.speed) {      clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));      $('body').trigger('clikUpdate');    }        
    return html;			}
	else {
				
		window.location = 'photo_' + nextPhoto.id + '.html';
	}
		
}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array){
  if (typeof(array) !== 'object' || array == undefined) {
    array = photos;
  }
	if($('#paymentConfirm').length > 0){
		$('#paymentConfirm').hide();
		$('#paymentAddButton')
		.unbind()
		.click(function(){
						form = document.getElementById('paymentForm');
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm').text('Item added to cart').show();}
				else{
					$('#paymentConfirm').text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm').text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}
/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp = temp +  '<p id="imageDescription">' + this.description + '</p>';
	}
		if (this.photo_ref != '') {
		temp = temp + '<p class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</p>';
	}
		if (this.takendate != '') {
				
		temp = temp + '<p class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</p>';
	}
	
	if (this.location != '') {
				
		temp = temp + '<p class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</p>';
	}
	
	if (this.photographer != '') {
				
		temp = temp + '<p class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</p>';
	}
					
				if (temp != '') {
		temp = temp + '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp = temp + '<p>Order this print:</p>';
				temp = temp + '<p class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</p>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.payment_groups_id !== '') {
		temp = temp + '<p>Buy this print online:</p>';
				temp = temp + '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp = temp + '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
				
		temp = temp + getPaymentOptions(this.payment_groups_id);
		temp = temp + '</select>';
		temp = 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 = temp + '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
	temp = 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 = temp + '<input type="hidden" name="cmd" value="_cart">';
	temp = temp + '<input type="hidden" name="business" value="marniefoot@btinternet.com">';
	temp = temp + '<input type="hidden" name="currency_code" value="GBP">';
	temp = temp + '<input type="hidden" name="add" value="1">';
					temp = temp + '<input type="hidden" name="amount" value="'+amount+'">';
	temp = temp + '<input type="hidden" name="item_number" value="'+ref+'">';
					temp = temp + '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
									temp = temp + '</form>';
								temp = temp + '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
	temp = temp + '<input type="hidden" name="cmd" value="_cart">';
	temp = temp + '<input type="hidden" name="business" value="marniefoot@btinternet.com">';
	temp = temp + '<input type="hidden" name="display" value="1">';
	temp = temp + '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
	temp = temp + '</form>';
							temp = 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({            href: thumbnails[imageID].fnGalleryLink(gallery_id),            title: galleries[gallery_id].title          });
        }
							}
										}
}

/***************************************************************************
* 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 + ' | ';
				}
				temp = temp + '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
			}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

