window.thumbnails = new Object();
												thumbnails[2464428] = new thumbnail(2464428,'','','196_thumb.jpg',130, 163,32,'							photo_2464428.html');
												thumbnails[2482148] = new thumbnail(2482148,'','','5091web_thumb.jpg',130, 86,32,'							photo_2482148.html');
												thumbnails[4780255] = new thumbnail(4780255,'273635','','025_thumb.jpg',130, 182,32,'							photo_4780255.html');
												thumbnails[4780257] = new thumbnail(4780257,'273635','','051_thumb.jpg',130, 182,32,'							photo_4780257.html');
												thumbnails[4780267] = new thumbnail(4780267,'273635','','040_thumb.jpg',130, 182,32,'							photo_4780267.html');
												thumbnails[4780268] = new thumbnail(4780268,'273635','','093_thumb.jpg',130, 182,32,'							photo_4780268.html');
												thumbnails[4780282] = new thumbnail(4780282,'273635','Claire & Aaron','360_thumb.jpg',130, 93,32,'							photo_4780282.html');
												thumbnails[4780377] = new thumbnail(4780377,'273635','','129_thumb.jpg',130, 182,32,'							photo_4780377.html');
												thumbnails[4780380] = new thumbnail(4780380,'273635','','181_thumb.jpg',130, 182,32,'							photo_4780380.html');
												thumbnails[4780382] = new thumbnail(4780382,'273635','','188_thumb.jpg',130, 93,32,'							photo_4780382.html');
												thumbnails[4780383] = new thumbnail(4780383,'273635','','246_thumb.jpg',130, 93,32,'							photo_4780383.html');
												thumbnails[4780390] = new thumbnail(4780390,'273635','','242_thumb.jpg',130, 182,32,'							photo_4780390.html');
												thumbnails[4780425] = new thumbnail(4780425,'273635','','329_thumb.jpg',130, 182,32,'							photo_4780425.html');
												thumbnails[4780431] = new thumbnail(4780431,'273635','','276_thumb.jpg',130, 182,32,'							photo_4780431.html');
												thumbnails[3520678] = new thumbnail(3520678,'215498','','0121_thumb.jpg',130, 98,32,'							photo_3520678.html');
												thumbnails[3520736] = new thumbnail(3520736,'215498','','169_thumb.jpg',130, 98,32,'							photo_3520736.html');
												thumbnails[3521640] = new thumbnail(3521640,'215498','Jason & Pam','244_thumb.jpg',130, 98,32,'							photo_3521640.html');
												thumbnails[3521696] = new thumbnail(3521696,'215498','','065_thumb.jpg',130, 98,32,'							photo_3521696.html');
												thumbnails[3522108] = new thumbnail(3522108,'215498','','0673_thumb.jpg',130, 98,32,'							photo_3522108.html');
												thumbnails[3522114] = new thumbnail(3522114,'215498','','0281_thumb.jpg',130, 182,32,'							photo_3522114.html');
												thumbnails[3522116] = new thumbnail(3522116,'215498','','107_thumb.jpg',130, 182,32,'							photo_3522116.html');
												thumbnails[3523560] = new thumbnail(3523560,'215498','','290_thumb.jpg',130, 98,32,'							photo_3523560.html');
												thumbnails[3524881] = new thumbnail(3524881,'215498','','524_thumb.jpg',130, 98,32,'							photo_3524881.html');
												thumbnails[3525039] = new thumbnail(3525039,'215498','','11_thumb.jpg',130, 98,32,'							photo_3525039.html');
												thumbnails[2464140] = new thumbnail(2464140,'158576','','124_thumb.jpg',130, 163,32,'							photo_2464140.html');
												thumbnails[2464144] = new thumbnail(2464144,'158576','','389_thumb.jpg',130, 163,32,'							photo_2464144.html');
												thumbnails[2464153] = new thumbnail(2464153,'158576','','102_thumb.jpg',130, 126,32,'							photo_2464153.html');
												thumbnails[2464161] = new thumbnail(2464161,'158576','','586_thumb.jpg',130, 163,32,'							photo_2464161.html');
												thumbnails[2464165] = new thumbnail(2464165,'158576','','149_thumb.jpg',130, 163,32,'							photo_2464165.html');
												thumbnails[2098798] = new thumbnail(2098798,'139346','','8_thumb.jpg',130, 203,32,'							photo_2098798.html');
												thumbnails[2098821] = new thumbnail(2098821,'139346','','51_thumb.jpg',130, 87,32,'							photo_2098821.html');
												thumbnails[2098830] = new thumbnail(2098830,'139346','','52_thumb.jpg',130, 87,32,'							photo_2098830.html');
												thumbnails[2098843] = new thumbnail(2098843,'139346','','53_thumb.jpg',130, 87,32,'							photo_2098843.html');
												thumbnails[2098854] = new thumbnail(2098854,'139346','','55_thumb.jpg',130, 87,32,'							photo_2098854.html');
												thumbnails[2098855] = new thumbnail(2098855,'139346','','56_thumb.jpg',130, 87,32,'							photo_2098855.html');
												thumbnails[2098870] = new thumbnail(2098870,'139346','','57_thumb.jpg',130, 87,32,'							photo_2098870.html');
												thumbnails[2098875] = new thumbnail(2098875,'139346','','58_thumb.jpg',130, 87,32,'							photo_2098875.html');
												thumbnails[2098877] = new thumbnail(2098877,'139346','','59_thumb.jpg',130, 87,32,'							photo_2098877.html');
												thumbnails[2098882] = new thumbnail(2098882,'139346','','510_thumb.jpg',130, 87,32,'							photo_2098882.html');
												thumbnails[2098956] = new thumbnail(2098956,'139346','','82_thumb.jpg',130, 203,32,'							photo_2098956.html');
												thumbnails[2098986] = new thumbnail(2098986,'139346','','513_thumb.jpg',130, 87,32,'							photo_2098986.html');
												thumbnails[2098988] = new thumbnail(2098988,'139346','','514_thumb.jpg',130, 87,32,'							photo_2098988.html');
												thumbnails[2099013] = new thumbnail(2099013,'139346','','516_thumb.jpg',130, 87,32,'							photo_2099013.html');
												thumbnails[2099020] = new thumbnail(2099020,'139346','','84_thumb.jpg',130, 203,32,'							photo_2099020.html');
												thumbnails[2099027] = new thumbnail(2099027,'139346','','517_thumb.jpg',130, 87,32,'							photo_2099027.html');
												thumbnails[2099035] = new thumbnail(2099035,'139346','','519_thumb.jpg',130, 87,32,'							photo_2099035.html');
												thumbnails[2099036] = new thumbnail(2099036,'139346','','520_thumb.jpg',130, 87,32,'							photo_2099036.html');
												thumbnails[2099037] = new thumbnail(2099037,'139346','','87_thumb.jpg',130, 203,32,'							photo_2099037.html');
												thumbnails[2099038] = new thumbnail(2099038,'139346','','521_thumb.jpg',130, 87,32,'							photo_2099038.html');
												thumbnails[2099039] = new thumbnail(2099039,'139346','','522_thumb.jpg',130, 87,32,'							photo_2099039.html');
												thumbnails[2099042] = new thumbnail(2099042,'139346','','88_thumb.jpg',130, 203,32,'							photo_2099042.html');
												thumbnails[2464132] = new thumbnail(2464132,'158576','Louise & John ','388_thumb.jpg',130, 86,32,'							photo_2464132.html');
												thumbnails[2464148] = new thumbnail(2464148,'158576','','001_thumb.jpg',130, 163,32,'							photo_2464148.html');
												thumbnails[2464437] = new thumbnail(2464437,'158576','','211_thumb.jpg',130, 195,32,'							photo_2464437.html');
												thumbnails[2464493] = new thumbnail(2464493,'158576','','047_thumb.jpg',130, 196,32,'							photo_2464493.html');
												thumbnails[2464499] = new thumbnail(2464499,'158576','','086_thumb.jpg',130, 195,32,'							photo_2464499.html');
												thumbnails[2464502] = new thumbnail(2464502,'158576','','237_thumb.jpg',130, 93,32,'							photo_2464502.html');
												thumbnails[2464504] = new thumbnail(2464504,'158576','','247_thumb.jpg',130, 104,32,'							photo_2464504.html');
												thumbnails[2464505] = new thumbnail(2464505,'158576','','292_thumb.jpg',130, 196,32,'							photo_2464505.html');
												thumbnails[2464506] = new thumbnail(2464506,'158576','','250_thumb.jpg',130, 104,32,'							photo_2464506.html');
												thumbnails[2464509] = new thumbnail(2464509,'158576','','5171_thumb.jpg',130, 196,32,'							photo_2464509.html');
												thumbnails[2464514] = new thumbnail(2464514,'158576','','270_thumb.jpg',130, 195,32,'							photo_2464514.html');
												thumbnails[2464520] = new thumbnail(2464520,'158576','','476_thumb.jpg',130, 163,32,'							photo_2464520.html');
												thumbnails[2464529] = new thumbnail(2464529,'158576','','012_thumb.jpg',130, 182,32,'							photo_2464529.html');
												thumbnails[2464533] = new thumbnail(2464533,'158576','','152_thumb.jpg',130, 196,32,'							photo_2464533.html');
												thumbnails[2464547] = new thumbnail(2464547,'158576','','291_thumb.jpg',130, 196,32,'							photo_2464547.html');
												thumbnails[2464553] = new thumbnail(2464553,'158576','','200_thumb.jpg',130, 195,32,'							photo_2464553.html');
												thumbnails[2464573] = new thumbnail(2464573,'158576','','345_thumb.jpg',130, 196,32,'							photo_2464573.html');
												thumbnails[2464576] = new thumbnail(2464576,'158576','','5161_thumb.jpg',130, 163,32,'							photo_2464576.html');
												thumbnails[2480150] = new thumbnail(2480150,'158576','','2481_thumb.jpg',130, 104,32,'							photo_2480150.html');
												thumbnails[2482251] = new thumbnail(2482251,'158576','','201bwc-web_thumb.jpg',130, 163,32,'							photo_2482251.html');
												thumbnails[2641358] = new thumbnail(2641358,'167225','','068_thumb.jpg',130, 93,32,'							photo_2641358.html');
												thumbnails[2641408] = new thumbnail(2641408,'167225','','026_thumb.jpg',130, 93,32,'							photo_2641408.html');
												thumbnails[2641456] = new thumbnail(2641456,'167225','','0672_thumb.jpg',130, 93,32,'							photo_2641456.html');
												thumbnails[2641487] = new thumbnail(2641487,'167225','Craig & Louise','198_thumb.jpg',130, 93,32,'							photo_2641487.html');
												thumbnails[2641490] = new thumbnail(2641490,'167225','','191_thumb.jpg',130, 182,32,'							photo_2641490.html');
												thumbnails[2641519] = new thumbnail(2641519,'167225','','063_thumb.jpg',130, 93,32,'							photo_2641519.html');
												thumbnails[2641679] = new thumbnail(2641679,'167225','','185_thumb.jpg',130, 182,32,'							photo_2641679.html');
												thumbnails[2641695] = new thumbnail(2641695,'167225','','348_thumb.jpg',130, 93,32,'							photo_2641695.html');
												thumbnails[2641707] = new thumbnail(2641707,'167225','','335_thumb.jpg',130, 182,32,'							photo_2641707.html');
												thumbnails[2646421] = new thumbnail(2646421,'167225','','2471_thumb.jpg',130, 93,32,'							photo_2646421.html');
												thumbnails[2646653] = new thumbnail(2646653,'167225','','115_thumb.jpg',130, 93,32,'							photo_2646653.html');
												thumbnails[2646658] = new thumbnail(2646658,'167225','','131_thumb.jpg',130, 182,32,'							photo_2646658.html');
												thumbnails[2646666] = new thumbnail(2646666,'167225','','156_thumb.jpg',130, 93,32,'							photo_2646666.html');
												thumbnails[2646669] = new thumbnail(2646669,'167225','','034_thumb.jpg',130, 93,32,'							photo_2646669.html');
												thumbnails[2653239] = new thumbnail(2653239,'167225','','01_thumb.jpg',130, 93,32,'							photo_2653239.html');
												thumbnails[3520684] = new thumbnail(3520684,'215498','','066_thumb.jpg',130, 98,32,'							photo_3520684.html');
												thumbnails[3520695] = new thumbnail(3520695,'215498','','094_thumb.jpg',130, 98,32,'							photo_3520695.html');
												thumbnails[3520697] = new thumbnail(3520697,'215498','','151_thumb.jpg',130, 98,32,'							photo_3520697.html');
												thumbnails[3520699] = new thumbnail(3520699,'215498','','159_thumb.jpg',130, 182,32,'							photo_3520699.html');
												thumbnails[3520701] = new thumbnail(3520701,'215498','','158_thumb.jpg',130, 98,32,'							photo_3520701.html');
												thumbnails[3520704] = new thumbnail(3520704,'215498','','162_thumb.jpg',130, 98,32,'							photo_3520704.html');
												thumbnails[3520706] = new thumbnail(3520706,'215498','','184_thumb.jpg',130, 182,32,'							photo_3520706.html');
												thumbnails[3520707] = new thumbnail(3520707,'215498','','220_thumb.jpg',130, 182,32,'							photo_3520707.html');
												thumbnails[3520708] = new thumbnail(3520708,'215498','','223_thumb.jpg',130, 182,32,'							photo_3520708.html');
												thumbnails[3520710] = new thumbnail(3520710,'215498','','230_thumb.jpg',130, 98,32,'							photo_3520710.html');
												thumbnails[3520712] = new thumbnail(3520712,'215498','','275_thumb.jpg',130, 182,32,'							photo_3520712.html');
												thumbnails[3520717] = new thumbnail(3520717,'215498','','2891_thumb.jpg',130, 98,32,'							photo_3520717.html');
												thumbnails[3520719] = new thumbnail(3520719,'215498','','354_thumb.jpg',130, 98,32,'							photo_3520719.html');
												thumbnails[3521633] = new thumbnail(3521633,'215498','','046_thumb.jpg',130, 182,32,'							photo_3521633.html');
												thumbnails[6737119] = new thumbnail(6737119,'367244','','KA1_thumb.jpg',130, 87,32,'							photo_6737119.html');
												thumbnails[6737122] = new thumbnail(6737122,'367244','','2_1565CE48-1D09-001F-99B46FF4250E1D39_thumb.jpg',130, 87,32,'							photo_6737122.html');
												thumbnails[6737124] = new thumbnail(6737124,'367244','','3_thumb.jpg',130, 87,32,'							photo_6737124.html');
												thumbnails[6737130] = new thumbnail(6737130,'367244','','4_thumb.jpg',130, 87,32,'							photo_6737130.html');
												thumbnails[6737135] = new thumbnail(6737135,'367244','','5_15677D60-1D09-001F-99878AACE8CAB10C_thumb.jpg',130, 87,32,'							photo_6737135.html');
												thumbnails[6737138] = new thumbnail(6737138,'367244','','6_1567CFB6-1D09-001F-990C73778413FACD_thumb.jpg',130, 87,32,'							photo_6737138.html');
												thumbnails[6737140] = new thumbnail(6737140,'367244','Katie & Alex','7_thumb.jpg',130, 195,32,'							photo_6737140.html');
												thumbnails[6737142] = new thumbnail(6737142,'367244','','8_15685CF2-1D09-001F-99B9EB5B73BFB269_thumb.jpg',130, 87,32,'							photo_6737142.html');
												thumbnails[6737144] = new thumbnail(6737144,'367244','','9_thumb.jpg',130, 195,32,'							photo_6737144.html');
												thumbnails[6737149] = new thumbnail(6737149,'367244','','10_thumb.jpg',130, 195,32,'							photo_6737149.html');
												thumbnails[6737150] = new thumbnail(6737150,'367244','','11_15696A5B-1D09-001F-99FC769B501F54F7_thumb.jpg',130, 87,32,'							photo_6737150.html');
												thumbnails[6737151] = new thumbnail(6737151,'367244','','12_thumb.jpg',130, 195,32,'							photo_6737151.html');
												thumbnails[6737154] = new thumbnail(6737154,'367244','','13_thumb.jpg',130, 195,32,'							photo_6737154.html');
												thumbnails[6737156] = new thumbnail(6737156,'367244','','14_thumb.jpg',130, 87,32,'							photo_6737156.html');
												thumbnails[6737158] = new thumbnail(6737158,'367244','','15_thumb.jpg',130, 195,32,'							photo_6737158.html');
												thumbnails[6737159] = new thumbnail(6737159,'367244','','16_thumb.jpg',130, 87,32,'							photo_6737159.html');
												thumbnails[6737160] = new thumbnail(6737160,'367244','','17_thumb.jpg',130, 87,32,'							photo_6737160.html');
												thumbnails[6737161] = new thumbnail(6737161,'367244','','18_thumb.jpg',130, 87,32,'							photo_6737161.html');
												thumbnails[6737408] = new thumbnail(6737408,'367312','','151_15AE52FB-1D09-001F-99BE1315D87F402E_thumb.jpg',130, 87,32,'							photo_6737408.html');
												thumbnails[6737409] = new thumbnail(6737409,'367312','','28_thumb.jpg',130, 195,32,'							photo_6737409.html');
												thumbnails[6737410] = new thumbnail(6737410,'367312','','67_thumb.jpg',130, 195,32,'							photo_6737410.html');
												thumbnails[6737411] = new thumbnail(6737411,'367312','','72_thumb.jpg',130, 87,32,'							photo_6737411.html');
												thumbnails[6737413] = new thumbnail(6737413,'367312','','146_thumb.jpg',130, 87,32,'							photo_6737413.html');
												thumbnails[6737416] = new thumbnail(6737416,'367312','','159_15B1C434-1D09-001F-99C5A7E615109E4F_thumb.jpg',130, 87,32,'							photo_6737416.html');
												thumbnails[6737417] = new thumbnail(6737417,'367312','Helen & Dale','311_thumb.jpg',130, 87,32,'							photo_6737417.html');
												thumbnails[6737419] = new thumbnail(6737419,'367312','','402_thumb.jpg',130, 87,32,'							photo_6737419.html');
												thumbnails[6737422] = new thumbnail(6737422,'367312','','408_thumb.jpg',130, 87,32,'							photo_6737422.html');
												thumbnails[6737426] = new thumbnail(6737426,'367312','','417_thumb.jpg',130, 87,32,'							photo_6737426.html');
												thumbnails[6737431] = new thumbnail(6737431,'367312','','426_thumb.jpg',130, 87,32,'							photo_6737431.html');
												thumbnails[6737433] = new thumbnail(6737433,'367312','','515_thumb.jpg',130, 195,32,'							photo_6737433.html');
												thumbnails[6737436] = new thumbnail(6737436,'367312','','521_15B5812D-1D09-001F-9935AFFDCA05B20A_thumb.jpg',130, 87,32,'							photo_6737436.html');
												thumbnails[6737442] = new thumbnail(6737442,'367312','','531_thumb.jpg',130, 87,32,'							photo_6737442.html');
												thumbnails[6737446] = new thumbnail(6737446,'367312','','532_thumb.jpg',130, 87,32,'							photo_6737446.html');
												thumbnails[6737449] = new thumbnail(6737449,'367312','','576_thumb.jpg',130, 87,32,'							photo_6737449.html');
												thumbnails[6737451] = new thumbnail(6737451,'367312','','636_thumb.jpg',130, 87,32,'							photo_6737451.html');
												thumbnails[6737455] = new thumbnail(6737455,'367312','','670_thumb.jpg',130, 87,32,'							photo_6737455.html');
												thumbnails[6956447] = new thumbnail(6956447,'377043','','AM_1_thumb.jpg',130, 93,32,'							photo_6956447.html');
												thumbnails[6956450] = new thumbnail(6956450,'377043','','AM_12_thumb.jpg',130, 93,32,'							photo_6956450.html');
												thumbnails[6956454] = new thumbnail(6956454,'377043','','AM_13_thumb.jpg',130, 93,32,'							photo_6956454.html');
												thumbnails[6956459] = new thumbnail(6956459,'377043','','AM_14_thumb.jpg',130, 182,32,'							photo_6956459.html');
												thumbnails[6956462] = new thumbnail(6956462,'377043','','AM_15_thumb.jpg',130, 93,32,'							photo_6956462.html');
												thumbnails[6956463] = new thumbnail(6956463,'377043','','AM_16_thumb.jpg',130, 93,32,'							photo_6956463.html');
												thumbnails[6956467] = new thumbnail(6956467,'377043','','AM_17_thumb.jpg',130, 93,32,'							photo_6956467.html');
												thumbnails[6956468] = new thumbnail(6956468,'377043','','AM_19_thumb.jpg',130, 93,32,'							photo_6956468.html');
												thumbnails[6956472] = new thumbnail(6956472,'377043','','AM_20_thumb.jpg',130, 93,32,'							photo_6956472.html');
												thumbnails[6956506] = new thumbnail(6956506,'377043','','AM_22_thumb.jpg',130, 93,32,'							photo_6956506.html');
												thumbnails[6956577] = new thumbnail(6956577,'377043','','AM_23_thumb.jpg',130, 93,32,'							photo_6956577.html');
												thumbnails[6956594] = new thumbnail(6956594,'377043','','AM_24_thumb.jpg',130, 93,32,'							photo_6956594.html');
												thumbnails[6956596] = new thumbnail(6956596,'377043','','AM_26_thumb.jpg',130, 93,32,'							photo_6956596.html');
												thumbnails[6956598] = new thumbnail(6956598,'377043','','AM_27_thumb.jpg',130, 93,32,'							photo_6956598.html');
												thumbnails[7024269] = new thumbnail(7024269,'167225','','2511_thumb.jpg',130, 93,32,'							photo_7024269.html');
												thumbnails[7024319] = new thumbnail(7024319,'167225','','2165_thumb.jpg',130, 93,32,'							photo_7024319.html');
												thumbnails[2085770] = new thumbnail(2085770,'139346','','1_thumb.jpg',130, 87,32,'							photo_2085770.html');
												thumbnails[2087718] = new thumbnail(2087718,'139346','','6_thumb.jpg',130, 196,32,'							photo_2087718.html');
												thumbnails[2087610] = new thumbnail(2087610,'139346','','54_thumb.jpg',130, 87,32,'							photo_2087610.html');
												thumbnails[2098815] = new thumbnail(2098815,'139346','','81_thumb.jpg',130, 203,32,'							photo_2098815.html');
												thumbnails[2087567] = new thumbnail(2087567,'139346','','2_thumb.jpg',130, 86,32,'							photo_2087567.html');
												thumbnails[2092624] = new thumbnail(2092624,'139346','Katy & David','5_thumb.jpg',130, 87,32,'							photo_2092624.html');
												thumbnails[2469703] = new thumbnail(2469703,'158634','','0016_thumb.JPG',130, 196,32,'							photo_2469703.html');
												thumbnails[2476048] = new thumbnail(2476048,'158634','','067_thumb.JPG',130, 196,32,'							photo_2476048.html');
												thumbnails[2476053] = new thumbnail(2476053,'158634','','053_thumb.JPG',130, 182,32,'							photo_2476053.html');
												thumbnails[2476055] = new thumbnail(2476055,'158634','','049_thumb.JPG',130, 196,32,'							photo_2476055.html');
												thumbnails[2476056] = new thumbnail(2476056,'158634','','078_thumb.JPG',130, 196,32,'							photo_2476056.html');
												thumbnails[2476513] = new thumbnail(2476513,'158634','','061_thumb.JPG',130, 93,32,'							photo_2476513.html');
												thumbnails[2476515] = new thumbnail(2476515,'158634','','098_thumb.JPG',130, 104,32,'							photo_2476515.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[158634] = new gallery(158634,'2469703','Toastmasters International July 2008','section201089',[2469703,2476048,2476053,2476055,2476056,2476513,2476515],0, 0, '', '																																																																																																																																	section201089.html',0,1);
				  					galleries[139346] = new gallery(139346,'2092624','Katy & David Nov 2007','section179689',[2098798,2098821,2098830,2098843,2098854,2098855,2098870,2098875,2098877,2098882,2098956,2098986,2098988,2099013,2099020,2099027,2099035,2099036,2099037,2099038,2099039,2099042,2085770,2087718,2087610,2098815,2087567,2092624],0, 0, '', '																																																																																																							section179689_139346.html',0,0);
				  					galleries[158576] = new gallery(158576,'2464132','Louise & John July 2008','section179689',[2464140,2464144,2464153,2464161,2464165,2464132,2464148,2464437,2464493,2464499,2464502,2464504,2464505,2464506,2464509,2464514,2464520,2464529,2464533,2464547,2464553,2464573,2464576,2480150,2482251],0, 0, '', '																																																																																																							section179689_158576.html',0,0);
				  					galleries[167225] = new gallery(167225,'2641487','Louise & Craig July 2008','section179689',[2641358,2641408,2641456,2641487,2641490,2641519,2641679,2641695,2641707,2646421,2646653,2646658,2646666,2646669,2653239,7024269,7024319],0, 0, '', '																																																																																																							section179689_167225.html',0,0);
				  					galleries[215498] = new gallery(215498,'3521640','Pam & Jason February 2009 ','section179689',[3520678,3520736,3521640,3521696,3522108,3522114,3522116,3523560,3524881,3525039,3520684,3520695,3520697,3520699,3520701,3520704,3520706,3520707,3520708,3520710,3520712,3520717,3520719,3521633],0, 0, '', '																																																																																																							section179689_215498.html',0,0);
				  					galleries[273635] = new gallery(273635,'4780382','Claire & Aaron Sept 2009','section179689',[4780255,4780257,4780267,4780268,4780282,4780377,4780380,4780382,4780383,4780390,4780425,4780431],0, 0, '', '																																																																																																							section179689_273635.html',0,0);
				  					galleries[367244] = new gallery(367244,'6737140','Katie & Alex July 2010','section179689',[6737119,6737122,6737124,6737130,6737135,6737138,6737140,6737142,6737144,6737149,6737150,6737151,6737154,6737156,6737158,6737159,6737160,6737161],0, 0, '', '																																																																																																							section179689_367244.html',0,0);
				  					galleries[367312] = new gallery(367312,'6737431','Helen & Dale Sept 2010','section179689',[6737408,6737409,6737410,6737411,6737413,6737416,6737417,6737419,6737422,6737426,6737431,6737433,6737436,6737442,6737446,6737449,6737451,6737455],0, 0, '', '																																																																																																							section179689_367312.html',0,0);
				  					galleries[377043] = new gallery(377043,'6956463','Amanda & Malcolm 17th Sept 2010','section179689',[6956447,6956450,6956454,6956459,6956462,6956463,6956467,6956468,6956472,6956506,6956577,6956594,6956596,6956598],0, 0, '', '																																																																																																							section179689_377043.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '6737426';
imageSets[2] = '6956463,6737431,6737140,4780382,3521640,2641487,2469703,2464132,2092624';
imageSets[3] = '4780255,3522114';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/plfrost/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/plfrost/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/plfrost/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/plfrost/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://www.clikchurch.com/plfrost/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/plfrost/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/plfrost/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/plfrost/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/plfrost/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/plfrost/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/plfrost/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/plfrost/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/plfrost/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/plfrost/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/plfrost/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/plfrost/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/plfrost/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/plfrost/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/plfrost/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/plfrost/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/plfrost/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 += 'section179689.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 && 'section179689' != '') {
					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 = 'Paul Frost Wedding 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>';
	}
					
	temp = temp + this.fnGetPaymentInfo();
				if (temp != '') {
		temp = temp + '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
																		temp = temp + '<p>Buy now using PayPal:</p>';
				temp = temp + '<p class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> 				&pound;' + (this.item_price).toFixed(2) + '</p>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.payment_groups_id !== '') {
		temp = temp + '<p>Buy this print online:</p>';
				temp = temp + '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp = temp + '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
				
		temp = temp + getPaymentOptions(this.payment_groups_id);
		temp = temp + '</select>';
		temp = temp + '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
	else {
				
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
																				temp = temp + '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
	temp = temp + '<input type="hidden" name="item_name" value="'+item_name+'">';
								ref = '';
				if(this.photo_ref != ''){
					ref = this.photo_ref+' - '+this.caption;
				}
				else{
					ref = this.id+' - '+this.caption;
				}
				price = amount;					temp = temp + '<input type="hidden" name="cmd" value="_cart">';
	temp = temp + '<input type="hidden" name="business" value="paul.l.frost@googlemail.com">';
	temp = temp + '<input type="hidden" name="currency_code" value="GBP">';
	temp = temp + '<input type="hidden" name="add" value="1">';
					temp = temp + '<input type="hidden" name="amount" value="'+amount+'">';
	temp = temp + '<input type="hidden" name="item_number" value="'+ref+'">';
					temp = temp + '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
									temp = temp + '</form>';
								temp = temp + '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
	temp = temp + '<input type="hidden" name="cmd" value="_cart">';
	temp = temp + '<input type="hidden" name="business" value="paul.l.frost@googlemail.com">';
	temp = temp + '<input type="hidden" name="display" value="1">';
	temp = temp + '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
	temp = temp + '</form>';
							temp = temp + '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
		
	if(img){
	      if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
        imageID = imageID[1];
      } else {
			  imageID = randomListVal(galleries[gallery_id].featured_images);
      }
							
			if (imageID != 0) {
				img.src = thumbnails[imageID].src;
				img.width = thumbnails[imageID].width;
				img.height = thumbnails[imageID].height;
				img.alt = galleries[gallery_id].title;
        if (updateLink) {
          $(img).parent().attr({            href: thumbnails[imageID].fnGalleryLink(gallery_id),            title: galleries[gallery_id].title          });
        }
							}
										}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp = temp + ' | ';
				}
				temp = temp + '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
			}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

