window.thumbnails = new Object();
												thumbnails[3378119] = new thumbnail(3378119,'','','newhome_thumb.jpg',130, 130,15,'#');
												thumbnails[3791829] = new thumbnail(3791829,'','','2145FAW08_thumb.jpg',130, 176,15,'#');
												thumbnails[3846771] = new thumbnail(3846771,'','','042_thumb.jpg',130, 130,15,'#');
												thumbnails[3794216] = new thumbnail(3794216,'','','011_thumb.jpg',130, 47,15,'#');
												thumbnails[3794217] = new thumbnail(3794217,'','','02_thumb.jpg',130, 47,15,'#');
												thumbnails[3794218] = new thumbnail(3794218,'','','041_thumb.jpg',130, 47,15,'#');
												thumbnails[3794219] = new thumbnail(3794219,'','','05_thumb.jpg',130, 47,15,'#');
												thumbnails[3794220] = new thumbnail(3794220,'','','06_thumb.jpg',130, 47,15,'#');
												thumbnails[3794221] = new thumbnail(3794221,'','','061_thumb.jpg',130, 47,15,'#');
												thumbnails[3794222] = new thumbnail(3794222,'','','071_thumb.jpg',130, 47,15,'#');
												thumbnails[3794223] = new thumbnail(3794223,'','','08_thumb.jpg',130, 47,15,'#');
												thumbnails[3794224] = new thumbnail(3794224,'','','09_thumb.jpg',130, 47,15,'#');
												thumbnails[3794225] = new thumbnail(3794225,'','','101_thumb.jpg',130, 47,15,'#');
												thumbnails[3794226] = new thumbnail(3794226,'','','11_thumb.jpg',130, 47,15,'#');
												thumbnails[3794227] = new thumbnail(3794227,'','','12_thumb.jpg',130, 47,15,'#');
												thumbnails[3794228] = new thumbnail(3794228,'','','131_thumb.jpg',130, 47,15,'#');
												thumbnails[3794229] = new thumbnail(3794229,'','','14_thumb.jpg',130, 47,15,'#');
												thumbnails[3794230] = new thumbnail(3794230,'','','15_thumb.jpg',130, 47,15,'#');
												thumbnails[3794232] = new thumbnail(3794232,'','','161_thumb.jpg',130, 47,15,'#');
												thumbnails[3794233] = new thumbnail(3794233,'','','171_thumb.jpg',130, 47,15,'#');
												thumbnails[3794234] = new thumbnail(3794234,'','','18_thumb.jpg',130, 47,15,'#');
												thumbnails[3330199] = new thumbnail(3330199,'202248','','04012_thumb.jpg',130, 130,15,'photo_3330199.html');
												thumbnails[3330204] = new thumbnail(3330204,'202248','','04021_thumb.jpg',130, 130,15,'photo_3330204.html');
												thumbnails[3330280] = new thumbnail(3330280,'202248','','04121_thumb.jpg',130, 130,15,'photo_3330280.html');
												thumbnails[3330307] = new thumbnail(3330307,'202248','','0413_thumb.jpg',130, 130,15,'photo_3330307.html');
												thumbnails[3330313] = new thumbnail(3330313,'202248','','0426_thumb.jpg',130, 130,15,'photo_3330313.html');
												thumbnails[3330321] = new thumbnail(3330321,'202248','','0429_thumb.jpg',130, 130,15,'photo_3330321.html');
												thumbnails[3330326] = new thumbnail(3330326,'202248','','0431_thumb.jpg',130, 130,15,'photo_3330326.html');
												thumbnails[3330330] = new thumbnail(3330330,'202248','','0434_thumb.jpg',130, 130,15,'photo_3330330.html');
												thumbnails[3330339] = new thumbnail(3330339,'202248','','0443_thumb.jpg',130, 130,15,'photo_3330339.html');
												thumbnails[3330344] = new thumbnail(3330344,'202248','','0445_thumb.jpg',130, 130,15,'photo_3330344.html');
												thumbnails[3330347] = new thumbnail(3330347,'202248','','0456_thumb.jpg',130, 130,15,'photo_3330347.html');
												thumbnails[3330353] = new thumbnail(3330353,'202248','','0458_thumb.jpg',130, 130,15,'photo_3330353.html');
												thumbnails[3330361] = new thumbnail(3330361,'202248','','0478_thumb.jpg',130, 130,15,'photo_3330361.html');
												thumbnails[3330362] = new thumbnail(3330362,'202248','','0483_thumb.jpg',130, 130,15,'photo_3330362.html');
												thumbnails[3330370] = new thumbnail(3330370,'202248','','0486_thumb.jpg',130, 130,15,'photo_3330370.html');
												thumbnails[3330374] = new thumbnail(3330374,'202248','','0497_thumb.jpg',130, 130,15,'photo_3330374.html');
												thumbnails[3330559] = new thumbnail(3330559,'203048','','0526_thumb.jpg',130, 130,15,'photo_3330559.html');
												thumbnails[3330567] = new thumbnail(3330567,'203048','','0405_thumb.jpg',130, 130,15,'photo_3330567.html');
												thumbnails[3330576] = new thumbnail(3330576,'203048','','0536_thumb.jpg',130, 130,15,'photo_3330576.html');
												thumbnails[3330585] = new thumbnail(3330585,'203048','','04171_thumb.jpg',130, 130,15,'photo_3330585.html');
												thumbnails[3330587] = new thumbnail(3330587,'203048','','04161_thumb.jpg',130, 130,15,'photo_3330587.html');
												thumbnails[3330588] = new thumbnail(3330588,'203048','','0419_thumb.jpg',130, 130,15,'photo_3330588.html');
												thumbnails[3330590] = new thumbnail(3330590,'203048','','0425_thumb.jpg',130, 130,15,'photo_3330590.html');
												thumbnails[3330592] = new thumbnail(3330592,'203048','','0430_thumb.jpg',130, 130,15,'photo_3330592.html');
												thumbnails[3330593] = new thumbnail(3330593,'203048','','0435_thumb.jpg',130, 130,15,'photo_3330593.html');
												thumbnails[3330595] = new thumbnail(3330595,'203048','','0439_thumb.jpg',130, 130,15,'photo_3330595.html');
												thumbnails[3330596] = new thumbnail(3330596,'203048','','0440_thumb.jpg',130, 130,15,'photo_3330596.html');
												thumbnails[3330601] = new thumbnail(3330601,'203048','','0444_thumb.jpg',130, 130,15,'photo_3330601.html');
												thumbnails[3330602] = new thumbnail(3330602,'203048','','0462_thumb.jpg',130, 130,15,'photo_3330602.html');
												thumbnails[3330603] = new thumbnail(3330603,'203048','','0464_thumb.jpg',130, 130,15,'photo_3330603.html');
												thumbnails[3330606] = new thumbnail(3330606,'203048','','0519_thumb.jpg',130, 130,15,'photo_3330606.html');
												thumbnails[3330610] = new thumbnail(3330610,'203048','','0477_thumb.jpg',130, 130,15,'photo_3330610.html');
												thumbnails[3330879] = new thumbnail(3330879,'203058','','8905_thumb.jpg',130, 130,15,'photo_3330879.html');
												thumbnails[3342996] = new thumbnail(3342996,'203306','','0514_thumb.jpg',130, 130,15,'photo_3342996.html');
												thumbnails[3343012] = new thumbnail(3343012,'203306','','04031_thumb.jpg',130, 130,15,'photo_3343012.html');
												thumbnails[3343016] = new thumbnail(3343016,'203306','','0513_thumb.jpg',130, 130,15,'photo_3343016.html');
												thumbnails[3343021] = new thumbnail(3343021,'203306','','0408_thumb.jpg',130, 130,15,'photo_3343021.html');
												thumbnails[3343023] = new thumbnail(3343023,'203306','','0535a_thumb.jpg',130, 130,15,'photo_3343023.html');
												thumbnails[3343025] = new thumbnail(3343025,'203306','','0427_thumb.jpg',130, 130,15,'photo_3343025.html');
												thumbnails[3343027] = new thumbnail(3343027,'203306','','0432_thumb.jpg',130, 130,15,'photo_3343027.html');
												thumbnails[3343030] = new thumbnail(3343030,'203306','','0512_thumb.jpg',130, 130,15,'photo_3343030.html');
												thumbnails[3343033] = new thumbnail(3343033,'203306','','0452_thumb.jpg',130, 130,15,'photo_3343033.html');
												thumbnails[3343034] = new thumbnail(3343034,'203306','','0545_thumb.jpg',130, 130,15,'photo_3343034.html');
												thumbnails[3343036] = new thumbnail(3343036,'203306','','0466_thumb.jpg',130, 130,15,'photo_3343036.html');
												thumbnails[3343037] = new thumbnail(3343037,'203306','','0446_thumb.jpg',130, 130,15,'photo_3343037.html');
												thumbnails[3343039] = new thumbnail(3343039,'203306','','0459_thumb.jpg',130, 130,15,'photo_3343039.html');
												thumbnails[3343041] = new thumbnail(3343041,'203306','','0457_thumb.jpg',130, 130,15,'photo_3343041.html');
												thumbnails[3343043] = new thumbnail(3343043,'203306','','0480_thumb.jpg',130, 130,15,'photo_3343043.html');
												thumbnails[3343045] = new thumbnail(3343045,'203306','','0485_thumb.jpg',130, 130,15,'photo_3343045.html');
												thumbnails[3344716] = new thumbnail(3344716,'204051','','0529_thumb.jpg',130, 130,15,'photo_3344716.html');
												thumbnails[3344720] = new thumbnail(3344720,'204051','','05211_thumb.jpg',130, 130,15,'photo_3344720.html');
												thumbnails[3344724] = new thumbnail(3344724,'204051','','05161_thumb.jpg',130, 130,15,'photo_3344724.html');
												thumbnails[3344730] = new thumbnail(3344730,'204051','','0500_thumb.jpg',130, 130,15,'photo_3344730.html');
												thumbnails[3344734] = new thumbnail(3344734,'204051','','0547_thumb.jpg',130, 130,15,'photo_3344734.html');
												thumbnails[3344737] = new thumbnail(3344737,'204051','','0553_thumb.jpg',130, 130,15,'photo_3344737.html');
												thumbnails[3344756] = new thumbnail(3344756,'204051','','05441_thumb.jpg',130, 130,15,'photo_3344756.html');
												thumbnails[3344760] = new thumbnail(3344760,'204051','','05412_thumb.jpg',130, 130,15,'photo_3344760.html');
												thumbnails[3344763] = new thumbnail(3344763,'204051','','0522_thumb.jpg',130, 130,15,'photo_3344763.html');
												thumbnails[3344766] = new thumbnail(3344766,'204051','','0471_thumb.jpg',130, 130,15,'photo_3344766.html');
												thumbnails[3344768] = new thumbnail(3344768,'204051','','0007a_thumb.jpg',130, 130,15,'photo_3344768.html');
												thumbnails[3344771] = new thumbnail(3344771,'204051','','0492_thumb.jpg',130, 130,15,'photo_3344771.html');
												thumbnails[3344941] = new thumbnail(3344941,'204051','','0531_thumb.jpg',130, 130,15,'photo_3344941.html');
												thumbnails[3344942] = new thumbnail(3344942,'204051','','04551_thumb.jpg',130, 130,15,'photo_3344942.html');
												thumbnails[3344945] = new thumbnail(3344945,'204051','','05521_thumb.jpg',130, 130,15,'photo_3344945.html');
												thumbnails[3344946] = new thumbnail(3344946,'204051','','05401_thumb.jpg',130, 130,15,'photo_3344946.html');
												thumbnails[3349580] = new thumbnail(3349580,'203058','','015_thumb.jpg',130, 130,15,'photo_3349580.html');
												thumbnails[3352098] = new thumbnail(3352098,'203058','','039a_thumb.jpg',130, 130,15,'photo_3352098.html');
												thumbnails[3352102] = new thumbnail(3352102,'203058','','13_thumb.jpg',130, 130,15,'photo_3352102.html');
												thumbnails[3352104] = new thumbnail(3352104,'203058','','016a_thumb.jpg',130, 130,15,'photo_3352104.html');
												thumbnails[3352107] = new thumbnail(3352107,'203058','','20389_thumb.jpg',130, 130,15,'photo_3352107.html');
												thumbnails[3352110] = new thumbnail(3352110,'203058','','006_thumb.jpg',130, 130,15,'photo_3352110.html');
												thumbnails[3352112] = new thumbnail(3352112,'203058','','002_thumb.jpg',130, 130,15,'photo_3352112.html');
												thumbnails[3352120] = new thumbnail(3352120,'203058','','017_thumb.jpg',130, 130,15,'photo_3352120.html');
												thumbnails[3352123] = new thumbnail(3352123,'203058','','012_thumb.jpg',130, 130,15,'photo_3352123.html');
												thumbnails[3352126] = new thumbnail(3352126,'203058','','1540d_thumb.jpg',130, 130,15,'photo_3352126.html');
												thumbnails[3352127] = new thumbnail(3352127,'203058','','17_thumb.jpg',130, 130,15,'photo_3352127.html');
												thumbnails[3352130] = new thumbnail(3352130,'203058','','0834bw_thumb.jpg',130, 130,15,'photo_3352130.html');
												thumbnails[3352131] = new thumbnail(3352131,'203058','','16_thumb.jpg',130, 130,15,'photo_3352131.html');
												thumbnails[3352133] = new thumbnail(3352133,'203058','','0033bw_thumb.jpg',130, 130,15,'photo_3352133.html');
												thumbnails[3352135] = new thumbnail(3352135,'203058','','89081_thumb.jpg',130, 130,15,'photo_3352135.html');
												thumbnails[3352435] = new thumbnail(3352435,'204625','','137_thumb.jpg',130, 130,15,'photo_3352435.html');
												thumbnails[3352438] = new thumbnail(3352438,'204625','','083_thumb.jpg',130, 130,15,'photo_3352438.html');
												thumbnails[3352440] = new thumbnail(3352440,'204625','','767_thumb.jpg',130, 130,15,'photo_3352440.html');
												thumbnails[3352443] = new thumbnail(3352443,'204625','','733bw_thumb.jpg',130, 130,15,'photo_3352443.html');
												thumbnails[3352450] = new thumbnail(3352450,'204625','','72_thumb.jpg',130, 130,15,'photo_3352450.html');
												thumbnails[3352453] = new thumbnail(3352453,'204625','','009_thumb.jpg',130, 130,15,'photo_3352453.html');
												thumbnails[3352457] = new thumbnail(3352457,'204625','','____P 0694bw_thumb.jpg',130, 130,15,'photo_3352457.html');
												thumbnails[3352460] = new thumbnail(3352460,'204625','','800_thumb.jpg',130, 130,15,'photo_3352460.html');
												thumbnails[3352463] = new thumbnail(3352463,'204625','','P 0118bw_thumb.jpg',130, 130,15,'photo_3352463.html');
												thumbnails[3352465] = new thumbnail(3352465,'204625','','0143a_thumb.jpg',130, 130,15,'photo_3352465.html');
												thumbnails[3352467] = new thumbnail(3352467,'204625','','19_thumb.jpg',130, 130,15,'photo_3352467.html');
												thumbnails[3352470] = new thumbnail(3352470,'204625','','151bw_thumb.jpg',130, 130,15,'photo_3352470.html');
												thumbnails[3352473] = new thumbnail(3352473,'204625','','21469_thumb.jpg',130, 130,15,'photo_3352473.html');
												thumbnails[3352476] = new thumbnail(3352476,'204625','','____P 0263b_thumb.jpg',130, 130,15,'photo_3352476.html');
												thumbnails[3352480] = new thumbnail(3352480,'204625','','8906_thumb.jpg',130, 130,15,'photo_3352480.html');
												thumbnails[3352507] = new thumbnail(3352507,'204625','','____P 0430a_thumb.jpg',130, 130,15,'photo_3352507.html');
												thumbnails[3358370] = new thumbnail(3358370,'205032','','04951_thumb.jpg',130, 130,15,'photo_3358370.html');
												thumbnails[3358375] = new thumbnail(3358375,'205032','','0164_thumb.jpg',130, 130,15,'photo_3358375.html');
												thumbnails[3358378] = new thumbnail(3358378,'205032','','04701_thumb.jpg',130, 130,15,'photo_3358378.html');
												thumbnails[3358381] = new thumbnail(3358381,'205032','','04692_thumb.jpg',130, 130,15,'photo_3358381.html');
												thumbnails[3358386] = new thumbnail(3358386,'205032','','04901_thumb.jpg',130, 130,15,'photo_3358386.html');
												thumbnails[3358389] = new thumbnail(3358389,'205032','','04541_thumb.jpg',130, 130,15,'photo_3358389.html');
												thumbnails[3358397] = new thumbnail(3358397,'205032','','01321_thumb.jpg',130, 130,15,'photo_3358397.html');
												thumbnails[3358400] = new thumbnail(3358400,'205032','','01001_thumb.jpg',130, 130,15,'photo_3358400.html');
												thumbnails[3358409] = new thumbnail(3358409,'205032','',' 0051a_thumb.jpg',130, 130,2,'photo_3358409.html');
												thumbnails[3358416] = new thumbnail(3358416,'205032','','0460a_thumb.jpg',130, 130,15,'photo_3358416.html');
												thumbnails[3358444] = new thumbnail(3358444,'205032','','0493c_thumb.jpg',130, 130,15,'photo_3358444.html');
												thumbnails[3358448] = new thumbnail(3358448,'205032','','04632_thumb.jpg',130, 130,15,'photo_3358448.html');
												thumbnails[3358451] = new thumbnail(3358451,'205032','','05542_thumb.jpg',130, 130,15,'photo_3358451.html');
												thumbnails[3358457] = new thumbnail(3358457,'205032','',' 00451_thumb.jpg',130, 130,2,'photo_3358457.html');
												thumbnails[3358458] = new thumbnail(3358458,'205032','','0448a_thumb.jpg',130, 130,15,'photo_3358458.html');
												thumbnails[3358462] = new thumbnail(3358462,'205032','','0162_thumb.jpg',130, 130,15,'photo_3358462.html');
												thumbnails[3375344] = new thumbnail(3375344,'206190','','001a1_thumb.jpg',130, 130,15,'photo_3375344.html');
												thumbnails[3375346] = new thumbnail(3375346,'206190','','0502_thumb.jpg',130, 130,15,'photo_3375346.html');
												thumbnails[3375348] = new thumbnail(3375348,'206190','','PPR Skydiver_thumb.jpg',130, 130,15,'photo_3375348.html');
												thumbnails[3375370] = new thumbnail(3375370,'206190','','0091_thumb.jpg',130, 130,15,'photo_3375370.html');
												thumbnails[3375372] = new thumbnail(3375372,'206190','','0036_thumb.jpg',130, 130,15,'photo_3375372.html');
												thumbnails[3375375] = new thumbnail(3375375,'206190','','0420_thumb.jpg',130, 130,15,'photo_3375375.html');
												thumbnails[3375376] = new thumbnail(3375376,'206190','','0257_thumb.jpg',130, 130,15,'photo_3375376.html');
												thumbnails[3375391] = new thumbnail(3375391,'206190','','0491_thumb.jpg',130, 130,15,'photo_3375391.html');
												thumbnails[3375393] = new thumbnail(3375393,'206190','','0031_thumb.jpg',130, 130,15,'photo_3375393.html');
												thumbnails[3375396] = new thumbnail(3375396,'206190','','0061_thumb.jpg',130, 130,15,'photo_3375396.html');
												thumbnails[3375405] = new thumbnail(3375405,'206190','','DSC_0208_thumb.jpg',130, 130,15,'photo_3375405.html');
												thumbnails[3375406] = new thumbnail(3375406,'206190','','DSC_0057_thumb.jpg',130, 130,15,'photo_3375406.html');
												thumbnails[3375411] = new thumbnail(3375411,'206190','','00021_thumb.jpg',130, 130,15,'photo_3375411.html');
												thumbnails[3375413] = new thumbnail(3375413,'206190','','0152_thumb.jpg',130, 130,15,'photo_3375413.html');
												thumbnails[3375415] = new thumbnail(3375415,'206190','','0266_thumb.jpg',130, 130,15,'photo_3375415.html');
												thumbnails[3375417] = new thumbnail(3375417,'206190','','DSC_0081_thumb.jpg',130, 130,15,'photo_3375417.html');
												thumbnails[3375426] = new thumbnail(3375426,'206194','','0022_thumb.jpg',130, 130,15,'photo_3375426.html');
												thumbnails[3375429] = new thumbnail(3375429,'206194','','04831_thumb.jpg',130, 130,15,'photo_3375429.html');
												thumbnails[3375431] = new thumbnail(3375431,'206194','','0296_thumb.jpg',130, 130,15,'photo_3375431.html');
												thumbnails[3375433] = new thumbnail(3375433,'206194','','0496_thumb.jpg',130, 130,15,'photo_3375433.html');
												thumbnails[3375434] = new thumbnail(3375434,'206194','','0505_thumb.jpg',130, 130,15,'photo_3375434.html');
												thumbnails[3375436] = new thumbnail(3375436,'206194','','0029a_thumb.jpg',130, 130,15,'photo_3375436.html');
												thumbnails[3375437] = new thumbnail(3375437,'206194','','b_thumb.jpg',130, 130,15,'photo_3375437.html');
												thumbnails[3375439] = new thumbnail(3375439,'206194','','0117_thumb.jpg',130, 130,15,'photo_3375439.html');
												thumbnails[3375441] = new thumbnail(3375441,'206194','','DSC_0088_thumb.jpg',130, 130,15,'photo_3375441.html');
												thumbnails[3375444] = new thumbnail(3375444,'206194','','0317_thumb.jpg',130, 130,15,'photo_3375444.html');
												thumbnails[3375446] = new thumbnail(3375446,'206194','','04162_thumb.jpg',130, 130,15,'photo_3375446.html');
												thumbnails[3375448] = new thumbnail(3375448,'206194','','002a_thumb.jpg',130, 130,15,'photo_3375448.html');
												thumbnails[3375450] = new thumbnail(3375450,'206194','','0092_thumb.jpg',130, 130,15,'photo_3375450.html');
												thumbnails[3375453] = new thumbnail(3375453,'206194','','0251_thumb.jpg',130, 130,15,'photo_3375453.html');
												thumbnails[3375455] = new thumbnail(3375455,'206194','','04131_thumb.jpg',130, 130,15,'photo_3375455.html');
												thumbnails[3375458] = new thumbnail(3375458,'206194','','0051_thumb.jpg',130, 130,15,'photo_3375458.html');
												thumbnails[3375469] = new thumbnail(3375469,'206197','','04221_thumb.jpg',130, 130,15,'photo_3375469.html');
												thumbnails[3375471] = new thumbnail(3375471,'206197','','DSC_0187_thumb.jpg',130, 130,15,'photo_3375471.html');
												thumbnails[3375472] = new thumbnail(3375472,'206197','','0239_thumb.jpg',130, 130,15,'photo_3375472.html');
												thumbnails[3375474] = new thumbnail(3375474,'206197','','0501_thumb.jpg',130, 130,15,'photo_3375474.html');
												thumbnails[3375475] = new thumbnail(3375475,'206197','','05191_thumb.jpg',130, 130,15,'photo_3375475.html');
												thumbnails[3375476] = new thumbnail(3375476,'206197','','0332a_thumb.jpg',130, 130,15,'photo_3375476.html');
												thumbnails[3375477] = new thumbnail(3375477,'206197','','0418_thumb.jpg',130, 130,15,'photo_3375477.html');
												thumbnails[3375481] = new thumbnail(3375481,'206197','','0175_thumb.jpg',130, 130,15,'photo_3375481.html');
												thumbnails[3375482] = new thumbnail(3375482,'206197','','0158_thumb.jpg',130, 130,15,'photo_3375482.html');
												thumbnails[3375484] = new thumbnail(3375484,'206197','','DSC_0018_thumb.jpg',130, 130,15,'photo_3375484.html');
												thumbnails[3375487] = new thumbnail(3375487,'206197','','0316_thumb.jpg',130, 130,15,'photo_3375487.html');
												thumbnails[3375488] = new thumbnail(3375488,'206197','','DSC_0310_thumb.jpg',130, 130,15,'photo_3375488.html');
												thumbnails[3375520] = new thumbnail(3375520,'206197','','02841_thumb.jpg',130, 130,15,'photo_3375520.html');
												thumbnails[3375523] = new thumbnail(3375523,'206197','','DSC_0021_thumb.jpg',130, 130,15,'photo_3375523.html');
												thumbnails[3375525] = new thumbnail(3375525,'206197','','DSC_0066_thumb.jpg',130, 130,15,'photo_3375525.html');
												thumbnails[3375528] = new thumbnail(3375528,'206197','','0614_thumb.jpg',130, 130,15,'photo_3375528.html');
												thumbnails[3379587] = new thumbnail(3379587,'206435','','01_thumb.jpg',130, 130,15,'photo_3379587.html');
												thumbnails[3379594] = new thumbnail(3379594,'206435','','031_thumb.jpg',130, 130,15,'photo_3379594.html');
												thumbnails[3379596] = new thumbnail(3379596,'206435','','14a3_thumb.jpg',130, 130,15,'photo_3379596.html');
												thumbnails[3379600] = new thumbnail(3379600,'206435','','04_thumb.jpg',130, 130,15,'photo_3379600.html');
												thumbnails[3379602] = new thumbnail(3379602,'206435','','052_thumb.jpg',130, 130,15,'photo_3379602.html');
												thumbnails[3379604] = new thumbnail(3379604,'206435','','Untitled-13_thumb.jpg',130, 129,15,'photo_3379604.html');
												thumbnails[3379606] = new thumbnail(3379606,'206435','','07_thumb.jpg',130, 130,15,'photo_3379606.html');
												thumbnails[3379609] = new thumbnail(3379609,'206435','','123_thumb.jpg',130, 130,15,'photo_3379609.html');
												thumbnails[3379615] = new thumbnail(3379615,'206435','','06a_thumb.jpg',130, 130,15,'photo_3379615.html');
												thumbnails[3379617] = new thumbnail(3379617,'206435','','10_thumb.jpg',130, 130,15,'photo_3379617.html');
												thumbnails[3379620] = new thumbnail(3379620,'206435','','111_thumb.jpg',130, 130,15,'photo_3379620.html');
												thumbnails[3379622] = new thumbnail(3379622,'206435','','812701_thumb.jpg',130, 130,15,'photo_3379622.html');
												thumbnails[3379625] = new thumbnail(3379625,'206435','','b4c_thumb.jpg',130, 130,15,'photo_3379625.html');
												thumbnails[3379627] = new thumbnail(3379627,'206435','','081_thumb.jpg',130, 130,15,'photo_3379627.html');
												thumbnails[3379629] = new thumbnail(3379629,'206435','','001a_thumb.jpg',130, 130,15,'photo_3379629.html');
												thumbnails[3379632] = new thumbnail(3379632,'206435','','151_thumb.jpg',130, 130,15,'photo_3379632.html');
												thumbnails[4011701] = new thumbnail(4011701,'242352','','001_thumb.jpg',130, 130,15,'photo_4011701.html');
												thumbnails[4011894] = new thumbnail(4011894,'242352','','0023_thumb.jpg',130, 130,15,'photo_4011894.html');
												thumbnails[4011982] = new thumbnail(4011982,'242352','','003_thumb.jpg',130, 130,15,'photo_4011982.html');
												thumbnails[4012192] = new thumbnail(4012192,'242352','','004_thumb.jpg',130, 130,15,'photo_4012192.html');
												thumbnails[4012195] = new thumbnail(4012195,'242352','','005_thumb.jpg',130, 130,15,'photo_4012195.html');
												thumbnails[4012239] = new thumbnail(4012239,'242352','','0062_thumb.jpg',130, 130,15,'photo_4012239.html');
												thumbnails[4012244] = new thumbnail(4012244,'242352','','007_thumb.jpg',130, 130,15,'photo_4012244.html');
												thumbnails[4012247] = new thumbnail(4012247,'242352','','008_thumb.jpg',130, 130,15,'photo_4012247.html');
												thumbnails[4012249] = new thumbnail(4012249,'242352','','0093_thumb.jpg',130, 130,15,'photo_4012249.html');
												thumbnails[4012250] = new thumbnail(4012250,'242352','','010_thumb.jpg',130, 130,15,'photo_4012250.html');
												thumbnails[4012251] = new thumbnail(4012251,'242352','','0111_thumb.jpg',130, 130,15,'photo_4012251.html');
												thumbnails[4012252] = new thumbnail(4012252,'242352','','0121_thumb.jpg',130, 130,15,'photo_4012252.html');
												thumbnails[4012253] = new thumbnail(4012253,'242352','','013_thumb.jpg',130, 130,15,'photo_4012253.html');
												thumbnails[4012254] = new thumbnail(4012254,'242352','','014_thumb.jpg',130, 130,15,'photo_4012254.html');
												thumbnails[4012255] = new thumbnail(4012255,'242352','','0151_thumb.jpg',130, 130,15,'photo_4012255.html');
												thumbnails[4012256] = new thumbnail(4012256,'242352','','016_thumb.jpg',130, 130,15,'photo_4012256.html');
												thumbnails[4012257] = new thumbnail(4012257,'242352','','0171_thumb.jpg',130, 130,15,'photo_4012257.html');
												thumbnails[4012258] = new thumbnail(4012258,'242352','','018_thumb.jpg',130, 130,15,'photo_4012258.html');
												thumbnails[4012260] = new thumbnail(4012260,'242352','','019_thumb.jpg',130, 130,15,'photo_4012260.html');
												thumbnails[4012261] = new thumbnail(4012261,'242352','','020_thumb.jpg',130, 130,15,'photo_4012261.html');
												thumbnails[4818641] = new thumbnail(4818641,'275315','','RLWadvert72square3_thumb.jpg',130, 130,15,'photo_4818641.html');
												thumbnails[4818342] = new thumbnail(4818342,'275306','','0801_thumb.jpg',130, 130,15,'photo_4818342.html');
												thumbnails[4818344] = new thumbnail(4818344,'275306','','0802_thumb.jpg',130, 130,15,'photo_4818344.html');
												thumbnails[4818347] = new thumbnail(4818347,'275306','','0803_thumb.jpg',130, 130,15,'photo_4818347.html');
												thumbnails[4818350] = new thumbnail(4818350,'275306','','0804_thumb.jpg',130, 130,15,'photo_4818350.html');
												thumbnails[4818354] = new thumbnail(4818354,'275306','','0805_thumb.jpg',130, 130,15,'photo_4818354.html');
												thumbnails[4818357] = new thumbnail(4818357,'275306','','0806_thumb.jpg',130, 130,15,'photo_4818357.html');
												thumbnails[4818358] = new thumbnail(4818358,'275306','','0807_thumb.jpg',130, 130,15,'photo_4818358.html');
												thumbnails[4818359] = new thumbnail(4818359,'275306','','0808_thumb.jpg',130, 130,15,'photo_4818359.html');
												thumbnails[4818360] = new thumbnail(4818360,'275306','','0809_thumb.jpg',130, 130,15,'photo_4818360.html');
												thumbnails[4818361] = new thumbnail(4818361,'275306','','0810_thumb.jpg',130, 130,15,'photo_4818361.html');
												thumbnails[4818575] = new thumbnail(4818575,'275313','','0901_thumb.jpg',130, 130,15,'photo_4818575.html');
												thumbnails[4818578] = new thumbnail(4818578,'275313','','0902_thumb.jpg',130, 130,15,'photo_4818578.html');
												thumbnails[4818581] = new thumbnail(4818581,'275313','','0903_thumb.jpg',130, 130,15,'photo_4818581.html');
												thumbnails[4818583] = new thumbnail(4818583,'275313','','0904_thumb.jpg',130, 130,15,'photo_4818583.html');
												thumbnails[4818586] = new thumbnail(4818586,'275313','','0905_thumb.jpg',130, 130,15,'photo_4818586.html');
												thumbnails[4856946] = new thumbnail(4856946,'277119','','page5_thumb.jpg',130, 130,15,'photo_4856946.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[206190] = new gallery(206190,'3375415,3375375,3375370,3375348,3375344','Commercial Gallery 1','gallery',[3375344,3375346,3375348,3375370,3375372,3375375,3375376,3375391,3375393,3375396,3375405,3375406,3375411,3375413,3375415,3375417],0, 0, '206188', 'gallery_206190.html',0,0);
				  					galleries[206194] = new gallery(206194,'3375458,3375455,3375453,3375450,3375448,3375446,3375444,3375441,3375439,3375437','Commercial Gallery 2','gallery',[3375426,3375429,3375431,3375433,3375434,3375436,3375437,3375439,3375441,3375444,3375446,3375448,3375450,3375453,3375455,3375458],0, 0, '206188', 'gallery_206194.html',0,0);
				  					galleries[206197] = new gallery(206197,'3375528,3375525,3375523,3375520,3375488,3375487,3375484,3375482,3375481,3375477','Commercial Gallery 3','gallery',[3375469,3375471,3375472,3375474,3375475,3375476,3375477,3375481,3375482,3375484,3375487,3375488,3375520,3375523,3375525,3375528],0, 0, '206188', 'gallery_206197.html',0,0);
				  					galleries[275313] = new gallery(275313,'4818586,4818583,4818581,4818578,4818575','Hasselblad Masters 2009','section330799',[4818575,4818578,4818581,4818583,4818586],0, 0, '', 'section330799_275313.html',0,0);
				  					galleries[203058] = new gallery(203058,'3352133,3352130,3352112','Portrait Gallery 1','gallery',[3330879,3349580,3352098,3352102,3352104,3352107,3352110,3352112,3352120,3352123,3352126,3352127,3352130,3352131,3352133,3352135],0, 0, '202249', 'gallery_203058.html',0,0);
				  					galleries[204625] = new gallery(204625,'3352465','Portrait Gallery 2','gallery',[3352435,3352438,3352440,3352443,3352450,3352453,3352457,3352460,3352463,3352465,3352467,3352470,3352473,3352476,3352480,3352507],0, 0, '202249', 'gallery_204625.html',0,0);
				  					galleries[206435] = new gallery(206435,'3379617,3379604','Portrait Gallery 3','gallery',[3379587,3379594,3379596,3379600,3379602,3379604,3379606,3379609,3379615,3379617,3379620,3379622,3379625,3379627,3379629,3379632],0, 0, '202249', 'gallery_206435.html',0,0);
				  					galleries[231155] = new gallery(231155,'3330339','WEDDING','gallery',[],0, 0, '', 'gallery_231155.html',0,0);
				  					galleries[203048] = new gallery(203048,'3330610,3330606,3330603,3330602,3330601,3330596,3330595,3330593,3330592,3330590','Wedding Gallery 1','gallery',[3330559,3330567,3330576,3330585,3330587,3330588,3330590,3330592,3330593,3330595,3330596,3330601,3330602,3330603,3330606,3330610],0, 0, '231155', 'gallery_203048.html',0,0);
				  					galleries[275306] = new gallery(275306,'4818361,4818360,4818359,4818358,4818357,4818354,4818350,4818347,4818344,4818342','Hasselblad Masters 2008','section330799',[4818342,4818344,4818347,4818350,4818354,4818357,4818358,4818359,4818360,4818361],0, 0, '', 'section330799_275306.html',0,0);
				  					galleries[202248] = new gallery(202248,'3330339','Wedding Gallery 2','gallery',[3330199,3330204,3330280,3330307,3330313,3330321,3330326,3330330,3330339,3330344,3330347,3330353,3330361,3330362,3330370,3330374],0, 0, '231155', 'gallery_202248.html',0,0);
				  					galleries[277119] = new gallery(277119,'4856946','BIPP Scottish Wedding Photographer of the Year ','section330799',[4856946],0, 0, '', 'section330799_277119.html',0,0);
				  					galleries[203306] = new gallery(203306,'3343045,3343043,3343041,3343039,3343037,3343036,3343034,3343033,3343030,3343027','Wedding Gallery 3','gallery',[3342996,3343012,3343016,3343021,3343023,3343025,3343027,3343030,3343033,3343034,3343036,3343037,3343039,3343041,3343043,3343045],0, 0, '231155', 'gallery_203306.html',0,0);
				  					galleries[204051] = new gallery(204051,'3344946,3344945,3344942,3344941,3344771,3344768,3344766,3344763,3344760,3344756','Wedding Gallery 4','gallery',[3344716,3344720,3344724,3344730,3344734,3344737,3344756,3344760,3344763,3344766,3344768,3344771,3344941,3344942,3344945,3344946],0, 0, '231155', 'gallery_204051.html',0,0);
				  					galleries[202249] = new gallery(202249,'3379617,3379604,3352465,3352133,3352130,3352112','PORTRAIT','gallery',[],0, 0, '', 'gallery_202249.html',0,0);
				  					galleries[205032] = new gallery(205032,'3358462,3358458,3358457,3358451,3358448,3358444,3358416,3358409,3358400,3358397','Wedding Gallery 5','gallery',[3358370,3358375,3358378,3358381,3358386,3358389,3358397,3358400,3358409,3358416,3358444,3358448,3358451,3358457,3358458,3358462],0, 0, '231155', 'gallery_205032.html',0,0);
				  					galleries[206188] = new gallery(206188,'3375415,3375375,3375370,3375348,3375344','COMMERCIAL','gallery',[],0, 0, '', 'gallery_206188.html',0,0);
				  					galleries[242352] = new gallery(242352,'4012261,4012260,4012258,4012257,4012256,4012255,4012254,4012253,4012252,4012251','Wedding Album 1','gallery',[4011701,4011894,4011982,4012192,4012195,4012239,4012244,4012247,4012249,4012250,4012251,4012252,4012253,4012254,4012255,4012256,4012257,4012258,4012260,4012261],0, 0, '231155', 'gallery_242352.html',0,0);
				  					galleries[275315] = new gallery(275315,'4818641','Real Life Weddings Magazine Profile','gallery',[4818641],0, 0, '231155', 'gallery_275315.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '3378119';
imageSets[2] = '3846771,3379617,3379604,3375415,3375375,3375370,3375348,3375344,3352465,3352133,3352130,3352112,3330339';
imageSets[3] = '4856946,4818641,4818586,4818583,4818581,4818578,4818575,4818361,4818360,4818359,4818358,4818357,4818354,4818350,4818347,4818344,4818342,4012261,4012260,4012258,4012257,4012256,4012255,4012254,4012253,4012252,4012251,4012250,4012249,4012247,4012244,4012239,4012195,4012192,4011982,4011894,4011701,3846771,3794234,3794233,3794232,3794230,3794229,3794228,3794227,3794226,3794225,3794224,3794223,3794222';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/ewanandaudrey/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/ewanandaudrey/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/ewanandaudrey/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/ewanandaudrey/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/ewanandaudrey/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/ewanandaudrey/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/ewanandaudrey/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/ewanandaudrey/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/ewanandaudrey/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/ewanandaudrey/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/ewanandaudrey/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/ewanandaudrey/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/ewanandaudrey/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/ewanandaudrey/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/ewanandaudrey/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/ewanandaudrey/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/ewanandaudrey/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/ewanandaudrey/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/ewanandaudrey/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/ewanandaudrey/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/ewanandaudrey/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/ewanandaudrey/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 = 'Photographer Scotland | Wedding Photographer : ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
	    var options = {};	    	      	      resizePhotoInfo(options);
        if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
  	      toggleAddToCartConfirm(backgrounds);
  	    } else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
  	      toggleAddToCartConfirm(photos);
  	    }
	    });
    }
        if (!op.speed) {      clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));      $('body').trigger('clikUpdate');    }        
    return html;			}
	else {
				
		window.location = 'photo_' + nextPhoto.id + '.html';
	}
		
}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array){
  if (typeof(array) !== 'object') {
    array = photos;
  }
	if($('#paymentConfirm').length > 0){
		$('#paymentConfirm').hide();
		$('#paymentAddButton')
		.unbind()
		.click(function(){
						form = document.getElementById('paymentForm');
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm').text('Item added to cart').show();}
				else{
					$('#paymentConfirm').text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm').text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}
/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp = temp +  '<p id="imageDescription">' + this.description + '</p>';
	}
		if (this.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;
	}
}

			

