window.thumbnails = new Object();
												thumbnails[3053920] = new thumbnail(3053920,'','','DSC_0092_thumb.jpg',130, 194,1,'#');
												thumbnails[3054107] = new thumbnail(3054107,'','','DSC_0200_thumb.jpg',130, 194,1,'#');
												thumbnails[3054115] = new thumbnail(3054115,'','','DSC_0400_thumb.jpg',130, 194,1,'#');
												thumbnails[557618] = new thumbnail(557618,'42916','','23-COPY-COPYJPG1.jpg',130, 209,1,'photo_557618.html');
												thumbnails[557637] = new thumbnail(557637,'42916','','41JPG1.jpg',130, 196,1,'photo_557637.html');
												thumbnails[631356] = new thumbnail(631356,'42916','','DSC_1022JPG1.jpg',130, 195,1,'photo_631356.html');
												thumbnails[3053886] = new thumbnail(3053886,'42916','','DSC_0030_thumb.jpg',130, 194,1,'photo_3053886.html');
												thumbnails[3053905] = new thumbnail(3053905,'42916','','DSC_0240_thumb.jpg',130, 194,1,'photo_3053905.html');
												thumbnails[4122752] = new thumbnail(4122752,'42916','','DSC_0044_thumb.jpg',130, 182,1,'photo_4122752.html');
												thumbnails[7517142] = new thumbnail(7517142,'319424','','19_thumb.jpg',160, 106,1,'photo_7517142.html');
												thumbnails[557571] = new thumbnail(557571,'42916','','61JPG1.jpg',130, 86,1,'photo_557571.html');
												thumbnails[629162] = new thumbnail(629162,'2582','','72JPG1.jpg',130, 86,1,'photo_629162.html');
												thumbnails[1906569] = new thumbnail(1906569,'61643','','DSC_6273_thumb.jpg',130, 87,1,'photo_1906569.html');
												thumbnails[6903272] = new thumbnail(6903272,'343718','','DSC_1702_thumb.jpg',130, 87,1,'photo_6903272.html');
												thumbnails[7081067] = new thumbnail(7081067,'383428','','78_thumb.jpg',160, 106,1,'photo_7081067.html');
												thumbnails[7081176] = new thumbnail(7081176,'383426','','DSC_0509_thumb.jpg',160, 107,1,'photo_7081176.html');
												thumbnails[7081518] = new thumbnail(7081518,'383427','','_6A_0125_thumb.jpg',160, 240,1,'photo_7081518.html');
												thumbnails[7517136] = new thumbnail(7517136,'319424','','11_thumb.jpg',160, 106,1,'photo_7517136.html');
												thumbnails[7656235] = new thumbnail(7656235,'237188','','DSC_0291_thumb.jpg',160, 107,1,'photo_7656235.html');
												thumbnails[556058] = new thumbnail(556058,'42916','','2JPG3.jpg',130, 86,1,'photo_556058.html');
												thumbnails[1757919] = new thumbnail(1757919,'2582','','DSC_996604_thumb.jpg',130, 87,1,'photo_1757919.html');
												thumbnails[1906600] = new thumbnail(1906600,'61643','','DSC_5972_thumb.jpg',130, 86,1,'photo_1906600.html');
												thumbnails[6903283] = new thumbnail(6903283,'343718','','DSC_3831_2_thumb.jpg',130, 87,1,'photo_6903283.html');
												thumbnails[7081078] = new thumbnail(7081078,'383428','','DSC_02922_thumb.jpg',160, 107,1,'photo_7081078.html');
												thumbnails[7081195] = new thumbnail(7081195,'383426','','DSC_0434-copy_-_Version_21.jpg',160, 116,1,'photo_7081195.html');
												thumbnails[7081523] = new thumbnail(7081523,'383427','','28_thumb.jpg',160, 241,1,'photo_7081523.html');
												thumbnails[7656237] = new thumbnail(7656237,'237188','','DSC_0476_thumb.jpg',160, 107,1,'photo_7656237.html');
												thumbnails[557583] = new thumbnail(557583,'42916','','17_EDITED-1JPG1.jpg',130, 86,1,'photo_557583.html');
												thumbnails[630728] = new thumbnail(630728,'2582','','2JPG7.jpg',130, 82,1,'photo_630728.html');
												thumbnails[1906603] = new thumbnail(1906603,'61643','','DSC_5760_thumb.jpg',130, 87,1,'photo_1906603.html');
												thumbnails[6903269] = new thumbnail(6903269,'343718','','DSC_1378_thumb.jpg',130, 87,1,'photo_6903269.html');
												thumbnails[7081083] = new thumbnail(7081083,'383428','','86_thumb.jpg',160, 106,1,'photo_7081083.html');
												thumbnails[7081201] = new thumbnail(7081201,'383426','','DSC_0883_thumb.jpg',160, 107,1,'photo_7081201.html');
												thumbnails[7081522] = new thumbnail(7081522,'383427','','IMG_8767_thumb.jpg',160, 240,1,'photo_7081522.html');
												thumbnails[7118224] = new thumbnail(7118224,'383427','','IMG_9024_thumb.jpg',160, 107,1,'photo_7118224.html');
												thumbnails[7517143] = new thumbnail(7517143,'319424','','71_thumb.jpg',160, 100,1,'photo_7517143.html');
												thumbnails[7656239] = new thumbnail(7656239,'237188','','DSC_0498_thumb.jpg',160, 107,1,'photo_7656239.html');
												thumbnails[107924] = new thumbnail(107924,'2582','','255_thumb.jpg',130, 196,1,'photo_107924.html');
												thumbnails[107944] = new thumbnail(107944,'2582','','152_thumb.jpg',130, 196,1,'photo_107944.html');
												thumbnails[107949] = new thumbnail(107949,'2582','','133c_thumb.jpg',130, 196,1,'photo_107949.html');
												thumbnails[557931] = new thumbnail(557931,'42916','','43AJPG1.jpg',130, 196,1,'photo_557931.html');
												thumbnails[701386] = new thumbnail(701386,'2582','','DSC_5475JPG1.jpg',130, 195,1,'photo_701386.html');
												thumbnails[793222] = new thumbnail(793222,'61643','','DSC_6258JPG1.jpg',130, 195,1,'photo_793222.html');
												thumbnails[6904659] = new thumbnail(6904659,'343718','','DSC_0932_thumb.jpg',130, 194,1,'photo_6904659.html');
												thumbnails[7081090] = new thumbnail(7081090,'383428','','DSC_0410_thumb.jpg',160, 239,1,'photo_7081090.html');
												thumbnails[7118227] = new thumbnail(7118227,'383427','','IMG_8934_thumb.jpg',160, 107,1,'photo_7118227.html');
												thumbnails[7517218] = new thumbnail(7517218,'319424','','81_thumb.jpg',160, 241,1,'photo_7517218.html');
												thumbnails[7656244] = new thumbnail(7656244,'237188','','DSC_05221_thumb.jpg',160, 239,1,'photo_7656244.html');
												thumbnails[630497] = new thumbnail(630497,'2582','','DSC_4377JPG1.jpg',130, 195,1,'photo_630497.html');
												thumbnails[755457] = new thumbnail(755457,'42916','','34JPG2.jpg',130, 195,1,'photo_755457.html');
												thumbnails[793227] = new thumbnail(793227,'61643','','DSC_6239JPG1.jpg',130, 195,1,'photo_793227.html');
												thumbnails[6904662] = new thumbnail(6904662,'343718','','DSC_1016_thumb.jpg',130, 194,1,'photo_6904662.html');
												thumbnails[7081092] = new thumbnail(7081092,'383428','','761.jpg',160, 241,1,'photo_7081092.html');
												thumbnails[7081247] = new thumbnail(7081247,'383426','','DSC_1084_thumb.jpg',160, 239,1,'photo_7081247.html');
												thumbnails[7517236] = new thumbnail(7517236,'319424','','28_B9D251CE-1EC9-DFB6-098D118DF7CB5248_thumb.jpg',160, 241,1,'photo_7517236.html');
												thumbnails[7656243] = new thumbnail(7656243,'237188','','DSC_0489_thumb.jpg',160, 239,1,'photo_7656243.html');
												thumbnails[107931] = new thumbnail(107931,'2582','','30a_thumb.jpg',130, 196,1,'photo_107931.html');
												thumbnails[558044] = new thumbnail(558044,'42916','','DSC_0136JPG1.jpg',130, 196,1,'photo_558044.html');
												thumbnails[793244] = new thumbnail(793244,'61643','','DSC_6260JPG1.jpg',130, 195,1,'photo_793244.html');
												thumbnails[6904664] = new thumbnail(6904664,'343718','','DSC_1667_thumb.jpg',130, 194,1,'photo_6904664.html');
												thumbnails[7081099] = new thumbnail(7081099,'383428','','DSC_06411_thumb.jpg',160, 239,1,'photo_7081099.html');
												thumbnails[7081409] = new thumbnail(7081409,'383426','','50_thumb.jpg',160, 240,1,'photo_7081409.html');
												thumbnails[7118231] = new thumbnail(7118231,'383427','','IMG_8919_thumb.jpg',160, 107,1,'photo_7118231.html');
												thumbnails[7517241] = new thumbnail(7517241,'319424','','34a_thumb.jpg',160, 241,1,'photo_7517241.html');
												thumbnails[7656245] = new thumbnail(7656245,'237188','','DSC_0361_thumb.jpg',160, 239,1,'photo_7656245.html');
												thumbnails[557964] = new thumbnail(557964,'42916','','22JPG3.jpg',130, 86,1,'photo_557964.html');
												thumbnails[793252] = new thumbnail(793252,'61643','','DSC_6037JPG1.jpg',130, 195,1,'photo_793252.html');
												thumbnails[6907706] = new thumbnail(6907706,'343718','','DSC_1843_thumb.jpg',130, 87,1,'photo_6907706.html');
												thumbnails[7081101] = new thumbnail(7081101,'383428','','DSC_0459_thumb.jpg',160, 107,1,'photo_7081101.html');
												thumbnails[7081209] = new thumbnail(7081209,'383426','','9990328_thumb.jpg',160, 241,1,'photo_7081209.html');
												thumbnails[7081395] = new thumbnail(7081395,'383426','','DSC_0682_-_Version_2_thumb.jpg',160, 107,1,'photo_7081395.html');
												thumbnails[7118234] = new thumbnail(7118234,'383427','','IMG_8733_thumb.jpg',160, 240,1,'photo_7118234.html');
												thumbnails[7517245] = new thumbnail(7517245,'319424','','23_thumb.jpg',160, 106,1,'photo_7517245.html');
												thumbnails[7656246] = new thumbnail(7656246,'237188','','DSC_0347_thumb.jpg',160, 239,1,'photo_7656246.html');
												thumbnails[557969] = new thumbnail(557969,'42916','','_33_0173JPG1.jpg',130, 87,1,'photo_557969.html');
												thumbnails[793256] = new thumbnail(793256,'61643','','DSC_6052JPG1.jpg',130, 195,1,'photo_793256.html');
												thumbnails[6907707] = new thumbnail(6907707,'343718','','DSC_1640_thumb.jpg',130, 87,1,'photo_6907707.html');
												thumbnails[7081102] = new thumbnail(7081102,'383428','','13_69075F28-1E4F-37DC-71651102692DCD1F_thumb.jpg',160, 106,1,'photo_7081102.html');
												thumbnails[7081412] = new thumbnail(7081412,'383426','','0e_thumb.jpg',160, 124,1,'photo_7081412.html');
												thumbnails[7118236] = new thumbnail(7118236,'383427','','IMG_9030_thumb.jpg',160, 240,1,'photo_7118236.html');
												thumbnails[7656248] = new thumbnail(7656248,'237188','','DSC_0461_thumb.jpg',160, 239,1,'photo_7656248.html');
												thumbnails[557972] = new thumbnail(557972,'42916','','39JPG1.jpg',130, 86,1,'photo_557972.html');
												thumbnails[793266] = new thumbnail(793266,'61643','','DSC_6044JPG1.jpg',130, 195,1,'photo_793266.html');
												thumbnails[6907708] = new thumbnail(6907708,'343718','','DSC_4191_thumb.jpg',130, 87,1,'photo_6907708.html');
												thumbnails[7081103] = new thumbnail(7081103,'383428','','49-copy1.jpg',160, 107,1,'photo_7081103.html');
												thumbnails[7081561] = new thumbnail(7081561,'383426','','18b_thumb.jpg',160, 107,1,'photo_7081561.html');
												thumbnails[7118238] = new thumbnail(7118238,'383427','','IMG_8764_thumb.jpg',160, 240,1,'photo_7118238.html');
												thumbnails[7517364] = new thumbnail(7517364,'319424','','26_thumb.jpg',160, 106,1,'photo_7517364.html');
												thumbnails[7519165] = new thumbnail(7519165,'319424','','22_-_Version_2_thumb.jpg',160, 100,1,'photo_7519165.html');
												thumbnails[7656249] = new thumbnail(7656249,'237188','','DSC_0577_thumb.jpg',160, 239,1,'photo_7656249.html');
												thumbnails[107917] = new thumbnail(107917,'2582','','222_thumb.jpg',130, 196,1,'photo_107917.html');
												thumbnails[563434] = new thumbnail(563434,'42916','','62JPG2.jpg',130, 196,1,'photo_563434.html');
												thumbnails[793268] = new thumbnail(793268,'61643','','DSC_6294JPG1.jpg',130, 195,1,'photo_793268.html');
												thumbnails[1527915] = new thumbnail(1527915,'2582','','DSC_43981.jpg',130, 195,1,'photo_1527915.html');
												thumbnails[6904670] = new thumbnail(6904670,'343718','','DSC_4627_thumb.jpg',130, 194,1,'photo_6904670.html');
												thumbnails[7081109] = new thumbnail(7081109,'383428','','DSC_0336_thumb.jpg',160, 239,1,'photo_7081109.html');
												thumbnails[7081651] = new thumbnail(7081651,'383426','','DSC_0692_thumb.jpg',160, 239,1,'photo_7081651.html');
												thumbnails[7121608] = new thumbnail(7121608,'383427','','IMG_8880_thumb.jpg',160, 107,1,'photo_7121608.html');
												thumbnails[7517374] = new thumbnail(7517374,'319424','','61_thumb.jpg',160, 241,1,'photo_7517374.html');
												thumbnails[7656250] = new thumbnail(7656250,'237188','','DSC_0724_thumb.jpg',160, 107,1,'photo_7656250.html');
												thumbnails[7656251] = new thumbnail(7656251,'237188','','DSC_0647_thumb.jpg',160, 107,1,'photo_7656251.html');
												thumbnails[107927] = new thumbnail(107927,'2582','','243_thumb.jpg',130, 192,1,'photo_107927.html');
												thumbnails[563442] = new thumbnail(563442,'42916','','49JPG1.jpg',130, 196,1,'photo_563442.html');
												thumbnails[793274] = new thumbnail(793274,'61643','','DSC_5825JPG1.jpg',130, 195,1,'photo_793274.html');
												thumbnails[6904691] = new thumbnail(6904691,'343718','','DSC_4560_thumb.jpg',130, 194,1,'photo_6904691.html');
												thumbnails[7081119] = new thumbnail(7081119,'383428','','31_-_Version_2_thumb.jpg',160, 240,1,'photo_7081119.html');
												thumbnails[7081572] = new thumbnail(7081572,'383426','','_31_0171_thumb.jpg',160, 240,1,'photo_7081572.html');
												thumbnails[7121610] = new thumbnail(7121610,'383427','','31_thumb.jpg',160, 93,1,'photo_7121610.html');
												thumbnails[7517382] = new thumbnail(7517382,'319424','','37_thumb.jpg',160, 241,1,'photo_7517382.html');
												thumbnails[825182] = new thumbnail(825182,'61643','','DSC_6252JPG1.jpg',130, 195,1,'photo_825182.html');
												thumbnails[1757950] = new thumbnail(1757950,'42916','','DSC_0538_thumb.jpg',130, 195,1,'photo_1757950.html');
												thumbnails[6904697] = new thumbnail(6904697,'343718','','DSC_4672_thumb.jpg',130, 194,1,'photo_6904697.html');
												thumbnails[6904720] = new thumbnail(6904720,'343718','','DSC_4181_thumb.jpg',130, 87,1,'photo_6904720.html');
												thumbnails[7081113] = new thumbnail(7081113,'383428','','84_thumb.jpg',160, 234,1,'photo_7081113.html');
												thumbnails[7081663] = new thumbnail(7081663,'383426','','DSC_0802_thumb.jpg',160, 239,1,'photo_7081663.html');
												thumbnails[7121611] = new thumbnail(7121611,'383427','','15A_0145_thumb.jpg',160, 107,1,'photo_7121611.html');
												thumbnails[7517391] = new thumbnail(7517391,'319424','','49_thumb.jpg',160, 241,1,'photo_7517391.html');
												thumbnails[7656252] = new thumbnail(7656252,'237188','','DSC_0708_thumb.jpg',160, 107,1,'photo_7656252.html');
												thumbnails[492436] = new thumbnail(492436,'42916','','EPV0339_thumb.jpg',130, 196,1,'photo_492436.html');
												thumbnails[793291] = new thumbnail(793291,'61643','','DSC_6164JPG1.jpg',130, 195,1,'photo_793291.html');
												thumbnails[1775919] = new thumbnail(1775919,'2582','','45_thumb.jpg',130, 90,1,'photo_1775919.html');
												thumbnails[6904715] = new thumbnail(6904715,'343718','','DSC_4374_thumb.jpg',130, 87,1,'photo_6904715.html');
												thumbnails[7081126] = new thumbnail(7081126,'383428','','DSC_0421_thumb.jpg',160, 107,1,'photo_7081126.html');
												thumbnails[7081760] = new thumbnail(7081760,'383426','','DSC_0674_thumb.jpg',160, 107,1,'photo_7081760.html');
												thumbnails[7121623] = new thumbnail(7121623,'383427','','IMG_9036_thumb.jpg',160, 240,1,'photo_7121623.html');
												thumbnails[7517438] = new thumbnail(7517438,'319424','','55_thumb.jpg',160, 106,1,'photo_7517438.html');
												thumbnails[7656253] = new thumbnail(7656253,'237188','','DSC_0827_thumb.jpg',160, 239,1,'photo_7656253.html');
												thumbnails[793293] = new thumbnail(793293,'61643','','DSC_6125JPG1.jpg',130, 195,1,'photo_793293.html');
												thumbnails[1757783] = new thumbnail(1757783,'42916','','DSC_0434_thumb.jpg',130, 194,1,'photo_1757783.html');
												thumbnails[1775915] = new thumbnail(1775915,'2582','','70bb_thumb.jpg',130, 91,1,'photo_1775915.html');
												thumbnails[6904718] = new thumbnail(6904718,'343718','','DSC_0412_thumb.jpg',130, 87,1,'photo_6904718.html');
												thumbnails[7081131] = new thumbnail(7081131,'383428','','87_thumb.jpg',160, 106,1,'photo_7081131.html');
												thumbnails[7081756] = new thumbnail(7081756,'383426','','DSC_1367_thumb.jpg',160, 118,1,'photo_7081756.html');
												thumbnails[7121614] = new thumbnail(7121614,'383427','','IMG_9053_thumb.jpg',160, 240,1,'photo_7121614.html');
												thumbnails[7519185] = new thumbnail(7519185,'319424','','38_-_Version_2_thumb.jpg',160, 100,1,'photo_7519185.html');
												thumbnails[7656254] = new thumbnail(7656254,'237188','','DSC_0728_thumb.jpg',160, 239,1,'photo_7656254.html');
												thumbnails[490404] = new thumbnail(490404,'42916','','EPV0229_thumb.jpg',130, 196,1,'photo_490404.html');
												thumbnails[793295] = new thumbnail(793295,'61643','','DSC_6193JPG1.jpg',130, 195,1,'photo_793295.html');
												thumbnails[1775917] = new thumbnail(1775917,'2582','','13_thumb.jpg',130, 86,1,'photo_1775917.html');
												thumbnails[7081136] = new thumbnail(7081136,'383428','','110_thumb.jpg',160, 106,1,'photo_7081136.html');
												thumbnails[7081846] = new thumbnail(7081846,'383426','','DSC_0783_thumb.jpg',160, 107,1,'photo_7081846.html');
												thumbnails[7121621] = new thumbnail(7121621,'383427','','10A_0140_thumb.jpg',160, 240,1,'photo_7121621.html');
												thumbnails[7517511] = new thumbnail(7517511,'319424','','51_thumb.jpg',160, 111,1,'photo_7517511.html');
												thumbnails[7656255] = new thumbnail(7656255,'237188','','DSC_0874_thumb.jpg',160, 239,1,'photo_7656255.html');
												thumbnails[793322] = new thumbnail(793322,'61643','','DSC_5690JPG1.jpg',130, 195,1,'photo_793322.html');
												thumbnails[1795167] = new thumbnail(1795167,'2582','','DSC_0074_thumb.jpg',130, 194,1,'photo_1795167.html');
												thumbnails[6907722] = new thumbnail(6907722,'343718','','DSC_0283_thumb.jpg',130, 194,1,'photo_6907722.html');
												thumbnails[7517572] = new thumbnail(7517572,'319424','','17_thumb.jpg',160, 241,1,'photo_7517572.html');
												thumbnails[7656256] = new thumbnail(7656256,'237188','','DSC_0896_thumb.jpg',160, 239,1,'photo_7656256.html');
												thumbnails[1795171] = new thumbnail(1795171,'2582','','DSC_0525_thumb.jpg',130, 195,1,'photo_1795171.html');
												thumbnails[6907713] = new thumbnail(6907713,'343718','','DSC_4513_1_thumb.jpg',130, 194,1,'photo_6907713.html');
												thumbnails[7519129] = new thumbnail(7519129,'319424','','75_thumb.jpg',160, 256,1,'photo_7519129.html');
												thumbnails[7656257] = new thumbnail(7656257,'237188','','DSC_0878_thumb.jpg',160, 239,1,'photo_7656257.html');
												thumbnails[1795347] = new thumbnail(1795347,'2582','','19A_thumb.jpg',130, 195,1,'photo_1795347.html');
												thumbnails[6907723] = new thumbnail(6907723,'343718','','DSC_4349_thumb.jpg',130, 194,1,'photo_6907723.html');
												thumbnails[7517585] = new thumbnail(7517585,'319424','','33_thumb.jpg',160, 241,1,'photo_7517585.html');
												thumbnails[7656258] = new thumbnail(7656258,'237188','','DSC_0968_thumb.jpg',160, 239,1,'photo_7656258.html');
												thumbnails[796678] = new thumbnail(796678,'61643','','DSC_5696JPG1.jpg',130, 195,1,'photo_796678.html');
												thumbnails[1776027] = new thumbnail(1776027,'42916','','DSC_0213_thumb.jpg',130, 86,1,'photo_1776027.html');
												thumbnails[6907725] = new thumbnail(6907725,'343718','','DSC_0009_thumb.jpg',130, 87,1,'photo_6907725.html');
												thumbnails[7519211] = new thumbnail(7519211,'319424','','14_1_thumb.jpg',160, 106,1,'photo_7519211.html');
												thumbnails[557992] = new thumbnail(557992,'42916','','IMG_8469JPG1.jpg',130, 87,1,'photo_557992.html');
												thumbnails[6907728] = new thumbnail(6907728,'343718','','DSC_1881_thumb.jpg',130, 87,1,'photo_6907728.html');
												thumbnails[7519223] = new thumbnail(7519223,'319424','','41_-_Version_3_thumb.jpg',160, 100,1,'photo_7519223.html');
												thumbnails[7656259] = new thumbnail(7656259,'237188','','DSC_0661_thumb.jpg',160, 107,1,'photo_7656259.html');
												thumbnails[7656261] = new thumbnail(7656261,'237188','','DSC_1018_thumb.jpg',160, 107,1,'photo_7656261.html');
												thumbnails[557602] = new thumbnail(557602,'42916','','7BJPG1.jpg',130, 86,1,'photo_557602.html');
												thumbnails[6907730] = new thumbnail(6907730,'343718','','DSC_1402_thumb.jpg',130, 87,1,'photo_6907730.html');
												thumbnails[7519236] = new thumbnail(7519236,'319424','','83_thumb.jpg',160, 109,1,'photo_7519236.html');
												thumbnails[7656260] = new thumbnail(7656260,'237188','','DSC_0920_thumb.jpg',160, 107,1,'photo_7656260.html');
												thumbnails[7519246] = new thumbnail(7519246,'319424','','27_thumb.jpg',160, 256,1,'photo_7519246.html');
												thumbnails[7658383] = new thumbnail(7658383,'237188','','DSC_0563_thumb.jpg',160, 240,1,'photo_7658383.html');
												thumbnails[7519243] = new thumbnail(7519243,'319424','','15_thumb.jpg',160, 244,1,'photo_7519243.html');
												thumbnails[7658245] = new thumbnail(7658245,'237188','','DSC_0600_thumb.jpg',160, 239,1,'photo_7658245.html');
												thumbnails[7519253] = new thumbnail(7519253,'319424','','70_-_Version_2_thumb.jpg',160, 256,1,'photo_7519253.html');
												thumbnails[7658432] = new thumbnail(7658432,'237188','','DSC_0280_thumb.jpg',160, 239,1,'photo_7658432.html');
												thumbnails[793427] = new thumbnail(793427,'61643','','DSC_5906JPG1.jpg',130, 195,1,'photo_793427.html');
												thumbnails[7519322] = new thumbnail(7519322,'319424','','16_-_Version_3_thumb.jpg',160, 100,1,'photo_7519322.html');
												thumbnails[7658439] = new thumbnail(7658439,'237188','','DSC_0475_thumb.jpg',160, 107,1,'photo_7658439.html');
												thumbnails[7519296] = new thumbnail(7519296,'319424','','1_-_Version_2_thumb.jpg',160, 100,1,'photo_7519296.html');
												thumbnails[7658499] = new thumbnail(7658499,'237188','','DSC_0593_thumb.jpg',160, 107,1,'photo_7658499.html');
												thumbnails[7658523] = new thumbnail(7658523,'237188','','DSC_0472_thumb.jpg',160, 107,1,'photo_7658523.html');
												thumbnails[7519331] = new thumbnail(7519331,'319424','','20_thumb.jpg',160, 100,1,'photo_7519331.html');
												thumbnails[793468] = new thumbnail(793468,'61643','','DSC_6296JPG1.jpg',130, 195,1,'photo_793468.html');
												thumbnails[793475] = new thumbnail(793475,'61643','','DSC_6048JPG1.jpg',130, 195,1,'photo_793475.html');
												thumbnails[796691] = new thumbnail(796691,'61643','','DSC_5947JPG1.jpg',130, 195,1,'photo_796691.html');
												thumbnails[1906611] = new thumbnail(1906611,'61643','','DSC_6185_thumb.jpg',130, 86,1,'photo_1906611.html');
												thumbnails[1906615] = new thumbnail(1906615,'61643','','DSC_6198_thumb.jpg',130, 86,1,'photo_1906615.html');
												thumbnails[1906624] = new thumbnail(1906624,'61643','','DSC_5637_thumb.jpg',130, 86,1,'photo_1906624.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[383426] = new gallery(383426,'7081572,7081247','France','gallery',[7081176,7081195,7081201,7081247,7081409,7081209,7081395,7081412,7081561,7081651,7081572,7081663,7081760,7081756,7081846],0, 0, '', 'gallery_383426.html',0,0);
				  					galleries[383427] = new gallery(383427,'7081522','Germany','gallery',[7081518,7081523,7081522,7118224,7118227,7118231,7118234,7118236,7118238,7121608,7121610,7121611,7121623,7121614,7121621],0, 0, '', 'gallery_383427.html',0,0);
				  					galleries[383428] = new gallery(383428,'7081090','Italy','gallery',[7081067,7081078,7081083,7081090,7081092,7081099,7081101,7081102,7081103,7081109,7081119,7081113,7081126,7081131,7081136],0, 0, '', 'gallery_383428.html',0,0);
				  					galleries[343718] = new gallery(343718,'6904662,6904659','Lake Manitouwabing','gallery',[6903272,6903283,6903269,6904659,6904662,6904664,6907706,6907707,6907708,6904670,6904691,6904697,6904720,6904715,6904718,6907722,6907713,6907723,6907725,6907728,6907730],0, 0, '', 'gallery_343718.html',0,0);
				  					galleries[319424] = new gallery(319424,'7517391','March Feature: Libya','gallery',[7517142,7517136,7517143,7517218,7517236,7517241,7517245,7517364,7519165,7517374,7517382,7517391,7517438,7519185,7517511,7517572,7519129,7517585,7519211,7519223,7519236,7519246,7519243,7519253,7519322,7519296,7519331],0, 0, '', 'gallery_319424.html',0,0);
				  					galleries[2582] = new gallery(2582,'701386','Belgium','gallery',[629162,1757919,630728,107924,107944,107949,701386,630497,107931,107917,1527915,107927,1775919,1775915,1775917,1795167,1795171,1795347],0, 0, '', 'gallery_2582.html',0,0);
				  					galleries[42916] = new gallery(42916,'4122752,3053905,3053886,631356,563442,557931,492436','Landscapes','gallery',[557618,557637,631356,3053886,3053905,4122752,557571,556058,557583,557931,755457,558044,557964,557969,557972,563434,563442,1757950,492436,1757783,490404,1776027,557992,557602],0, 0, '', 'gallery_42916.html',0,0);
				  					galleries[237188] = new gallery(237188,'7656244','Arizona','gallery',[7656235,7656237,7656239,7656244,7656243,7656245,7656246,7656248,7656249,7656250,7656251,7656252,7656253,7656254,7656255,7656256,7656257,7656258,7656259,7656261,7656260,7658383,7658245,7658432,7658439,7658499,7658523],0, 0, '', 'gallery_237188.html',0,0);
				  					galleries[61643] = new gallery(61643,'793468,793293,793268,793266,793256,793222','Morocco','gallery',[1906569,1906600,1906603,793222,793227,793244,793252,793256,793266,793268,793274,825182,793291,793293,793295,793322,796678,793427,793468,793475,796691,1906611,1906615,1906624],0, 0, '', 'gallery_61643.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '4122752,3053886,793468,793222,701386,490404';
imageSets[2] = '7656244,7517391,7081572,7081522,7081247,7081090,6904662,6904659,4122752,3053905,3053886,793468,793293,793268,793266,793256,793222,701386,631356,563442,557931,492436';
imageSets[3] = '7658523,7658499,7658439,7658432,7658383,7658245,7656261,7656260,7656259,7656258,7656257,7656256,7656255,7656254,7656253,7656252,7656251,7656250,7656249,7656248,7656246,7656245,7656244,7656243,7656239,7656237,7656235,7519331,7519322,7519296,7519253,7519246,7519243,7519236,7519223,7519211,7519185,7519165,7519129,7517585,7517572,7517511,7517438,7517391,7517382,7517374,7517364,7517245,7517241,7517236';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/lbkphotos/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/lbkphotos/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/lbkphotos/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/lbkphotos/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/lbkphotos/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/lbkphotos/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/lbkphotos/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/lbkphotos/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/lbkphotos/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/lbkphotos/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/lbkphotos/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/lbkphotos/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/lbkphotos/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/lbkphotos/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/lbkphotos/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/lbkphotos/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/lbkphotos/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/lbkphotos/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/lbkphotos/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/lbkphotos/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/lbkphotos/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/lbkphotos/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 = 'Larry Kilian 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 = 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;
	}
}

			

