window.thumbnails = new Object();
												thumbnails[197121] = new thumbnail(197121,'','','38790001_thumb.jpg',130, 196,18,'							photo_197121.html');
												thumbnails[197122] = new thumbnail(197122,'','','38790004_thumb.jpg',130, 196,18,'							photo_197122.html');
												thumbnails[197124] = new thumbnail(197124,'','','38790017_thumb.jpg',130, 196,18,'							photo_197124.html');
												thumbnails[197125] = new thumbnail(197125,'','','38790020_thumb.jpg',130, 86,18,'							photo_197125.html');
												thumbnails[197127] = new thumbnail(197127,'','','39150023_thumb.jpg',130, 86,18,'							photo_197127.html');
												thumbnails[197130] = new thumbnail(197130,'','','39170006_thumb.jpg',130, 86,18,'							photo_197130.html');
												thumbnails[197131] = new thumbnail(197131,'','','39170007_thumb.jpg',130, 86,18,'							photo_197131.html');
												thumbnails[196131] = new thumbnail(196131,'17889','','21840008_thumb.jpg',130, 196,18,'							photo_196131.html');
												thumbnails[196135] = new thumbnail(196135,'17889','','21840011_thumb.jpg',130, 86,18,'							photo_196135.html');
												thumbnails[196140] = new thumbnail(196140,'17889','','21840012_thumb.jpg',130, 196,18,'							photo_196140.html');
												thumbnails[196145] = new thumbnail(196145,'17889','','21980028_thumb.jpg',130, 196,18,'							photo_196145.html');
												thumbnails[196173] = new thumbnail(196173,'17889','','21980001_thumb.jpg',130, 86,18,'							photo_196173.html');
												thumbnails[196180] = new thumbnail(196180,'17889','','21870004_thumb.jpg',130, 196,18,'							photo_196180.html');
												thumbnails[196495] = new thumbnail(196495,'17889','','21980015_thumb.jpg',130, 196,18,'							photo_196495.html');
												thumbnails[196517] = new thumbnail(196517,'7540','','25600017_thumb.jpg',130, 86,18,'							photo_196517.html');
												thumbnails[196524] = new thumbnail(196524,'7540','','25640014_thumb.jpg',130, 196,18,'							photo_196524.html');
												thumbnails[196525] = new thumbnail(196525,'7540','','25640020_thumb.jpg',130, 196,18,'							photo_196525.html');
												thumbnails[196528] = new thumbnail(196528,'7540','','25650035_thumb.jpg',130, 86,18,'							photo_196528.html');
												thumbnails[196530] = new thumbnail(196530,'7540','','30010011_thumb.jpg',130, 196,18,'							photo_196530.html');
												thumbnails[196534] = new thumbnail(196534,'7540','','30010015_thumb.jpg',130, 196,18,'							photo_196534.html');
												thumbnails[196537] = new thumbnail(196537,'7540','','30010027_thumb.jpg',130, 86,18,'							photo_196537.html');
												thumbnails[196539] = new thumbnail(196539,'7540','','30020009_thumb.jpg',130, 86,18,'							photo_196539.html');
												thumbnails[244904] = new thumbnail(244904,'22143','','img015_thumb.jpg',130, 202,18,'							photo_244904.html');
												thumbnails[244907] = new thumbnail(244907,'22143','','judy_5_thumb.jpg',130, 159,18,'							photo_244907.html');
												thumbnails[245562] = new thumbnail(245562,'22205','','img0181_thumb.jpg',130, 85,18,'							photo_245562.html');
												thumbnails[245563] = new thumbnail(245563,'22205','','img019_thumb.jpg',130, 198,18,'							photo_245563.html');
												thumbnails[245564] = new thumbnail(245564,'22205','Fun','img021_thumb.jpg',130, 86,18,'							photo_245564.html');
												thumbnails[245571] = new thumbnail(245571,'22205','','img023_thumb.jpg',130, 198,18,'							photo_245571.html');
												thumbnails[245573] = new thumbnail(245573,'22205','','img024_thumb.jpg',130, 198,18,'							photo_245573.html');
												thumbnails[245574] = new thumbnail(245574,'22205','','img025_thumb.jpg',130, 85,18,'							photo_245574.html');
												thumbnails[245575] = new thumbnail(245575,'22205','','img026_thumb.jpg',130, 196,18,'							photo_245575.html');
												thumbnails[245576] = new thumbnail(245576,'22205','','img027_thumb.jpg',130, 86,18,'							photo_245576.html');
												thumbnails[245577] = new thumbnail(245577,'22205','','img028_thumb.jpg',130, 197,18,'							photo_245577.html');
												thumbnails[245898] = new thumbnail(245898,'22205','','img0171_thumb.jpg',130, 197,18,'							photo_245898.html');
												thumbnails[245899] = new thumbnail(245899,'22205','','img020_thumb.jpg',130, 85,18,'							photo_245899.html');
												thumbnails[245902] = new thumbnail(245902,'22205','','img022_thumb.jpg',130, 85,18,'							photo_245902.html');
												thumbnails[245903] = new thumbnail(245903,'22143','','img029_thumb.jpg',130, 86,18,'							photo_245903.html');
												thumbnails[245905] = new thumbnail(245905,'22143','','img030_thumb.jpg',130, 86,18,'							photo_245905.html');
												thumbnails[245906] = new thumbnail(245906,'22143','','img031_thumb.jpg',130, 87,18,'							photo_245906.html');
												thumbnails[245907] = new thumbnail(245907,'22143','','img032_thumb.jpg',130, 86,18,'							photo_245907.html');
												thumbnails[245909] = new thumbnail(245909,'22143','','img033_thumb.jpg',130, 197,18,'							photo_245909.html');
												thumbnails[245910] = new thumbnail(245910,'22143','','img034_thumb.jpg',130, 196,18,'							photo_245910.html');
												thumbnails[245926] = new thumbnail(245926,'22143','','img0421_thumb.jpg',130, 86,18,'							photo_245926.html');
												thumbnails[245927] = new thumbnail(245927,'22143','','img0431_thumb.jpg',130, 197,18,'							photo_245927.html');
												thumbnails[245928] = new thumbnail(245928,'22143','','img0441_thumb.jpg',130, 197,18,'							photo_245928.html');
												thumbnails[245929] = new thumbnail(245929,'22143','','img0461_thumb.jpg',130, 196,18,'							photo_245929.html');
												thumbnails[260484] = new thumbnail(260484,'23312','','Copy (2) of img068_thumb.jpg',130, 197,18,'							photo_260484.html');
												thumbnails[264926] = new thumbnail(264926,'23312','','Copy (2) of img069_thumb.jpg',130, 197,18,'							photo_264926.html');
												thumbnails[264927] = new thumbnail(264927,'23312','','Copy (2) of img070_thumb.jpg',130, 197,18,'							photo_264927.html');
												thumbnails[264928] = new thumbnail(264928,'23312','','Copy (2) of img071_thumb.jpg',130, 196,18,'							photo_264928.html');
												thumbnails[264929] = new thumbnail(264929,'23312','','Copy (2) of img072_thumb.jpg',130, 197,18,'							photo_264929.html');
												thumbnails[264930] = new thumbnail(264930,'23312','','Copy (2) of img073_thumb.jpg',130, 195,18,'							photo_264930.html');
												thumbnails[264931] = new thumbnail(264931,'23312','','Copy (2) of img079_thumb.jpg',130, 198,18,'							photo_264931.html');
												thumbnails[264932] = new thumbnail(264932,'23312','','Copy (2) of img078_thumb.jpg',130, 198,18,'							photo_264932.html');
												thumbnails[264934] = new thumbnail(264934,'23312','','Copy (3) of img080_thumb.jpg',130, 197,18,'							photo_264934.html');
												thumbnails[264935] = new thumbnail(264935,'23312','','Copy (2) of img077_thumb.jpg',130, 197,18,'							photo_264935.html');
												thumbnails[264937] = new thumbnail(264937,'23312','','img051_thumb.jpg',130, 195,18,'							photo_264937.html');
												thumbnails[264939] = new thumbnail(264939,'23312','','img052_thumb.jpg',130, 196,18,'							photo_264939.html');
												thumbnails[264940] = new thumbnail(264940,'23312','','img053_thumb.jpg',130, 85,18,'							photo_264940.html');
												thumbnails[264941] = new thumbnail(264941,'23312','','img055_thumb.jpg',130, 88,18,'							photo_264941.html');
												thumbnails[264942] = new thumbnail(264942,'23312','','Copy (8) of img075_thumb.jpg',130, 85,18,'							photo_264942.html');
												thumbnails[269939] = new thumbnail(269939,'24022','','img120_thumb.jpg',130, 196,18,'							photo_269939.html');
												thumbnails[274552] = new thumbnail(274552,'24022','','img107_thumb.jpg',130, 197,18,'							photo_274552.html');
												thumbnails[274561] = new thumbnail(274561,'24022','','img108_thumb.jpg',130, 199,18,'							photo_274561.html');
												thumbnails[274563] = new thumbnail(274563,'24022','','img109_thumb.jpg',130, 195,18,'							photo_274563.html');
												thumbnails[274565] = new thumbnail(274565,'24022','','img110_thumb.jpg',130, 207,18,'							photo_274565.html');
												thumbnails[274567] = new thumbnail(274567,'24022','','img111_thumb.jpg',130, 197,18,'							photo_274567.html');
												thumbnails[274568] = new thumbnail(274568,'24022','','img112_thumb.jpg',130, 194,18,'							photo_274568.html');
												thumbnails[274571] = new thumbnail(274571,'24022','','img113_thumb.jpg',130, 197,18,'							photo_274571.html');
												thumbnails[274573] = new thumbnail(274573,'24022','','img114_thumb.jpg',130, 198,18,'							photo_274573.html');
												thumbnails[274574] = new thumbnail(274574,'24022','','img115_thumb.jpg',130, 85,18,'							photo_274574.html');
												thumbnails[274576] = new thumbnail(274576,'24022','','img116_thumb.jpg',130, 198,18,'							photo_274576.html');
												thumbnails[274578] = new thumbnail(274578,'24022','','img117_thumb.jpg',130, 85,18,'							photo_274578.html');
												thumbnails[274579] = new thumbnail(274579,'24022','','img118_thumb.jpg',130, 86,18,'							photo_274579.html');
												thumbnails[274583] = new thumbnail(274583,'24022','','img119_thumb.jpg',130, 196,18,'							photo_274583.html');
												thumbnails[274585] = new thumbnail(274585,'24022','','img1201_thumb.jpg',130, 196,18,'							photo_274585.html');
												thumbnails[274596] = new thumbnail(274596,'24375','','img082_thumb.jpg',130, 199,18,'							photo_274596.html');
												thumbnails[274597] = new thumbnail(274597,'24375','','img083_thumb.jpg',130, 86,18,'							photo_274597.html');
												thumbnails[274599] = new thumbnail(274599,'24375','','img084_thumb.jpg',130, 198,18,'							photo_274599.html');
												thumbnails[274602] = new thumbnail(274602,'24375','','img085_thumb.jpg',130, 200,18,'							photo_274602.html');
												thumbnails[274606] = new thumbnail(274606,'24375','','img086_thumb.jpg',130, 198,18,'							photo_274606.html');
												thumbnails[274610] = new thumbnail(274610,'24375','','img087_thumb.jpg',130, 197,18,'							photo_274610.html');
												thumbnails[274612] = new thumbnail(274612,'24375','','img088_thumb.jpg',130, 87,18,'							photo_274612.html');
												thumbnails[274613] = new thumbnail(274613,'24375','','img089_thumb.jpg',130, 85,18,'							photo_274613.html');
												thumbnails[274615] = new thumbnail(274615,'24375','','img090_thumb.jpg',130, 86,18,'							photo_274615.html');
												thumbnails[274620] = new thumbnail(274620,'24375','','img091_thumb.jpg',130, 86,18,'							photo_274620.html');
												thumbnails[274622] = new thumbnail(274622,'24375','','img092_thumb.jpg',130, 86,18,'							photo_274622.html');
												thumbnails[274624] = new thumbnail(274624,'24375','','img093_thumb.jpg',130, 193,18,'							photo_274624.html');
												thumbnails[274631] = new thumbnail(274631,'22143','','img001_thumb.jpg',130, 88,18,'							photo_274631.html');
												thumbnails[274633] = new thumbnail(274633,'22143','','img002_thumb.jpg',130, 196,18,'							photo_274633.html');
												thumbnails[727690] = new thumbnail(727690,'29981','','versalite_thumb.jpg',130, 98,18,'							photo_727690.html');
												thumbnails[727694] = new thumbnail(727694,'29981','','desS-pic2_thumb.jpg',130, 100,18,'							photo_727694.html');
												thumbnails[727696] = new thumbnail(727696,'29981','','desV-pic1_thumb.jpg',130, 110,18,'							photo_727696.html');
												thumbnails[727698] = new thumbnail(727698,'29981','','desV-pic3_thumb.jpg',130, 105,18,'							photo_727698.html');
												thumbnails[727699] = new thumbnail(727699,'29981','','des-pic3_thumb.jpg',130, 131,18,'							photo_727699.html');
												thumbnails[727700] = new thumbnail(727700,'29981','','max-pic5_thumb.jpg',130, 101,18,'							photo_727700.html');
												thumbnails[727703] = new thumbnail(727703,'29981','','max-pic6_thumb.jpg',130, 84,18,'							photo_727703.html');
												thumbnails[830413] = new thumbnail(830413,'22143','','img007_thumb.jpg',130, 195,18,'							photo_830413.html');
												thumbnails[830414] = new thumbnail(830414,'22143','','img009_thumb.jpg',130, 86,18,'							photo_830414.html');
												thumbnails[830416] = new thumbnail(830416,'22143','','img0161_thumb.jpg',130, 87,18,'							photo_830416.html');
												thumbnails[847007] = new thumbnail(847007,'22143','','img0142_thumb.jpg',130, 86,18,'							photo_847007.html');
												thumbnails[1043460] = new thumbnail(1043460,'77626','','photo_albums_thumb.jpg',130, 68,18,'							photo_1043460.html');
												thumbnails[1043461] = new thumbnail(1043461,'77626','','order-cards_thumb.jpg',130, 67,18,'							photo_1043461.html');
												thumbnails[1043466] = new thumbnail(1043466,'77626','','preview_books_thumb.jpg',130, 65,18,'							photo_1043466.html');
												thumbnails[1043468] = new thumbnail(1043468,'77626','','coffee_table_albums_thumb.jpg',130, 62,18,'							photo_1043468.html');
												thumbnails[1164921] = new thumbnail(1164921,'84216','','74970014_thumb.JPG',130, 86,18,'							photo_1164921.html');
												thumbnails[1164934] = new thumbnail(1164934,'84216','','749700091_thumb.JPG',130, 86,18,'							photo_1164934.html');
												thumbnails[1164935] = new thumbnail(1164935,'84216','','74970001_thumb.JPG',130, 196,18,'							photo_1164935.html');
												thumbnails[1164954] = new thumbnail(1164954,'84216','','74970008_thumb.JPG',130, 196,18,'							photo_1164954.html');
												thumbnails[1164956] = new thumbnail(1164956,'84216','','74980008_thumb.JPG',130, 196,18,'							photo_1164956.html');
												thumbnails[1197952] = new thumbnail(1197952,'22143','','img0332_thumb.jpg',130, 85,18,'							photo_1197952.html');
												thumbnails[1203132] = new thumbnail(1203132,'84216','','749700061_thumb.JPG',130, 196,18,'							photo_1203132.html');
												thumbnails[1203167] = new thumbnail(1203167,'22143','','wash bag_thumb.jpg',130, 84,18,'							photo_1203167.html');
												thumbnails[1446346] = new thumbnail(1446346,'100021','','11660001_thumb.JPG',130, 196,18,'							photo_1446346.html');
												thumbnails[1446347] = new thumbnail(1446347,'100021','','94300032_thumb.JPG',130, 86,18,'							photo_1446347.html');
												thumbnails[1446349] = new thumbnail(1446349,'100021','','94300028_thumb.JPG',130, 86,18,'							photo_1446349.html');
												thumbnails[1446350] = new thumbnail(1446350,'100021','','94310007_thumb.JPG',130, 196,18,'							photo_1446350.html');
												thumbnails[1446352] = new thumbnail(1446352,'100021','','94320034_thumb.JPG',130, 86,18,'							photo_1446352.html');
												thumbnails[1446358] = new thumbnail(1446358,'100021','','94350026_thumb.JPG',130, 86,18,'							photo_1446358.html');
												thumbnails[1446363] = new thumbnail(1446363,'100021','','94350010_thumb.JPG',130, 86,18,'							photo_1446363.html');
												thumbnails[1446371] = new thumbnail(1446371,'100021','','94320015_thumb.JPG',130, 86,18,'							photo_1446371.html');
												thumbnails[1446375] = new thumbnail(1446375,'100021','','94320021_thumb.JPG',130, 196,18,'							photo_1446375.html');
												thumbnails[1449976] = new thumbnail(1449976,'100021','','88380034_thumb.jpg',130, 86,18,'							photo_1449976.html');
												thumbnails[1449977] = new thumbnail(1449977,'100021','','88390009_thumb.jpg',130, 196,18,'							photo_1449977.html');
												thumbnails[1538204] = new thumbnail(1538204,'29981','','DSCF0920_thumb.JPG',130, 98,18,'							photo_1538204.html');
												thumbnails[1601546] = new thumbnail(1601546,'29981','','DSCF0931_thumb.JPG',130, 98,18,'							photo_1601546.html');
												thumbnails[1601551] = new thumbnail(1601551,'29981','','DSCF0933_thumb.JPG',130, 98,18,'							photo_1601551.html');
												thumbnails[1672649] = new thumbnail(1672649,'112843','Boudoir for You Only...<br>\r\n<br>\r\nA Professional female Photographer, Introducing F.Y.O (for you only) <br>\r\n<br>\r\nF.Y.O Portraits are sexy tasteful images, Creating a Collection of Personal Portraits to Treasure for a lifetime.<br>\r\n<br>\r\n','sharon turner 07701_thumb.jpg',130, 195,18,'							photo_1672649.html');
												thumbnails[1672658] = new thumbnail(1672658,'112843','','sharon turner 10002_thumb.jpg',130, 195,18,'							photo_1672658.html');
												thumbnails[1672689] = new thumbnail(1672689,'112843','','sharon turner 13503_thumb.jpg',130, 195,18,'							photo_1672689.html');
												thumbnails[1672730] = new thumbnail(1672730,'112843','','sharon turner 19704_thumb.jpg',130, 195,18,'							photo_1672730.html');
												thumbnails[1691216] = new thumbnail(1691216,'112846','','lucy&lee 024 01_thumb.jpg',130, 87,18,'							photo_1691216.html');
												thumbnails[1691236] = new thumbnail(1691236,'112846','','lucy&lee 033 02_thumb.jpg',130, 195,18,'							photo_1691236.html');
												thumbnails[1691238] = new thumbnail(1691238,'112846','','lucy&lee 057 03_thumb.jpg',130, 195,18,'							photo_1691238.html');
												thumbnails[1691240] = new thumbnail(1691240,'112846','','lucy&lee 114 04_thumb.jpg',130, 87,18,'							photo_1691240.html');
												thumbnails[1914140] = new thumbnail(1914140,'118707','Parents Books','01_Reportage[1]_thumb.jpg',130, 62,18,'							photo_1914140.html');
												thumbnails[1914141] = new thumbnail(1914141,'118707','','5layout[1]_thumb.jpg',130, 96,18,'							photo_1914141.html');
												thumbnails[1914144] = new thumbnail(1914144,'118707','','16_Reportage[1]_thumb.jpg',130, 62,18,'							photo_1914144.html');
												thumbnails[1914148] = new thumbnail(1914148,'118707','','20x30[1]_thumb.jpg',130, 118,18,'							photo_1914148.html');
												thumbnails[1914149] = new thumbnail(1914149,'118707','','Set_Piccola[1]_thumb.jpg',130, 119,18,'							photo_1914149.html');
												thumbnails[244923] = new thumbnail(244923,'22143','','img0131_thumb.jpg',130, 86,18,'							photo_244923.html');
												thumbnails[260479] = new thumbnail(260479,'23312','stacy & stephen','Copy (2) of img062_thumb.jpg',130, 197,18,'							photo_260479.html');
												thumbnails[244924] = new thumbnail(244924,'22143','','img0141_thumb.jpg',130, 198,18,'							photo_244924.html');
												thumbnails[260480] = new thumbnail(260480,'23312','','Copy (2) of img064_thumb.jpg',130, 85,18,'							photo_260480.html');
												thumbnails[260481] = new thumbnail(260481,'23312','','Copy (2) of img066_thumb.jpg',130, 197,18,'							photo_260481.html');
												thumbnails[260482] = new thumbnail(260482,'23312','','Copy (2) of img067_thumb.jpg',130, 199,18,'							photo_260482.html');
												thumbnails[244926] = new thumbnail(244926,'22143','','img0381_thumb.jpg',130, 197,18,'							photo_244926.html');
												thumbnails[244927] = new thumbnail(244927,'22143','','img0391_thumb.jpg',130, 85,18,'							photo_244927.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[7540] = new gallery(7540,'196539,196537,196534,196530,196528,196525,196524,196517','Weddings Gallery 1','gallery',[196517,196524,196525,196528,196530,196534,196537,196539],0, 0, '', '																																																																																																							gallery_7540.html',0,0);
				  					galleries[17889] = new gallery(17889,'196495,196180,196173,196145,196140,196135,196131',' Wedding Gallery 2','gallery',[196131,196135,196140,196145,196173,196180,196495],0, 0, '', '																																																																																																							gallery_17889.html',0,0);
				  					galleries[112846] = new gallery(112846,'1691240,1691238,1691236,1691216','wedding gallery 3','gallery',[1691216,1691236,1691238,1691240],0, 0, '', '																																																																																																							gallery_112846.html',0,0);
				  					galleries[391529] = new gallery(391529,'','wedding gallery 4','gallery',[],0, 0, '', '																																																																																																							gallery_391529.html',0,0);
				  					galleries[22205] = new gallery(22205,'245902,245899,245898,245577,245576,245575,245574,245573,245571,245564','Wedding Gallery 5','gallery',[245562,245563,245564,245571,245573,245574,245575,245576,245577,245898,245899,245902],0, 0, '', '																																																																																																							gallery_22205.html',0,0);
				  					galleries[23312] = new gallery(23312,'264942,264941,264940,264939,264937,264935,264934,264932,264931,264930','Weddings Gallery 6','gallery',[260484,264926,264927,264928,264929,264930,264931,264932,264934,264935,264937,264939,264940,264941,264942,260479,260480,260481,260482],0, 0, '', '																																																																																																							gallery_23312.html',0,0);
				  					galleries[24022] = new gallery(24022,'274585,274583,274579,274578,274576,274574,274573,274571,274568,274567','Weddings Gallery 7','gallery',[269939,274552,274561,274563,274565,274567,274568,274571,274573,274574,274576,274578,274579,274583,274585],0, 0, '', '																																																																																																							gallery_24022.html',0,0);
				  					galleries[24375] = new gallery(24375,'274624,274622,274620,274615,274613,274612,274610,274606,274602,274599','Wedding Gallery 8','gallery',[274596,274597,274599,274602,274606,274610,274612,274613,274615,274620,274622,274624],0, 0, '', '																																																																																																							gallery_24375.html',0,0);
				  					galleries[22143] = new gallery(22143,'1203167,1197952,847007,830416,830414,830413,274633,274631,245929,245928','Weddings Gallery Misc 2','gallery',[244904,244907,245903,245905,245906,245907,245909,245910,245926,245927,245928,245929,274631,274633,830413,830414,830416,847007,1197952,1203167,244923,244924,244926,244927],0, 0, '', '																																																																																																							gallery_22143.html',0,0);
				  					galleries[84216] = new gallery(84216,'1203132,1164956,1164954,1164935,1164934,1164921','Wedding Gallery 9','gallery',[1164921,1164934,1164935,1164954,1164956,1203132],0, 0, '', '																																																																																																							gallery_84216.html',0,0);
				  					galleries[100021] = new gallery(100021,'1449977,1449976,1446375,1446371,1446363,1446358,1446352,1446350,1446349,1446347','Wedding Gallery Misc','gallery',[1446346,1446347,1446349,1446350,1446352,1446358,1446363,1446371,1446375,1449976,1449977],0, 0, '', '																																																																																																							gallery_100021.html',0,0);
				  					galleries[29981] = new gallery(29981,'1601551,1601546,1538204,727703,727700,727699,727698,727696,727694,727690','Albums','gallery',[727690,727694,727696,727698,727699,727700,727703,1538204,1601546,1601551],0, 0, '', '																																																																																																							gallery_29981.html',0,0);
				  					galleries[77626] = new gallery(77626,'1043468,1043466,1043461,1043460','Coffee table book','gallery',[1043460,1043461,1043466,1043468],0, 0, '', '																																																																																																							gallery_77626.html',0,0);
				  					galleries[118707] = new gallery(118707,'1914149,1914148,1914144,1914141,1914140','Graphistudio Story book style Albums','gallery',[1914140,1914141,1914144,1914148,1914149],0, 0, '', '																																																																																																							gallery_118707.html',0,0);
				  					galleries[112843] = new gallery(112843,'1672730,1672689,1672658,1672649','Boudior For You Only','gallery',[1672649,1672658,1672689,1672730],0, 0, '', '																																																																																																							gallery_112843.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '1691240,1691238,1691236,1691216,1446352,1164921,274620,264941,264937';
imageSets[3] = '1914149,1914148,1914144,1914141,1914140,1691240,1691238,1691236,1691216,1672730,1672689,1672658,1672649,1601551,1601546,1538204,1449977,1449976,1446375,1446371,1446363,1446358,1446352,1446350,1446349,1446347,1446346,1203167,1203132,1197952,1164956,1164954,1164935,1164934,1164921,1043468,1043466,1043461,1043460,847007,830416,830414,830413,727703,727700,727699,727698,727696,727694,727690';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/sparkes/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/sparkes/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/sparkes/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/sparkes/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://www.clikchurch.com/sparkes/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/sparkes/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/sparkes/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/sparkes/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/sparkes/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/sparkes/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/sparkes/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/sparkes/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/sparkes/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/sparkes/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/sparkes/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/sparkes/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/sparkes/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/sparkes/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/sparkes/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/sparkes/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/sparkes/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/sparkes/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));		}, 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 = 'Sharon Parkes 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));    }        
    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> 				&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 + '<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;
	}
}

			

