window.thumbnails = new Object();
												thumbnails[1011706] = new thumbnail(1011706,'363960','Flotsem  SOLD','DSCF2652_thumb.JPG',130, 98,15,'photo_1011706.html');
												thumbnails[1011710] = new thumbnail(1011710,'64372','Mountain path','DSCF2374_thumb.JPG',130, 98,15,'photo_1011710.html');
												thumbnails[1011724] = new thumbnail(1011724,'64372','Overlook','DSCF2637_thumb.JPG',130, 98,15,'photo_1011724.html');
												thumbnails[1011729] = new thumbnail(1011729,'363960','Dark rock  SOLD','DSCF2638_thumb.JPG',130, 98,15,'photo_1011729.html');
												thumbnails[1011737] = new thumbnail(1011737,'64372','Green path','DSCF2640_thumb.JPG',98, 130,15,'photo_1011737.html');
												thumbnails[1011757] = new thumbnail(1011757,'363960','Pops way  SOLD','DSCF2641_thumb.JPG',130, 98,15,'photo_1011757.html');
												thumbnails[1011764] = new thumbnail(1011764,'363960','Light splash  SOLD','DSCF2643_thumb.JPG',130, 98,15,'photo_1011764.html');
												thumbnails[1011776] = new thumbnail(1011776,'363960','Poppy orchard  SOLD','DSCF2648_thumb.JPG',130, 98,15,'photo_1011776.html');
												thumbnails[1011781] = new thumbnail(1011781,'363960','Corse wave  SOLD','DSCF2649_thumb.JPG',130, 98,15,'photo_1011781.html');
												thumbnails[1011788] = new thumbnail(1011788,'363960','Wild sea  SOLD','DSCF2653_thumb.JPG',130, 98,15,'photo_1011788.html');
												thumbnails[1011794] = new thumbnail(1011794,'363960','Corse spray  SOLD','DSCF2651_thumb.JPG',130, 98,15,'photo_1011794.html');
												thumbnails[1011799] = new thumbnail(1011799,'64372','Corsica gorse','DSCF2654_thumb.JPG',130, 98,15,'photo_1011799.html');
												thumbnails[1008506] = new thumbnail(1008506,'363960','Gill\'s Bluebells  SOLD','DSCF2366_thumb.JPG',98, 130,15,'photo_1008506.html');
												thumbnails[918475] = new thumbnail(918475,'363960','Stiper-light  SOLD','2006_1208lalalala0001_thumb.JPG',130, 98,15,'photo_918475.html');
												thumbnails[918487] = new thumbnail(918487,'363960','Siesta  SOLD','2006_1208lalalala0009_thumb.JPG',130, 98,15,'photo_918487.html');
												thumbnails[915477] = new thumbnail(915477,'64372','Green Landcsape','DSCF2216_thumb.JPG',130, 98,15,'photo_915477.html');
												thumbnails[915480] = new thumbnail(915480,'363960','Fishing Boats  SOLD','DSCF2215_thumb.JPG',130, 98,15,'photo_915480.html');
												thumbnails[915481] = new thumbnail(915481,'363960','Distance  SOLD','DSCF2214_thumb.JPG',130, 98,15,'photo_915481.html');
												thumbnails[915484] = new thumbnail(915484,'363960','Boats  SOLD','DSCF2213_thumb.JPG',130, 98,15,'photo_915484.html');
												thumbnails[915486] = new thumbnail(915486,'363960','Flora Hills  SOLD','DSCF2212_thumb.JPG',130, 98,15,'photo_915486.html');
												thumbnails[915501] = new thumbnail(915501,'64372','There','DSCF2211_thumb.JPG',130, 98,15,'photo_915501.html');
												thumbnails[915502] = new thumbnail(915502,'363940','Coast','DSCF2210_thumb.JPG',130, 98,15,'photo_915502.html');
												thumbnails[915503] = new thumbnail(915503,'363960','Side Sea  SOLD','DSCF2206_thumb.JPG',130, 98,15,'photo_915503.html');
												thumbnails[916133] = new thumbnail(916133,'363960','Stretton Light  SOLD','2005_0324Image0072_thumb.JPG',130, 98,15,'photo_916133.html');
												thumbnails[916138] = new thumbnail(916138,'363960','Powys Sheep  SOLD','2006_0215lalalala0068_thumb.JPG',130, 98,15,'photo_916138.html');
												thumbnails[916141] = new thumbnail(916141,'363960','Fore-red  SOLD','2006_0215lalalala0070_thumb.JPG',130, 98,15,'photo_916141.html');
												thumbnails[916145] = new thumbnail(916145,'363960','Winter Briar  SOLD','2006_0215lalalala0074_thumb.JPG',130, 98,15,'photo_916145.html');
												thumbnails[916148] = new thumbnail(916148,'363960','Hills to the Mynd  SOLD','2006_0502lalalala0011_thumb.JPG',130, 98,15,'photo_916148.html');
												thumbnails[916149] = new thumbnail(916149,'363960','Coastline  SOLD','2006_0502lalalala0096_thumb.JPG',130, 98,15,'photo_916149.html');
												thumbnails[916150] = new thumbnail(916150,'64372','Madeira house','2006_0502lalalala0099_thumb.JPG',130, 98,15,'photo_916150.html');
												thumbnails[916151] = new thumbnail(916151,'363960','Pink sun  SOLD','2006_0502lalalala0100_thumb.JPG',130, 98,15,'photo_916151.html');
												thumbnails[916152] = new thumbnail(916152,'363960','Wood  SOLD','2006_0502lalalala0106_thumb.JPG',130, 98,15,'photo_916152.html');
												thumbnails[913421] = new thumbnail(913421,'64372','Bluebell Wood','2006_12080005_thumb.JPG',130, 98,15,'photo_913421.html');
												thumbnails[913423] = new thumbnail(913423,'64372','Heat','2006_12080006_thumb.JPG',130, 98,15,'photo_913423.html');
												thumbnails[913424] = new thumbnail(913424,'64372','Acton Burnall. Shropshire','2006_12080007_thumb.JPG',130, 98,15,'photo_913424.html');
												thumbnails[913426] = new thumbnail(913426,'363940','Rising Sun','2006_12080008_thumb.JPG',130, 98,15,'photo_913426.html');
												thumbnails[913429] = new thumbnail(913429,'64372','Sunflowers','2006_12080009_thumb.JPG',130, 98,15,'photo_913429.html');
												thumbnails[913431] = new thumbnail(913431,'64372','Trees 111','2006_12080010_thumb.JPG',130, 98,15,'photo_913431.html');
												thumbnails[913433] = new thumbnail(913433,'64372','cock-a-doodle-doo','2006_12080012_thumb.JPG',130, 98,15,'photo_913433.html');
												thumbnails[913435] = new thumbnail(913435,'64372','Light fall','2006_12080013_thumb.JPG',130, 98,15,'photo_913435.html');
												thumbnails[913436] = new thumbnail(913436,'64372','Lane bend','2006_12080014_thumb.JPG',130, 98,15,'photo_913436.html');
												thumbnails[913439] = new thumbnail(913439,'363960','Pembrokeshire Drop SOLD','2007_0227lalalala0014 (2)_thumb.JPG',98, 130,15,'photo_913439.html');
												thumbnails[913443] = new thumbnail(913443,'363940','St. Julians','2007_0227lalalala0015_thumb.JPG',130, 98,15,'photo_913443.html');
												thumbnails[913452] = new thumbnail(913452,'363960','Cliffs nr St.Davids  SOLD','2007_0227lalalala0018_thumb.JPG',130, 98,15,'photo_913452.html');
												thumbnails[913503] = new thumbnail(913503,'363960','Beach  SOLD','2007_0227lalalala0022_thumb.JPG',130, 98,15,'photo_913503.html');
												thumbnails[913530] = new thumbnail(913530,'363960','Tulips  SOLD','2007_0227lalalala0024 (2)_thumb.JPG',98, 130,15,'photo_913530.html');
												thumbnails[913551] = new thumbnail(913551,'363940','Carfaei','2007_0227lalalala0025_thumb.JPG',130, 98,15,'photo_913551.html');
												thumbnails[913561] = new thumbnail(913561,'363960','Trees 11 SOLD','2006_12080031_thumb.JPG',130, 98,15,'photo_913561.html');
												thumbnails[913570] = new thumbnail(913570,'64372','Nude','2006_12080033_thumb.JPG',130, 98,15,'photo_913570.html');
												thumbnails[913584] = new thumbnail(913584,'64372','Winter Gatten','2006_12080035_thumb.JPG',130, 98,15,'photo_913584.html');
												thumbnails[913586] = new thumbnail(913586,'363960','Winter tree SOLD','2006_12080036_thumb.JPG',130, 98,15,'photo_913586.html');
												thumbnails[913589] = new thumbnail(913589,'363940','Madeira Dawn','2006_12080038_thumb.JPG',130, 98,15,'photo_913589.html');
												thumbnails[913594] = new thumbnail(913594,'64372','Claire\'s Callow','2006_120800421_thumb.JPG',130, 98,15,'photo_913594.html');
												thumbnails[913605] = new thumbnail(913605,'363960','Estuary  SOLD','2006_120800431_thumb.JPG',130, 98,15,'photo_913605.html');
												thumbnails[913625] = new thumbnail(913625,'363960','Cliff Drop  SOLD','2006_0502lalalala0001_thumb.JPG',130, 98,15,'photo_913625.html');
												thumbnails[913630] = new thumbnail(913630,'363960','Carfaei 1  SOLD','2006_0502lalalala0004_thumb.JPG',130, 98,15,'photo_913630.html');
												thumbnails[913632] = new thumbnail(913632,'363960','Almond Tree  SOLD','2006_0502lalalala0006_thumb.JPG',130, 98,15,'photo_913632.html');
												thumbnails[913698] = new thumbnail(913698,'363960','Backwater  SOLD','2006_0502lalalala0007_thumb.JPG',130, 98,15,'photo_913698.html');
												thumbnails[913738] = new thumbnail(913738,'363960','Grass Light  SOLD','2006_0502lalalala0005_thumb.JPG',130, 98,15,'photo_913738.html');
												thumbnails[913747] = new thumbnail(913747,'363960','Solva Head  SOLD','2006_0502lalalala0008_thumb.JPG',130, 98,15,'photo_913747.html');
												thumbnails[913757] = new thumbnail(913757,'363960','Sea Wave  SOLD','2006_0502lalalala0009_thumb.JPG',130, 98,15,'photo_913757.html');
												thumbnails[911489] = new thumbnail(911489,'64372','Haughmond Abbey','2006_12080015_thumb.JPG',130, 98,15,'photo_911489.html');
												thumbnails[911507] = new thumbnail(911507,'363960','Stormy Waters  SOLD','2006_11250005_thumb.JPG',130, 98,15,'photo_911507.html');
												thumbnails[911512] = new thumbnail(911512,'363960','Cedar Blue SOLD','2006_11250008_thumb.JPG',130, 98,15,'photo_911512.html');
												thumbnails[911519] = new thumbnail(911519,'64372','Callow Haven','2006_11250009_thumb.JPG',130, 98,15,'photo_911519.html');
												thumbnails[911529] = new thumbnail(911529,'64372','Fiers Gorge','2006_11250002_thumb.JPG',130, 98,15,'photo_911529.html');
												thumbnails[911542] = new thumbnail(911542,'363960','Sea between the trees SOLD','2006_11250014_thumb.JPG',130, 98,15,'photo_911542.html');
												thumbnails[911548] = new thumbnail(911548,'363960','Sea trees SOLD','2006_11250015_thumb.JPG',130, 98,15,'photo_911548.html');
												thumbnails[911562] = new thumbnail(911562,'363960',' Shropshire Way SOLD','2006_12080001_thumb.JPG',130, 98,15,'photo_911562.html');
												thumbnails[911573] = new thumbnail(911573,'363960','Olive Shade SOLD','2006_12080002_thumb.JPG',130, 98,15,'photo_911573.html');
												thumbnails[911601] = new thumbnail(911601,'363960',' Cockeral SOLD','2006_12080003_thumb.JPG',130, 98,15,'photo_911601.html');
												thumbnails[911616] = new thumbnail(911616,'363960','Lilies SOLD','2006_12080004_thumb.JPG',130, 98,15,'photo_911616.html');
												thumbnails[907834] = new thumbnail(907834,'363960','Pheasants Three SOLD','2007_0227lalalala0011 (2)_thumb.JPG',98, 130,15,'photo_907834.html');
												thumbnails[907842] = new thumbnail(907842,'363960','Manorbier View SOLD','2007_0227lalalala0012 (2)_thumb.JPG',98, 130,15,'photo_907842.html');
												thumbnails[907916] = new thumbnail(907916,'363960','Solva Head SOLD','2006_112500011_thumb.JPG',130, 98,15,'photo_907916.html');
												thumbnails[834413] = new thumbnail(834413,'64372','purple flower','2006_12080041 (2)_thumb.JPG',98, 130,15,'photo_834413.html');
												thumbnails[834439] = new thumbnail(834439,'363960','Seaside Sold','2006_12080043_thumb.JPG',130, 98,15,'photo_834439.html');
												thumbnails[834440] = new thumbnail(834440,'363941','grazing sheep','2006_12080044 (2)_thumb.JPG',98, 130,15,'photo_834440.html');
												thumbnails[834447] = new thumbnail(834447,'64372','welsh valley','2006_12080045 (2)_thumb.JPG',98, 130,15,'photo_834447.html');
												thumbnails[834467] = new thumbnail(834467,'363960','coastline wales SOLD','2006_11250001_thumb.JPG',130, 98,15,'photo_834467.html');
												thumbnails[834471] = new thumbnail(834471,'363960','farmyard animals and cat SOLD','2006_11250003 (2)_thumb.JPG',98, 130,15,'photo_834471.html');
												thumbnails[834473] = new thumbnail(834473,'64372','apples','2006_11250004 (2)_thumb.JPG',98, 130,15,'photo_834473.html');
												thumbnails[834476] = new thumbnail(834476,'64372','fishing boats,madeira','2006_11250007_thumb.JPG',130, 98,15,'photo_834476.html');
												thumbnails[834482] = new thumbnail(834482,'64372','olive grove,madeira','2006_11250011_thumb.JPG',130, 98,15,'photo_834482.html');
												thumbnails[834484] = new thumbnail(834484,'363960','two olive trees,madeira SOLD ','2006_11250012_thumb.JPG',130, 98,15,'photo_834484.html');
												thumbnails[832851] = new thumbnail(832851,'64372','Newgale','2006_12080022_thumb.JPG',130, 98,15,'photo_832851.html');
												thumbnails[832883] = new thumbnail(832883,'64372','Termitemound','2006_12080017_thumb.JPG',130, 98,15,'photo_832883.html');
												thumbnails[832889] = new thumbnail(832889,'64372','2Janes','2006_12080016 (2)1_thumb.JPG',98, 130,15,'photo_832889.html');
												thumbnails[832902] = new thumbnail(832902,'64372','Coastline','2006_12080020 (2)_thumb.JPG',98, 130,15,'photo_832902.html');
												thumbnails[832903] = new thumbnail(832903,'64372','Dawnsea','2006_12080024_thumb.JPG',130, 98,15,'photo_832903.html');
												thumbnails[832910] = new thumbnail(832910,'363960','Pinklane   SOLD','2006_12080025 (2)_thumb.JPG',98, 130,15,'photo_832910.html');
												thumbnails[832911] = new thumbnail(832911,'363960','Seafront    SOLD','2006_12080026_thumb.JPG',130, 98,15,'photo_832911.html');
												thumbnails[832912] = new thumbnail(832912,'64372','Gorgeceiling','2006_12080027_thumb.JPG',130, 98,15,'photo_832912.html');
												thumbnails[832915] = new thumbnail(832915,'64372','Absentmines','2006_12080028 (2)_thumb.JPG',98, 130,15,'photo_832915.html');
												thumbnails[832937] = new thumbnail(832937,'64372','Redhouse','2006_12080030 (2)_thumb.JPG',98, 130,15,'photo_832937.html');
												thumbnails[832938] = new thumbnail(832938,'64372','Graphitesketch','2006_12080034_thumb.JPG',130, 98,15,'photo_832938.html');
												thumbnails[834415] = new thumbnail(834415,'64372','olive grove','2006_12080042_thumb.JPG',130, 98,15,'photo_834415.html');
												thumbnails[911555] = new thumbnail(911555,'363960','Deep Shadow SOLD','2006_11250016_thumb.JPG',130, 98,15,'photo_911555.html');
												thumbnails[913467] = new thumbnail(913467,'363960','Manorbier Dune SOLD','2007_0227lalalala0019_thumb.JPG',130, 98,15,'photo_913467.html');
												thumbnails[913478] = new thumbnail(913478,'64372','Skrinkle Wet','2007_0227lalalala0021_thumb.JPG',130, 98,15,'photo_913478.html');
												thumbnails[913620] = new thumbnail(913620,'363960','Pheasants SOLD','2006_0502lalalala0003_thumb.JPG',130, 98,15,'photo_913620.html');
												thumbnails[6699217] = new thumbnail(6699217,'64372','Through The Bluebells','P2072_thumb.jpg',130, 98,15,'photo_6699217.html');
												thumbnails[6699238] = new thumbnail(6699238,'64372','Wellbank Lavender.','PT25_thumb.jpg',130, 98,15,'photo_6699238.html');
												thumbnails[6699239] = new thumbnail(6699239,'64372','Apple Blossom.','PT172_thumb.jpg',130, 98,15,'photo_6699239.html');
												thumbnails[6699242] = new thumbnail(6699242,'363960','Incoming Tide. Sold.','PT272_thumb.jpg',130, 98,15,'photo_6699242.html');
												thumbnails[6699262] = new thumbnail(6699262,'363960','Side Manorbier.','PT372_thumb.jpg',130, 98,15,'photo_6699262.html');
												thumbnails[6699273] = new thumbnail(6699273,'363940','Forebeach.','PT472_thumb.jpg',130, 98,15,'photo_6699273.html');
												thumbnails[6699276] = new thumbnail(6699276,'363940','Incoming Spray.','PT572_thumb.jpg',130, 98,15,'photo_6699276.html');
												thumbnails[6699283] = new thumbnail(6699283,'64372','Shropshire Dawn.','PT672_thumb.jpg',130, 98,15,'photo_6699283.html');
												thumbnails[6699293] = new thumbnail(6699293,'363940','Shoreline.','PT872_thumb.jpg',130, 98,15,'photo_6699293.html');
												thumbnails[6699299] = new thumbnail(6699299,'363940','Foreshore.','PT972_thumb.jpg',130, 98,15,'photo_6699299.html');
												thumbnails[6699304] = new thumbnail(6699304,'363940','Surf.','PT1072_thumb.jpg',130, 99,15,'photo_6699304.html');
												thumbnails[6699311] = new thumbnail(6699311,'363940','Covered Rocks.','PT1172_thumb.jpg',130, 98,15,'photo_6699311.html');
												thumbnails[6699317] = new thumbnail(6699317,'363960','Bay. Sold.','PT1272_thumb.jpg',130, 98,15,'photo_6699317.html');
												thumbnails[6699325] = new thumbnail(6699325,'363940','Dewett.','PT1372_thumb.jpg',130, 98,15,'photo_6699325.html');
												thumbnails[6699331] = new thumbnail(6699331,'363940','Embankment.','PT1472_thumb.jpg',130, 98,15,'photo_6699331.html');
												thumbnails[6699332] = new thumbnail(6699332,'64372','The View.','PT1572_thumb.jpg',130, 98,15,'photo_6699332.html');
												thumbnails[6699336] = new thumbnail(6699336,'363960','Autumn Wood. Sold.','PT1672_thumb.jpg',130, 98,15,'photo_6699336.html');
												thumbnails[6699338] = new thumbnail(6699338,'363940','Incoming.','PT1772_thumb.jpg',130, 98,15,'photo_6699338.html');
												thumbnails[6699342] = new thumbnail(6699342,'363960','Fawkes Pool. Sold.','PT1872_thumb.jpg',130, 98,15,'photo_6699342.html');
												thumbnails[6699345] = new thumbnail(6699345,'363940','Storm Brewing. Caerfai.','PT1972_thumb.jpg',130, 98,15,'photo_6699345.html');
												thumbnails[6699357] = new thumbnail(6699357,'363960','Caerfai.Sold.','PT2172_thumb.jpg',130, 98,15,'photo_6699357.html');
												thumbnails[6699370] = new thumbnail(6699370,'64372','Glade. Corsica.','PT2472_thumb.jpg',130, 98,15,'photo_6699370.html');
												thumbnails[6699372] = new thumbnail(6699372,'363960','Autumn Way. Lydham. Sold.','PT3072_thumb.jpg',130, 99,15,'photo_6699372.html');
												thumbnails[6699378] = new thumbnail(6699378,'64372','Orange Tree.','PT3272_thumb.jpg',130, 98,15,'photo_6699378.html');
												thumbnails[6699455] = new thumbnail(6699455,'64372','Orange Tree. Last Autumn.','PT3472_thumb.jpg',130, 98,15,'photo_6699455.html');
												thumbnails[6699459] = new thumbnail(6699459,'363960','Autumn Glade. Sold.','PT3572_thumb.jpg',130, 98,15,'photo_6699459.html');
												thumbnails[6699462] = new thumbnail(6699462,'64372','Winter.','PT3672_thumb.jpg',130, 95,15,'photo_6699462.html');
												thumbnails[6699464] = new thumbnail(6699464,'363960','Mediteranean Tree. Sold.','PT3772_thumb.jpg',130, 98,15,'photo_6699464.html');
												thumbnails[6699471] = new thumbnail(6699471,'64372','St David\'s Day.','PT3872_thumb.jpg',130, 98,15,'photo_6699471.html');
												thumbnails[6699472] = new thumbnail(6699472,'64372','Summer Shade.','PT3972_thumb.jpg',130, 98,15,'photo_6699472.html');
												thumbnails[6699475] = new thumbnail(6699475,'363941','Cockerel.','PT4172_thumb.jpg',130, 98,15,'photo_6699475.html');
												thumbnails[6699477] = new thumbnail(6699477,'363941','Cockerel.','PT4272_thumb.jpg',130, 98,15,'photo_6699477.html');
												thumbnails[6699480] = new thumbnail(6699480,'363941','Old Pal. Sold.','PT4472_thumb.jpg',130, 107,15,'photo_6699480.html');
												thumbnails[6699481] = new thumbnail(6699481,'363941','Cow. Sold.','PT4572_thumb.jpg',130, 171,15,'photo_6699481.html');
												thumbnails[6699492] = new thumbnail(6699492,'363940','Coastal Surf.','PT772_thumb.jpg',130, 98,15,'photo_6699492.html');
												thumbnails[6708599] = new thumbnail(6708599,'64372','A Bunch of Anenomies.','a_bunch_of_anenomies_30x28_ins_650_-_Web_Version_thumb.JPG',130, 173,15,'photo_6708599.html');
												thumbnails[6708669] = new thumbnail(6708669,'363960','Tulips   Sold','tulips_30x28_ins_650_-_Website_Version_thumb.JPG',130, 167,15,'photo_6708669.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[64372] = new gallery(64372,'1011799','Landscapes','section433537',[1011710,1011724,1011737,1011799,915477,915501,916150,913421,913423,913424,913429,913431,913433,913435,913436,913570,913584,913594,911489,911519,911529,834413,834447,834473,834476,834482,832851,832883,832889,832902,832903,832912,832915,832937,832938,834415,913478,6699217,6699238,6699239,6699283,6699332,6699370,6699378,6699455,6699462,6699471,6699472,6708599],0, 0, '', 'section433537_64372.html',0,0);
				  					galleries[363940] = new gallery(363940,'913551,913443','Seascapes','section433537',[915502,913426,913443,913551,913589,6699273,6699276,6699293,6699299,6699304,6699311,6699325,6699331,6699338,6699345,6699492],0, 0, '', 'section433537_363940.html',0,0);
				  					galleries[363941] = new gallery(363941,'6699481,6699480,6699477,6699475,834440','Animals','section433537',[834440,6699475,6699477,6699480,6699481],0, 0, '', 'section433537_363941.html',0,0);
				  					galleries[363960] = new gallery(363960,'913530,913503,911512','Sold Paintings','section433537',[1011706,1011729,1011757,1011764,1011776,1011781,1011788,1011794,1008506,918475,918487,915480,915481,915484,915486,915503,916133,916138,916141,916145,916148,916149,916151,916152,913439,913452,913503,913530,913561,913586,913605,913625,913630,913632,913698,913738,913747,913757,911507,911512,911542,911548,911562,911573,911601,911616,907834,907842,907916,834439,834467,834471,834484,832910,832911,911555,913467,913620,6699242,6699262,6699317,6699336,6699342,6699357,6699372,6699459,6699464,6708669],0, 0, '', 'section433537_363960.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '6708669,6708599,6699492,6699481,6699480,6699477,6699475,6699472,6699471,6699462,6699455,6699378,6699372,6699370,6699345,6699338,6699332,6699331,6699325,6699311,6699304,6699299,6699293,6699283,6699276,6699273,6699239,6699238,6699217,1011799,1011724,1011710,916141,915502,915501,915477,913551,913443,913431,913429,834440';
imageSets[2] = '1011799,913551,913530,913503,913443,911512';
imageSets[3] = '1011799,1011794,1011788,1011781,1011776,1011764,1011757,1011737,1011729,1011724,1011710,1011706,1008506,918487,918475,916152,916151,916150,916149,916148,916145,916141,916138,916133,915503,915502,915501,915486,915484,915481,915480,915477,913757,913747,913738,913630,913625,913594,913551,913530,913503';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/penelope/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/penelope/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/penelope/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/penelope/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/penelope/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/penelope/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/penelope/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/penelope/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/penelope/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/penelope/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/penelope/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/penelope/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/penelope/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/penelope/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/penelope/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/penelope/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/penelope/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/penelope/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/penelope/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/penelope/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/penelope/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/penelope/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 += 'section433537.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 && 'section433537' != '') {
					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 = 'Penelope Timmis ARBSA  ASWA : ' + 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 = 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> ' + (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 + '<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;
	}
}

			

