window.thumbnails = new Object();
												thumbnails[5081177] = new thumbnail(5081177,'417692','ASCENT Oil on Canvas 800mm x 600mm For Sale £275 plus £25 carriage on U.K. Mainland','Ascentcopy_thumb.jpg',130, 96,5,'photo_5081177.html');
												thumbnails[5082588] = new thumbnail(5082588,'287487','4 LILIES Oil on Canvas on Board each image 100mm x 200mm SOLD','4Liliesweb_thumb.jpg',130, 210,5,'photo_5082588.html');
												thumbnails[5082648] = new thumbnail(5082648,'287487','SWEET MUSIC Oil on Canvas 450mm x 800mm SOLD ','Sweet_Music_copy1_thumb.jpg',130, 251,5,'photo_5082648.html');
												thumbnails[5085970] = new thumbnail(5085970,'286034','CANDLE IN THE WIND Oil on Linen 525mm x 700mm SOLD','Candleinthewindsmaller_thumb.jpg',130, 189,5,'photo_5085970.html');
												thumbnails[5086033] = new thumbnail(5086033,'287486','GRINKLEWOOD DRAWING Graphite on watercolour paper 560mm x 760mm SOLD','Grinklewood_drawing_copy1_thumb.jpg',130, 173,5,'photo_5086033.html');
												thumbnails[5091081] = new thumbnail(5091081,'417692','BORROWED Oil on Linen 850mm x 700mm For Sale £750 plus £25 carriage on U.K. Mainland','BorrowedJEM_copy_thumb.jpg',130, 107,5,'photo_5091081.html');
												thumbnails[5091236] = new thumbnail(5091236,'286034','AIR MAIL Oil on Canvas 750mm x 500mm SOLD    ','Air_Mail_copy_thumb.jpg',130, 92,5,'photo_5091236.html');
												thumbnails[5097538] = new thumbnail(5097538,'287487','MAYTIME Oil on Canvas 600mm x 500mm SOLD','Maytime_copy_thumb.jpg',130, 103,5,'photo_5097538.html');
												thumbnails[5097549] = new thumbnail(5097549,'298151','KITCHEN SHELF Oil on Canvas 600mm x 1200mm SOLD','Kitchen_Shelf__copy_thumb.jpg',130, 72,5,'photo_5097549.html');
												thumbnails[5097550] = new thumbnail(5097550,'287487','PINK PROPELLERS Oil on Linen 600mm x 300mm SOLD','Pink_Propellers_copy_thumb.jpg',130, 63,5,'photo_5097550.html');
												thumbnails[5097558] = new thumbnail(5097558,'287498','EVENSONG Oil on Linen 600mm x 300mm SOLD','Evensongweb_thumb.jpg',130, 64,5,'photo_5097558.html');
												thumbnails[5097570] = new thumbnail(5097570,'286034','FLYING HIGH Oil on Canvas 750mm x 500mm SOLD','Flying_High__thumb.jpg',130, 74,5,'photo_5097570.html');
												thumbnails[5097576] = new thumbnail(5097576,'286033','TIMEWORN Oil on Canvas 650mm x 800mm SOLD','Timeworn_copy_thumb.jpg',130, 185,5,'photo_5097576.html');
												thumbnails[5121101] = new thumbnail(5121101,'298151','GLASSES Oil on Canvas 550mm x 700mm SOLD','Glasses_copy_thumb.jpg',130, 174,5,'photo_5121101.html');
												thumbnails[5123188] = new thumbnail(5123188,'417692','ESCAPE Oil on Linen 850mm x 700mm For Sale £300 plus £25 carriage on U.K. Mainland','Escapesmaller_thumb.jpg',130, 106,5,'photo_5123188.html');
												thumbnails[5123205] = new thumbnail(5123205,'286034','FARNDALE SPRING Oil on Canvas 600mm x 800mm SOLD','Farndale_Spring_copy_thumb.jpg',130, 174,5,'photo_5123205.html');
												thumbnails[5123212] = new thumbnail(5123212,'417692','MOORS EDGE Oil on Linen 750mm x 600mm For Sale £100 plus £25 carriage on U.K. Mainland','Moors_Edge_copy_thumb.jpg',130, 103,5,'photo_5123212.html');
												thumbnails[5123329] = new thumbnail(5123329,'287487','MAGIC Oil on Canvas 600mm x 500mm SOLD','Magic-best-photo-copyweb_thumb.jpg',130, 108,5,'photo_5123329.html');
												thumbnails[5123339] = new thumbnail(5123339,'286033','HEARTBEAT Oil on Canvas 600mm x 800mm SOLD','Heartbeat_copy_thumb.jpg',130, 161,5,'photo_5123339.html');
												thumbnails[5123640] = new thumbnail(5123640,'286034','100% SILK Oil on Canvas 600mm x 750mm SOLD','100_Silk_copy_2_thumb.jpg',130, 195,5,'photo_5123640.html');
												thumbnails[5123641] = new thumbnail(5123641,'286034','BEACHED Oil on Canvas 1400mm x 600mm SOLD','Beached_copy_thumb.jpg',130, 307,5,'photo_5123641.html');
												thumbnails[5123642] = new thumbnail(5123642,'286034','BREAKTHROUGH Oil on canvas 800mm x 600mm SOLD','Breakthrough_copy_thumb.jpg',130, 98,5,'photo_5123642.html');
												thumbnails[5123646] = new thumbnail(5123646,'287491','COASTAL EROSION Giclee Print 370mm x 550mm £95 plus £5 postage on U K Mainland - for other destinations please e-mail me','Coastal_ErosionJEMsmaller_B126A1DF-1EC9-DFB6-095B815817AA8519_thumb.jpg',130, 188,5,'photo_5123646.html');
												thumbnails[5123648] = new thumbnail(5123648,'298151','DECISION Oil on canvas on board 550mm x 400mm SOLD','Decision_copy_2_thumb.jpg',130, 90,5,'photo_5123648.html');
												thumbnails[5123661] = new thumbnail(5123661,'298151','DRAPED Oil on Linen 700mm x 650mm SOLD','Draped_copy1_thumb.jpg',130, 103,5,'photo_5123661.html');
												thumbnails[5123682] = new thumbnail(5123682,'286033','EBB-TIDE Oil on Linen 750mm x 500mm SOLD','Ebb_Tide_copy_thumb.jpg',130, 78,5,'photo_5123682.html');
												thumbnails[5123689] = new thumbnail(5123689,'286034','EDEN Oil on Linen 450mm x 500mm SOLD','Eden_copy_thumb.jpg',130, 151,5,'photo_5123689.html');
												thumbnails[5123715] = new thumbnail(5123715,'286034','ELLIS BELL Oil on Canvas 800mm x 600mm SOLD','Ellis_Bell_copy_thumb.jpg',130, 103,5,'photo_5123715.html');
												thumbnails[5180917] = new thumbnail(5180917,'286033','GRAND TOUR Oil on Canvas 600mm x 750mm SOLD','Grand_Tour_copy_thumb.jpg',130, 169,5,'photo_5180917.html');
												thumbnails[5190566] = new thumbnail(5190566,'286034','EN VACANCES Oil on Canvas 800mm x 1200mm SOLD','En_Vacances_copy_thumb.jpg',130, 164,5,'photo_5190566.html');
												thumbnails[5194884] = new thumbnail(5194884,'287491','LILYLICIOUS Limited Edition Giclee Print on Canvas 900mm x 400mm £125 plus £25 carriage on U.K. Mainland - please e-mail for other destinations','Lilylicious_copy_thumb.jpg',130, 57,5,'photo_5194884.html');
												thumbnails[5197875] = new thumbnail(5197875,'287491','INCOMING TIDE  limited edition giclee print- mounted 315mm x 205mm For Sale £45 plus £5 postage on U.K. Mainland','incomingtide_Bills_photo_copy12_thumb.jpg',130, 100,5,'photo_5197875.html');
												thumbnails[5217180] = new thumbnail(5217180,'287491','FALL Limited Edition Giclee Print mounted size 315mm x 205mm  For Sale £45 plus £5 postage on U.K. Mainland','Fall_Bills_photo_copy_thumb.jpg',130, 174,5,'photo_5217180.html');
												thumbnails[5232796] = new thumbnail(5232796,'298151','GRINKLESHELF Oil on Linen 1400mm x 600mm SOLD','Grinkleshelf_best_copy_4_thumb.jpg',130, 56,5,'photo_5232796.html');
												thumbnails[5232836] = new thumbnail(5232836,'286034','FRAGILE Oil on Canvas 600mm x 800mm SOLD','Fragile_copy_thumb.jpg',130, 175,5,'photo_5232836.html');
												thumbnails[5232864] = new thumbnail(5232864,'286034','HAT TRICK  Oil on Canvas  1200mm x 650mm SOLD','Hat_Trick_copy_thumb.jpg',130, 81,5,'photo_5232864.html');
												thumbnails[5232872] = new thumbnail(5232872,'286034','SALT BREEZE Oil on canvas on board 600mm x 850mm SOLD','Salt_Breeze_copy_thumb.jpg',130, 195,5,'photo_5232872.html');
												thumbnails[5233780] = new thumbnail(5233780,'286034','SIZE ZERO Oil on Linen 300mm x 900mm SOLD','Size_Zero_copy_thumb.jpg',130, 396,5,'photo_5233780.html');
												thumbnails[5233815] = new thumbnail(5233815,'286034','STRICTLY COME DANCING Oil on Canvas 500mm x 400mm SOLD','Strictly_Come_Dancing_copy_2_thumb.jpg',130, 108,5,'photo_5233815.html');
												thumbnails[5250721] = new thumbnail(5250721,'286033','HEAVEN\'S GATE Oil on Canvas 600mm x 850mm SOLD','Heavens_Gate_copy_21_thumb.jpg',130, 181,5,'photo_5250721.html');
												thumbnails[5250724] = new thumbnail(5250724,'298151','ICAN Oil on Canvas  400mm x 300mm SOLD','Ican_copy_3_thumb.jpg',130, 98,5,'photo_5250724.html');
												thumbnails[5250726] = new thumbnail(5250726,'298151','JUDGEMENT Oil on Linen 600mm x 300mm SOLD','Judgement_copy_thumb.jpg',130, 63,5,'photo_5250726.html');
												thumbnails[5250736] = new thumbnail(5250736,'298151','LEMON PEEL 4 Oil on Canvas 20mm x 30mm','Lemon_Peel_4_jpg_copy_thumb.jpg',130, 167,5,'photo_5250736.html');
												thumbnails[5250739] = new thumbnail(5250739,'286034','MOVING ON Oil on Canvas 800mm x 600mm SOLD','Moving_On_copy_thumb.jpg',130, 98,5,'photo_5250739.html');
												thumbnails[5284663] = new thumbnail(5284663,'287498','PURPLE PATCH Oil on Linen 600mm x 300mm SOLD','PurplePatch_copy_thumb.jpg',130, 64,5,'photo_5284663.html');
												thumbnails[5284664] = new thumbnail(5284664,'286034','On Reflection Oil on canvas 550mm x 425mm SOLD','On_Reflection_copy_thumb.jpg',130, 95,5,'photo_5284664.html');
												thumbnails[5284680] = new thumbnail(5284680,'286034','Overstretched Oil on Canvas 850mm x 700mm SOLD','Overstretched_copy_thumb.jpg',130, 90,5,'photo_5284680.html');
												thumbnails[5284687] = new thumbnail(5284687,'287498','Shady Ladies Oil on Linen 600mm x 750mm SOLD','Shady_Ladies_copy_thumb.jpg',130, 173,5,'photo_5284687.html');
												thumbnails[5284704] = new thumbnail(5284704,'286034','Menage a Trois Oil on Canvas 350mm x 600mm SOLD','Menage_a_Trois_copy_thumb.jpg',130, 171,5,'photo_5284704.html');
												thumbnails[5288674] = new thumbnail(5288674,'286033','RETROSPECTIVE Oil on linen 600mm x 500mm SOLD','Retrospective_thumb.jpg',130, 107,5,'photo_5288674.html');
												thumbnails[5288677] = new thumbnail(5288677,'298151','SHELVED 1400mm x 600mm Oil on Linen SOLD','Shelved_copy_thumb.jpg',130, 57,5,'photo_5288677.html');
												thumbnails[5288678] = new thumbnail(5288678,'286034','STUNT Oil on Canvas 750mm x 600mm SOLD','Stunt_copy_thumb.jpg',130, 85,5,'photo_5288678.html');
												thumbnails[5288679] = new thumbnail(5288679,'286034','SUMMERTIME Oil on Linen 500mm x 500mm SOLD','Summertime_copy_thumb.jpg',130, 132,5,'photo_5288679.html');
												thumbnails[5291521] = new thumbnail(5291521,'417692','MOORS EDGE DRAWING graphite on watercolour paper 760mm x 560mm FOR SALE £50 plus £5 delivery charge on U.K. Mainland','Moors_Edge_drawing_copy_2_thumb.jpg',130, 93,5,'photo_5291521.html');
												thumbnails[5291540] = new thumbnail(5291540,'287486','ROSEBERRY AUTUMN DRAWING Graphite on watercolour paper 760mm x 560mm SOLD','Roseberry_autumn_copy_thumb.jpg',130, 94,5,'photo_5291540.html');
												thumbnails[5291556] = new thumbnail(5291556,'287486','GRAND TOUR DRAWING Graphite on watercolour paper 760mm x 560mm SOLD','Grand_Tour_drawing_copy_2_thumb.jpg',130, 168,5,'photo_5291556.html');
												thumbnails[5291622] = new thumbnail(5291622,'287486','AFTER MELENDEZ \'STILL LIFE WITH ORANGES AND WALNUTS\' Graphite on watercolour paper 760mm x 560mm SOLD','Melendez_Oranges__Walnuts_-_drawing_copy_thumb.jpg',130, 101,5,'photo_5291622.html');
												thumbnails[5303508] = new thumbnail(5303508,'287486','HEAVEN\'S GATE DRAWING Graphite on watercolour paper 560mm x 760mm SOLD','Heavens_Gate_Drawing_copy_thumb.jpg',130, 177,5,'photo_5303508.html');
												thumbnails[5396093] = new thumbnail(5396093,'287498','MEMORY Oil on Canvas 700mm x 500mm SOLD','Memory_copy_thumb.jpg',130, 92,5,'photo_5396093.html');
												thumbnails[5500832] = new thumbnail(5500832,'287498','SCENE CHANGE Oil on Canvas 800mm x 600mm SOLD','Scene_Change_copy_thumb.jpg',130, 98,5,'photo_5500832.html');
												thumbnails[5514346] = new thumbnail(5514346,'286034','REPAIRED Oil on Canvas 300mm x 400mm SOLD','RepairedJEM_copy_thumb.jpg',130, 176,5,'photo_5514346.html');
												thumbnails[5563521] = new thumbnail(5563521,'417692','BARGAIN BREAK Oil on Canvas 600mm x 500mm FOR SALE £195 plus £20 carriage on UK Mainland','Bargain_break_copy_2_thumb.jpg',130, 108,5,'photo_5563521.html');
												thumbnails[5639757] = new thumbnail(5639757,'298151','MOUVEMENT GARANTI Oil on Canvas 1000mm x 500mm SOLD','Mouvement_GarantiJEM_copy_thumb.jpg',130, 64,5,'photo_5639757.html');
												thumbnails[5639886] = new thumbnail(5639886,'417692','PEAR DROPS Oil on Canvas 500mm x 600mm For Sale £150 plus £25 carriage on U.K. Mainland','Pear_Drops_copy_thumb.jpg',130, 156,5,'photo_5639886.html');
												thumbnails[5808718] = new thumbnail(5808718,'287486','SURPRISING STONES Pencil on rough watercolour paper 760mm x 560mm SOLD','Surprising_Stones_Drawing_copy_thumb.jpg',130, 96,5,'photo_5808718.html');
												thumbnails[7070901] = new thumbnail(7070901,'287486','WILLOWHERB (Drawing)  SOLD','Willowherb_drawing_copy_thumb.jpg',130, 175,5,'photo_7070901.html');
												thumbnails[7070903] = new thumbnail(7070903,'287486','ESCAPE (Drawing) SOLD','Escape_Drawing_copy_thumb.jpg',130, 95,5,'photo_7070903.html');
												thumbnails[7070904] = new thumbnail(7070904,'287486','SLIPWAY (Drawing) SOLD','Slipway_drawing_copy_thumb.jpg',130, 94,5,'photo_7070904.html');
												thumbnails[7071399] = new thumbnail(7071399,'287486','VESTIGIAL LANDSCAPE (Drawing)  SOLD','Vestigial_Landscape_copy_thumb.jpg',130, 98,5,'photo_7071399.html');
												thumbnails[7072030] = new thumbnail(7072030,'287486','TANGLEWEED (Drawing)  SOLD','Tangleweed_drawing_copy_thumb.jpg',130, 168,5,'photo_7072030.html');
												thumbnails[7072174] = new thumbnail(7072174,'287486','TIMEWORN (Drawing)  SOLD','Timeworn_drawing_copy_thumb.jpg',130, 182,5,'photo_7072174.html');
												thumbnails[7193596] = new thumbnail(7193596,'298151','QUINTET  Oil on Canvas 900mm x 300mm SOLD','Quintet_copy_thumb.jpg',130, 44,5,'photo_7193596.html');
												thumbnails[7193675] = new thumbnail(7193675,'417692','SCRAPPAGE Oil on Canvas 600mm x 500mm','Scrappage_copy_thumb.jpg',130, 109,5,'photo_7193675.html');
												thumbnails[7193679] = new thumbnail(7193679,'286033','ROUGH & SMOOTH Oil on Canvas 800mm x 600mm SOLD','Rough_and_Smooth_copy_thumb.jpg',130, 96,5,'photo_7193679.html');
												thumbnails[7201326] = new thumbnail(7201326,'417692','SHEER DROP Oil on Linen 800mm x 600mm FOR SALE £495 plus £25 carriage on U.K. Mainland','Sheer_Drop_copy_thumb.jpg',130, 95,5,'photo_7201326.html');
												thumbnails[7305917] = new thumbnail(7305917,'417692','Inside Stories Oil on Canvas 1000mm x 800mm For Sale £400 plus £25 carriage on U K Mainland - for other destinations please e-mail me.','Inside_Stories_copy_17-26-49_thumb.jpg',130, 107,5,'photo_7305917.html');
												thumbnails[7435556] = new thumbnail(7435556,'417692','TOPPING STONES Oil on Canvas 600mm x 500mm FOR SALE £195 plus £25 carriage on U.K. Mainland','Topping_Stones_copy_thumb.jpg',130, 103,5,'photo_7435556.html');
												thumbnails[7435571] = new thumbnail(7435571,'286034','TIMEWARP Oil on Canvas 700mm x 500mm SOLD','Timewarp_copy_thumb.jpg',130, 190,5,'photo_7435571.html');
												thumbnails[7471590] = new thumbnail(7471590,'286034','FLOWER POWER Oil on Linen 600mm x 400mm FOR SALE £395 plus £25 carriage on U.K. Mainland ','Flower_Power_copy_thumb.jpg',130, 87,5,'photo_7471590.html');
												thumbnails[7483249] = new thumbnail(7483249,'417692','SONG OF THE NORTH Oil on Canvas 800mm x 600mm FOR SALE £425 plus £25 carriage on U.K. mainland','Song_of_the_North_copy_thumb.jpg',130, 97,5,'photo_7483249.html');
												thumbnails[7588319] = new thumbnail(7588319,'417692','HAT TRICK (DRAWING) 760mm x 560mm Pencil on watercolour paper FOR SALE £50 plus £5 delivery on UK Mainland','Hat_trick_Drawing_copy_thumb.jpg',130, 95,5,'photo_7588319.html');
												thumbnails[7644308] = new thumbnail(7644308,'417692','HIDEAWAY Oil on Canvas 700mm x 600mm For Sale £450 plus £20 carriage on U,K, Mainland','Hideaway_copy_thumb.jpg',130, 112,5,'photo_7644308.html');
												thumbnails[7717718] = new thumbnail(7717718,'417692','Shady Ladies (Drawing) 560mm x 760mm Pencil on watercolour paper FOR SALE £50 plus £5 delivery on UK Mainland ','Shady_Ladies_-_Drawing_smaller_thumb.jpg',130, 175,5,'photo_7717718.html');
												thumbnails[7717798] = new thumbnail(7717798,'417692','SHEER DROP (DRAWING) 760mm x 560mm Pencil on watercolour paper FOR SALE £50 plus £5 delivery on UK Mainland','Sheer_Drop_Drawing_smaller_thumb.jpg',130, 95,5,'photo_7717798.html');
												thumbnails[7717814] = new thumbnail(7717814,'417692','ELLIS BELL (Drawing) Pencil on watercolour paper 760mm x 560mm FOR SALE £50 plus £5 delivery on UK Mainland','Ellis_Bell_drawing_smaller_thumb.jpg',130, 98,5,'photo_7717814.html');
												thumbnails[7717820] = new thumbnail(7717820,'417692','STRESS HEAD (DRAWING) 760mm x 560mm pencil on watercolour paper FOR SALE £50 plus £5 delivery on UK Mainland','Stress_Head_drawing_smaller_thumb.jpg',130, 92,5,'photo_7717820.html');
												thumbnails[7717855] = new thumbnail(7717855,'417692','ASCENT (DRAWING) 760mm x 560mm Pencil on watercolour paper FOR SALE £50 plus $£5 delivery on UK Mainland','Ascent_Drawing_smaller_thumb.jpg',130, 97,5,'photo_7717855.html');
												thumbnails[7718611] = new thumbnail(7718611,'417692','AFTER MELENDEZ \'STILL LIFE WITH ORANGES AND WALNUTS\' 800mm x 600mm Oil on Canvas, framed  FOR SALE £650 plus £25 carriage on UK Mainland','After_Melendez_smaller_thumb.jpg',130, 95,5,'photo_7718611.html');
												thumbnails[7719468] = new thumbnail(7719468,'417692','Freesia Trio   - Oil on Board (framed set) 500mm x 150mm FOR SALE £100 plus £10 delivery on UK Mainland','Freesia_studies_set_of_3_framed_smaller_thumb.jpg',130, 46,5,'photo_7719468.html');
												thumbnails[7720145] = new thumbnail(7720145,'417692','CONVERSATION PIECE Oil on Canvas 1000mm x 500mm FOR SALE £725 plus £25 carriage on UK Mainland','Conversation_Piece_smaller__thumb.jpg',130, 64,5,'photo_7720145.html');
												thumbnails[7858192] = new thumbnail(7858192,'417692','SPRING ROLL Oil on linen 30cm x 75cm FOR SALE £195 plus £25 carriage on UK Mainland','Spring_Roll_smaller_thumb.jpg',130, 334,5,'photo_7858192.html');
												thumbnails[7994072] = new thumbnail(7994072,'286034','CARELESS TRANSIT 500mm x 1000mm Oil on canvas SOLD','Careless_Transit_smaller_thumb.jpg',130, 259,5,'photo_7994072.html');
												thumbnails[5097577] = new thumbnail(5097577,'287498','WIREGRASS Oil on Canvas 750mm x550mm SOLD','Wiregrass_thumb.jpg',130, 86,5,'photo_5097577.html');
												thumbnails[5232779] = new thumbnail(5232779,'287498','GREY MARE Oil on Canvas  600mm x 500mm SOLD','Grey_Mare_copy_thumb.jpg',130, 107,5,'photo_5232779.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[417692] = new gallery(417692,'7858192,7720145,7719468,7718611,7717855,7717820,7717814,7717798,7717718,7588319,7435556,7305917,7201326,7193675,5639886,5563521,5291521,5123212,5123188,5091081,5081177','ROOM 1  ORIGINAL ARTWORK FOR SALE','gallery',[5081177,5091081,5123188,5123212,5291521,5563521,5639886,7193675,7201326,7305917,7435556,7483249,7588319,7644308,7717718,7717798,7717814,7717820,7717855,7718611,7719468,7720145,7858192],0, 0, '', 'gallery_417692.html',0,0);
				  					galleries[287491] = new gallery(287491,'5217180,5197875,5194884,5123646','ROOM 2 - PRINTS FOR SALE','gallery',[5123646,5194884,5197875,5217180],0, 0, '', 'gallery_287491.html',0,0);
				  					galleries[286033] = new gallery(286033,'7193679,5288674,5250721,5180917,5123682,5123339,5097576','ROOM 6 - Still-life/Landscape combinations','gallery',[5097576,5123339,5123682,5180917,5250721,5288674,7193679],0, 0, '', 'gallery_286033.html',0,0);
				  					galleries[286034] = new gallery(286034,'7994072,7471590,7435571,5514346,5288679,5288678,5284704,5284680,5284664,5250739,5233815,5233780,5232872,5232864,5232836,5190566,5123715,5123689,5123642,5123641,5123640,5123205,5097570,5091236,5085970','ROOM 3 - Slightly Surreal','gallery',[5085970,5091236,5097570,5123205,5123640,5123641,5123642,5123689,5123715,5190566,5232836,5232864,5232872,5233780,5233815,5250739,5284664,5284680,5284704,5288678,5288679,5514346,7435571,7471590,7994072],0, 0, '', 'gallery_286034.html',0,0);
				  					galleries[287498] = new gallery(287498,'5500832,5396093,5284687,5284663,5232779,5097577,5097558','ROOM 8 More straightforward landscapes','gallery',[5097558,5284663,5284687,5396093,5500832,5097577,5232779],0, 0, '', 'gallery_287498.html',0,0);
				  					galleries[287487] = new gallery(287487,'5123329,5097550,5097538,5082648,5082588','ROOM 4 - Floral subjects','gallery',[5082588,5082648,5097538,5097550,5123329],0, 0, '', 'gallery_287487.html',0,0);
				  					galleries[287486] = new gallery(287486,'7072174,7072030,7071399,7070904,7070903,7070901,5808718,5303508,5291622,5291556,5291540,5086033','ROOM 5 - Pencil Drawings','gallery',[5086033,5291540,5291556,5291622,5303508,5808718,7070901,7070903,7070904,7071399,7072030,7072174],0, 0, '', 'gallery_287486.html',0,0);
				  					galleries[298151] = new gallery(298151,'7193596,5639757,5288677,5250736,5250726,5250724,5232796,5123661,5123648,5121101,5097549','Room 7 - Still life','gallery',[5097549,5121101,5123648,5123661,5232796,5250724,5250726,5250736,5288677,5639757,7193596],0, 0, '', 'gallery_298151.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '7994072,7858192,7720145,7719468,7718611,7717855,7717820,7717814,7717798,7717718,7471590,7435556,7305917,7201326,7193679,7193596,7072174,7072030,7071399,7070904,7070903,7070901,5808718,5639886,5639757,5563521,5514346,5500832,5303508,5291622,5291556,5291540,5291521,5288679,5288678,5288677,5288674,5284704,5284680,5284664,5284663,5250739,5250736,5250726,5250724,5233815,5233780,5232872,5232864,5232836,5232796,5217180,5197875,5194884,5190566,5180917,5123715,5123689,5123682,5123661,5123648,5123646,5123642,5123641,5123329,5123205,5123188,5121101,5097576,5097570,5097550,5097549,5097538,5091236,5091081,5086033,5085970,5082648,5082588,5081177';
imageSets[2] = '7994072,7858192,7720145,7719468,7718611,7717855,7717820,7717814,7717798,7717718,7588319,7471590,7435571,7435556,7305917,7201326,7193679,7193675,7193596,7072174,7072030,7071399,7070904,7070903,7070901,5808718,5639886,5639757,5563521,5514346,5500832,5396093,5303508,5291622,5291556,5291540,5291521,5288679,5288678,5288677,5288674,5284704,5284687,5284680,5284664,5284663,5250739,5250736,5250726,5250724,5250721,5233815,5233780,5232872,5232864,5232836,5232796,5232779,5217180,5197875,5194884,5190566,5180917,5123715,5123689,5123682,5123661,5123648,5123646,5123642,5123641,5123640,5123339,5123329,5123212,5123205,5123188,5121101,5097577,5097576,5097570,5097558,5097550,5097549,5097538,5091236,5091081,5086033,5085970,5082648,5082588,5081177';
imageSets[3] = '7719468,7718611,7717798,7717718';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/janetteboskett/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/janetteboskett/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/janetteboskett/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/janetteboskett/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/janetteboskett/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/janetteboskett/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/janetteboskett/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/janetteboskett/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/janetteboskett/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/janetteboskett/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/janetteboskett/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/janetteboskett/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/janetteboskett/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/janetteboskett/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/janetteboskett/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/janetteboskett/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/janetteboskett/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/janetteboskett/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/janetteboskett/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/janetteboskett/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/janetteboskett/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/janetteboskett/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 = 'janetteboskettoriginalpaintings.co.uk: ' + 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>';
	}
					
	temp = temp + this.fnGetPaymentInfo();
				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>Buy now using PayPal:</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="updateCartValue(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';
				
		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">';
	temp = temp + '	<input type="hidden" name="item_option" value="' + item_option + '">';
	temp = temp + '	<input type="hidden" name="site" value="JANETTEBOSKETT">';
		temp = temp + '	<input type="hidden" name="item_number" value="'+ this.id +'">';
			temp = temp + '	<input type="hidden" name="quantity" value="1">';
								temp = temp + '	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\'\;" onmouseout="this.className=\'button\'\;" type="Button">';
			temp = temp + '	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';
	temp = temp + '</form>';
		temp = temp + '<div class="clearing">&nbsp;</div>';
	temp = temp + '<div id="confirmContainer">';
	temp = temp + '<div id="paymentConfirm">Item added to cart</div>';
	temp = temp + '</div>';
			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;
	}
}

			

