window.thumbnails = new Object();
												thumbnails[1544923] = new thumbnail(1544923,'','','IMG_5065_thumb.jpg',130, 195,1,'#');
												thumbnails[1673198] = new thumbnail(1673198,'','','_MG_4149_thumb.jpg',130, 195,1,'#');
												thumbnails[1541661] = new thumbnail(1541661,'93981','','DSC019242_thumb.JPG',130, 98,1,'photo_1541661.html');
												thumbnails[1541676] = new thumbnail(1541676,'93981','','_MG_4888_thumb.jpg',130, 195,1,'photo_1541676.html');
												thumbnails[1541682] = new thumbnail(1541682,'93981','','IMG_4864_thumb.jpg',130, 195,1,'photo_1541682.html');
												thumbnails[1543646] = new thumbnail(1543646,'93981','','IMG_4951_thumb.jpg',130, 195,1,'photo_1543646.html');
												thumbnails[1543686] = new thumbnail(1543686,'93981','','IMG_5022_thumb.jpg',130, 195,1,'photo_1543686.html');
												thumbnails[1544078] = new thumbnail(1544078,'93981','','_MG_5153_thumb.jpg',130, 195,1,'photo_1544078.html');
												thumbnails[1544088] = new thumbnail(1544088,'93981','','IMG_5172_thumb.jpg',130, 195,1,'photo_1544088.html');
												thumbnails[1544112] = new thumbnail(1544112,'93981','','IMG_5173_thumb.jpg',130, 195,1,'photo_1544112.html');
												thumbnails[1544117] = new thumbnail(1544117,'93981','','IMG_5183_thumb.jpg',130, 195,1,'photo_1544117.html');
												thumbnails[1544120] = new thumbnail(1544120,'93981','','IMG_5190_thumb.jpg',130, 195,1,'photo_1544120.html');
												thumbnails[1544123] = new thumbnail(1544123,'93981','','IMG_5194_thumb.jpg',130, 195,1,'photo_1544123.html');
												thumbnails[1544172] = new thumbnail(1544172,'93981','','IMG_5257_thumb.jpg',130, 195,1,'photo_1544172.html');
												thumbnails[1544180] = new thumbnail(1544180,'93981','','_MG_5288_thumb.jpg',130, 195,1,'photo_1544180.html');
												thumbnails[1544196] = new thumbnail(1544196,'93981','','_MG_5291_thumb.jpg',130, 195,1,'photo_1544196.html');
												thumbnails[1544726] = new thumbnail(1544726,'93981','','IMG_5319_thumb.jpg',130, 195,1,'photo_1544726.html');
												thumbnails[1544730] = new thumbnail(1544730,'93981','','IMG_5328_thumb.jpg',130, 195,1,'photo_1544730.html');
												thumbnails[1544796] = new thumbnail(1544796,'93981','','_MG_5389_thumb.jpg',130, 195,1,'photo_1544796.html');
												thumbnails[1544808] = new thumbnail(1544808,'93981','','_MG_5520_thumb.jpg',130, 195,1,'photo_1544808.html');
												thumbnails[1544813] = new thumbnail(1544813,'93981','','_MG_5531_thumb.jpg',130, 195,1,'photo_1544813.html');
												thumbnails[1544818] = new thumbnail(1544818,'93981','','_MG_5533_thumb.jpg',130, 195,1,'photo_1544818.html');
												thumbnails[1544820] = new thumbnail(1544820,'93981','','_MG_5534_thumb.jpg',130, 195,1,'photo_1544820.html');
												thumbnails[1672760] = new thumbnail(1672760,'112847','','4754_thumb.jpg',130, 163,1,'photo_1672760.html');
												thumbnails[1672763] = new thumbnail(1672763,'112847','','45281_thumb.jpg',130, 163,1,'photo_1672763.html');
												thumbnails[1672766] = new thumbnail(1672766,'112847','','4817_thumb.jpg',130, 163,1,'photo_1672766.html');
												thumbnails[1672780] = new thumbnail(1672780,'112847','','4791_thumb.jpg',130, 163,1,'photo_1672780.html');
												thumbnails[1673104] = new thumbnail(1673104,'112847','','4823_thumb.jpg',130, 163,1,'photo_1673104.html');
												thumbnails[1673105] = new thumbnail(1673105,'112847','','4840_thumb.jpg',130, 163,1,'photo_1673105.html');
												thumbnails[1673106] = new thumbnail(1673106,'112847','','43991_thumb.jpg',130, 163,1,'photo_1673106.html');
												thumbnails[1673111] = new thumbnail(1673111,'112847','','47631_thumb.jpg',130, 163,1,'photo_1673111.html');
												thumbnails[1673166] = new thumbnail(1673166,'112874','','_MG_4163_thumb.jpg',130, 195,1,'photo_1673166.html');
												thumbnails[1673171] = new thumbnail(1673171,'112874','','IMG_4223_thumb.jpg',130, 87,1,'photo_1673171.html');
												thumbnails[1673177] = new thumbnail(1673177,'112874','','IMG_4229_thumb.jpg',130, 195,1,'photo_1673177.html');
												thumbnails[1673178] = new thumbnail(1673178,'112874','','IMG_4232_thumb.jpg',130, 195,1,'photo_1673178.html');
												thumbnails[1673181] = new thumbnail(1673181,'112874','','IMG_4183_thumb.jpg',130, 195,1,'photo_1673181.html');
												thumbnails[1673182] = new thumbnail(1673182,'112874','','_MG_4323_thumb.jpg',130, 195,1,'photo_1673182.html');
												thumbnails[1673183] = new thumbnail(1673183,'112874','','_MG_4774_thumb.jpg',130, 195,1,'photo_1673183.html');
												thumbnails[1673186] = new thumbnail(1673186,'112874','','IMG_4387_thumb.jpg',130, 195,1,'photo_1673186.html');
												thumbnails[1673189] = new thumbnail(1673189,'112874','','_MG_4683_thumb.jpg',130, 195,1,'photo_1673189.html');
												thumbnails[1673199] = new thumbnail(1673199,'112874','','_MG_4564_thumb.jpg',130, 195,1,'photo_1673199.html');
												thumbnails[1673205] = new thumbnail(1673205,'112874','','_MG_41471_thumb.jpg',130, 195,1,'photo_1673205.html');
												thumbnails[1673206] = new thumbnail(1673206,'112874','','_MG_41491_thumb.jpg',130, 195,1,'photo_1673206.html');
												thumbnails[1699967] = new thumbnail(1699967,'113097','','DSC019241_thumb.JPG',130, 98,1,'photo_1699967.html');
												thumbnails[1699969] = new thumbnail(1699969,'113097','','DSC01928_thumb.JPG',130, 173,1,'photo_1699969.html');
												thumbnails[1699971] = new thumbnail(1699971,'113097','','DSC01933_thumb.JPG',130, 173,1,'photo_1699971.html');
												thumbnails[1699972] = new thumbnail(1699972,'113097','','DSC01938_thumb.JPG',130, 98,1,'photo_1699972.html');
												thumbnails[1699974] = new thumbnail(1699974,'113097','','DSC01922_thumb.JPG',130, 173,1,'photo_1699974.html');
												thumbnails[1699976] = new thumbnail(1699976,'113097','','DSC01892_thumb.JPG',130, 173,1,'photo_1699976.html');
												thumbnails[1699983] = new thumbnail(1699983,'113097','','DSC01919_thumb.JPG',130, 173,1,'photo_1699983.html');
												thumbnails[1699989] = new thumbnail(1699989,'113097','','DSC01911_thumb.JPG',130, 173,1,'photo_1699989.html');
												thumbnails[1700024] = new thumbnail(1700024,'114339','','fade_thumb.JPG',130, 167,1,'photo_1700024.html');
												thumbnails[1700026] = new thumbnail(1700026,'114339','','laugh1_thumb.JPG',130, 165,1,'photo_1700026.html');
												thumbnails[1700031] = new thumbnail(1700031,'114339','','laugh2_thumb.JPG',130, 165,1,'photo_1700031.html');
												thumbnails[1700032] = new thumbnail(1700032,'114339','','laugh3_thumb.JPG',130, 165,1,'photo_1700032.html');
												thumbnails[1700034] = new thumbnail(1700034,'114339','','laugh4_thumb.JPG',130, 165,1,'photo_1700034.html');
												thumbnails[1700037] = new thumbnail(1700037,'114339','','pg130_thumb.JPG',130, 102,1,'photo_1700037.html');
												thumbnails[1700038] = new thumbnail(1700038,'114339','','pg100_thumb.JPG',130, 165,1,'photo_1700038.html');
												thumbnails[1700039] = new thumbnail(1700039,'114339','','pg120_thumb.JPG',130, 165,1,'photo_1700039.html');
												thumbnails[1700040] = new thumbnail(1700040,'114339','','IMG_9262_thumb.JPG',130, 195,1,'photo_1700040.html');
												thumbnails[1700053] = new thumbnail(1700053,'114339','','18_thumb.JPG',130, 165,1,'photo_1700053.html');
												thumbnails[1700059] = new thumbnail(1700059,'114344','','pg4_thumb.JPG',130, 195,1,'photo_1700059.html');
												thumbnails[1700072] = new thumbnail(1700072,'114344','','pg6_thumb.JPG',130, 195,1,'photo_1700072.html');
												thumbnails[1700073] = new thumbnail(1700073,'114344','','pg14_thumb.JPG',130, 195,1,'photo_1700073.html');
												thumbnails[1700077] = new thumbnail(1700077,'114344','','pg31_thumb.JPG',130, 195,1,'photo_1700077.html');
												thumbnails[1700080] = new thumbnail(1700080,'114344','','pg21_thumb.JPG',130, 195,1,'photo_1700080.html');
												thumbnails[1700087] = new thumbnail(1700087,'114346','','_dsc0020_std_thumb.JPG',130, 192,1,'photo_1700087.html');
												thumbnails[1700089] = new thumbnail(1700089,'114346','','_dsc0015_std1_thumb.JPG',130, 105,1,'photo_1700089.html');
												thumbnails[1700090] = new thumbnail(1700090,'114346','','2_thumb.JPG',130, 160,1,'photo_1700090.html');
												thumbnails[1700093] = new thumbnail(1700093,'114346','','dsc_5107_std_thumb.JPG',130, 160,1,'photo_1700093.html');
												thumbnails[1700095] = new thumbnail(1700095,'114346','','dsc_5122_std_thumb.JPG',130, 105,1,'photo_1700095.html');
												thumbnails[1700097] = new thumbnail(1700097,'114346','','dsc_5176_std_thumb.JPG',130, 104,1,'photo_1700097.html');
												thumbnails[1700100] = new thumbnail(1700100,'114346','','4527_thumb.JPG',130, 163,1,'photo_1700100.html');
												thumbnails[1700104] = new thumbnail(1700104,'114346','','45282_thumb.JPG',130, 163,1,'photo_1700104.html');
												thumbnails[1700105] = new thumbnail(1700105,'114346','','4662_thumb.JPG',130, 163,1,'photo_1700105.html');
												thumbnails[1700238] = new thumbnail(1700238,'114346','','4664_thumb.JPG',130, 163,1,'photo_1700238.html');
												thumbnails[1700239] = new thumbnail(1700239,'114346','','48431_thumb.JPG',130, 163,1,'photo_1700239.html');
												thumbnails[1700248] = new thumbnail(1700248,'114350','','3219_thumb.JPG',130, 195,1,'photo_1700248.html');
												thumbnails[1700249] = new thumbnail(1700249,'114350','','3220_thumb.JPG',130, 195,1,'photo_1700249.html');
												thumbnails[1700252] = new thumbnail(1700252,'114350','','3221_thumb.JPG',130, 195,1,'photo_1700252.html');
												thumbnails[1700255] = new thumbnail(1700255,'114350','','32211_thumb.JPG',130, 195,1,'photo_1700255.html');
												thumbnails[1700258] = new thumbnail(1700258,'114350','','3222_thumb.JPG',130, 195,1,'photo_1700258.html');
												thumbnails[1700259] = new thumbnail(1700259,'114350','','3223_thumb.JPG',130, 195,1,'photo_1700259.html');
												thumbnails[1700260] = new thumbnail(1700260,'114350','','3229_thumb.JPG',130, 195,1,'photo_1700260.html');
												thumbnails[1700261] = new thumbnail(1700261,'114350','','3260_thumb.JPG',130, 195,1,'photo_1700261.html');
												thumbnails[1700263] = new thumbnail(1700263,'114350','','3272_thumb.JPG',130, 195,1,'photo_1700263.html');
												thumbnails[1700264] = new thumbnail(1700264,'114350','','3296_thumb.JPG',130, 195,1,'photo_1700264.html');
												thumbnails[1700265] = new thumbnail(1700265,'114350','','3318_thumb.JPG',130, 86,1,'photo_1700265.html');
												thumbnails[1700266] = new thumbnail(1700266,'114350','','3494_thumb.JPG',130, 195,1,'photo_1700266.html');
												thumbnails[1700267] = new thumbnail(1700267,'114350','','3501_thumb.JPG',130, 195,1,'photo_1700267.html');
												thumbnails[1700268] = new thumbnail(1700268,'114350','','3519_thumb.JPG',130, 195,1,'photo_1700268.html');
												thumbnails[1700269] = new thumbnail(1700269,'114350','','3531_thumb.JPG',130, 195,1,'photo_1700269.html');
												thumbnails[1700271] = new thumbnail(1700271,'114350','','3536_thumb.JPG',130, 195,1,'photo_1700271.html');
												thumbnails[1700273] = new thumbnail(1700273,'114350','','3541_thumb.JPG',130, 195,1,'photo_1700273.html');
												thumbnails[1700274] = new thumbnail(1700274,'114353','','27_thumb.JPG',130, 196,1,'photo_1700274.html');
												thumbnails[1700276] = new thumbnail(1700276,'114353','','DSC01217_thumb.JPG',130, 132,1,'photo_1700276.html');
												thumbnails[1700278] = new thumbnail(1700278,'114353','','DSC01224_thumb.JPG',130, 135,1,'photo_1700278.html');
												thumbnails[1700280] = new thumbnail(1700280,'114353','','DSC01245_thumb.JPG',130, 120,1,'photo_1700280.html');
												thumbnails[1700281] = new thumbnail(1700281,'114353','','DSC01249_thumb.JPG',130, 173,1,'photo_1700281.html');
												thumbnails[1700282] = new thumbnail(1700282,'114353','','DSC01252_thumb.JPG',130, 173,1,'photo_1700282.html');
												thumbnails[4629676] = new thumbnail(4629676,'267274','','IMG_8197_thumb.jpg',130, 193,1,'photo_4629676.html');
												thumbnails[4629679] = new thumbnail(4629679,'267274','','IMG_8198_thumb.jpg',130, 194,1,'photo_4629679.html');
												thumbnails[4629683] = new thumbnail(4629683,'267274','','IMG_8199_thumb.jpg',130, 194,1,'photo_4629683.html');
												thumbnails[4629705] = new thumbnail(4629705,'267274','','IMG_8243_thumb.jpg',130, 194,1,'photo_4629705.html');
												thumbnails[4629715] = new thumbnail(4629715,'267274','','IMG_8244_thumb.jpg',130, 194,1,'photo_4629715.html');
												thumbnails[4629718] = new thumbnail(4629718,'267274','','IMG_8245_thumb.jpg',130, 194,1,'photo_4629718.html');
												thumbnails[4629719] = new thumbnail(4629719,'267274','','IMG_8247_thumb.jpg',130, 194,1,'photo_4629719.html');
												thumbnails[4629720] = new thumbnail(4629720,'267274','','IMG_8252_thumb.jpg',130, 194,1,'photo_4629720.html');
												thumbnails[4629723] = new thumbnail(4629723,'267274','','_MG_82581_thumb.jpg',130, 194,1,'photo_4629723.html');
												thumbnails[4629725] = new thumbnail(4629725,'267274','','IMG_8298_thumb.jpg',130, 194,1,'photo_4629725.html');
												thumbnails[4629726] = new thumbnail(4629726,'267274','','IMG_8336_thumb.jpg',130, 194,1,'photo_4629726.html');
												thumbnails[4629730] = new thumbnail(4629730,'267274','','IMG_8505_thumb.jpg',130, 194,1,'photo_4629730.html');
												thumbnails[4629732] = new thumbnail(4629732,'267274','','IMG_8510_thumb.jpg',130, 194,1,'photo_4629732.html');
												thumbnails[4629737] = new thumbnail(4629737,'267274','','IMG_8511_thumb.jpg',130, 194,1,'photo_4629737.html');
												thumbnails[4629804] = new thumbnail(4629804,'267274','','_MG_8738_thumb.jpg',130, 85,1,'photo_4629804.html');
												thumbnails[4629805] = new thumbnail(4629805,'267274','','_MG_8745_thumb.jpg',130, 194,1,'photo_4629805.html');
												thumbnails[6318652] = new thumbnail(6318652,'349666','','IMG_9452_thumb.jpg',130, 194,1,'photo_6318652.html');
												thumbnails[6318656] = new thumbnail(6318656,'349666','','IMG_94421_thumb.jpg',130, 194,1,'photo_6318656.html');
												thumbnails[6318659] = new thumbnail(6318659,'349666','','IMG_9367_thumb.jpg',130, 194,1,'photo_6318659.html');
												thumbnails[6318674] = new thumbnail(6318674,'349666','','IMG_9664_thumb.jpg',130, 194,1,'photo_6318674.html');
												thumbnails[6318693] = new thumbnail(6318693,'349666','','IMG_9815_thumb.jpg',130, 194,1,'photo_6318693.html');
												thumbnails[6318695] = new thumbnail(6318695,'349666','','IMG_9829_thumb.jpg',130, 194,1,'photo_6318695.html');
												thumbnails[6318699] = new thumbnail(6318699,'349666','','IMG_9845_thumb.jpg',130, 194,1,'photo_6318699.html');
												thumbnails[6318703] = new thumbnail(6318703,'349666','','IMG_9848_thumb.jpg',130, 194,1,'photo_6318703.html');
												thumbnails[6318707] = new thumbnail(6318707,'349666','','IMG_9854_thumb.jpg',130, 194,1,'photo_6318707.html');
												thumbnails[6318708] = new thumbnail(6318708,'349666','','IMG_9871_thumb.jpg',130, 194,1,'photo_6318708.html');
												thumbnails[6318709] = new thumbnail(6318709,'349666','','IMG_9573_thumb.jpg',130, 194,1,'photo_6318709.html');
												thumbnails[6318712] = new thumbnail(6318712,'349666','','IMG_9601_thumb.jpg',130, 194,1,'photo_6318712.html');
												thumbnails[6318713] = new thumbnail(6318713,'349666','','_MG_9707_thumb.jpg',130, 194,1,'photo_6318713.html');
												thumbnails[6318748] = new thumbnail(6318748,'349666','','_MG_9674_thumb.jpg',130, 194,1,'photo_6318748.html');
												thumbnails[6318750] = new thumbnail(6318750,'349666','','_MG_9675_thumb.jpg',130, 194,1,'photo_6318750.html');
												thumbnails[6318754] = new thumbnail(6318754,'349666','','_MG_9688_thumb.jpg',130, 194,1,'photo_6318754.html');
												thumbnails[6318756] = new thumbnail(6318756,'349666','','_MG_9694_thumb.jpg',130, 194,1,'photo_6318756.html');
												thumbnails[6318759] = new thumbnail(6318759,'349666','','_MG_9701_thumb.jpg',130, 194,1,'photo_6318759.html');
												thumbnails[6318762] = new thumbnail(6318762,'349666','','_MG_9723_thumb.jpg',130, 194,1,'photo_6318762.html');
												thumbnails[6318766] = new thumbnail(6318766,'349666','','_MG_9835_thumb.jpg',130, 87,1,'photo_6318766.html');
												thumbnails[6318769] = new thumbnail(6318769,'349666','','IMG_9896_thumb.jpg',130, 194,1,'photo_6318769.html');
												thumbnails[6318770] = new thumbnail(6318770,'349666','','IMG_9987_thumb.jpg',130, 194,1,'photo_6318770.html');
												thumbnails[6318779] = new thumbnail(6318779,'349666','','_MG_96351_thumb.jpg',130, 87,1,'photo_6318779.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[93981] = new gallery(93981,'1544820,1544818,1544813,1544808,1544796,1544730,1544726,1544196,1544180,1544172','Galleries 1','gallery',[1541661,1541676,1541682,1543646,1543686,1544078,1544088,1544112,1544117,1544120,1544123,1544172,1544180,1544196,1544726,1544730,1544796,1544808,1544813,1544818,1544820],0, 0, '', 'gallery_93981.html',0,0);
				  					galleries[112847] = new gallery(112847,'1673111,1673106,1673105,1673104,1672780,1672766,1672763,1672760','Galleries 2','gallery',[1672760,1672763,1672766,1672780,1673104,1673105,1673106,1673111],0, 0, '', 'gallery_112847.html',0,0);
				  					galleries[112874] = new gallery(112874,'1673206,1673205,1673199,1673189,1673186,1673183,1673182,1673181,1673178,1673177','galleries 3','gallery',[1673166,1673171,1673177,1673178,1673181,1673182,1673183,1673186,1673189,1673199,1673205,1673206],0, 0, '', 'gallery_112874.html',0,0);
				  					galleries[113097] = new gallery(113097,'1699989,1699983,1699976,1699974,1699972,1699971,1699969,1699967','galleries 4','gallery',[1699967,1699969,1699971,1699972,1699974,1699976,1699983,1699989],0, 0, '', 'gallery_113097.html',0,0);
				  					galleries[114339] = new gallery(114339,'1700053,1700040,1700039,1700038,1700037,1700034,1700032,1700031,1700026,1700024','Galleries 5','gallery',[1700024,1700026,1700031,1700032,1700034,1700037,1700038,1700039,1700040,1700053],0, 0, '', 'gallery_114339.html',0,0);
				  					galleries[114344] = new gallery(114344,'1700080,1700077,1700073,1700072,1700059','Galleries 6','gallery',[1700059,1700072,1700073,1700077,1700080],0, 0, '', 'gallery_114344.html',0,0);
				  					galleries[114346] = new gallery(114346,'1700239,1700238,1700105,1700104,1700100,1700097,1700095,1700093,1700090,1700089','Galleries 7','gallery',[1700087,1700089,1700090,1700093,1700095,1700097,1700100,1700104,1700105,1700238,1700239],0, 0, '', 'gallery_114346.html',0,0);
				  					galleries[114350] = new gallery(114350,'1700273,1700271,1700269,1700268,1700267,1700266,1700265,1700264,1700263,1700261','Galleries 8','gallery',[1700248,1700249,1700252,1700255,1700258,1700259,1700260,1700261,1700263,1700264,1700265,1700266,1700267,1700268,1700269,1700271,1700273],0, 0, '', 'gallery_114350.html',0,0);
				  					galleries[114353] = new gallery(114353,'1700282,1700281,1700280,1700278,1700276,1700274','Galleries 9','gallery',[1700274,1700276,1700278,1700280,1700281,1700282],0, 0, '', 'gallery_114353.html',0,0);
				  					galleries[349666] = new gallery(349666,'6318779,6318770,6318769,6318766,6318762,6318759,6318756,6318754,6318750,6318748','Gallery 11','gallery',[6318652,6318656,6318659,6318674,6318693,6318695,6318699,6318703,6318707,6318708,6318709,6318712,6318713,6318748,6318750,6318754,6318756,6318759,6318762,6318766,6318769,6318770,6318779],0, 0, '', 'gallery_349666.html',0,0);
				  					galleries[267274] = new gallery(267274,'4629805,4629804,4629737,4629732,4629730,4629726,4629725,4629723,4629720,4629719','gallery 10 black and white','gallery',[4629676,4629679,4629683,4629705,4629715,4629718,4629719,4629720,4629723,4629725,4629726,4629730,4629732,4629737,4629804,4629805],0, 0, '', 'gallery_267274.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '6318779,6318770,6318769,6318766,6318762,6318759,6318756,6318754,6318750,6318748,6318713,6318712,6318709,6318708,6318707,6318703,6318699,6318695,6318693,6318674,6318659,6318656,6318652,4629805,4629804,4629737,4629732,4629730,4629726,4629725,4629723,4629720,4629719,4629718,4629715,4629705,4629683,4629679,4629676,1700282,1700281,1700280,1700278,1700276,1700274,1700273,1700271,1700269,1700268,1700267';
imageSets[3] = '6318779,6318770,6318769,6318766,6318762,6318759,6318756,6318754,6318750,6318748,6318713,6318712,6318709,6318708,6318707,6318703,6318699,6318695,6318693,6318674,6318659,6318656,6318652,4629805,4629804,4629737,4629732,4629730,4629726,4629725,4629723,4629720,4629719,4629718,4629715,4629705,4629683,4629679,4629676,1700282,1700281,1700280,1700278,1700276,1700274,1700273,1700271,1700269,1700268,1700267';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/reehalharjinder/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/reehalharjinder/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/reehalharjinder/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/reehalharjinder/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/reehalharjinder/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/reehalharjinder/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/reehalharjinder/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/reehalharjinder/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/reehalharjinder/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/reehalharjinder/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/reehalharjinder/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/reehalharjinder/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/reehalharjinder/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/reehalharjinder/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/reehalharjinder/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/reehalharjinder/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/reehalharjinder/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/reehalharjinder/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/reehalharjinder/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/reehalharjinder/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/reehalharjinder/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/reehalharjinder/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 = 'Wedding Photography Bristol, Bath and Avon: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
	    var options = {};	    	      	      resizePhotoInfo(options);
        if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
  	      toggleAddToCartConfirm(backgrounds);
  	    } else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
  	      toggleAddToCartConfirm(photos);
  	    }
	    });
    }
        if (!op.speed) {      clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));      $('body').trigger('clikUpdate');    }        
    return html;			}
	else {
				
		window.location = 'photo_' + nextPhoto.id + '.html';
	}
		
}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array){
  if (typeof(array) !== 'object' || array == undefined) {
    array = photos;
  }
	if($('#paymentConfirm').length > 0){
		$('#paymentConfirm').hide();
		$('#paymentAddButton')
		.unbind()
		.click(function(){
						form = document.getElementById('paymentForm');
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm').text('Item added to cart').show();}
				else{
					$('#paymentConfirm').text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm').text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}
/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp = temp +  '<p id="imageDescription">' + this.description + '</p>';
	}
		if (this.photo_ref != '') {
		temp = temp + '<p class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</p>';
	}
		if (this.takendate != '') {
				
		temp = temp + '<p class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</p>';
	}
	
	if (this.location != '') {
				
		temp = temp + '<p class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</p>';
	}
	
	if (this.photographer != '') {
				
		temp = temp + '<p class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</p>';
	}
					
	temp = temp + this.fnGetPaymentInfo();
				if (temp != '') {
		temp = temp + '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
																		temp = temp + '<p>Buy now using PayPal:</p>';
				temp = temp + '<p class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</p>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.payment_groups_id !== '') {
		temp = temp + '<p>Buy this print online:</p>';
				temp = temp + '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp = temp + '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
				
		temp = temp + getPaymentOptions(this.payment_groups_id);
		temp = temp + '</select>';
		temp = temp + '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
	else {
				
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
																				temp = temp + '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
	temp = temp + '<input type="hidden" name="item_name" value="'+item_name+'">';
								ref = '';
				if(this.photo_ref != ''){
					ref = this.photo_ref+' - '+this.caption;
				}
				else{
					ref = this.id+' - '+this.caption;
				}
				price = amount;					temp = temp + '<input type="hidden" name="cmd" value="_cart">';
	temp = temp + '<input type="hidden" name="business" value="H.Reehal@yahoo.co.uk">';
	temp = temp + '<input type="hidden" name="currency_code" value="GBP">';
	temp = temp + '<input type="hidden" name="add" value="1">';
					temp = temp + '<input type="hidden" name="amount" value="'+amount+'">';
	temp = temp + '<input type="hidden" name="item_number" value="'+ref+'">';
					temp = temp + '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
									temp = temp + '</form>';
								temp = temp + '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
	temp = temp + '<input type="hidden" name="cmd" value="_cart">';
	temp = temp + '<input type="hidden" name="business" value="H.Reehal@yahoo.co.uk">';
	temp = temp + '<input type="hidden" name="display" value="1">';
	temp = temp + '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
	temp = temp + '</form>';
							temp = temp + '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
		
	if(img){
	      if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
        imageID = imageID[1];
      } else {
			  imageID = randomListVal(galleries[gallery_id].featured_images);
      }
							
			if (imageID != 0) {
				img.src = thumbnails[imageID].src;
				img.width = thumbnails[imageID].width;
				img.height = thumbnails[imageID].height;
				img.alt = galleries[gallery_id].title;
        if (updateLink) {
          $(img).parent().attr({            href: thumbnails[imageID].fnGalleryLink(gallery_id),            title: galleries[gallery_id].title          });
        }
							}
										}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp = temp + ' | ';
				}
				temp = temp + '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
			}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

