window.thumbnails = new Object();
												thumbnails[361004] = new thumbnail(361004,'29157','','us-two1_thumb.jpg',130, 86,1,'photo_361004.html');
												thumbnails[8019078] = new thumbnail(8019078,'235272','','_MG_0426_thumb.JPG',130, 185,1,'photo_8019078.html');
												thumbnails[8019080] = new thumbnail(8019080,'235272','','Pr.Snowflake-rehearsal_1_thumb.JPG',130, 195,1,'photo_8019080.html');
												thumbnails[1568734] = new thumbnail(1568734,'29157','','Ab_thumb. switch (003).jpg',130, 86,1,'photo_1568734.html');
												thumbnails[8019122] = new thumbnail(8019122,'235272','','_MG_0358_thumb.JPG',130, 175,1,'photo_8019122.html');
												thumbnails[8019081] = new thumbnail(8019081,'235272','','_MG_0155_thumb.JPG',130, 87,1,'photo_8019081.html');
												thumbnails[853126] = new thumbnail(853126,'29157','','mosaic (77)_thumb.jpg',130, 86,1,'photo_853126.html');
												thumbnails[2054173] = new thumbnail(2054173,'29157','','foltin (037 1)_thumb.jpg',130, 87,1,'photo_2054173.html');
												thumbnails[1568732] = new thumbnail(1568732,'29157','london','A_thumb. waterloo (132).jpg',130, 86,1,'photo_1568732.html');
												thumbnails[3533146] = new thumbnail(3533146,'53600','','D._tango_HJ_0198_thumb.jpg',130, 195,1,'photo_3533146.html');
												thumbnails[3882791] = new thumbnail(3882791,'29538','','_0677_thumb.jpg',130, 205,1,'photo_3882791.html');
												thumbnails[8013290] = new thumbnail(8013290,'235272','','C_4801_thumb.jpg',130, 91,1,'photo_8013290.html');
												thumbnails[2793985] = new thumbnail(2793985,'29538','','M_thumb. Gabriela 0570.jpg',130, 194,1,'photo_2793985.html');
												thumbnails[4320594] = new thumbnail(4320594,'53600','','D_T_4_0245_thumb.jpg',130, 248,1,'photo_4320594.html');
												thumbnails[7382597] = new thumbnail(7382597,'29157','lisboa','lisboa7360_thumb.jpg',130, 87,1,'photo_7382597.html');
												thumbnails[8013295] = new thumbnail(8013295,'235272','','C_4422_thumb.jpg',130, 89,1,'photo_8013295.html');
												thumbnails[8018964] = new thumbnail(8018964,'29541','','_MG_2085_BW_thumb.jpg',130, 84,1,'photo_8018964.html');
												thumbnails[8018965] = new thumbnail(8018965,'29541','','_MG_1883_1_thumb.jpg',130, 84,1,'photo_8018965.html');
												thumbnails[455647] = new thumbnail(455647,'29157','ohrid','boat (104)_thumb.jpg',130, 85,1,'photo_455647.html');
												thumbnails[2054169] = new thumbnail(2054169,'29538','','Sally_Parr_0094_thumb.jpg',130, 194,1,'photo_2054169.html');
												thumbnails[4320589] = new thumbnail(4320589,'53600','','D_T_1_0124_thumb.jpg',130, 205,1,'photo_4320589.html');
												thumbnails[8013296] = new thumbnail(8013296,'235272','','C_4031_thumb.jpg',130, 87,1,'photo_8013296.html');
												thumbnails[8018962] = new thumbnail(8018962,'29541','','_4506_pp_thumb.jpg',130, 84,1,'photo_8018962.html');
												thumbnails[1568733] = new thumbnail(1568733,'29157','sydney','Ab_thumb. sydney (40).jpg',130, 86,1,'photo_1568733.html');
												thumbnails[1569188] = new thumbnail(1569188,'29538','','M_thumb. francoise (192).jpg',130, 196,1,'photo_1569188.html');
												thumbnails[3921940] = new thumbnail(3921940,'29541','','DSC_0590_thumb.jpg',130, 87,1,'photo_3921940.html');
												thumbnails[4320315] = new thumbnail(4320315,'29538','','M_0298_thumb.jpg',130, 195,1,'photo_4320315.html');
												thumbnails[8013302] = new thumbnail(8013302,'235272','','C_2807_thumb.jpg',130, 87,1,'photo_8013302.html');
												thumbnails[8022096] = new thumbnail(8022096,'53600','','D._tango_5543_thumb.jpg',130, 195,1,'photo_8022096.html');
												thumbnails[1645019] = new thumbnail(1645019,'29538','','SC_0057 1_thumb.jpg',130, 195,1,'photo_1645019.html');
												thumbnails[5421205] = new thumbnail(5421205,'29538','','Ali_1_0162_thumb.jpg',130, 195,1,'photo_5421205.html');
												thumbnails[5421193] = new thumbnail(5421193,'29538','','Ali_1_0142_thumb.jpg',130, 195,1,'photo_5421193.html');
												thumbnails[698214] = new thumbnail(698214,'53600','','tangoB_0134_thumb.jpg',130, 86,1,'photo_698214.html');
												thumbnails[2054188] = new thumbnail(2054188,'29157','washington','washington (078)_thumb.jpg',130, 199,1,'photo_2054188.html');
												thumbnails[4320592] = new thumbnail(4320592,'53600','','D_T_2_0116_thumb.jpg',130, 87,1,'photo_4320592.html');
												thumbnails[4320593] = new thumbnail(4320593,'53600','','D_T_3_0366_thumb.jpg',130, 87,1,'photo_4320593.html');
												thumbnails[5978371] = new thumbnail(5978371,'235272','','C_4866_thumb.jpg',130, 195,1,'photo_5978371.html');
												thumbnails[762121] = new thumbnail(762121,'29157','singapore','Singapore (036)_thumb.jpg',130, 195,1,'photo_762121.html');
												thumbnails[1168770] = new thumbnail(1168770,'29538','','myst_thumb. 143.jpg',130, 68,1,'photo_1168770.html');
												thumbnails[5978622] = new thumbnail(5978622,'235272','','C_2437_thumb.jpg',130, 195,1,'photo_5978622.html');
												thumbnails[1644812] = new thumbnail(1644812,'29538','','SC_0051 3_thumb.jpg',130, 85,1,'photo_1644812.html');
												thumbnails[1568721] = new thumbnail(1568721,'29157','amsterdam','Ab_thumb. window (138).jpg',130, 196,1,'photo_1568721.html');
												thumbnails[2038202] = new thumbnail(2038202,'29538','','tantra28385_thumb.jpg',130, 87,1,'photo_2038202.html');
												thumbnails[4320375] = new thumbnail(4320375,'235272','','C_T_1_0064_thumb.jpg',130, 194,1,'photo_4320375.html');
												thumbnails[1568714] = new thumbnail(1568714,'29157','amsterdam','Ab_thumb. mirror (135).jpg',130, 197,1,'photo_1568714.html');
												thumbnails[2038194] = new thumbnail(2038194,'29538','','sally g2 (086)_thumb.jpg',130, 87,1,'photo_2038194.html');
												thumbnails[4320376] = new thumbnail(4320376,'235272','','C_T_2_0342_thumb.jpg',130, 194,1,'photo_4320376.html');
												thumbnails[8022146] = new thumbnail(8022146,'53600','','D._tango_0207_thumb.jpg',130, 87,1,'photo_8022146.html');
												thumbnails[2054175] = new thumbnail(2054175,'29157','','heraclea (063)_thumb.jpg',130, 90,1,'photo_2054175.html');
												thumbnails[3927800] = new thumbnail(3927800,'235272','','PR_016_thumb.jpg',130, 87,1,'photo_3927800.html');
												thumbnails[8013304] = new thumbnail(8013304,'29541','','P_3799_thumb.jpg',130, 89,1,'photo_8013304.html');
												thumbnails[455658] = new thumbnail(455658,'29157','','wall_thumb.jpg',130, 86,1,'photo_455658.html');
												thumbnails[1644784] = new thumbnail(1644784,'53600','','D._bw_0037_1_thumb.jpg',130, 195,1,'photo_1644784.html');
												thumbnails[8019133] = new thumbnail(8019133,'29541','','_MG_0160_thumb.JPG',130, 87,1,'photo_8019133.html');
												thumbnails[2163128] = new thumbnail(2163128,'29157','','Ab_thumb. 29th-019 (under).jpg',130, 86,1,'photo_2163128.html');
												thumbnails[8019134] = new thumbnail(8019134,'29541','','_MG_0306_thumb.JPG',130, 87,1,'photo_8019134.html');
												thumbnails[455652] = new thumbnail(455652,'29157','','leaf & boat (111)_thumb.jpg',130, 86,1,'photo_455652.html');
												thumbnails[1644788] = new thumbnail(1644788,'53600','','D123._bw_0397_thumb.jpg',130, 195,1,'photo_1644788.html');
												thumbnails[5210143] = new thumbnail(5210143,'235272','','C_0002_thumb.jpg',130, 87,1,'photo_5210143.html');
												thumbnails[8019142] = new thumbnail(8019142,'29541','','_MG_0286_thumb.JPG',130, 87,1,'photo_8019142.html');
												thumbnails[3927665] = new thumbnail(3927665,'235272','','GrPages_-_jeremy_pivock_thumb.jpg',130, 86,1,'photo_3927665.html');
												thumbnails[1644795] = new thumbnail(1644795,'53600','','D._Ali_1_0206_thumb.jpg',130, 195,1,'photo_1644795.html');
												thumbnails[3871119] = new thumbnail(3871119,'235272','','F-poster-2_thumb.jpg',130, 79,1,'photo_3871119.html');
												thumbnails[1644798] = new thumbnail(1644798,'53600','','D._Ali_4_0314_thumb.jpg',130, 195,1,'photo_1644798.html');
												thumbnails[4320426] = new thumbnail(4320426,'235272','','C_S_8_0212_thumb.JPG',130, 87,1,'photo_4320426.html');
												thumbnails[1644807] = new thumbnail(1644807,'53600','','D._Ali_3_0124_thumb.jpg',130, 195,1,'photo_1644807.html');
												thumbnails[5978432] = new thumbnail(5978432,'235272','','C_1107_thumb.jpg',130, 195,1,'photo_5978432.html');
												thumbnails[5978629] = new thumbnail(5978629,'235272','','C_1811_thumb.jpg',130, 195,1,'photo_5978629.html');
												thumbnails[3533186] = new thumbnail(3533186,'235272','','D_Guggi__Ismael_0441_thumb.jpg',130, 194,1,'photo_3533186.html');
												thumbnails[3168822] = new thumbnail(3168822,'53600','','D_thumb. (dwm0251).jpg',130, 194,1,'photo_3168822.html');
												thumbnails[6114204] = new thumbnail(6114204,'29157','','_MG_5001_thumb.jpg',130, 87,1,'photo_6114204.html');
												thumbnails[7382510] = new thumbnail(7382510,'29541','','alex9214_pp_thumb.JPG',130, 195,1,'photo_7382510.html');
												thumbnails[3168823] = new thumbnail(3168823,'53600','','D_thumb. (dwm0252).jpg',130, 194,1,'photo_3168823.html');
												thumbnails[3871042] = new thumbnail(3871042,'235272','','album_cover_1_506_thumb.jpg',130, 130,1,'photo_3871042.html');
												thumbnails[6114208] = new thumbnail(6114208,'29157','','A_0045_thumb.jpg',130, 87,1,'photo_6114208.html');
												thumbnails[7382513] = new thumbnail(7382513,'29541','','beth5203_thumb.jpg',130, 195,1,'photo_7382513.html');
												thumbnails[2054181] = new thumbnail(2054181,'29157','','singapore (084)_thumb.jpg',130, 87,1,'photo_2054181.html');
												thumbnails[3533155] = new thumbnail(3533155,'53600','','D_Guggi__Ismael_476_thumb.jpg',130, 194,1,'photo_3533155.html');
												thumbnails[6051059] = new thumbnail(6051059,'29541','','P_freyja3_thumb.jpg',130, 194,1,'photo_6051059.html');
												thumbnails[7382515] = new thumbnail(7382515,'29541','','coen6292_thumb.jpg',130, 195,1,'photo_7382515.html');
												thumbnails[8021921] = new thumbnail(8021921,'235272','','c-a-jon_hawkins_thumb.jpg',130, 130,1,'photo_8021921.html');
												thumbnails[3871037] = new thumbnail(3871037,'235272','','the_goodbye_vibe_thumb.jpg',130, 119,1,'photo_3871037.html');
												thumbnails[7382593] = new thumbnail(7382593,'29157','','lisboa_6983_thumb.jpg',130, 87,1,'photo_7382593.html');
												thumbnails[8031241] = new thumbnail(8031241,'235272','','c-p-scorched-alt2_thumb.jpg',130, 209,1,'photo_8031241.html');
												thumbnails[6000149] = new thumbnail(6000149,'235272','','1___sashacd_thumb.jpg',130, 194,1,'photo_6000149.html');
												thumbnails[6000150] = new thumbnail(6000150,'235272','','2___sashacd_thumb.jpg',130, 194,1,'photo_6000150.html');
												thumbnails[8013377] = new thumbnail(8013377,'235272','','c-b-6sashacd_thumb.jpg',130, 195,1,'photo_8013377.html');
												thumbnails[3871016] = new thumbnail(3871016,'235272','','DWM_-_POSTER_thumb.jpg',130, 184,1,'photo_3871016.html');
												thumbnails[1668422] = new thumbnail(1668422,'29541','','rachel_0033_thumb.jpg',130, 195,1,'photo_1668422.html');
												thumbnails[2054191] = new thumbnail(2054191,'29157','','singapore (091)_thumb.jpg',130, 194,1,'photo_2054191.html');
												thumbnails[2054202] = new thumbnail(2054202,'29157','','singapore (143)_thumb.jpg',130, 194,1,'photo_2054202.html');
												thumbnails[3921931] = new thumbnail(3921931,'29541','','DSC_0265_thumb.jpg',130, 194,1,'photo_3921931.html');
												thumbnails[2054207] = new thumbnail(2054207,'29157','','singapore (154)_thumb.jpg',130, 194,1,'photo_2054207.html');
												thumbnails[3562504] = new thumbnail(3562504,'29541','','P_Johanne_M_524_thumb.jpg',130, 194,1,'photo_3562504.html');
												thumbnails[3921944] = new thumbnail(3921944,'29541','','DSC_0798_thumb.jpg',130, 194,1,'photo_3921944.html');
												thumbnails[4321304] = new thumbnail(4321304,'29541','','P_7_0308_thumb.jpg',130, 194,1,'photo_4321304.html');
												thumbnails[7382590] = new thumbnail(7382590,'29157','lisboa','lisboa_6962_thumb.jpg',130, 195,1,'photo_7382590.html');
												thumbnails[4321300] = new thumbnail(4321300,'29541','','P_6_0076_thumb.jpg',130, 194,1,'photo_4321300.html');
												thumbnails[589125] = new thumbnail(589125,'29541','','tara (092)_thumb.jpg',130, 195,1,'photo_589125.html');
												thumbnails[7382579] = new thumbnail(7382579,'29157','','emma2056_thumb.jpg',130, 195,1,'photo_7382579.html');
												thumbnails[359349] = new thumbnail(359349,'29541','','helen-1_thumb.jpg',130, 195,1,'photo_359349.html');
												thumbnails[6114214] = new thumbnail(6114214,'29157','','A_0222_thumb.jpg',130, 195,1,'photo_6114214.html');
												thumbnails[1568642] = new thumbnail(1568642,'29157','','Ab_thumb. door (13).jpg',130, 190,1,'photo_1568642.html');
												thumbnails[1568717] = new thumbnail(1568717,'29157','','Ab_thumb. window (243).jpg',130, 196,1,'photo_1568717.html');
												thumbnails[360771] = new thumbnail(360771,'29541','','ray-and-charlie_thumb.jpg',130, 86,1,'photo_360771.html');
												thumbnails[5978448] = new thumbnail(5978448,'235272','','C_2924_thumb.jpg',130, 87,1,'photo_5978448.html');
												thumbnails[359355] = new thumbnail(359355,'29541','','talia (84)_thumb.jpg',130, 86,1,'photo_359355.html');
												thumbnails[2163134] = new thumbnail(2163134,'29157','','Ab_thumb. sunset wall (32).jpg',130, 86,1,'photo_2163134.html');
												thumbnails[5978454] = new thumbnail(5978454,'235272','','C_3781_thumb.jpg',130, 87,1,'photo_5978454.html');
												thumbnails[2163136] = new thumbnail(2163136,'29157','','Ab_thumb. sunset wall (21).jpg',130, 85,1,'photo_2163136.html');
												thumbnails[5210044] = new thumbnail(5210044,'29541','','P_0346_thumb.jpg',130, 87,1,'photo_5210044.html');
												thumbnails[5978459] = new thumbnail(5978459,'235272','','C_3651_thumb.jpg',130, 87,1,'photo_5978459.html');
												thumbnails[5978478] = new thumbnail(5978478,'235272','','C_3410_thumb.jpg',130, 87,1,'photo_5978478.html');
												thumbnails[6051054] = new thumbnail(6051054,'29541','','P_Conny_0610_thumb.jpg',130, 87,1,'photo_6051054.html');
												thumbnails[3533199] = new thumbnail(3533199,'53600','','D_1_Greg_0036_thumb.jpg',130, 87,1,'photo_3533199.html');
												thumbnails[3533201] = new thumbnail(3533201,'53600','','D_2_Greg_0029_thumb.jpg',130, 87,1,'photo_3533201.html');
												thumbnails[3533202] = new thumbnail(3533202,'53600','','D_3_Greg_0030_thumb.jpg',130, 87,1,'photo_3533202.html');
												thumbnails[3533203] = new thumbnail(3533203,'53600','','D_4_Greg_0260_thumb.jpg',130, 87,1,'photo_3533203.html');
												thumbnails[5209854] = new thumbnail(5209854,'29541','','P_0285_thumb.jpg',130, 194,1,'photo_5209854.html');
												thumbnails[4321295] = new thumbnail(4321295,'29541','','P_5_0087_thumb.jpg',130, 194,1,'photo_4321295.html');
												thumbnails[6051068] = new thumbnail(6051068,'29541','','P_peter_thumb.jpg',130, 195,1,'photo_6051068.html');
												thumbnails[5209872] = new thumbnail(5209872,'29541','','P_0734_thumb.jpg',130, 194,1,'photo_5209872.html');
												thumbnails[3921930] = new thumbnail(3921930,'29541','','_0343_thumb.jpg',130, 87,1,'photo_3921930.html');
												thumbnails[5487250] = new thumbnail(5487250,'235272','','com_-_EE_0503_thumb.jpg',130, 289,1,'photo_5487250.html');
												thumbnails[3882717] = new thumbnail(3882717,'29541','','_0701_thumb.jpg',130, 87,1,'photo_3882717.html');
												thumbnails[3921967] = new thumbnail(3921967,'29541','','_0079_thumb.jpg',130, 87,1,'photo_3921967.html');
												thumbnails[1569369] = new thumbnail(1569369,'29541','','P_thumb. francoise (94).jpg',130, 86,1,'photo_1569369.html');
												thumbnails[3928063] = new thumbnail(3928063,'235272','','F_0114_thumb.jpg',130, 202,1,'photo_3928063.html');
												thumbnails[1644938] = new thumbnail(1644938,'235272','','M._0218_thumb.jpg',130, 202,1,'photo_1644938.html');
												thumbnails[4320542] = new thumbnail(4320542,'235272','','C__8_0566_thumb.jpg',130, 202,1,'photo_4320542.html');
												thumbnails[5210315] = new thumbnail(5210315,'235272','','C_0038_thumb.jpg',130, 194,1,'photo_5210315.html');
												thumbnails[5210321] = new thumbnail(5210321,'235272','','P_0411_thumb.jpg',130, 194,1,'photo_5210321.html');
												thumbnails[3871041] = new thumbnail(3871041,'235272','','DSC_02061_thumb.jpg',130, 194,1,'photo_3871041.html');
												thumbnails[3871045] = new thumbnail(3871045,'235272','','SC_0095_thumb.jpg',130, 194,1,'photo_3871045.html');
												thumbnails[2794018] = new thumbnail(2794018,'29541','','P_thumb. Gabriela 0214.jpg',130, 194,1,'photo_2794018.html');
												thumbnails[2163116] = new thumbnail(2163116,'29541','','P_thumb. Becky (301).jpg',130, 194,1,'photo_2163116.html');
												thumbnails[1569319] = new thumbnail(1569319,'29541','','P_thumb. alex (320).jpg',130, 196,1,'photo_1569319.html');
												thumbnails[2163110] = new thumbnail(2163110,'29541','','P_thumb. Jennifer (141).jpg',130, 195,1,'photo_2163110.html');
												thumbnails[3882730] = new thumbnail(3882730,'29541','','_0396_thumb.jpg',130, 87,1,'photo_3882730.html');
												thumbnails[7382523] = new thumbnail(7382523,'29541','','coen6485_thumb.jpg',130, 87,1,'photo_7382523.html');
												thumbnails[5210063] = new thumbnail(5210063,'29541','','P_0435_BW_thumb.jpg',130, 87,1,'photo_5210063.html');
												thumbnails[5210096] = new thumbnail(5210096,'29541','','P_0685_thumb.jpg',130, 87,1,'photo_5210096.html');
												thumbnails[4321240] = new thumbnail(4321240,'29541','','P_1_0337_thumb.jpg',130, 87,1,'photo_4321240.html');
												thumbnails[3882711] = new thumbnail(3882711,'29541','','_0401_thumb.jpg',130, 87,1,'photo_3882711.html');
												thumbnails[4321276] = new thumbnail(4321276,'29541','','P_3_0368_thumb.jpg',130, 87,1,'photo_4321276.html');
												thumbnails[4321282] = new thumbnail(4321282,'29541','','P_4_0321_thumb.jpg',130, 87,1,'photo_4321282.html');
												thumbnails[1644840] = new thumbnail(1644840,'29541','','F_0334_thumb.jpg',130, 195,1,'photo_1644840.html');
												thumbnails[3871039] = new thumbnail(3871039,'235272','','SC_0247_thumb.jpg',130, 194,1,'photo_3871039.html');
												thumbnails[4320534] = new thumbnail(4320534,'235272','','C__1_0287_thumb.jpg',130, 87,1,'photo_4320534.html');
												thumbnails[3921923] = new thumbnail(3921923,'29541','','_0300_thumb.jpg',130, 194,1,'photo_3921923.html');
												thumbnails[1646053] = new thumbnail(1646053,'29541','','M_0005_thumb.jpg',130, 86,1,'photo_1646053.html');
												thumbnails[8018961] = new thumbnail(8018961,'29541','','_1156_thumb.JPG',130, 84,1,'photo_8018961.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[29541] = new gallery(29541,'8019142,8019134,8019133,8018965,8018964,8018962,8018961,8013304,7382523,7382515,7382513,7382510,6051068,6051059,6051054,5210096,5210063,5210044,5209872,5209854,4321304,4321300,4321295,4321282,4321276,4321240,3921967,3921944,3921940,3921931,3921930,3921923,3882730,3882717,3882711,3562504,2794018,2163116,2163110,1668422,1646053,1644840,1569369,1569319,589125,360771,359355,359349','people','gallery',[8018964,8018965,8018962,3921940,8013304,8019133,8019134,8019142,7382510,7382513,6051059,7382515,1668422,3921931,3562504,3921944,4321304,4321300,589125,359349,360771,359355,5210044,6051054,5209854,4321295,6051068,5209872,3921930,3882717,3921967,1569369,2794018,2163116,1569319,2163110,3882730,7382523,5210063,5210096,4321240,3882711,4321276,4321282,1644840,3921923,1646053,8018961],0, 0, '', 'gallery_29541.html',0,0);
				  					galleries[235272] = new gallery(235272,'8031241,8021921,8019122,8019081,8019080,8019078,8013377,8013302,8013296,8013295,8013290,6000150,6000149,5978629,5978622,5978478,5978459,5978454,5978432,5978371,5487250,5210321,5210315,5210143,4320542,4320534,4320426,4320376,4320375,3928063,3927800,3927665,3871119,3871045,3871042,3871041,3871039,3871037,3871016,3533186,1644938','commercial','gallery',[8019078,8019080,8019122,8019081,8013290,8013295,8013296,8013302,5978371,5978622,4320375,4320376,3927800,5210143,3927665,3871119,4320426,5978432,5978629,3533186,3871042,8021921,3871037,8031241,6000149,6000150,8013377,3871016,5978448,5978454,5978459,5978478,5487250,3928063,1644938,4320542,5210315,5210321,3871041,3871045,3871039,4320534],0, 0, '', 'gallery_235272.html',0,0);
				  					galleries[53600] = new gallery(53600,'8022146,8022096,4320594,4320593,4320592,4320589,3533203,3533202,3533201,3533199,3533155,3533146,3168823,3168822,1644807,1644798,1644795,1644788,1644784,698214','dance','gallery',[3533146,4320594,4320589,8022096,698214,4320592,4320593,8022146,1644784,1644788,1644795,1644798,1644807,3168822,3168823,3533155,3533199,3533201,3533202,3533203],0, 0, '', 'gallery_53600.html',0,0);
				  					galleries[29538] = new gallery(29538,'5421205,5421193,4320315,3882791,2793985,2054169,2038202,2038194,1645019,1644812,1569188,1168770','mysteries','gallery',[3882791,2793985,2054169,1569188,4320315,1645019,5421205,5421193,1168770,1644812,2038202,2038194],0, 0, '', 'gallery_29538.html',0,0);
				  					galleries[29157] = new gallery(29157,'7382597,7382593,7382590,7382579,6114214,6114208,6114204,2163136,2163134,2163128,2054207,2054202,2054191,2054188,2054181,2054175,2054173,1568734,1568733,1568732,1568721,1568717,1568714,1568642,853126,762121,455658,455652,455647,361004','abstract','gallery',[361004,1568734,853126,2054173,1568732,7382597,455647,1568733,2054188,762121,1568721,1568714,2054175,455658,2163128,455652,6114204,6114208,2054181,7382593,2054191,2054202,2054207,7382590,7382579,6114214,1568642,1568717,2163134,2163136],0, 0, '', 'gallery_29157.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '8031241,8022146,8022096,8021921,8019142,8019134,8019133,8019122,8019081,8019080,8019078,8018965,8018964,8018962,8018961,8013377,8013304,8013302,8013296,8013295,8013290,7382597,7382593,7382590,7382579,7382523,7382515,7382513,7382510,6114214,6114208,6114204,6051068,6051059,6051054,6000150,6000149,5978629,5978622,5978478,5978459,5978454,5978432,5978371,5487250,5421205,5421193,5210321,5210315,5210143,5210096,5210063,5210044,5209872,5209854,4321304,4321300,4321295,4321282,4321276,4321240,4320594,4320593,4320592,4320589,4320542,4320534,4320426,4320376,4320375,4320315,3928063,3927800,3927665,3921967,3921944,3921940,3921931,3921930,3921923,3882791,3882730,3882717,3882711,3871119,3871045,3871042,3871041,3871039,3871037,3871016,3562504,3533203,3533202,3533201,3533199,3533186,3533155,3533146,3168823,3168822,2794018,2793985,2163136,2163134,2163128,2163116,2163110,2054207,2054202,2054191,2054188,2054181,2054175,2054173,2054169,2038202,2038194,1668422,1646053,1645019,1644938,1644840,1644812,1644807,1644798,1644795,1644788,1644784,1569369,1569319,1569188,1568734,1568733,1568732,1568721,1568717,1568714,1568642,1168770,853126,762121,698214,589125,455658,455652,455647,361004,360771,359355,359349';
imageSets[2] = '8031241,8022146,8022096,8021921,8019142,8019134,8019133,8019122,8019081,8019080,8019078,8018965,8018964,8018962,8018961,8013377,8013304,8013302,8013296,8013295,8013290,7382597,7382593,7382590,7382579,7382523,7382515,7382513,7382510,6114214,6114208,6114204,6051068,6051059,6051054,6000150,6000149,5978629,5978622,5978478,5978459,5978454,5978432,5978371,5487250,5421205,5421193,5210321,5210315,5210143,5210096,5210063,5210044,5209872,5209854,4321304,4321300,4321295,4321282,4321276,4321240,4320594,4320593,4320592,4320589,4320542,4320534,4320426,4320376,4320375,4320315,3928063,3927800,3927665,3921967,3921944,3921940,3921931,3921930,3921923,3882791,3882730,3882717,3882711,3871119,3871045,3871042,3871041,3871039,3871037,3871016,3562504,3533203,3533202,3533201,3533199,3533186,3533155,3533146,3168823,3168822,2794018,2793985,2163136,2163134,2163128,2163116,2163110,2054207,2054202,2054191,2054188,2054181,2054175,2054173,2054169,2038202,2038194,1668422,1646053,1645019,1644938,1644840,1644812,1644807,1644798,1644795,1644788,1644784,1569369,1569319,1569188,1568734,1568733,1568732,1568721,1568717,1568714,1568642,1168770,853126,762121,698214,589125,455658,455652,455647,361004,360771,359355,359349';
imageSets[3] = '8031241,8022146,8022096,8021921,8019142,8019134,8019133,8019122,8019081,8019080,8019078,8018965,8018964,8018962,8018961,8013377,8013304,8013302,8013296,8013295,8013290,7382597,7382593,7382590,7382579,7382523,7382515,7382513,7382510,6114214,6114208,6114204,6051068,6051059,6051054,6000150,6000149,5978629,5978622,5978478,5978459,5978454,5978432,5978371,5487250,5421205,5421193,5210321,5210315,5210143,5210096,5210063,5210044,5209872,5209854,4321304,4321300,4321295,4321282,4321276,4321240,4320594,4320593,4320592,4320589,4320542,4320534,4320426,4320376,4320375,4320315,3928063,3927665,3921967,3921944,3921940,3921931,3921930,3921923,3882730,3882717,3882711,3871119,3871045,3871042,3871041,3871039,3871037,3871016,3562504,3533202,3533199,3533186,3533146,3168823,3168822,2794018,2163136,2163134,2163128,2163116,2163110,2054207,2054202,2054191,2054188,2054181,2054175,2054173,1668422,1646053,1645019,1644938,1644840,1644807,1644798,1644788,1644784,1569369,1569319,1568734,1568733,1568732,1568721,1568717,1568714,1568642,853126,698214,589125,455658,455652,361004,360771,359349';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/sashacd/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/sashacd/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/sashacd/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/sashacd/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/sashacd/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/sashacd/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/sashacd/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/sashacd/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/sashacd/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/sashacd/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/sashacd/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/sashacd/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/sashacd/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/sashacd/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/sashacd/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/sashacd/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/sashacd/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/sashacd/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/sashacd/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/sashacd/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/sashacd/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/sashacd/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 = 'sashacd - photography: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
	    var options = {};	    	      	      resizePhotoInfo(options);
        if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
  	      toggleAddToCartConfirm(backgrounds);
  	    } else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
  	      toggleAddToCartConfirm(photos);
  	    }
	    });
    }
        if (!op.speed) {      clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));      $('body').trigger('clikUpdate');    }        
    return html;			}
	else {
				
		window.location = 'photo_' + nextPhoto.id + '.html';
	}
		
}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array){
  if (typeof(array) !== 'object' || array == undefined) {
    array = photos;
  }
	if($('#paymentConfirm').length > 0){
		$('#paymentConfirm').hide();
		$('#paymentAddButton')
		.unbind()
		.click(function(){
						form = document.getElementById('paymentForm');
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm').text('Item added to cart').show();}
				else{
					$('#paymentConfirm').text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm').text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}
/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp = temp +  '<p id="imageDescription">' + this.description + '</p>';
	}
		if (this.photo_ref != '') {
		temp = temp + '<p class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</p>';
	}
		if (this.takendate != '') {
				
		temp = temp + '<p class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</p>';
	}
	
	if (this.location != '') {
				
		temp = temp + '<p class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</p>';
	}
	
	if (this.photographer != '') {
				
		temp = temp + '<p class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</p>';
	}
					
				if (temp != '') {
		temp = temp + '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp = temp + '<p>Order this print:</p>';
				temp = temp + '<p class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</p>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.payment_groups_id !== '') {
		temp = temp + '<p>Buy this print online:</p>';
				temp = temp + '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp = temp + '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
				
		temp = temp + getPaymentOptions(this.payment_groups_id);
		temp = temp + '</select>';
		temp = temp + '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
	else {
				
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
			temp = temp + '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
		
	if(img){
	      if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
        imageID = imageID[1];
      } else {
			  imageID = randomListVal(galleries[gallery_id].featured_images);
      }
							
			if (imageID != 0) {
				img.src = thumbnails[imageID].src;
				img.width = thumbnails[imageID].width;
				img.height = thumbnails[imageID].height;
				img.alt = galleries[gallery_id].title;
        if (updateLink) {
          $(img).parent().attr({            href: thumbnails[imageID].fnGalleryLink(gallery_id),            title: galleries[gallery_id].title          });
        }
							}
										}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp = temp + ' | ';
				}
				temp = temp + '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
			}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

