window.thumbnails = new Object();
												thumbnails[671222] = new thumbnail(671222,'43138','','IMG_3007jpg_thumb.jpg',130, 87,18,'photo_671222.html');
												thumbnails[671223] = new thumbnail(671223,'43138','','IMG_3108 copyjpg_thumb.jpg',130, 87,18,'photo_671223.html');
												thumbnails[799987] = new thumbnail(799987,'43139','','BarnOwljpg1_thumb.jpg',130, 87,18,'photo_799987.html');
												thumbnails[800007] = new thumbnail(800007,'43139','','IMG_0312jpg1_thumb.jpg',130, 96,18,'photo_800007.html');
												thumbnails[800046] = new thumbnail(800046,'43238','','IMG_0566jpgjpg1_thumb.jpg',130, 87,18,'photo_800046.html');
												thumbnails[800057] = new thumbnail(800057,'43238','','IMG_0608jpg1_thumb.jpg',130, 87,18,'photo_800057.html');
												thumbnails[800060] = new thumbnail(800060,'43139','','IMG_0682_2jpg1_thumb.jpg',130, 87,18,'photo_800060.html');
												thumbnails[800104] = new thumbnail(800104,'43139','','IMG_1043_1_1jpg_thumb.jpg',130, 87,18,'photo_800104.html');
												thumbnails[800116] = new thumbnail(800116,'43139','','IMG_1187jpg_thumb.jpg',130, 87,18,'photo_800116.html');
												thumbnails[800119] = new thumbnail(800119,'43139','','IMG_1212_1jpg1_thumb.jpg',130, 87,18,'photo_800119.html');
												thumbnails[800120] = new thumbnail(800120,'43139','','IMG_1408jpg1_thumb.jpg',130, 87,18,'photo_800120.html');
												thumbnails[800125] = new thumbnail(800125,'43139','','IMG_1658jpg1_thumb.jpg',130, 87,18,'photo_800125.html');
												thumbnails[800127] = new thumbnail(800127,'43139','','IMG_1659_1jpg_thumb.jpg',130, 87,18,'photo_800127.html');
												thumbnails[800137] = new thumbnail(800137,'43239','','IMG_1740jpg1_thumb.jpg',130, 87,18,'photo_800137.html');
												thumbnails[800145] = new thumbnail(800145,'43239','','IMG_1775jpg1_thumb.jpg',130, 87,18,'photo_800145.html');
												thumbnails[800150] = new thumbnail(800150,'43239','','IMG_1812jpg1_thumb.jpg',130, 87,18,'photo_800150.html');
												thumbnails[800167] = new thumbnail(800167,'43138','','IMG_1843_1 copy_1jpg1_thumb.jpg',130, 87,18,'photo_800167.html');
												thumbnails[800170] = new thumbnail(800170,'43237','','IMG_2000jpg2_thumb.jpg',130, 87,18,'photo_800170.html');
												thumbnails[800175] = new thumbnail(800175,'43237','','IMG_2018jpg2_thumb.jpg',130, 87,18,'photo_800175.html');
												thumbnails[800180] = new thumbnail(800180,'43237','','IMG_2057jpg1_thumb.jpg',130, 87,18,'photo_800180.html');
												thumbnails[800196] = new thumbnail(800196,'43138','','IMG_2116jpg1_thumb.jpg',130, 87,18,'photo_800196.html');
												thumbnails[800237] = new thumbnail(800237,'43238','','IMG_2248jpg2_thumb.jpg',130, 87,18,'photo_800237.html');
												thumbnails[800239] = new thumbnail(800239,'43139','','IMG_2261jpg1_thumb.jpg',130, 87,18,'photo_800239.html');
												thumbnails[800244] = new thumbnail(800244,'43139','','IMG_2339jpg1_thumb.jpg',130, 87,18,'photo_800244.html');
												thumbnails[800246] = new thumbnail(800246,'43238','','IMG_2360jpg1_thumb.jpg',130, 87,18,'photo_800246.html');
												thumbnails[800278] = new thumbnail(800278,'43237','','IMG_2619jpg1_thumb.jpg',130, 87,18,'photo_800278.html');
												thumbnails[800287] = new thumbnail(800287,'43138','','IMG_2708jpg1_thumb.jpg',130, 87,18,'photo_800287.html');
												thumbnails[800289] = new thumbnail(800289,'43139','','IMG_2821jpg1_thumb.jpg',130, 87,18,'photo_800289.html');
												thumbnails[800296] = new thumbnail(800296,'43139','','IMG_3314jpg_thumb.jpg',130, 87,18,'photo_800296.html');
												thumbnails[800332] = new thumbnail(800332,'43138','','IMG_3634jpg_thumb.jpg',130, 87,18,'photo_800332.html');
												thumbnails[953776] = new thumbnail(953776,'43139','','IMG_3715_1jpg_thumb.jpg',130, 87,18,'photo_953776.html');
												thumbnails[953781] = new thumbnail(953781,'43238','','IMG_3794jpg_thumb.jpg',130, 87,18,'photo_953781.html');
												thumbnails[953789] = new thumbnail(953789,'43238','','IMG_3939 copyjpg_thumb.jpg',130, 87,18,'photo_953789.html');
												thumbnails[953795] = new thumbnail(953795,'43239','','IMG_3955_1jpg_thumb.jpg',130, 87,18,'photo_953795.html');
												thumbnails[1059407] = new thumbnail(1059407,'43237','','IMG_4097 copyjpg_thumb.jpg',130, 87,18,'photo_1059407.html');
												thumbnails[1059410] = new thumbnail(1059410,'43138','','IMG_4337jpg_thumb.jpg',130, 87,18,'photo_1059410.html');
												thumbnails[1059428] = new thumbnail(1059428,'43138','','IMG_4487_1jpg_thumb.jpg',130, 87,18,'photo_1059428.html');
												thumbnails[1525952] = new thumbnail(1525952,'43139','','IMG_4805jpg_thumb.jpg',130, 87,18,'photo_1525952.html');
												thumbnails[1525962] = new thumbnail(1525962,'43238','','IMG_4908jpg_thumb.jpg',130, 87,18,'photo_1525962.html');
												thumbnails[1525972] = new thumbnail(1525972,'43138','','IMG_4958jpg_thumb.jpg',130, 87,18,'photo_1525972.html');
												thumbnails[1526041] = new thumbnail(1526041,'43238','','IMG_4985jpg_thumb.jpg',130, 87,18,'photo_1526041.html');
												thumbnails[1526160] = new thumbnail(1526160,'43237','','IMG_4699jpg_thumb.jpg',130, 87,18,'photo_1526160.html');
												thumbnails[1526299] = new thumbnail(1526299,'43138','','IMG_4630jpg_thumb.jpg',130, 87,18,'photo_1526299.html');
												thumbnails[1912348] = new thumbnail(1912348,'43237','','IMG_4842jpg_thumb.jpg',130, 87,18,'photo_1912348.html');
												thumbnails[1912403] = new thumbnail(1912403,'43138','','IMG_6021_1jpg_thumb.jpg',130, 82,18,'photo_1912403.html');
												thumbnails[1912429] = new thumbnail(1912429,'43239','','IMG_6049jpg_thumb.jpg',130, 86,18,'photo_1912429.html');
												thumbnails[2003859] = new thumbnail(2003859,'43238','','_MG_6400jpg_thumb.jpg',130, 87,18,'photo_2003859.html');
												thumbnails[2003875] = new thumbnail(2003875,'43239','','_MG_6450jpg_thumb.jpg',130, 85,18,'photo_2003875.html');
												thumbnails[2004140] = new thumbnail(2004140,'43238','','_MG_6470jpg_thumb.jpg',130, 85,18,'photo_2004140.html');
												thumbnails[2004144] = new thumbnail(2004144,'43239','','IMG_6222jpg_thumb.jpg',130, 87,18,'photo_2004144.html');
												thumbnails[2004149] = new thumbnail(2004149,'43239','','IMG_6268jpg_thumb.jpg',130, 85,18,'photo_2004149.html');
												thumbnails[2005056] = new thumbnail(2005056,'43238','','6377jpg_thumb.jpg',130, 199,18,'photo_2005056.html');
												thumbnails[2005908] = new thumbnail(2005908,'43139','','3725jpg_thumb.jpg',130, 87,18,'photo_2005908.html');
												thumbnails[2051745] = new thumbnail(2051745,'137102','','IMG_0897jpg_thumb.jpg',130, 87,18,'photo_2051745.html');
												thumbnails[2051747] = new thumbnail(2051747,'137102','','IMG_1590jpg_thumb.jpg',130, 87,18,'photo_2051747.html');
												thumbnails[2051749] = new thumbnail(2051749,'137102','','IMG_1610jpg_thumb.jpg',130, 87,18,'photo_2051749.html');
												thumbnails[2051751] = new thumbnail(2051751,'137102','','IMG_2643jpg_thumb.jpg',130, 87,18,'photo_2051751.html');
												thumbnails[2051752] = new thumbnail(2051752,'137102','','IMG_5032jpg_thumb.jpg',130, 87,18,'photo_2051752.html');
												thumbnails[2051754] = new thumbnail(2051754,'137102','','IMG_5063jpg_thumb.jpg',130, 87,18,'photo_2051754.html');
												thumbnails[2051755] = new thumbnail(2051755,'137102','','IMG_5094jpg_thumb.jpg',130, 87,18,'photo_2051755.html');
												thumbnails[2051756] = new thumbnail(2051756,'137102','','IMG_5284_1jpg_thumb.jpg',130, 87,18,'photo_2051756.html');
												thumbnails[2051758] = new thumbnail(2051758,'137102','','IMG_5319jpg_thumb.jpg',130, 87,18,'photo_2051758.html');
												thumbnails[2051760] = new thumbnail(2051760,'137102','','IMG_5332jpg_thumb.jpg',130, 87,18,'photo_2051760.html');
												thumbnails[2051762] = new thumbnail(2051762,'137102','','IMG_5345jpg_thumb.jpg',130, 87,18,'photo_2051762.html');
												thumbnails[2051763] = new thumbnail(2051763,'137102','','IMG_5383jpg_thumb.jpg',130, 87,18,'photo_2051763.html');
												thumbnails[2051764] = new thumbnail(2051764,'137102','','IMG_5411jpg_thumb.jpg',130, 87,18,'photo_2051764.html');
												thumbnails[2051767] = new thumbnail(2051767,'137102','','IMG_5461jpg_thumb.jpg',130, 87,18,'photo_2051767.html');
												thumbnails[2051771] = new thumbnail(2051771,'137102','','IMG_5466jpg_thumb.jpg',130, 87,18,'photo_2051771.html');
												thumbnails[2051773] = new thumbnail(2051773,'137102','','IMG_5570jpg_thumb.jpg',130, 87,18,'photo_2051773.html');
												thumbnails[2051775] = new thumbnail(2051775,'137102','','IMG_5804jpg_thumb.jpg',130, 87,18,'photo_2051775.html');
												thumbnails[2051777] = new thumbnail(2051777,'137102','','IMG_5828jpg_thumb.jpg',130, 87,18,'photo_2051777.html');
												thumbnails[2051780] = new thumbnail(2051780,'137102','','IMG_5850jpg_thumb.jpg',130, 87,18,'photo_2051780.html');
												thumbnails[2051781] = new thumbnail(2051781,'137102','','IMG_5899jpg_thumb.jpg',130, 87,18,'photo_2051781.html');
												thumbnails[2253357] = new thumbnail(2253357,'43238','','_MG_6655jpg1_thumb.jpg',130, 195,18,'photo_2253357.html');
												thumbnails[2253373] = new thumbnail(2253373,'43238','','_MG_6600jpg_thumb.jpg',130, 198,18,'photo_2253373.html');
												thumbnails[2253393] = new thumbnail(2253393,'137102','','_MG_6552jpg_thumb.jpg',130, 87,18,'photo_2253393.html');
												thumbnails[2253395] = new thumbnail(2253395,'43238','','_MG_6648jpg_thumb.jpg',130, 87,18,'photo_2253395.html');
												thumbnails[2253433] = new thumbnail(2253433,'43139','','_MG_6720jpg_thumb.jpg',130, 88,18,'photo_2253433.html');
												thumbnails[2253437] = new thumbnail(2253437,'43139','','_MG_6861jpg_thumb.jpg',130, 86,18,'photo_2253437.html');
												thumbnails[2253442] = new thumbnail(2253442,'43139','','_MG_6995jpg_thumb.jpg',130, 88,18,'photo_2253442.html');
												thumbnails[2261647] = new thumbnail(2261647,'43238','','_MG_6306jpg_thumb.jpg',130, 85,18,'photo_2261647.html');
												thumbnails[3082118] = new thumbnail(3082118,'43138','','_MG_7482jpg_thumb.jpg',130, 86,18,'photo_3082118.html');
												thumbnails[3082160] = new thumbnail(3082160,'43139','','_MG_7582jpg_thumb.jpg',130, 86,18,'photo_3082160.html');
												thumbnails[3082171] = new thumbnail(3082171,'43239','','_MG_73331 copyjpgjpg_thumb.jpg',130, 195,18,'photo_3082171.html');
												thumbnails[3087953] = new thumbnail(3087953,'43237','','_MG_7595jpgjpg_thumb.jpg',130, 204,18,'photo_3087953.html');
												thumbnails[3087954] = new thumbnail(3087954,'43239','','_MG_7625jpgjpg_thumb.jpg',130, 195,18,'photo_3087954.html');
												thumbnails[3087989] = new thumbnail(3087989,'43239','','_MG_7492jpg_thumb.jpg',130, 88,18,'photo_3087989.html');
												thumbnails[3087999] = new thumbnail(3087999,'43239','','_MG_7502jpgjpg_thumb.jpg',130, 195,18,'photo_3087999.html');
												thumbnails[3088003] = new thumbnail(3088003,'43239','','_MG_7513jpgjpg_thumb.jpg',130, 195,18,'photo_3088003.html');
												thumbnails[3088011] = new thumbnail(3088011,'43138','','_MG_7470jpg_thumb.jpg',130, 87,18,'photo_3088011.html');
												thumbnails[3088014] = new thumbnail(3088014,'43239','','_MG_7453jpg_thumb.jpg',130, 88,18,'photo_3088014.html');
												thumbnails[3088020] = new thumbnail(3088020,'43239','','_MG_7366jpg_thumb.jpg',130, 91,18,'photo_3088020.html');
												thumbnails[3088024] = new thumbnail(3088024,'43239','','_MG_7400jpgjpg_thumb.jpg',130, 195,18,'photo_3088024.html');
												thumbnails[3088029] = new thumbnail(3088029,'43239','','_MG_7437jpgjpg_thumb.jpg',130, 195,18,'photo_3088029.html');
												thumbnails[3088038] = new thumbnail(3088038,'43237','','_MG_7339jpg_thumb.jpg',130, 88,18,'photo_3088038.html');
												thumbnails[3088055] = new thumbnail(3088055,'43239','','_MG_7318jpgjpg_thumb.jpg',130, 195,18,'photo_3088055.html');
												thumbnails[3088064] = new thumbnail(3088064,'43138','','_MG_7303jpgjpg_thumb.jpg',130, 195,18,'photo_3088064.html');
												thumbnails[3088066] = new thumbnail(3088066,'43238','','_MG_7228jpg_thumb.jpg',130, 87,18,'photo_3088066.html');
												thumbnails[3088070] = new thumbnail(3088070,'43238','','_MG_7255jpg_thumb.jpg',130, 87,18,'photo_3088070.html');
												thumbnails[3088108] = new thumbnail(3088108,'43238','','_MG_7265jpgjpg_thumb.jpg',130, 195,18,'photo_3088108.html');
												thumbnails[3088255] = new thumbnail(3088255,'43237','','_MG_7208jpg_thumb.jpg',130, 86,18,'photo_3088255.html');
												thumbnails[3088257] = new thumbnail(3088257,'43237','','_MG_7218jpg_thumb.jpg',130, 87,18,'photo_3088257.html');
												thumbnails[3088305] = new thumbnail(3088305,'43238','','_MG_7194jpg_thumb.jpg',130, 91,18,'photo_3088305.html');
												thumbnails[3089788] = new thumbnail(3089788,'43138','','_MG_7058jpg_thumb.jpg',130, 195,18,'photo_3089788.html');
												thumbnails[3092978] = new thumbnail(3092978,'43138','','_MG_7323jpg_thumb.jpg',130, 87,18,'photo_3092978.html');
												thumbnails[3830133] = new thumbnail(3830133,'233111','','IMG_0382jpg_thumb.jpg',130, 87,18,'photo_3830133.html');
												thumbnails[3830141] = new thumbnail(3830141,'233111','','IMG_0395jpg_thumb.jpg',130, 91,18,'photo_3830141.html');
												thumbnails[3830142] = new thumbnail(3830142,'233111','','IMG_0404jpg_thumb.jpg',130, 87,18,'photo_3830142.html');
												thumbnails[3830147] = new thumbnail(3830147,'233111','','IMG_0422jpg_thumb.jpg',130, 87,18,'photo_3830147.html');
												thumbnails[3830190] = new thumbnail(3830190,'43238','','IMG_0458jpg_thumb.jpg',130, 90,18,'photo_3830190.html');
												thumbnails[3830193] = new thumbnail(3830193,'43238','','IMG_0487jpg_thumb.jpg',130, 195,18,'photo_3830193.html');
												thumbnails[3830198] = new thumbnail(3830198,'43238','','IMG_0519jpg_thumb.jpg',130, 87,18,'photo_3830198.html');
												thumbnails[3830218] = new thumbnail(3830218,'43238','','IMG_0544jpg_thumb.jpg',130, 198,18,'photo_3830218.html');
												thumbnails[3830225] = new thumbnail(3830225,'43238','','IMG_0559jpg_thumb.jpg',130, 90,18,'photo_3830225.html');
												thumbnails[3830251] = new thumbnail(3830251,'43238','','IMG_0565jpg_thumb.jpg',130, 198,18,'photo_3830251.html');
												thumbnails[3830253] = new thumbnail(3830253,'43139','','IMG_0579jpg_thumb.jpg',130, 88,18,'photo_3830253.html');
												thumbnails[3830255] = new thumbnail(3830255,'43238','','IMG_0609jpg_thumb.jpg',130, 195,18,'photo_3830255.html');
												thumbnails[3830277] = new thumbnail(3830277,'43238','','IMG_0692jpg_thumb.jpg',130, 87,18,'photo_3830277.html');
												thumbnails[3830294] = new thumbnail(3830294,'43238','','IMG_0695jpg_thumb.jpg',130, 195,18,'photo_3830294.html');
												thumbnails[3830299] = new thumbnail(3830299,'43238','','IMG_0706jpg_thumb.jpg',130, 94,18,'photo_3830299.html');
												thumbnails[3830317] = new thumbnail(3830317,'43239','','IMG_0721jpg_thumb.jpg',130, 87,18,'photo_3830317.html');
												thumbnails[3830321] = new thumbnail(3830321,'43237','','IMG_0746jpg_thumb.jpg',130, 192,18,'photo_3830321.html');
												thumbnails[3830326] = new thumbnail(3830326,'43237','','IMG_0793jpg_thumb.jpg',130, 194,18,'photo_3830326.html');
												thumbnails[3830336] = new thumbnail(3830336,'43238','','IMG_0834jpg_thumb.jpg',130, 195,18,'photo_3830336.html');
												thumbnails[3830411] = new thumbnail(3830411,'43238','','IMG_0840jpg_thumb.jpg',130, 88,18,'photo_3830411.html');
												thumbnails[3830423] = new thumbnail(3830423,'43238','','IMG_0850jpg_thumb.jpg',130, 87,18,'photo_3830423.html');
												thumbnails[3830429] = new thumbnail(3830429,'43238','','IMG_0873jpg_thumb.jpg',130, 88,18,'photo_3830429.html');
												thumbnails[3830434] = new thumbnail(3830434,'43238','','IMG_0885jpg_thumb.jpg',130, 85,18,'photo_3830434.html');
												thumbnails[3830439] = new thumbnail(3830439,'43239','','IMG_0906jpg_thumb.jpg',130, 89,18,'photo_3830439.html');
												thumbnails[3830454] = new thumbnail(3830454,'43138','','IMG_0926jpg_thumb.jpg',130, 87,18,'photo_3830454.html');
												thumbnails[3830460] = new thumbnail(3830460,'43138','','IMG_0927jpg_thumb.jpg',130, 87,18,'photo_3830460.html');
												thumbnails[3830463] = new thumbnail(3830463,'43138','','IMG_0929jpg_thumb.jpg',130, 87,18,'photo_3830463.html');
												thumbnails[3830468] = new thumbnail(3830468,'43238','','IMG_0940jpg_thumb.jpg',130, 87,18,'photo_3830468.html');
												thumbnails[3830485] = new thumbnail(3830485,'43138','','IMG_0966jpg_thumb.jpg',130, 87,18,'photo_3830485.html');
												thumbnails[3830493] = new thumbnail(3830493,'43138','','IMG_1009jpg_thumb.jpg',130, 91,18,'photo_3830493.html');
												thumbnails[3830507] = new thumbnail(3830507,'233111','','IMG_0992jpg_thumb.jpg',130, 87,18,'photo_3830507.html');
												thumbnails[3830558] = new thumbnail(3830558,'233111','','IMG_3749jpg_thumb.jpg',130, 87,18,'photo_3830558.html');
												thumbnails[4802880] = new thumbnail(4802880,'43238','','IMG_7017jpg_thumb.jpg',130, 88,18,'photo_4802880.html');
												thumbnails[4802883] = new thumbnail(4802883,'43238','','IMG_7041jpg_thumb.jpg',130, 87,18,'photo_4802883.html');
												thumbnails[4802885] = new thumbnail(4802885,'43238','','IMG_7105jpg_thumb.jpg',130, 87,18,'photo_4802885.html');
												thumbnails[4802887] = new thumbnail(4802887,'43238','','IMG_7131jpg_thumb.jpg',130, 87,18,'photo_4802887.html');
												thumbnails[4802891] = new thumbnail(4802891,'43238','','IMG_6873001_thumb.jpg',130, 195,18,'photo_4802891.html');
												thumbnails[4802895] = new thumbnail(4802895,'43238','','IMG_6913001_thumb.jpg',130, 192,18,'photo_4802895.html');
												thumbnails[4802903] = new thumbnail(4802903,'43238','','IMG_6960001_thumb.jpg',130, 192,18,'photo_4802903.html');
												thumbnails[4802912] = new thumbnail(4802912,'43238','','IMG_6976001_thumb.jpg',130, 197,18,'photo_4802912.html');
												thumbnails[6093422] = new thumbnail(6093422,'43238','','IMG_0054jpg_thumb.jpg',130, 87,18,'photo_6093422.html');
												thumbnails[6096173] = new thumbnail(6096173,'43238','','IMG_0063jpg_thumb.jpg',130, 87,18,'photo_6096173.html');
												thumbnails[6096179] = new thumbnail(6096179,'43238','','IMG_0186jpg_thumb.jpg',130, 87,18,'photo_6096179.html');
												thumbnails[6096229] = new thumbnail(6096229,'233111','','IMG_0284jpg_thumb.jpg',130, 92,18,'photo_6096229.html');
												thumbnails[6096243] = new thumbnail(6096243,'43138','','IMG_0332jpg_thumb.jpg',130, 87,18,'photo_6096243.html');
												thumbnails[6096259] = new thumbnail(6096259,'43139','','IMG_0354jpg_thumb.jpg',130, 96,18,'photo_6096259.html');
												thumbnails[6096360] = new thumbnail(6096360,'233111','','IMG_0356jpg_thumb.jpg',130, 87,18,'photo_6096360.html');
												thumbnails[6096373] = new thumbnail(6096373,'233111','','IMG_0374jpg_thumb.jpg',130, 87,18,'photo_6096373.html');
												thumbnails[6096529] = new thumbnail(6096529,'233111','','IMG_0380jpg_thumb.jpg',130, 87,18,'photo_6096529.html');
												thumbnails[6980443] = new thumbnail(6980443,'137102','','IMG_0885jpg_0363D6DB-24E8-5EC4-4F772F0640F9C613_thumb.jpg',130, 196,18,'photo_6980443.html');
												thumbnails[6980444] = new thumbnail(6980444,'43238','','IMG_0050jpg_thumb.jpg',130, 195,18,'photo_6980444.html');
												thumbnails[6980446] = new thumbnail(6980446,'43238','','IMG_0116jpg_thumb.jpg',130, 195,18,'photo_6980446.html');
												thumbnails[6980447] = new thumbnail(6980447,'43138','','IMG_0538jpg_thumb.jpg',130, 89,18,'photo_6980447.html');
												thumbnails[6980453] = new thumbnail(6980453,'43138','','IMG_0542jpg_thumb.jpg',130, 88,18,'photo_6980453.html');
												thumbnails[6980454] = new thumbnail(6980454,'43138','','IMG_0549jpg_thumb.jpg',130, 195,18,'photo_6980454.html');
												thumbnails[6980456] = new thumbnail(6980456,'43138','','IMG_0558jpg_thumb.jpg',130, 195,18,'photo_6980456.html');
												thumbnails[6980457] = new thumbnail(6980457,'43238','','IMG_0659jpg_thumb.jpg',130, 193,18,'photo_6980457.html');
												thumbnails[6980465] = new thumbnail(6980465,'43138','','IMG_0724jpg_thumb.jpg',130, 195,18,'photo_6980465.html');
												thumbnails[6980470] = new thumbnail(6980470,'43237','','IMG_0777jpg_thumb.jpg',130, 195,18,'photo_6980470.html');
												thumbnails[6980474] = new thumbnail(6980474,'43237','','IMG_0817jpg_thumb.jpg',130, 87,18,'photo_6980474.html');
												thumbnails[6980483] = new thumbnail(6980483,'233111','','IMG_0952jpg_thumb.jpg',130, 91,18,'photo_6980483.html');
												thumbnails[7824835] = new thumbnail(7824835,'43139','','IMG_1190_copyjpg_thumb.jpg',130, 88,18,'photo_7824835.html');
												thumbnails[7824836] = new thumbnail(7824836,'43139','','IMG_1198_copyjpg_thumb.jpg',130, 94,18,'photo_7824836.html');
												thumbnails[7824842] = new thumbnail(7824842,'43139','','IMG_1275_copyjpg_thumb.jpg',130, 87,18,'photo_7824842.html');
												thumbnails[7824846] = new thumbnail(7824846,'43138','','IMG_1622_copyjpg_thumb.jpg',130, 87,18,'photo_7824846.html');
												thumbnails[7824847] = new thumbnail(7824847,'233111','','IMG_1696_copyjpg_thumb.jpg',130, 88,18,'photo_7824847.html');
												thumbnails[7824852] = new thumbnail(7824852,'43138','','IMG_1714_copyjpg_thumb.jpg',130, 87,18,'photo_7824852.html');
												thumbnails[7824876] = new thumbnail(7824876,'43138','','IMG_1478_copyjpg_thumb.jpg',130, 190,18,'photo_7824876.html');
												thumbnails[7824879] = new thumbnail(7824879,'233111','','IMG_1688_copyjpg_thumb.jpg',130, 195,18,'photo_7824879.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[43138] = new gallery(43138,'7824876,7824852,7824846,6980465,6980456,6980454,6980453,6980447,6096243,3830493','General Landscapes','gallery',[671222,671223,800167,800196,800287,800332,1059410,1059428,1525972,1526299,1912403,3082118,3088011,3088064,3089788,3092978,3830454,3830460,3830463,3830485,3830493,6096243,6980447,6980453,6980454,6980456,6980465,7824846,7824852,7824876],0, 0, '', 'gallery_43138.html',0,0);
				  					galleries[43239] = new gallery(43239,'3830439,3830317,3088055,3088029,3088024,3088020,3088014,3088003,3087999,3087989','Lakes and Mountains','gallery',[800137,800145,800150,953795,1912429,2003875,2004144,2004149,3082171,3087954,3087989,3087999,3088003,3088014,3088020,3088024,3088029,3088055,3830317,3830439],0, 0, '', 'gallery_43239.html',0,0);
				  					galleries[43237] = new gallery(43237,'6980474,6980470,3830326,3830321,3088257,3088255,3088038,3087953,1912348,1526160','Rivers and Waterfalls','gallery',[800170,800175,800180,800278,1059407,1526160,1912348,3087953,3088038,3088255,3088257,3830321,3830326,6980470,6980474],0, 0, '', 'gallery_43237.html',0,0);
				  					galleries[43139] = new gallery(43139,'7824842,7824836,7824835,6096259,3830253,3082160,2253442,2253437,2253433,2005908','Wildlife/Animals','gallery',[799987,800007,800060,800104,800116,800119,800120,800125,800127,800239,800244,800289,800296,953776,1525952,2005908,2253433,2253437,2253442,3082160,3830253,6096259,7824835,7824836,7824842],0, 0, '', 'gallery_43139.html',0,0);
				  					galleries[43238] = new gallery(43238,'6980457,6980446,6980444,6096179,6096173,6093422,4802912,4802903,4802895,4802891','Coastal','gallery',[800046,800057,800237,800246,953781,953789,1525962,1526041,2003859,2004140,2005056,2253357,2253373,2253395,2261647,3088066,3088070,3088108,3088305,3830190,3830193,3830198,3830218,3830225,3830251,3830255,3830277,3830294,3830299,3830336,3830411,3830423,3830429,3830434,3830468,4802880,4802883,4802885,4802887,4802891,4802895,4802903,4802912,6093422,6096173,6096179,6980444,6980446,6980457],0, 0, '', 'gallery_43238.html',0,0);
				  					galleries[137102] = new gallery(137102,'6980443,2253393,2051781,2051780,2051777,2051775,2051773,2051771,2051767,2051764','Bradgate Park','gallery',[2051745,2051747,2051749,2051751,2051752,2051754,2051755,2051756,2051758,2051760,2051762,2051763,2051764,2051767,2051771,2051773,2051775,2051777,2051780,2051781,2253393,6980443],0, 0, '', 'gallery_137102.html',0,0);
				  					galleries[233111] = new gallery(233111,'7824879,7824847,6980483,6096529,6096373,6096360,6096229,3830558,3830507,3830147','Close Ups','gallery',[3830133,3830141,3830142,3830147,3830507,3830558,6096229,6096360,6096373,6096529,6980483,7824847,7824879],0, 0, '', 'gallery_233111.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '7824879,7824876,7824852,7824847,7824846,7824842,7824836,7824835,6980483,6980474,6980470,6980465,6980457,6980456,6980454,6980453,6980447,6980446,6980444,6980443,6096529,6096373,6096360,6096259,6096243,6096229,6096179,6096173,6093422,4802912,4802903,4802895,4802891,4802887,4802885,4802883,4802880,3830558,3830507,3830493,3830485,3830468,3830463,3830460,3830454,3830439,3830434,3830429,3830423,3830411';
imageSets[3] = '7824879,7824876,7824852,7824847,7824846,7824842,7824836,7824835,6980483,6980474,6980470,6980465,6980457,6980456,6980454,6980453,6980447,6980446,6980444,6980443,6096529,6096373,6096360,6096259,6096243,6096229,6096179,6096173,6093422,4802912,4802903,4802895,4802891,4802887,4802885,4802883,4802880,3830558,3830507,3830493,3830485,3830468,3830463,3830460,3830454,3830439,3830434,3830429,3830423,3830411';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/nickfell/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/nickfell/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/nickfell/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/nickfell/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/nickfell/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/nickfell/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/nickfell/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/nickfell/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/nickfell/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/nickfell/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/nickfell/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/nickfell/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/nickfell/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/nickfell/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/nickfell/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/nickfell/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/nickfell/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/nickfell/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/nickfell/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/nickfell/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/nickfell/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/nickfell/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 = 'Light Source Photography: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
	    var options = {photoinfominwidth:200};	    		options.photoinfoadjacent = true;			      	      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="light.source@ntlworld.com">';
	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="light.source@ntlworld.com">';
	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;
	}
}

			

