window.thumbnails = new Object();
												thumbnails[3609392] = new thumbnail(3609392,'','Dr S D Jouhar FRPS FPSA','64_misty_photographer12_thumb.jpg',130, 191,15,'							photo_3609392.html');
												thumbnails[3609411] = new thumbnail(3609411,'','\"Untitled\"','Pol_Trans_008a001_thumb.jpg',130, 128,15,'							photo_3609411.html');
												thumbnails[3609413] = new thumbnail(3609413,'','\"Untitled\"','Pol_Trans_003a001_thumb.jpg',130, 128,15,'							photo_3609413.html');
												thumbnails[3609435] = new thumbnail(3609435,'','\"Untitled\"','ColourNeg1390a001_thumb.jpg',130, 130,15,'							photo_3609435.html');
												thumbnails[3610415] = new thumbnail(3610415,'','\"Untitled\"','ColourNeg1354a001_thumb.jpg',130, 130,15,'							photo_3610415.html');
												thumbnails[3621936] = new thumbnail(3621936,'','Dr S D Jouhar FRPS FPSA','ColourNeg896_210-wide_thumb.jpg',130, 188,15,'							photo_3621936.html');
												thumbnails[3621955] = new thumbnail(3621955,'','Polarised Light Technique','1961_Pola-technique_210wide_thumb.jpg',130, 172,15,'							photo_3621955.html');
												thumbnails[3622372] = new thumbnail(3622372,'','\"Photography as a Fine Art\" Exhibition - Royal Festival Hall - November 1961','1d011_thumb.jpg',130, 125,15,'							photo_3622372.html');
												thumbnails[3749502] = new thumbnail(3749502,'','\"Madrasi Fishermen\" - 1960','Madrasi_Fishermen_500_thumb.jpg',130, 104,15,'							photo_3749502.html');
												thumbnails[5742542] = new thumbnail(5742542,'','','Birds_031a_thumb.jpg',130, 129,15,'							photo_5742542.html');
												thumbnails[3609403] = new thumbnail(3609403,'220559','\"Untitled\"','Pol_Trans_015a001_thumb.jpg',130, 131,15,'							photo_3609403.html');
												thumbnails[3609406] = new thumbnail(3609406,'220559','\"Untitled\"','Pol_Trans_013a001_thumb.jpg',130, 124,15,'							photo_3609406.html');
												thumbnails[3609407] = new thumbnail(3609407,'220559','\"Untitled\"','Pol_Trans_012a001_thumb.jpg',130, 128,15,'							photo_3609407.html');
												thumbnails[3609408] = new thumbnail(3609408,'220559','\"Holocaust\"','Pol_Trans_011a001_thumb.jpg',130, 128,15,'							photo_3609408.html');
												thumbnails[3609409] = new thumbnail(3609409,'220559','\"Phoenix\"','Pol_Trans_010a001_thumb.jpg',130, 130,15,'							photo_3609409.html');
												thumbnails[3609410] = new thumbnail(3609410,'220559','\"Untitled\"','Pol_Trans_009a001_thumb.jpg',130, 129,15,'							photo_3609410.html');
												thumbnails[3609412] = new thumbnail(3609412,'220559','\"Untitled\"','Pol_Trans_007a001_thumb.jpg',130, 130,15,'							photo_3609412.html');
												thumbnails[3609414] = new thumbnail(3609414,'220559','\"Seraph\"','Pol_Trans_001a001_thumb.jpg',130, 130,15,'							photo_3609414.html');
												thumbnails[3609415] = new thumbnail(3609415,'220559','\"Flight\"','ColourNeg1408a001_thumb.jpg',130, 123,15,'							photo_3609415.html');
												thumbnails[3609416] = new thumbnail(3609416,'220559','\"Strong Man\"','ColourNeg1405a001_thumb.jpg',130, 130,15,'							photo_3609416.html');
												thumbnails[3609430] = new thumbnail(3609430,'220559','\"Pola-Portrait\"','Pol_Trans_016a0012_thumb.jpg',130, 130,15,'							photo_3609430.html');
												thumbnails[3609433] = new thumbnail(3609433,'220559','\"Urge\"','ColourNeg1403a001_thumb.jpg',130, 130,15,'							photo_3609433.html');
												thumbnails[3609437] = new thumbnail(3609437,'220559','\"Modern Man\"','ColourNeg1388a001_thumb.jpg',130, 129,15,'							photo_3609437.html');
												thumbnails[3609439] = new thumbnail(3609439,'220559','\"Untitled\"','ColourNeg1387a001_thumb.jpg',130, 127,15,'							photo_3609439.html');
												thumbnails[3609441] = new thumbnail(3609441,'220559','\"Untitled\"','ColourNeg1367a001_thumb.jpg',130, 130,15,'							photo_3609441.html');
												thumbnails[3609442] = new thumbnail(3609442,'220559','\"Whiskerando\"','ColourNeg1365a001_thumb.jpg',130, 122,15,'							photo_3609442.html');
												thumbnails[3610416] = new thumbnail(3610416,'220559','\"Untitled\"','ColourNeg1341a001_thumb.jpg',130, 130,15,'							photo_3610416.html');
												thumbnails[3610417] = new thumbnail(3610417,'220559','\"Magnetic Attraction\"','ColourNeg1335a001_thumb.jpg',130, 130,15,'							photo_3610417.html');
												thumbnails[3610418] = new thumbnail(3610418,'220559','\"Seagull at Sunset\"','ColourNeg1331a001_thumb.jpg',130, 130,15,'							photo_3610418.html');
												thumbnails[3610420] = new thumbnail(3610420,'220559','\"Untitled\"','ColourNeg1311a001_thumb.jpg',130, 129,15,'							photo_3610420.html');
												thumbnails[3610421] = new thumbnail(3610421,'220559','\"Untitled\"','ColourNeg1302a001_thumb.jpg',130, 129,15,'							photo_3610421.html');
												thumbnails[3610423] = new thumbnail(3610423,'220559','\"State Fed\"','ColourNeg1297a001_thumb.jpg',130, 130,15,'							photo_3610423.html');
												thumbnails[3610425] = new thumbnail(3610425,'220559','\"Untitled\"','ColourNeg1246a001_thumb.jpg',130, 128,15,'							photo_3610425.html');
												thumbnails[3610427] = new thumbnail(3610427,'220559','\"Untitled\"','ColourNeg1201a001_thumb.jpg',130, 130,15,'							photo_3610427.html');
												thumbnails[3610536] = new thumbnail(3610536,'220604','','Head_on_Leaves2_thumb.jpg',130, 126,15,'							photo_3610536.html');
												thumbnails[3610538] = new thumbnail(3610538,'220604','','ColourNeg12772_thumb.jpg',130, 125,15,'							photo_3610538.html');
												thumbnails[3610543] = new thumbnail(3610543,'220604','','ColourNeg10012_thumb.jpg',130, 178,15,'							photo_3610543.html');
												thumbnails[3610545] = new thumbnail(3610545,'220604','','ColourNeg9952_thumb.jpg',130, 178,15,'							photo_3610545.html');
												thumbnails[3610549] = new thumbnail(3610549,'220604','','ColourNeg9592_thumb.jpg',130, 165,15,'							photo_3610549.html');
												thumbnails[3610551] = new thumbnail(3610551,'220604','','ColourNeg9522_thumb.jpg',130, 175,15,'							photo_3610551.html');
												thumbnails[3610555] = new thumbnail(3610555,'220604','','ColourNeg9382_thumb.jpg',130, 183,15,'							photo_3610555.html');
												thumbnails[3610556] = new thumbnail(3610556,'220604','','ColourNeg9262_thumb.jpg',130, 189,15,'							photo_3610556.html');
												thumbnails[3610558] = new thumbnail(3610558,'220604','','ColourNeg9252_thumb.jpg',130, 173,15,'							photo_3610558.html');
												thumbnails[3610561] = new thumbnail(3610561,'220604','','ColourNeg9242_thumb.jpg',130, 189,15,'							photo_3610561.html');
												thumbnails[3610562] = new thumbnail(3610562,'220604','','ColourNeg8962_thumb.jpg',130, 189,15,'							photo_3610562.html');
												thumbnails[3610565] = new thumbnail(3610565,'220604','','ColourNeg8902_thumb.jpg',130, 172,15,'							photo_3610565.html');
												thumbnails[3610566] = new thumbnail(3610566,'220604','','ColourNeg8862_thumb.jpg',130, 129,15,'							photo_3610566.html');
												thumbnails[3610567] = new thumbnail(3610567,'220604','','ColourNeg8852_thumb.jpg',130, 133,15,'							photo_3610567.html');
												thumbnails[3610568] = new thumbnail(3610568,'220604','','ColourNeg8822_thumb.jpg',130, 130,15,'							photo_3610568.html');
												thumbnails[3610578] = new thumbnail(3610578,'220560','\"Margaret\"','AOC_025_thumb.jpg',130, 83,15,'							photo_3610578.html');
												thumbnails[3610582] = new thumbnail(3610582,'220560','\"Jumping Skier\"','AOC_012_thumb.jpg',130, 83,15,'							photo_3610582.html');
												thumbnails[3610583] = new thumbnail(3610583,'220560','\"Playing with Fish\"','AOC_011_thumb.jpg',130, 81,15,'							photo_3610583.html');
												thumbnails[3610591] = new thumbnail(3610591,'220560','\"Sitar Player\"','AoC_005_thumb.jpg',130, 83,15,'							photo_3610591.html');
												thumbnails[3613043] = new thumbnail(3613043,'220568','','Trans_023_thumb.jpg',130, 129,15,'							photo_3613043.html');
												thumbnails[3613052] = new thumbnail(3613052,'220568','','Trans_033_thumb.jpg',130, 128,15,'							photo_3613052.html');
												thumbnails[3613054] = new thumbnail(3613054,'220568','','Trans_037_thumb.jpg',130, 129,15,'							photo_3613054.html');
												thumbnails[3613056] = new thumbnail(3613056,'220568','','Trans_046_thumb.jpg',130, 128,15,'							photo_3613056.html');
												thumbnails[3613062] = new thumbnail(3613062,'220568','','Trans_064_thumb.jpg',130, 128,15,'							photo_3613062.html');
												thumbnails[3613092] = new thumbnail(3613092,'220568','','xxBWNeg_439_thumb.jpg',130, 131,15,'							photo_3613092.html');
												thumbnails[3613108] = new thumbnail(3613108,'220568','','xxBWNeg_548_thumb.jpg',130, 131,15,'							photo_3613108.html');
												thumbnails[3613112] = new thumbnail(3613112,'220568','','xxBWNeg_567_thumb.jpg',130, 127,15,'							photo_3613112.html');
												thumbnails[3613119] = new thumbnail(3613119,'220568','','xxBWNeg_761_thumb.jpg',130, 126,15,'							photo_3613119.html');
												thumbnails[3613127] = new thumbnail(3613127,'220568','','xxBWNeg_946_thumb.jpg',130, 130,15,'							photo_3613127.html');
												thumbnails[3613131] = new thumbnail(3613131,'220568','','xxBWNeg_971_thumb.jpg',130, 129,15,'							photo_3613131.html');
												thumbnails[3613135] = new thumbnail(3613135,'220568','','xxBWNeg_1007_thumb.jpg',130, 125,15,'							photo_3613135.html');
												thumbnails[3613139] = new thumbnail(3613139,'220568','','xxBWNeg_1014_thumb.jpg',130, 129,15,'							photo_3613139.html');
												thumbnails[3613141] = new thumbnail(3613141,'220568','','xxBWNeg_1021a_thumb.jpg',130, 130,15,'							photo_3613141.html');
												thumbnails[3613143] = new thumbnail(3613143,'220568','','xxBWNeg_1029a_thumb.jpg',130, 130,15,'							photo_3613143.html');
												thumbnails[3613144] = new thumbnail(3613144,'220568','','xxBWNeg_1032_thumb.jpg',130, 130,15,'							photo_3613144.html');
												thumbnails[3613147] = new thumbnail(3613147,'220568','','xxBWNeg_1034a_thumb.jpg',130, 130,15,'							photo_3613147.html');
												thumbnails[3613148] = new thumbnail(3613148,'220568','','xxBWNeg_1081_thumb.jpg',130, 130,15,'							photo_3613148.html');
												thumbnails[3613150] = new thumbnail(3613150,'220568','','xxBWNeg_1089a_thumb.jpg',130, 130,15,'							photo_3613150.html');
												thumbnails[3613153] = new thumbnail(3613153,'220568','','xxBWNeg_1095a_thumb.jpg',130, 130,15,'							photo_3613153.html');
												thumbnails[3613155] = new thumbnail(3613155,'220568','','xxBWNeg_1117a_thumb.jpg',130, 130,15,'							photo_3613155.html');
												thumbnails[3614469] = new thumbnail(3614469,'220606','','Africa_003_thumb.jpg',130, 132,15,'							photo_3614469.html');
												thumbnails[3614471] = new thumbnail(3614471,'220606','','Africa_016_thumb.jpg',130, 130,15,'							photo_3614471.html');
												thumbnails[3614472] = new thumbnail(3614472,'220606','','Africa_020_thumb.jpg',130, 129,15,'							photo_3614472.html');
												thumbnails[3614474] = new thumbnail(3614474,'220606','','Africa_022_thumb.jpg',130, 129,15,'							photo_3614474.html');
												thumbnails[3614476] = new thumbnail(3614476,'220606','','Africa_024_thumb.jpg',130, 129,15,'							photo_3614476.html');
												thumbnails[3614478] = new thumbnail(3614478,'220606','','Africa_033_thumb.jpg',130, 129,15,'							photo_3614478.html');
												thumbnails[3614479] = new thumbnail(3614479,'220606','','Africa_037_thumb.jpg',130, 129,15,'							photo_3614479.html');
												thumbnails[3614480] = new thumbnail(3614480,'220606','','Africa_044_thumb.jpg',130, 129,15,'							photo_3614480.html');
												thumbnails[3614483] = new thumbnail(3614483,'220606','','Africa_049_thumb.jpg',130, 131,15,'							photo_3614483.html');
												thumbnails[3614484] = new thumbnail(3614484,'220606','','Africa_052_thumb.jpg',130, 130,15,'							photo_3614484.html');
												thumbnails[3614485] = new thumbnail(3614485,'220606','','Africa_053_thumb.jpg',130, 130,15,'							photo_3614485.html');
												thumbnails[3614491] = new thumbnail(3614491,'220606','','Africa_014_thumb.jpg',130, 131,15,'							photo_3614491.html');
												thumbnails[5058812] = new thumbnail(5058812,'286264','Walter Bird','Walter_Bird_19521_thumb.jpg',130, 189,15,'							photo_5058812.html');
												thumbnails[5058820] = new thumbnail(5058820,'286264','James Jarche','James_Jarche_19521_thumb.jpg',130, 211,15,'							photo_5058820.html');
												thumbnails[5058823] = new thumbnail(5058823,'286264','George Halford','George_Halford_19521_thumb.jpg',130, 177,15,'							photo_5058823.html');
												thumbnails[5058829] = new thumbnail(5058829,'286264','Adolf Fassbender','Adolf_Fassbender_1953_thumb.jpg',130, 109,15,'							photo_5058829.html');
												thumbnails[5737768] = new thumbnail(5737768,'325017','','Birds_001a_thumb.jpg',130, 131,15,'							photo_5737768.html');
												thumbnails[5737778] = new thumbnail(5737778,'325017','','Birds_002a_thumb.jpg',130, 129,15,'							photo_5737778.html');
												thumbnails[5737780] = new thumbnail(5737780,'325017','','Birds_003a_thumb.jpg',130, 125,15,'							photo_5737780.html');
												thumbnails[5737783] = new thumbnail(5737783,'325017','','Birds_006a_thumb.jpg',130, 126,15,'							photo_5737783.html');
												thumbnails[5737784] = new thumbnail(5737784,'325017','','Birds_007a_thumb.jpg',130, 128,15,'							photo_5737784.html');
												thumbnails[5737786] = new thumbnail(5737786,'325017','','Birds_009a_thumb.jpg',130, 129,15,'							photo_5737786.html');
												thumbnails[5737789] = new thumbnail(5737789,'325017','','Birds_012a_thumb.jpg',130, 126,15,'							photo_5737789.html');
												thumbnails[5737794] = new thumbnail(5737794,'325017','','Birds_018a_thumb.jpg',130, 129,15,'							photo_5737794.html');
												thumbnails[5737798] = new thumbnail(5737798,'325017','','Birds_019a_thumb.jpg',130, 129,15,'							photo_5737798.html');
												thumbnails[5737800] = new thumbnail(5737800,'325017','','Birds_024a_thumb.jpg',130, 129,15,'							photo_5737800.html');
												thumbnails[5737801] = new thumbnail(5737801,'325017','','Birds_028a_thumb.jpg',130, 132,15,'							photo_5737801.html');
												thumbnails[5737838] = new thumbnail(5737838,'325017','','Birds_034a_thumb.jpg',130, 130,15,'							photo_5737838.html');
												thumbnails[5737843] = new thumbnail(5737843,'325017','','Birds_036a_thumb.jpg',130, 132,15,'							photo_5737843.html');
												thumbnails[3622341] = new thumbnail(3622341,'220607','\"Skippers\" - 1936','x_Skippers001_thumb.jpg',130, 95,15,'							photo_3622341.html');
												thumbnails[5058821] = new thumbnail(5058821,'286251','Harry Baines','Harry_Baines_195312_thumb.jpg',130, 184,15,'							photo_5058821.html');
												thumbnails[3610585] = new thumbnail(3610585,'220560','\"Spanish Dancer\"','AOC_009_thumb.jpg',130, 215,15,'							photo_3610585.html');
												thumbnails[3613088] = new thumbnail(3613088,'220568','','xxBWNeg_438a_thumb.jpg',130, 129,15,'							photo_3613088.html');
												thumbnails[3622265] = new thumbnail(3622265,'220607','\"Lambscape\" - 1937','1937_Lambscape001_thumb.jpg',130, 94,15,'							photo_3622265.html');
												thumbnails[5059115] = new thumbnail(5059115,'286251','I D Wratten','ID_Wratten_1953_thumb.jpg',130, 196,15,'							photo_5059115.html');
												thumbnails[5058824] = new thumbnail(5058824,'286251','Bertram Sinkinson','Betram_Sinkinson_19531_thumb.jpg',130, 171,15,'							photo_5058824.html');
												thumbnails[3610576] = new thumbnail(3610576,'220560','\"A Swiss Child\"','AOC_026_thumb.jpg',130, 203,15,'							photo_3610576.html');
												thumbnails[3613059] = new thumbnail(3613059,'220568','','Trans_062_thumb.jpg',130, 129,15,'							photo_3613059.html');
												thumbnails[3622291] = new thumbnail(3622291,'220607','\"Packhorse Bridge\" - 1938','1938_Packhorse_Bridge001_thumb.jpg',130, 92,15,'							photo_3622291.html');
												thumbnails[5058814] = new thumbnail(5058814,'286251','Margaret Harker<br>\r\n','Margaret_Harker_19521_thumb.jpg',130, 191,15,'							photo_5058814.html');
												thumbnails[3610588] = new thumbnail(3610588,'220560','\"Pakistani Girl\"','AOC_007_thumb.jpg',130, 192,15,'							photo_3610588.html');
												thumbnails[3613097] = new thumbnail(3613097,'220568','','xxBWNeg_543_thumb.jpg',130, 130,15,'							photo_3613097.html');
												thumbnails[3622294] = new thumbnail(3622294,'220607','\"Solitude\" - 1938','1938_Solitude001_thumb.jpg',130, 94,15,'							photo_3622294.html');
												thumbnails[5058816] = new thumbnail(5058816,'286251','John Bardsley<br>\r\n       ','John_Bardsley_195312_thumb.jpg',130, 162,15,'							photo_5058816.html');
												thumbnails[3610589] = new thumbnail(3610589,'220560','\"Orientale\"','AoC_006_thumb.jpg',130, 204,15,'							photo_3610589.html');
												thumbnails[3613124] = new thumbnail(3613124,'220568','','xxBWNeg_876_thumb.jpg',130, 129,15,'							photo_3613124.html');
												thumbnails[3622333] = new thumbnail(3622333,'220607','\"Wrestlers\" - 1940','x_Wrestlers001_thumb.jpg',130, 167,15,'							photo_3622333.html');
												thumbnails[3610595] = new thumbnail(3610595,'220560','\"Sunbather\"','AoC_002_thumb.jpg',130, 202,15,'							photo_3610595.html');
												thumbnails[3613057] = new thumbnail(3613057,'220568','','Trans_051_thumb.jpg',130, 129,15,'							photo_3613057.html');
												thumbnails[3610580] = new thumbnail(3610580,'220560','\"Smoky Lane\"','AOC_015_thumb.jpg',130, 204,15,'							photo_3610580.html');
												thumbnails[3622338] = new thumbnail(3622338,'220607','\"Toxophilites\" - 1940','x_Toxophilites001_thumb.jpg',130, 167,15,'							photo_3622338.html');
												thumbnails[3622300] = new thumbnail(3622300,'220607','\"Courtship\" - 1941','1941_Courtship_thumb.jpg',130, 173,15,'							photo_3622300.html');
												thumbnails[3613041] = new thumbnail(3613041,'220568','','Trans_021_thumb.jpg',130, 129,15,'							photo_3613041.html');
												thumbnails[3622306] = new thumbnail(3622306,'220607','\"Dulcet\" - 1942','1942_Dulcet001_thumb.jpg',130, 169,15,'							photo_3622306.html');
												thumbnails[3622340] = new thumbnail(3622340,'220607','\"Toil\" - 1942','x_Toil001_thumb.jpg',130, 171,15,'							photo_3622340.html');
												thumbnails[3613039] = new thumbnail(3613039,'220568','','Neg_079_thumb.jpg',130, 128,15,'							photo_3613039.html');
												thumbnails[3622343] = new thumbnail(3622343,'220607','\"Loki\" - 1943','x_Loki001_thumb.jpg',130, 167,15,'							photo_3622343.html');
												thumbnails[3622335] = new thumbnail(3622335,'220607','\"Sage\" - 1943','x_Untitled001_thumb.jpg',130, 168,15,'							photo_3622335.html');
												thumbnails[3622346] = new thumbnail(3622346,'220607','\"An Old Story\" - 1944','x_An_Old_Story001_thumb.jpg',130, 171,15,'							photo_3622346.html');
												thumbnails[3622309] = new thumbnail(3622309,'220607','\"The Cyclist\" - 1945','1945_The_Cyclist001_thumb.jpg',130, 141,15,'							photo_3622309.html');
												thumbnails[3622311] = new thumbnail(3622311,'220607','\"V-E Night Impression\" - 1945','1945_VE_Night_impression001_thumb.jpg',130, 91,15,'							photo_3622311.html');
												thumbnails[3622314] = new thumbnail(3622314,'220607','\"Easter\" - 1946','1946_Easter001_thumb.jpg',130, 189,15,'							photo_3622314.html');
												thumbnails[3622316] = new thumbnail(3622316,'220607','\"Skaters\" - 1946','1946_Skaters001_thumb.jpg',130, 168,15,'							photo_3622316.html');
												thumbnails[3622318] = new thumbnail(3622318,'220607','\"Beech Trunks\" - 1948','1948_Beech_Trunks001_thumb.jpg',130, 170,15,'							photo_3622318.html');
												thumbnails[3622322] = new thumbnail(3622322,'220607','\"Fog at Kingston Bridge\" - 1949','1949_Fog_at_Kingston_Bridge001_thumb.jpg',130, 86,15,'							photo_3622322.html');
												thumbnails[3622323] = new thumbnail(3622323,'220607','\"Harbingers of Spring\" - 1949','1949_Harbingers_of_Spring_thumb.jpg',130, 93,15,'							photo_3622323.html');
												thumbnails[3622324] = new thumbnail(3622324,'220607','\"Strong Man\" - 1952','1952_Strong_Man001_thumb.jpg',130, 170,15,'							photo_3622324.html');
												thumbnails[3622327] = new thumbnail(3622327,'220607','\"Trellis Window\" - 1953','1953_Trellis_Window001_thumb.jpg',130, 176,15,'							photo_3622327.html');
												thumbnails[3622330] = new thumbnail(3622330,'220607','\"Self Shadowgram\" - 1956','1957_Self_Shadowgram001_thumb.jpg',130, 160,15,'							photo_3622330.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[220607] = new gallery(220607,'3622335','Exhibition Prints','gallery',[3622341,3622265,3622291,3622294,3622333,3622338,3622300,3622306,3622340,3622343,3622335,3622346,3622309,3622311,3622314,3622316,3622318,3622322,3622323,3622324,3622327,3622330],0, 0, '', '																																																																																																							gallery_220607.html',0,0);
				  					galleries[220604] = new gallery(220604,'3610536','Surrealistic Self Portraits','gallery',[3610536,3610538,3610543,3610545,3610549,3610551,3610555,3610556,3610558,3610561,3610562,3610565,3610566,3610567,3610568],0, 0, '', '																																																																																																							gallery_220604.html',0,0);
				  					galleries[220559] = new gallery(220559,'3609409','Creating with Polarised Light','gallery',[3609403,3609406,3609407,3609408,3609409,3609410,3609412,3609414,3609415,3609416,3609430,3609433,3609437,3609439,3609441,3609442,3610416,3610417,3610418,3610420,3610421,3610423,3610425,3610427],0, 0, '', '																																																																																																							gallery_220559.html',0,0);
				  					galleries[220560] = new gallery(220560,'3610582','Aesthetics of Colour','gallery',[3610578,3610582,3610583,3610591,3610585,3610576,3610588,3610589,3610595,3610580],0, 0, '', '																																																																																																							gallery_220560.html',0,0);
				  					galleries[220568] = new gallery(220568,'3613131','India 1959','gallery',[3613043,3613052,3613054,3613056,3613062,3613092,3613108,3613112,3613119,3613127,3613131,3613135,3613139,3613141,3613143,3613144,3613147,3613148,3613150,3613153,3613155,3613088,3613059,3613097,3613124,3613057,3613041,3613039],0, 0, '', '																																																																																																							gallery_220568.html',0,0);
				  					galleries[220606] = new gallery(220606,'3614469','North Africa 1960','gallery',[3614469,3614471,3614472,3614474,3614476,3614478,3614479,3614480,3614483,3614484,3614485,3614491],0, 0, '', '																																																																																																							gallery_220606.html',0,0);
				  					galleries[325017] = new gallery(325017,'5737843,5737838,5737801,5737800,5737798,5737794,5737789,5737786,5737784,5737783','Birds','gallery',[5737768,5737778,5737780,5737783,5737784,5737786,5737789,5737794,5737798,5737800,5737801,5737838,5737843],0, 0, '', '																																																																																																							gallery_325017.html',0,0);
				  					galleries[286251] = new gallery(286251,'5059115,5058824,5058821,5058816,5058814','RPS  ex-Presidents','gallery',[5058821,5059115,5058824,5058814,5058816],0, 0, '', '																																																																																																							gallery_286251.html',0,0);
				  					galleries[286264] = new gallery(286264,'5058829,5058823,5058820,5058812','Other Photographers','gallery',[5058812,5058820,5058823,5058829],0, 0, '', '																																																																																																							gallery_286264.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '3610582,3610567,3610538,3609409,3609392';
imageSets[2] = '3622335,3614469,3613131,3610582,3610536,3609409';
imageSets[3] = '3622335';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/jouhar/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/jouhar/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/jouhar/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/jouhar/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://www.clikchurch.com/jouhar/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/jouhar/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/jouhar/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/jouhar/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/jouhar/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/jouhar/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/jouhar/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/jouhar/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/jouhar/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/jouhar/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/jouhar/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/jouhar/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/jouhar/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/jouhar/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/jouhar/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/jouhar/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/jouhar/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/jouhar/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));		}, 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 = 'Dr. S.D.Jouhar   (1901-1963)   -   A Retrospective: ' + 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));    }        
    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;
	}
}

			

