window.thumbnails = new Object();
												thumbnails[7761912] = new thumbnail(7761912,'','','bsp_100812_Bower-Birds-Studio_003_thumb.jpg',160, 97,18,'#');
												thumbnails[7761865] = new thumbnail(7761865,'','','bsp_100727_Gareth-Liddiard-Studio_019-Edit-Edit_thumb.jpg',160, 229,18,'#');
												thumbnails[6735578] = new thumbnail(6735578,'367210','','Dan-Kellys-dream-2_thumb.jpg',120, 80,18,'photo_6735578.html');
												thumbnails[3033130] = new thumbnail(3033130,'186479','','little-red-012_thumb.jpg',130, 86,18,'photo_3033130.html');
												thumbnails[3679146] = new thumbnail(3679146,'224817','','_AUGweb_01_thumb.jpg',130, 86,18,'photo_3679146.html');
												thumbnails[4425377] = new thumbnail(4425377,'91861','','gareth_02_A4_thumb.jpg',120, 170,18,'photo_4425377.html');
												thumbnails[6735617] = new thumbnail(6735617,'367210','','Dan-Kelly-Recording106_thumb.jpg',120, 80,18,'photo_6735617.html');
												thumbnails[6735648] = new thumbnail(6735648,'367217','','Gareth-Liddiard-Yass-bsp_01_thumb.jpg',120, 180,18,'photo_6735648.html');
												thumbnails[6735832] = new thumbnail(6735832,'367211','','The-Drones-DVD-PSD-BW-1_thumb.jpg',120, 80,18,'photo_6735832.html');
												thumbnails[7055681] = new thumbnail(7055681,'381949','','Live-bsp--2345_thumb.jpg',160, 106,18,'photo_7055681.html');
												thumbnails[7276681] = new thumbnail(7276681,'123896','','Ant-comp_thumb.jpg',160, 187,18,'photo_7276681.html');
												thumbnails[2523100] = new thumbnail(2523100,'160458','','drones_havilah_031_thumb.jpg',130, 178,18,'photo_2523100.html');
												thumbnails[3033127] = new thumbnail(3033127,'186479','','little-red-009_thumb.jpg',130, 99,18,'photo_3033127.html');
												thumbnails[3679377] = new thumbnail(3679377,'224817',' ','_AUGweb_02_thumb.jpg',130, 86,18,'photo_3679377.html');
												thumbnails[4425356] = new thumbnail(4425356,'91861','','king_bro_007_thumb.jpg',120, 180,18,'photo_4425356.html');
												thumbnails[6735577] = new thumbnail(6735577,'123896','','Dan-Kellys-dream-1_thumb.jpg',120, 180,18,'photo_6735577.html');
												thumbnails[6735649] = new thumbnail(6735649,'367217','','Gareth-Liddiard-Yass-bsp_02_thumb.jpg',120, 180,18,'photo_6735649.html');
												thumbnails[6735901] = new thumbnail(6735901,'367211','','The-Drones-DVD-PSD-BW-2_thumb.jpg',120, 80,18,'photo_6735901.html');
												thumbnails[7055732] = new thumbnail(7055732,'381949','','Live-bsp--2323_thumb.jpg',160, 113,18,'photo_7055732.html');
												thumbnails[2523182] = new thumbnail(2523182,'160458','','drones_havilah_371_thumb.jpg',130, 150,18,'photo_2523182.html');
												thumbnails[3033124] = new thumbnail(3033124,'186479','','little-red-006_thumb.jpg',130, 86,18,'photo_3033124.html');
												thumbnails[3679378] = new thumbnail(3679378,'224817','','_AUGweb_03_thumb.jpg',130, 86,18,'photo_3679378.html');
												thumbnails[4425378] = new thumbnail(4425378,'91861','','mess_hall_03_A4_thumb.jpg',120, 170,18,'photo_4425378.html');
												thumbnails[6735619] = new thumbnail(6735619,'367210','','Dan-Kelly-Recording143_thumb.jpg',120, 80,18,'photo_6735619.html');
												thumbnails[6735621] = new thumbnail(6735621,'367210','','Dan-Kelly-Recording29_thumb.jpg',120, 80,18,'photo_6735621.html');
												thumbnails[6735651] = new thumbnail(6735651,'367217','','Gareth-Liddiard-Yass-bsp_04_thumb.jpg',120, 156,18,'photo_6735651.html');
												thumbnails[6735836] = new thumbnail(6735836,'367211','','The-Drones-DVD-PSD-BW-3_thumb.jpg',120, 80,18,'photo_6735836.html');
												thumbnails[7055733] = new thumbnail(7055733,'381949','','Live-bsp--2325_thumb.jpg',160, 106,18,'photo_7055733.html');
												thumbnails[8070343] = new thumbnail(8070343,'123896','','Gareth_Liddiard_thumb.jpg',160, 215,18,'photo_8070343.html');
												thumbnails[2523188] = new thumbnail(2523188,'160458','','Gareth_mic1_thumb.jpg',130, 195,18,'photo_2523188.html');
												thumbnails[3033123] = new thumbnail(3033123,'186479','','little-red-005_thumb.jpg',130, 86,18,'photo_3033123.html');
												thumbnails[3679398] = new thumbnail(3679398,'224817','','_AUGweb_04_thumb.jpg',130, 86,18,'photo_3679398.html');
												thumbnails[4425045] = new thumbnail(4425045,'123896','','mike_noga_A4_thumb.jpg',130, 184,18,'photo_4425045.html');
												thumbnails[4425383] = new thumbnail(4425383,'91861','','dimi_A4_thumb.jpg',120, 170,18,'photo_4425383.html');
												thumbnails[6735620] = new thumbnail(6735620,'367210','','Dan-Kelly-Recording150_thumb.jpg',120, 180,18,'photo_6735620.html');
												thumbnails[6735838] = new thumbnail(6735838,'367211','','The-Drones-DVD-PSD-BW-5_thumb.jpg',120, 61,18,'photo_6735838.html');
												thumbnails[6766134] = new thumbnail(6766134,'367217','','Gareth-Yass-7_thumb.jpg',120, 180,18,'photo_6766134.html');
												thumbnails[7055734] = new thumbnail(7055734,'381949','','Live-bsp--2326_thumb.jpg',160, 106,18,'photo_7055734.html');
												thumbnails[2526118] = new thumbnail(2526118,'160458','','drones_havilah_252_thumb.jpg',130, 195,18,'photo_2526118.html');
												thumbnails[3033436] = new thumbnail(3033436,'186479','','little-red-016_thumb.jpg',130, 195,18,'photo_3033436.html');
												thumbnails[3679365] = new thumbnail(3679365,'224817','','_AUGweb_12_thumb.jpg',130, 196,18,'photo_3679365.html');
												thumbnails[3702385] = new thumbnail(3702385,'91861','','DSC_0071_thumb.jpg',130, 195,18,'photo_3702385.html');
												thumbnails[6735623] = new thumbnail(6735623,'367210','','Dan-Kelly-Recording59_thumb.jpg',120, 158,18,'photo_6735623.html');
												thumbnails[6735653] = new thumbnail(6735653,'367217','','Gareth-Liddiard-Yass-bsp_06_thumb.gif',120, 180,18,'photo_6735653.html');
												thumbnails[6735839] = new thumbnail(6735839,'367211','','The-Drones-DVD-PSD-BW-8_thumb.jpg',120, 186,18,'photo_6735839.html');
												thumbnails[7055736] = new thumbnail(7055736,'381949','','Live-bsp--2328_thumb.jpg',160, 106,18,'photo_7055736.html');
												thumbnails[7809579] = new thumbnail(7809579,'123896','','bsp_110513__BSP0339-Edit_F7499D03-1E4F-37DC-71C83A74FB8BF5B6_thumb.jpg',160, 241,18,'photo_7809579.html');
												thumbnails[2526119] = new thumbnail(2526119,'160458','','drones_havilah_301_thumb.jpg',130, 195,18,'photo_2526119.html');
												thumbnails[3033432] = new thumbnail(3033432,'186479','','little-red-0021_thumb.jpg',130, 195,18,'photo_3033432.html');
												thumbnails[3679401] = new thumbnail(3679401,'224817','','_AUGweb_13_thumb.jpg',130, 196,18,'photo_3679401.html');
												thumbnails[4425145] = new thumbnail(4425145,'123896','','Aaron01_thumb.jpg',120, 174,18,'photo_4425145.html');
												thumbnails[4425350] = new thumbnail(4425350,'91861','','dan_01_1_thumb.jpg',120, 166,18,'photo_4425350.html');
												thumbnails[6735632] = new thumbnail(6735632,'367210','','Dan-Kelly-Recording98_thumb.jpg',120, 174,18,'photo_6735632.html');
												thumbnails[6735837] = new thumbnail(6735837,'367211','','The-Drones-DVD-PSD-BW-4_thumb.jpg',120, 180,18,'photo_6735837.html');
												thumbnails[6766133] = new thumbnail(6766133,'367217','','Gareth-Yass-45_thumb.jpg',120, 80,18,'photo_6766133.html');
												thumbnails[7055737] = new thumbnail(7055737,'381949','','Live-bsp--2329_thumb.jpg',160, 106,18,'photo_7055737.html');
												thumbnails[2523278] = new thumbnail(2523278,'160458','','drones_havilah_312_thumb.jpg',130, 195,18,'photo_2523278.html');
												thumbnails[3033129] = new thumbnail(3033129,'186479','','little-red-011_thumb.jpg',130, 195,18,'photo_3033129.html');
												thumbnails[3679402] = new thumbnail(3679402,'224817','','_AUGweb_14_thumb.jpg',130, 196,18,'photo_3679402.html');
												thumbnails[4425351] = new thumbnail(4425351,'91861','','DSC_0037_thumb.jpg',120, 180,18,'photo_4425351.html');
												thumbnails[6735903] = new thumbnail(6735903,'367211','','The-Drones-DVD-PSD-BW-7_thumb.jpg',120, 173,18,'photo_6735903.html');
												thumbnails[6736171] = new thumbnail(6736171,'367217','','Gareth-Yass-2_thumb.jpg',120, 80,18,'photo_6736171.html');
												thumbnails[7055738] = new thumbnail(7055738,'381949','','Live-bsp--2330_thumb.jpg',160, 106,18,'photo_7055738.html');
												thumbnails[7809580] = new thumbnail(7809580,'123896','','bsp_110513__BSP0370-Edit-2_F7499F44-1E4F-37DC-71C039B46D310BD0_thumb.jpg',160, 241,18,'photo_7809580.html');
												thumbnails[2523237] = new thumbnail(2523237,'160458','','drones_havilah_075_thumb.jpg',130, 170,18,'photo_2523237.html');
												thumbnails[3033128] = new thumbnail(3033128,'186479','','little-red-010_thumb.jpg',130, 195,18,'photo_3033128.html');
												thumbnails[3679367] = new thumbnail(3679367,'224817','','_AUGweb_17_thumb.jpg',130, 196,18,'photo_3679367.html');
												thumbnails[3702370] = new thumbnail(3702370,'160458','','Fiona_web_thumb.jpg',130, 195,18,'photo_3702370.html');
												thumbnails[4425037] = new thumbnail(4425037,'123896','','0551_thumb.jpg',130, 204,18,'photo_4425037.html');
												thumbnails[4425354] = new thumbnail(4425354,'91861','','gareth_01_1_thumb.jpg',120, 178,18,'photo_4425354.html');
												thumbnails[6735833] = new thumbnail(6735833,'367211','','The-Drones-DVD-PSD-BW-10_thumb.jpg',120, 153,18,'photo_6735833.html');
												thumbnails[6736170] = new thumbnail(6736170,'367217','','Gareth-Yass-1_thumb.jpg',120, 180,18,'photo_6736170.html');
												thumbnails[7055739] = new thumbnail(7055739,'381949','','Live-bsp--2331_thumb.jpg',160, 106,18,'photo_7055739.html');
												thumbnails[3033435] = new thumbnail(3033435,'186479','','little-red-015_thumb.jpg',130, 88,18,'photo_3033435.html');
												thumbnails[3679399] = new thumbnail(3679399,'224817','','_AUGweb_06_thumb.jpg',130, 86,18,'photo_3679399.html');
												thumbnails[3702372] = new thumbnail(3702372,'160458','<br>\r\n','g_d_web_thumb.jpg',130, 86,18,'photo_3702372.html');
												thumbnails[4425046] = new thumbnail(4425046,'123896','','Nick_McGee_A4_thumb.jpg',130, 126,18,'photo_4425046.html');
												thumbnails[4425663] = new thumbnail(4425663,'91861','','snowman_006_1_thumb.jpg',120, 180,18,'photo_4425663.html');
												thumbnails[6735902] = new thumbnail(6735902,'367211','','The-Drones-DVD-PSD-BW-6_thumb.jpg',120, 80,18,'photo_6735902.html');
												thumbnails[7055740] = new thumbnail(7055740,'381949','','Live-bsp--2332_thumb.jpg',160, 106,18,'photo_7055740.html');
												thumbnails[3033434] = new thumbnail(3033434,'186479','','little-red-014_thumb.jpg',130, 86,18,'photo_3033434.html');
												thumbnails[3679361] = new thumbnail(3679361,'224817','','_AUGweb_07_thumb.jpg',130, 86,18,'photo_3679361.html');
												thumbnails[3702373] = new thumbnail(3702373,'160458','','g_f_web_thumb.jpg',130, 86,18,'photo_3702373.html');
												thumbnails[4425042] = new thumbnail(4425042,'123896','','Johnny_A4_thumb.jpg',130, 131,18,'photo_4425042.html');
												thumbnails[4425357] = new thumbnail(4425357,'91861','','king_bro_01_A4_thumb.jpg',120, 170,18,'photo_4425357.html');
												thumbnails[6735624] = new thumbnail(6735624,'367210','','Dan-Kelly-Recording84_thumb.jpg',120, 180,18,'photo_6735624.html');
												thumbnails[6735905] = new thumbnail(6735905,'367211','','The-Drones-DVD-PSD-BW-9_thumb.jpg',120, 61,18,'photo_6735905.html');
												thumbnails[7055741] = new thumbnail(7055741,'381949','','Live-bsp--2333_thumb.jpg',160, 106,18,'photo_7055741.html');
												thumbnails[2522915] = new thumbnail(2522915,'160458','','fi_havila_thumb.jpg',130, 85,18,'photo_2522915.html');
												thumbnails[3033125] = new thumbnail(3033125,'186479','','little-red-007_thumb.jpg',130, 86,18,'photo_3033125.html');
												thumbnails[3679363] = new thumbnail(3679363,'224817','','_AUGweb_09_thumb.jpg',130, 86,18,'photo_3679363.html');
												thumbnails[4425147] = new thumbnail(4425147,'123896','','arron_031_thumb.jpg',120, 120,18,'photo_4425147.html');
												thumbnails[4425352] = new thumbnail(4425352,'91861','','DSC_00671_thumb.jpg',120, 181,18,'photo_4425352.html');
												thumbnails[6735631] = new thumbnail(6735631,'367210','','Dan-Kelly-Recording33_thumb.jpg',120, 80,18,'photo_6735631.html');
												thumbnails[6735834] = new thumbnail(6735834,'367211','','The-Drones-DVD-PSD-BW-11_thumb.jpg',120, 80,18,'photo_6735834.html');
												thumbnails[7055742] = new thumbnail(7055742,'381949','','Live-bsp--2334_thumb.jpg',160, 106,18,'photo_7055742.html');
												thumbnails[2526155] = new thumbnail(2526155,'160458','','drones_havilah_162_thumb.jpg',130, 91,18,'photo_2526155.html');
												thumbnails[3033433] = new thumbnail(3033433,'186479','','little-red-013_thumb.jpg',130, 86,18,'photo_3033433.html');
												thumbnails[3679362] = new thumbnail(3679362,'224817','','_AUGweb_08_thumb.jpg',130, 86,18,'photo_3679362.html');
												thumbnails[4425353] = new thumbnail(4425353,'91861','','DSC_0240_thumb.jpg',120, 180,18,'photo_4425353.html');
												thumbnails[7055743] = new thumbnail(7055743,'381949','','Live-bsp--2335_thumb.jpg',160, 106,18,'photo_7055743.html');
												thumbnails[8070403] = new thumbnail(8070403,'123896','','bsp_110531__BSP058512_thumb.jpg',160, 106,18,'photo_8070403.html');
												thumbnails[2524148] = new thumbnail(2524148,'160458','','drones_havilah_182_thumb.jpg',130, 88,18,'photo_2524148.html');
												thumbnails[3033119] = new thumbnail(3033119,'186479','','little-red-001_thumb.jpg',130, 92,18,'photo_3033119.html');
												thumbnails[3679364] = new thumbnail(3679364,'224817','','_AUGweb_11_thumb.jpg',130, 86,18,'photo_3679364.html');
												thumbnails[3702371] = new thumbnail(3702371,'160458','','Gareth_x3_web_thumb.jpg',130, 65,18,'photo_3702371.html');
												thumbnails[4425041] = new thumbnail(4425041,'123896','','jmds_11_thumb.jpg',130, 189,18,'photo_4425041.html');
												thumbnails[7055744] = new thumbnail(7055744,'381949','','Live-bsp--2336_thumb.jpg',160, 106,18,'photo_7055744.html');
												thumbnails[2526154] = new thumbnail(2526154,'160458','','drones_havilah_151_thumb.jpg',130, 86,18,'photo_2526154.html');
												thumbnails[3033121] = new thumbnail(3033121,'186479','','little-red-003_thumb.jpg',130, 85,18,'photo_3033121.html');
												thumbnails[3679360] = new thumbnail(3679360,'224817',' ','_AUGweb_05_thumb.jpg',130, 86,18,'photo_3679360.html');
												thumbnails[6735637] = new thumbnail(6735637,'367210','','Dan-Kelly-Recording49_thumb.jpg',120, 80,18,'photo_6735637.html');
												thumbnails[7055746] = new thumbnail(7055746,'381949','','Live-bsp--2338_thumb.jpg',160, 106,18,'photo_7055746.html');
												thumbnails[8070344] = new thumbnail(8070344,'123896','','james_roberts_TW_2_thumb.jpg',160, 200,18,'photo_8070344.html');
												thumbnails[2523106] = new thumbnail(2523106,'160458','','drones_havilah_291_thumb.jpg',130, 106,18,'photo_2523106.html');
												thumbnails[3033122] = new thumbnail(3033122,'186479','','little-red-004_thumb.jpg',130, 91,18,'photo_3033122.html');
												thumbnails[3679400] = new thumbnail(3679400,'224817',' ','_AUGweb_10_thumb.jpg',130, 86,18,'photo_3679400.html');
												thumbnails[6735618] = new thumbnail(6735618,'367210','','Dan-Kelly-Recording12_thumb.jpg',120, 80,18,'photo_6735618.html');
												thumbnails[7055747] = new thumbnail(7055747,'381949','','Live-bsp--2339_thumb.jpg',160, 106,18,'photo_7055747.html');
												thumbnails[7761930] = new thumbnail(7761930,'123896','','bsp_101125_Gentlemen-of-Fortune-Press_008_thumb.jpg',160, 106,18,'photo_7761930.html');
												thumbnails[3033126] = new thumbnail(3033126,'186479','','little-red-008_thumb.jpg',130, 86,18,'photo_3033126.html');
												thumbnails[3679368] = new thumbnail(3679368,'224817','','_AUGweb_19_thumb.jpg',130, 86,18,'photo_3679368.html');
												thumbnails[6735622] = new thumbnail(6735622,'367210','','Dan-Kelly-Recording4_thumb.jpg',120, 80,18,'photo_6735622.html');
												thumbnails[7055753] = new thumbnail(7055753,'381949','','Live-bsp--2347_thumb.jpg',160, 114,18,'photo_7055753.html');
												thumbnails[7761881] = new thumbnail(7761881,'123896','','bsp_110322_Ukeladies-Press-2011_108-Edit-2_thumb.jpg',160, 125,18,'photo_7761881.html');
												thumbnails[2523272] = new thumbnail(2523272,'160458','','drones_havilah_171_thumb.jpg',130, 86,18,'photo_2523272.html');
												thumbnails[3679403] = new thumbnail(3679403,'224817','','_AUGweb_15_thumb.jpg',130, 196,18,'photo_3679403.html');
												thumbnails[7055754] = new thumbnail(7055754,'381949','','Live-bsp--2324a_thumb.jpg',160, 241,18,'photo_7055754.html');
												thumbnails[2526120] = new thumbnail(2526120,'160458','','drones_havilah_331_thumb.jpg',130, 88,18,'photo_2526120.html');
												thumbnails[4425298] = new thumbnail(4425298,'224817','','_AUG03_26_thumb.jpg',120, 181,18,'photo_4425298.html');
												thumbnails[7055752] = new thumbnail(7055752,'381949','','Live-bsp--2346_4DF25591-24E8-5EC4-4F51A632C585E28C_thumb.jpg',160, 241,18,'photo_7055752.html');
												thumbnails[2526121] = new thumbnail(2526121,'160458','','drones_havilah_342_thumb.jpg',130, 87,18,'photo_2526121.html');
												thumbnails[3679366] = new thumbnail(3679366,'224817','','_AUGweb_16_thumb.jpg',130, 196,18,'photo_3679366.html');
												thumbnails[7055750] = new thumbnail(7055750,'381949','','Live-bsp--2343_thumb.jpg',160, 241,18,'photo_7055750.html');
												thumbnails[3679575] = new thumbnail(3679575,'224817','','_AUGweb_18_thumb.jpg',130, 196,18,'photo_3679575.html');
												thumbnails[3702374] = new thumbnail(3702374,'160458','','m_b_web_thumb.jpg',130, 86,18,'photo_3702374.html');
												thumbnails[7055751] = new thumbnail(7055751,'381949','','Live-bsp--2344_thumb.jpg',160, 241,18,'photo_7055751.html');
												thumbnails[7055748] = new thumbnail(7055748,'381949','','Live-bsp--2340_thumb.jpg',160, 241,18,'photo_7055748.html');
												thumbnails[7055745] = new thumbnail(7055745,'381949','','Live-bsp--2337_thumb.jpg',160, 241,18,'photo_7055745.html');
												thumbnails[7055735] = new thumbnail(7055735,'381949','','Live-bsp--2327_thumb.jpg',160, 241,18,'photo_7055735.html');
												thumbnails[7055731] = new thumbnail(7055731,'381949','','Live-bsp--2323-1_thumb.jpg',160, 241,18,'photo_7055731.html');
												thumbnails[7055749] = new thumbnail(7055749,'381949','','Live-bsp--2342_thumb.jpg',160, 241,18,'photo_7055749.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[123896] = new gallery(123896,'7276681','Portraits ','gallery',[7276681,6735577,8070343,4425045,7809579,4425145,7809580,4425037,4425046,4425042,4425147,8070403,4425041,8070344,7761930,7761881],0, 1, '', 'gallery_123896.html',0,0);
				  					galleries[367217] = new gallery(367217,'6736170','Gareth Liddiard','gallery',[6735648,6735649,6735651,6766134,6735653,6766133,6736171,6736170],0, 1, '', 'gallery_367217.html',0,0);
				  					galleries[381949] = new gallery(381949,'7055752','LIVE','gallery',[7055681,7055732,7055733,7055734,7055736,7055737,7055738,7055739,7055740,7055741,7055742,7055743,7055744,7055746,7055747,7055753,7055754,7055752,7055750,7055751,7055748,7055745,7055735,7055731,7055749],0, 1, '', 'gallery_381949.html',0,0);
				  					galleries[367210] = new gallery(367210,'6735623','Dan Kelly\'s Dream','gallery',[6735578,6735617,6735619,6735621,6735620,6735623,6735632,6735624,6735631,6735637,6735618,6735622],0, 1, '', 'gallery_367210.html',0,0);
				  					galleries[367211] = new gallery(367211,'6735903','The Drones DVD ','gallery',[6735832,6735901,6735836,6735838,6735839,6735837,6735903,6735833,6735902,6735905,6735834],0, 1, '', 'gallery_367211.html',0,0);
				  					galleries[186479] = new gallery(186479,'3033129','Little Red ','gallery',[3033130,3033127,3033124,3033123,3033436,3033432,3033129,3033128,3033435,3033434,3033125,3033433,3033119,3033121,3033122,3033126],0, 1, '', 'gallery_186479.html',0,0);
				  					galleries[224817] = new gallery(224817,'3679367','Augie March ','gallery',[3679146,3679377,3679378,3679398,3679365,3679401,3679402,3679367,3679399,3679361,3679363,3679362,3679364,3679360,3679400,3679368,3679403,4425298,3679366,3679575],0, 1, '', 'gallery_224817.html',0,0);
				  					galleries[160458] = new gallery(160458,'2523100','Havilah','gallery',[2523100,2523182,2523188,2526118,2526119,2523278,2523237,3702370,3702372,3702373,2522915,2526155,2524148,3702371,2526154,2523106,2523272,2526120,2526121,3702374],0, 1, '', 'gallery_160458.html',0,0);
				  					galleries[91861] = new gallery(91861,'4425663,4425383,4425378,4425377,4425357,4425356,4425354,4425353,4425352,4425351','Music','gallery',[4425377,4425356,4425378,4425383,3702385,4425350,4425351,4425354,4425663,4425357,4425352,4425353],0, 1, '', 'gallery_91861.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '7761865,7276681,4425147,4425046,4425042';
imageSets[2] = '7276681,7055752,6736170,6735903,6735623,3679367,3033129,2523100';
imageSets[3] = '8070403,8070344,8070343,7809580,7809579,7761930,7761912,7761881,7761865,7276681,7055754,7055753,7055752,7055751,7055750,7055749,7055748,7055747,7055746,7055745,7055744,7055743,7055742,7055741,7055740,7055739,7055738,7055737,7055736,7055735,7055734,7055733,7055732,7055731,7055681,6766134,6766133,6736171,6736170,6735905,6735903,6735902,6735901,6735839,6735838,6735837,6735836,6735834,6735833,6735832';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/DCPhotography/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/DCPhotography/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/DCPhotography/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/DCPhotography/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/DCPhotography/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/DCPhotography/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/DCPhotography/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/DCPhotography/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/DCPhotography/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/DCPhotography/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/DCPhotography/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/DCPhotography/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/DCPhotography/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/DCPhotography/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/DCPhotography/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/DCPhotography/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/DCPhotography/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/DCPhotography/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/DCPhotography/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/DCPhotography/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/DCPhotography/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/DCPhotography/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 = 'BAKER STREET PHOTOGRAPHY: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
	    var options = {};	    	      	      resizePhotoInfo(options);
        if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
  	      toggleAddToCartConfirm(backgrounds);
  	    } else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
  	      toggleAddToCartConfirm(photos);
  	    }
	    });
    }
        if (!op.speed) {      clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));      $('body').trigger('clikUpdate');    }        
    return html;			}
	else {
				
		window.location = 'photo_' + nextPhoto.id + '.html';
	}
		
}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array){
  if (typeof(array) !== 'object' || array == undefined) {
    array = photos;
  }
	if($('#paymentConfirm').length > 0){
		$('#paymentConfirm').hide();
		$('#paymentAddButton')
		.unbind()
		.click(function(){
						form = document.getElementById('paymentForm');
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm').text('Item added to cart').show();}
				else{
					$('#paymentConfirm').text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm').text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}
/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp = temp +  '<p id="imageDescription">' + this.description + '</p>';
	}
		if (this.photo_ref != '') {
		temp = temp + '<p class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</p>';
	}
		if (this.takendate != '') {
				
		temp = temp + '<p class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</p>';
	}
	
	if (this.location != '') {
				
		temp = temp + '<p class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</p>';
	}
	
	if (this.photographer != '') {
				
		temp = temp + '<p class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</p>';
	}
					
				if (temp != '') {
		temp = temp + '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp = temp + '<p>Order this print:</p>';
				temp = temp + '<p class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (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;
	}
}

			

