window.thumbnails = new Object();
												thumbnails[4553207] = new thumbnail(4553207,'','','Img0295_CP_thumb.JPG',130, 98,18,'#');
												thumbnails[4485005] = new thumbnail(4485005,'261051','','IMG_1200_CP1_thumb.JPG',130, 87,18,'photo_4485005.html');
												thumbnails[4477199] = new thumbnail(4477199,'261051','','_MG_7201_CP_thumb.JPG',130, 195,18,'photo_4477199.html');
												thumbnails[4485003] = new thumbnail(4485003,'261051','','_MG_7843_CP1_thumb.JPG',130, 87,18,'photo_4485003.html');
												thumbnails[4470572] = new thumbnail(4470572,'261051','','IMG_4436_CP_thumb.JPG',130, 195,18,'photo_4470572.html');
												thumbnails[4483126] = new thumbnail(4483126,'261051','','QD0021021_CP1_thumb.JPG',130, 87,18,'photo_4483126.html');
												thumbnails[4485569] = new thumbnail(4485569,'261051','','IMG_4336_CP1_thumb.JPG',130, 87,18,'photo_4485569.html');
												thumbnails[4483120] = new thumbnail(4483120,'261051','','IMG_2204_CP_thumb.JPG',130, 195,18,'photo_4483120.html');
												thumbnails[4484987] = new thumbnail(4484987,'261051','','IMG_0740_CP1_thumb.JPG',130, 87,18,'photo_4484987.html');
												thumbnails[4467412] = new thumbnail(4467412,'261051','','_MG_5699_CP_thumb.JPG',130, 195,18,'photo_4467412.html');
												thumbnails[4485571] = new thumbnail(4485571,'261051','','QD0011021_CP1_thumb.JPG',130, 88,18,'photo_4485571.html');
												thumbnails[4477200] = new thumbnail(4477200,'261051','','_MG_7949_CP2_thumb.JPG',130, 195,18,'photo_4477200.html');
												thumbnails[4485009] = new thumbnail(4485009,'261051','','Photo04_2_CP1_thumb.JPG',130, 87,18,'photo_4485009.html');
												thumbnails[4467401] = new thumbnail(4467401,'261051','','_MG_5360_CP3_thumb.JPG',130, 195,18,'photo_4467401.html');
												thumbnails[4485567] = new thumbnail(4485567,'261051','','IMG_0983_CP1_thumb.JPG',130, 87,18,'photo_4485567.html');
												thumbnails[4485006] = new thumbnail(4485006,'261051','','IMG_2160_CP1_thumb.JPG',130, 87,18,'photo_4485006.html');
												thumbnails[8177707] = new thumbnail(8177707,'436663','Bali ','WeddingFairPhotos0001_thumb.JPG',130, 195,18,'photo_8177707.html');
												thumbnails[8177708] = new thumbnail(8177708,'436663','Bali','WeddingFairPhotos0002_thumb.JPG',130, 86,18,'photo_8177708.html');
												thumbnails[8177709] = new thumbnail(8177709,'436663','Bali','WeddingFairPhotos0003_thumb.JPG',130, 86,18,'photo_8177709.html');
												thumbnails[8177710] = new thumbnail(8177710,'436663','South Africa','WeddingFairPhotos0004_thumb.JPG',130, 87,18,'photo_8177710.html');
												thumbnails[8177711] = new thumbnail(8177711,'436663','South Africa','WeddingFairPhotos0006_thumb.JPG',130, 87,18,'photo_8177711.html');
												thumbnails[8177713] = new thumbnail(8177713,'436663','Australia','WeddingFairPhotos0007_thumb.JPG',130, 97,18,'photo_8177713.html');
												thumbnails[8177724] = new thumbnail(8177724,'436663','Australia','WeddingFairPhotos0008_thumb.JPG',130, 97,18,'photo_8177724.html');
												thumbnails[8177760] = new thumbnail(8177760,'436663','Australia','WeddingFairPhotos0009_thumb.JPG',130, 75,18,'photo_8177760.html');
												thumbnails[8177762] = new thumbnail(8177762,'436663','Australia','WeddingFairPhotos0010_thumb.JPG',130, 97,18,'photo_8177762.html');
												thumbnails[8177769] = new thumbnail(8177769,'436663','Zanzibar','WeddingFairPhotos0012_thumb.JPG',130, 97,18,'photo_8177769.html');
												thumbnails[8177777] = new thumbnail(8177777,'436663','Africa','WeddingFairPhotos0013_thumb.JPG',130, 97,18,'photo_8177777.html');
												thumbnails[8177782] = new thumbnail(8177782,'436663','Africa','WeddingFairPhotos0014_thumb.JPG',130, 173,18,'photo_8177782.html');
												thumbnails[8177785] = new thumbnail(8177785,'436663','Japan','WeddingFairPhotos0015_thumb.JPG',130, 97,18,'photo_8177785.html');
												thumbnails[8177806] = new thumbnail(8177806,'436663','Thailand','WeddingFairPhotos00161_thumb.JPG',130, 97,18,'photo_8177806.html');
												thumbnails[8177807] = new thumbnail(8177807,'436663','Bali','WeddingFairPhotos0017_thumb.JPG',130, 97,18,'photo_8177807.html');
												thumbnails[8177809] = new thumbnail(8177809,'436663','Bali','WeddingFairPhotos0018_thumb.JPG',130, 86,18,'photo_8177809.html');
												thumbnails[8177810] = new thumbnail(8177810,'436663','Bali','WeddingFairPhotos0019_thumb.JPG',130, 97,18,'photo_8177810.html');
												thumbnails[8177811] = new thumbnail(8177811,'436663','Hong Kong','WeddingFairPhotos0020_thumb.JPG',130, 97,18,'photo_8177811.html');
												thumbnails[8177812] = new thumbnail(8177812,'436663','Maldives','WeddingFairPhotos0022_thumb.JPG',130, 87,18,'photo_8177812.html');
												thumbnails[8177813] = new thumbnail(8177813,'436663','Tanzania','WeddingFairPhotos0023_thumb.JPG',130, 98,18,'photo_8177813.html');
												thumbnails[8177816] = new thumbnail(8177816,'436663','Mauritius','WeddingFairPhotos0025_thumb.JPG',130, 86,18,'photo_8177816.html');
												thumbnails[8177818] = new thumbnail(8177818,'436663','Mauritius','WeddingFairPhotos0027_thumb.JPG',130, 87,18,'photo_8177818.html');
												thumbnails[8177839] = new thumbnail(8177839,'436663','Mauritius','WeddingFairPhotos0028_thumb.JPG',130, 202,18,'photo_8177839.html');
												thumbnails[8177841] = new thumbnail(8177841,'436663','Mauritius','WeddingFairPhotos0029_thumb.JPG',130, 202,18,'photo_8177841.html');
												thumbnails[8177844] = new thumbnail(8177844,'436663','Thailand','WeddingFairPhotos0030_thumb.JPG',130, 97,18,'photo_8177844.html');
												thumbnails[8177845] = new thumbnail(8177845,'436663','Dubai','WeddingFairPhotos0031_thumb.JPG',130, 97,18,'photo_8177845.html');
												thumbnails[8177847] = new thumbnail(8177847,'436663','Thailand','WeddingFairPhotos0032_thumb.JPG',130, 97,18,'photo_8177847.html');
												thumbnails[8177848] = new thumbnail(8177848,'436663','Africa','WeddingFairPhotos0033_thumb.JPG',130, 195,18,'photo_8177848.html');
												thumbnails[8177849] = new thumbnail(8177849,'436663','Africa','WeddingFairPhotos0034_thumb.JPG',130, 86,18,'photo_8177849.html');
												thumbnails[8177850] = new thumbnail(8177850,'436663','Italy','WeddingFairPhotos0036_thumb.JPG',130, 97,18,'photo_8177850.html');
												thumbnails[8177851] = new thumbnail(8177851,'436663','Italy','WeddingFairPhotos0035_thumb.JPG',130, 97,18,'photo_8177851.html');
												thumbnails[4485369] = new thumbnail(4485369,'259994','','IMG_1044_CP_thumb.JPG',130, 87,18,'photo_4485369.html');
												thumbnails[4485542] = new thumbnail(4485542,'259994','','QD0031027_CP_thumb.JPG',130, 87,18,'photo_4485542.html');
												thumbnails[4467509] = new thumbnail(4467509,'259994','','Wildlife_Giraffe_thumb.JPG',130, 88,18,'photo_4467509.html');
												thumbnails[4485361] = new thumbnail(4485361,'259994','','IMG_0983_CP_thumb.JPG',130, 87,18,'photo_4485361.html');
												thumbnails[4470567] = new thumbnail(4470567,'259994','','IMG_0740_CP_thumb.JPG',130, 87,18,'photo_4470567.html');
												thumbnails[4485386] = new thumbnail(4485386,'259994','','QD0011021_CP_thumb.JPG',130, 88,18,'photo_4485386.html');
												thumbnails[4489523] = new thumbnail(4489523,'259994','','_MG_5360_CP4_thumb.JPG',130, 195,18,'photo_4489523.html');
												thumbnails[4489530] = new thumbnail(4489530,'259994','','IMG_4436_CP1_thumb.JPG',130, 195,18,'photo_4489530.html');
												thumbnails[4489526] = new thumbnail(4489526,'259994','','_MG_5699_CP1_thumb.JPG',130, 195,18,'photo_4489526.html');
												thumbnails[4470434] = new thumbnail(4470434,'259994','','IMG_4374_CP_thumb.JPG',130, 87,18,'photo_4470434.html');
												thumbnails[4467482] = new thumbnail(4467482,'259994','','QD0031029_CP2_thumb.JPG',130, 87,18,'photo_4467482.html');
												thumbnails[4485335] = new thumbnail(4485335,'259994','','_MG_6199_CP_thumb.JPG',130, 87,18,'photo_4485335.html');
												thumbnails[4470440] = new thumbnail(4470440,'259994','','_MG_5225_CP_thumb.JPG',130, 87,18,'photo_4470440.html');
												thumbnails[4467484] = new thumbnail(4467484,'259994','','QD0031030_CP1_thumb.JPG',130, 87,18,'photo_4467484.html');
												thumbnails[4485524] = new thumbnail(4485524,'259994','','QD0091035_CP_thumb.JPG',130, 87,18,'photo_4485524.html');
												thumbnails[4489527] = new thumbnail(4489527,'259994','','IMG_4318_CP_thumb.JPG',130, 195,18,'photo_4489527.html');
												thumbnails[4491455] = new thumbnail(4491455,'259994','','_MG_5252_CP_thumb.JPG',130, 195,18,'photo_4491455.html');
												thumbnails[4504827] = new thumbnail(4504827,'259994','','_MG_8044_CP_thumb.JPG',130, 195,18,'photo_4504827.html');
												thumbnails[4467405] = new thumbnail(4467405,'259994','','_MG_5397_CP_thumb.JPG',130, 87,18,'photo_4467405.html');
												thumbnails[4485398] = new thumbnail(4485398,'259994','','IMG_4336_CP_thumb.JPG',130, 87,18,'photo_4485398.html');
												thumbnails[4470465] = new thumbnail(4470465,'259994','','IMG_4451_CP_thumb.JPG',130, 87,18,'photo_4470465.html');
												thumbnails[4485303] = new thumbnail(4485303,'259994','','_MG_5911_CP_thumb.JPG',130, 87,18,'photo_4485303.html');
												thumbnails[4467403] = new thumbnail(4467403,'259994','','_MG_5271_CP3_thumb.JPG',130, 87,18,'photo_4467403.html');
												thumbnails[4485533] = new thumbnail(4485533,'259994','','IMG_4313_CP_thumb.JPG',130, 87,18,'photo_4485533.html');
												thumbnails[4467408] = new thumbnail(4467408,'259994','','_MG_5683_CP_thumb.JPG',130, 87,18,'photo_4467408.html');
												thumbnails[4467489] = new thumbnail(4467489,'259994','','Photo12_9_CP_thumb.JPG',130, 87,18,'photo_4467489.html');
												thumbnails[4467416] = new thumbnail(4467416,'259994','','IMG_0873_CP_thumb.JPG',130, 87,18,'photo_4467416.html');
												thumbnails[4483279] = new thumbnail(4483279,'259988','','IMG_2160_CP_thumb.JPG',130, 87,18,'photo_4483279.html');
												thumbnails[4477601] = new thumbnail(4477601,'259988','','_MG_5064_CP1_thumb.JPG',130, 87,18,'photo_4477601.html');
												thumbnails[4477586] = new thumbnail(4477586,'259988','','IMG_1686_CP_thumb.JPG',130, 87,18,'photo_4477586.html');
												thumbnails[4477576] = new thumbnail(4477576,'259988','','IMG_0471_CP_thumb.JPG',130, 87,18,'photo_4477576.html');
												thumbnails[4477637] = new thumbnail(4477637,'259988','','Photo09_6_CP_thumb.JPG',130, 87,18,'photo_4477637.html');
												thumbnails[4477619] = new thumbnail(4477619,'259988','','IMG_2242_CP_thumb.JPG',130, 87,18,'photo_4477619.html');
												thumbnails[4489534] = new thumbnail(4489534,'259988','','_MG_7201_CP1_thumb.JPG',130, 195,18,'photo_4489534.html');
												thumbnails[4489537] = new thumbnail(4489537,'259988','','_MG_7949_CP3_thumb.JPG',130, 195,18,'photo_4489537.html');
												thumbnails[4489543] = new thumbnail(4489543,'259988','','IMG_2204_CP1_thumb.JPG',130, 195,18,'photo_4489543.html');
												thumbnails[4477642] = new thumbnail(4477642,'259988','','Photo11_8_CP_thumb.JPG',130, 87,18,'photo_4477642.html');
												thumbnails[4477611] = new thumbnail(4477611,'259988','','_MG_7843_CP_thumb.JPG',130, 87,18,'photo_4477611.html');
												thumbnails[4483271] = new thumbnail(4483271,'259988','','IMG_2125_CP_thumb.JPG',130, 87,18,'photo_4483271.html');
												thumbnails[4477634] = new thumbnail(4477634,'259988','','Photo07_5_CP_thumb.JPG',130, 87,18,'photo_4477634.html');
												thumbnails[4477606] = new thumbnail(4477606,'259988','','_MG_6385_CP_thumb.JPG',130, 87,18,'photo_4477606.html');
												thumbnails[4477614] = new thumbnail(4477614,'259988','','IMG_1200_CP_thumb.JPG',130, 87,18,'photo_4477614.html');
												thumbnails[4489540] = new thumbnail(4489540,'259988','','QD0021022_CP1_thumb.JPG',130, 195,18,'photo_4489540.html');
												thumbnails[4504843] = new thumbnail(4504843,'259988','','P1000875_CP_thumb.JPG',130, 195,18,'photo_4504843.html');
												thumbnails[4504856] = new thumbnail(4504856,'259988','','IMG_2079_CP_thumb.JPG',130, 195,18,'photo_4504856.html');
												thumbnails[4477626] = new thumbnail(4477626,'259988','','Photo07_4_CP_thumb.JPG',130, 87,18,'photo_4477626.html');
												thumbnails[4477580] = new thumbnail(4477580,'259988','','IMG_1820_CP_thumb.JPG',130, 87,18,'photo_4477580.html');
												thumbnails[4477574] = new thumbnail(4477574,'259988','','_MG_7268_CP_thumb.JPG',130, 87,18,'photo_4477574.html');
												thumbnails[4477623] = new thumbnail(4477623,'259988','','Photo04_2_CP_thumb.JPG',130, 87,18,'photo_4477623.html');
												thumbnails[4477608] = new thumbnail(4477608,'259988','','_MG_6414_CP_thumb.JPG',130, 87,18,'photo_4477608.html');
												thumbnails[4483135] = new thumbnail(4483135,'259988','','QD0021021_CP_thumb.JPG',130, 87,18,'photo_4483135.html');
												thumbnails[7365510] = new thumbnail(7365510,'398592','','_MG_8135_CP_thumb.JPG',130, 87,18,'photo_7365510.html');
												thumbnails[7365545] = new thumbnail(7365545,'398592','','_MG_8138_CP_thumb.JPG',130, 87,18,'photo_7365545.html');
												thumbnails[7365548] = new thumbnail(7365548,'398592','','_MG_8152_CP_thumb.JPG',130, 87,18,'photo_7365548.html');
												thumbnails[7365556] = new thumbnail(7365556,'398592','','_MG_8289_CP_thumb.JPG',130, 87,18,'photo_7365556.html');
												thumbnails[7365561] = new thumbnail(7365561,'398592','','_MG_8295_CP_thumb.JPG',130, 87,18,'photo_7365561.html');
												thumbnails[7365592] = new thumbnail(7365592,'398592','','IMG_0316_CP_thumb.JPG',130, 87,18,'photo_7365592.html');
												thumbnails[7365594] = new thumbnail(7365594,'398592','','IMG_0349_CP_thumb.JPG',130, 87,18,'photo_7365594.html');
												thumbnails[7365595] = new thumbnail(7365595,'398592','','IMG_0370_CP_thumb.JPG',130, 87,18,'photo_7365595.html');
												thumbnails[7365599] = new thumbnail(7365599,'398592','','IMG_0411_CP_thumb.JPG',130, 87,18,'photo_7365599.html');
												thumbnails[7365603] = new thumbnail(7365603,'398592','','IMG_0558_CP_thumb.JPG',130, 87,18,'photo_7365603.html');
												thumbnails[7365563] = new thumbnail(7365563,'398592','','_MG_8330_CP_thumb.JPG',130, 87,18,'photo_7365563.html');
												thumbnails[7365623] = new thumbnail(7365623,'398592','','_MG_8332_CP_thumb.JPG',130, 87,18,'photo_7365623.html');
												thumbnails[7365628] = new thumbnail(7365628,'398592','','_MG_8350_CP1_thumb.JPG',130, 87,18,'photo_7365628.html');
												thumbnails[7365724] = new thumbnail(7365724,'398592','','_MG_8351_CP_thumb.JPG',130, 87,18,'photo_7365724.html');
												thumbnails[7365729] = new thumbnail(7365729,'398592','','_MG_8378_CP_thumb.JPG',130, 87,18,'photo_7365729.html');
												thumbnails[7365732] = new thumbnail(7365732,'398592','','_MG_8419_CP_thumb.JPG',130, 87,18,'photo_7365732.html');
												thumbnails[7365735] = new thumbnail(7365735,'398592','','_MG_8454_CP_thumb.JPG',130, 87,18,'photo_7365735.html');
												thumbnails[7365767] = new thumbnail(7365767,'398592','','_MG_8455_CP_thumb.JPG',130, 87,18,'photo_7365767.html');
												thumbnails[7367957] = new thumbnail(7367957,'398592','','_MG_8457_CP_thumb.JPG',130, 87,18,'photo_7367957.html');
												thumbnails[7367962] = new thumbnail(7367962,'398592','','_MG_8459_CP_thumb.JPG',130, 87,18,'photo_7367962.html');
												thumbnails[7367965] = new thumbnail(7367965,'398592','','_MG_8486_CP_thumb.JPG',130, 87,18,'photo_7367965.html');
												thumbnails[7367966] = new thumbnail(7367966,'398592','','_MG_8529_CP_thumb.JPG',130, 87,18,'photo_7367966.html');
												thumbnails[7367967] = new thumbnail(7367967,'398592','','_MG_8536_CP_thumb.JPG',130, 87,18,'photo_7367967.html');
												thumbnails[7367968] = new thumbnail(7367968,'398592','','_MG_8570_CP_thumb.JPG',130, 87,18,'photo_7367968.html');
												thumbnails[7367971] = new thumbnail(7367971,'398592','','_MG_8618_CP_thumb.JPG',130, 87,18,'photo_7367971.html');
												thumbnails[7367975] = new thumbnail(7367975,'398592','','_MG_8635_CP_thumb.JPG',130, 87,18,'photo_7367975.html');
												thumbnails[7367981] = new thumbnail(7367981,'398592','','_MG_8682_CP_thumb.JPG',130, 87,18,'photo_7367981.html');
												thumbnails[7367992] = new thumbnail(7367992,'398592','','_MG_8707_CP_thumb.JPG',130, 87,18,'photo_7367992.html');
												thumbnails[7367998] = new thumbnail(7367998,'398592','','_MG_8768_CP_thumb.JPG',130, 87,18,'photo_7367998.html');
												thumbnails[7368078] = new thumbnail(7368078,'398592','','_MG_8819_CP_thumb.JPG',130, 87,18,'photo_7368078.html');
												thumbnails[7368080] = new thumbnail(7368080,'398592','','_MG_8824_CP_thumb.JPG',130, 87,18,'photo_7368080.html');
												thumbnails[7368091] = new thumbnail(7368091,'398592','','_MG_8845_CP_thumb.JPG',130, 87,18,'photo_7368091.html');
												thumbnails[7368095] = new thumbnail(7368095,'398592','','IMG_0576_CP_thumb.JPG',130, 87,18,'photo_7368095.html');
												thumbnails[7368099] = new thumbnail(7368099,'398592','','IMG_0594_CP_thumb.JPG',130, 87,18,'photo_7368099.html');
												thumbnails[7368101] = new thumbnail(7368101,'398592','','IMG_0603_CP_thumb.JPG',130, 87,18,'photo_7368101.html');
												thumbnails[7368110] = new thumbnail(7368110,'398592','','IMG_0627_CP_thumb.JPG',130, 87,18,'photo_7368110.html');
												thumbnails[7368111] = new thumbnail(7368111,'398592','','IMG_0654_CP_thumb.JPG',130, 87,18,'photo_7368111.html');
												thumbnails[7368113] = new thumbnail(7368113,'398592','','IMG_0690_CP_thumb.JPG',130, 87,18,'photo_7368113.html');
												thumbnails[7368124] = new thumbnail(7368124,'398592','','IMG_0698_CP_thumb.JPG',130, 87,18,'photo_7368124.html');
												thumbnails[7368136] = new thumbnail(7368136,'398592','','IMG_0706_CP_thumb.JPG',130, 87,18,'photo_7368136.html');
												thumbnails[7368158] = new thumbnail(7368158,'398592','','IMG_0723_CP_thumb.JPG',130, 87,18,'photo_7368158.html');
												thumbnails[7368273] = new thumbnail(7368273,'398592','','IMG_0810_CP_thumb.JPG',130, 87,18,'photo_7368273.html');
												thumbnails[7368285] = new thumbnail(7368285,'398592','','IMG_0831_CP_thumb.JPG',130, 87,18,'photo_7368285.html');
												thumbnails[7368280] = new thumbnail(7368280,'398592','','IMG_0991_CP_thumb.JPG',130, 87,18,'photo_7368280.html');
												thumbnails[7368287] = new thumbnail(7368287,'398592','','IMG_0996_CP_thumb.JPG',130, 87,18,'photo_7368287.html');
												thumbnails[7368291] = new thumbnail(7368291,'398592','','IMG_1011_CP_thumb.JPG',130, 87,18,'photo_7368291.html');
												thumbnails[7368293] = new thumbnail(7368293,'398592','','IMG_1037_CP_thumb.JPG',130, 87,18,'photo_7368293.html');
												thumbnails[7368295] = new thumbnail(7368295,'398592','','IMG_1066_CP_thumb.JPG',130, 87,18,'photo_7368295.html');
												thumbnails[4471628] = new thumbnail(4471628,'260948','','_MG_4943_CP_thumb.JPG',130, 195,18,'photo_4471628.html');
												thumbnails[4471631] = new thumbnail(4471631,'260951','','_MG_4952_CP_thumb.JPG',130, 195,18,'photo_4471631.html');
												thumbnails[4471633] = new thumbnail(4471633,'260946','','_MG_4964_CP_thumb.JPG',130, 195,18,'photo_4471633.html');
												thumbnails[4471636] = new thumbnail(4471636,'260952','','_MG_4985_CP_thumb.JPG',130, 195,18,'photo_4471636.html');
												thumbnails[4471639] = new thumbnail(4471639,'260947','','_MG_4991_CP_thumb.JPG',130, 195,18,'photo_4471639.html');
												thumbnails[4471642] = new thumbnail(4471642,'260949','','_MG_5013_CP_thumb.JPG',130, 195,18,'photo_4471642.html');
												thumbnails[7362641] = new thumbnail(7362641,'260946','Sydney Harbour Bridge','PB250143_CP1_thumb.JPG',130, 87,18,'photo_7362641.html');
												thumbnails[7362639] = new thumbnail(7362639,'260946','The Rocks','PB250148_CP1_thumb.JPG',130, 87,18,'photo_7362639.html');
												thumbnails[7365045] = new thumbnail(7365045,'260946','More Rocks','PB250147_CP_thumb.JPG',130, 87,18,'photo_7365045.html');
												thumbnails[7365057] = new thumbnail(7365057,'260946','The Four Seasons in Sydney','PB250151_CP1_thumb.JPG',130, 87,18,'photo_7365057.html');
												thumbnails[7365059] = new thumbnail(7365059,'260946','Harbour view','PB250152_CP_thumb.JPG',130, 87,18,'photo_7365059.html');
												thumbnails[7367795] = new thumbnail(7367795,'260946','Bondi Beach','PB260167_CP1_thumb.JPG',130, 87,18,'photo_7367795.html');
												thumbnails[7367845] = new thumbnail(7367845,'260946','Wolgan Valley','PB270202_CP_thumb.JPG',130, 87,18,'photo_7367845.html');
												thumbnails[7367848] = new thumbnail(7367848,'260946','Sundowners in the Blue Mountains','PB270212_CP_thumb.JPG',130, 87,18,'photo_7367848.html');
												thumbnails[7367854] = new thumbnail(7367854,'260946','My own Red Wine','PB300227_CP_thumb.JPG',130, 87,18,'photo_7367854.html');
												thumbnails[7367858] = new thumbnail(7367858,'260946','Kangaroo Island','PC010246_CP_thumb.JPG',130, 87,18,'photo_7367858.html');
												thumbnails[7367861] = new thumbnail(7367861,'260946','Enjoying Kangaroo Island','PC010251_CP_thumb.JPG',130, 87,18,'photo_7367861.html');
												thumbnails[4556126] = new thumbnail(4556126,'260948','It felt like an early start.','Img0012_CP_thumb.JPG',130, 87,18,'photo_4556126.html');
												thumbnails[4556139] = new thumbnail(4556139,'260948','You lookin at me????','Img0027_CP_thumb.JPG',130, 87,18,'photo_4556139.html');
												thumbnails[4556149] = new thumbnail(4556149,'260948','Oh come on - be nice!','Img0050_CP_thumb.JPG',130, 87,18,'photo_4556149.html');
												thumbnails[4556331] = new thumbnail(4556331,'260948','The girl gets cold!','Img0019_CP_thumb.JPG',130, 87,18,'photo_4556331.html');
												thumbnails[4556144] = new thumbnail(4556144,'260948','You\'ll never guess where this was taken.','Img0034_CP_thumb.JPG',130, 87,18,'photo_4556144.html');
												thumbnails[4556155] = new thumbnail(4556155,'260948','The transport arrangements were a bit unusual.','Img0053_CP_thumb.JPG',130, 87,18,'photo_4556155.html');
												thumbnails[4556158] = new thumbnail(4556158,'260948','The places I end up!','Img0086_CP_thumb.JPG',130, 87,18,'photo_4556158.html');
												thumbnails[4556333] = new thumbnail(4556333,'260948','New take on the boat race.','Img0078_CP_thumb.JPG',130, 87,18,'photo_4556333.html');
												thumbnails[4556186] = new thumbnail(4556186,'260948','Tough job these hotel inspections...','106_106_CP_thumb.JPG',130, 87,18,'photo_4556186.html');
												thumbnails[4556191] = new thumbnail(4556191,'260948','No shortage of water in Sweden.','113_113_CP_thumb.JPG',130, 87,18,'photo_4556191.html');
												thumbnails[4556195] = new thumbnail(4556195,'260948','A lovely clean country.','139_139_CP_thumb.JPG',130, 87,18,'photo_4556195.html');
												thumbnails[8172957] = new thumbnail(8172957,'260948','Not yet the pilot!','SuesPix0015_thumb.JPG',130, 98,18,'photo_8172957.html');
												thumbnails[8172996] = new thumbnail(8172996,'260948','Where\'s the lodge !','SuesPix0018_thumb.JPG',130, 98,18,'photo_8172996.html');
												thumbnails[8173025] = new thumbnail(8173025,'260948','Just parked the boats !','SuesPix0052_thumb.JPG',130, 98,18,'photo_8173025.html');
												thumbnails[8173144] = new thumbnail(8173144,'260948','Room for a little one!','SuesPix0095_thumb.JPG',130, 98,18,'photo_8173144.html');
												thumbnails[8173157] = new thumbnail(8173157,'260948','Leaving the lodge','SuesPix0099_thumb.JPG',130, 98,18,'photo_8173157.html');
												thumbnails[8173165] = new thumbnail(8173165,'260948','Half way there !','SuesPix0116_thumb.JPG',130, 173,18,'photo_8173165.html');
												thumbnails[8173177] = new thumbnail(8173177,'260948','Wow !','SuesPix0122_thumb.JPG',130, 98,18,'photo_8173177.html');
												thumbnails[8173195] = new thumbnail(8173195,'260948','Is there anything on the line !','SuesPix0130_thumb.JPG',130, 98,18,'photo_8173195.html');
												thumbnails[8173202] = new thumbnail(8173202,'260948','Where are you ? ','SuesPix0218_thumb.JPG',130, 98,18,'photo_8173202.html');
												thumbnails[8173218] = new thumbnail(8173218,'260948','Back into civilisation ','SuesPix0228_thumb.JPG',130, 98,18,'photo_8173218.html');
												thumbnails[8173231] = new thumbnail(8173231,'260948','Peek a boo !','SuesPix0236_thumb.JPG',130, 98,18,'photo_8173231.html');
												thumbnails[8173236] = new thumbnail(8173236,'260948','How cute !','SuesPix0212_thumb.JPG',130, 98,18,'photo_8173236.html');
												thumbnails[4596359] = new thumbnail(4596359,'260947','This is what Victoria does when she\'s not at work...','DSCF0292_CP_thumb.JPG',130, 195,18,'photo_4596359.html');
												thumbnails[4596363] = new thumbnail(4596363,'260947','OK Victoria, where\'s the hotel??','DSCF0210_CP_thumb.JPG',130, 195,18,'photo_4596363.html');
												thumbnails[4596366] = new thumbnail(4596366,'260947','It looks a bit cold!!','DSCF0191_CP_thumb.JPG',130, 195,18,'photo_4596366.html');
												thumbnails[4596370] = new thumbnail(4596370,'260947','And evening falls, but hopefully not Victoria.','DSCF0178_CP_thumb.JPG',130, 195,18,'photo_4596370.html');
												thumbnails[4596372] = new thumbnail(4596372,'260947','So what did he carry?','DSCF0173_CP_thumb.JPG',130, 195,18,'photo_4596372.html');
												thumbnails[4596381] = new thumbnail(4596381,'260947','Don\'t look down!!!','DSCF0234_CP_thumb.JPG',130, 87,18,'photo_4596381.html');
												thumbnails[4596386] = new thumbnail(4596386,'260947','And this really was the camp site.','DSCF0135_CP_thumb.JPG',130, 87,18,'photo_4596386.html');
												thumbnails[4596397] = new thumbnail(4596397,'260947','Victoria also does normal.','DSCF0078_CP_thumb.JPG',130, 87,18,'photo_4596397.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[261051] = new gallery(261051,'4485571,4485569,4485567,4485009,4485006,4485005,4485003,4484987,4483126,4483120','Cover','section314921',[4485005,4477199,4485003,4470572,4483126,4485569,4483120,4484987,4467412,4485571,4477200,4485009,4467401,4485567,4485006],0, 0, '', 'section314921.html',0,1);
				  					galleries[259994] = new gallery(259994,'4485542,4485533,4485524,4485398,4485386,4485369,4485361,4485335,4485303,4470567,4470465,4470440,4470434,4467509,4467489,4467484,4467482,4467416,4467408,4467405,4467403','Wildlife & Birds','gallery',[4485369,4485542,4467509,4485361,4470567,4485386,4489523,4489530,4489526,4470434,4467482,4485335,4470440,4467484,4485524,4489527,4491455,4504827,4467405,4485398,4470465,4485303,4467403,4485533,4467408,4467489,4467416],0, 0, '', 'gallery_259994.html',0,0);
				  					galleries[259988] = new gallery(259988,'4483279,4483271,4483135,4477642,4477637,4477634,4477626,4477623,4477619,4477614,4477611,4477608,4477606,4477601,4477586,4477580,4477576,4477574','People & Places','gallery',[4483279,4477601,4477586,4477576,4477637,4477619,4489534,4489537,4489543,4477642,4477611,4483271,4477634,4477606,4477614,4489540,4504843,4504856,4477626,4477580,4477574,4477623,4477608,4483135],0, 0, '', 'gallery_259988.html',0,0);
				  					galleries[398592] = new gallery(398592,'7368295,7368293,7368291,7368287,7368285,7368280,7368273,7368136,7368124,7368113,7368111,7368110,7368101,7368099,7368095,7368091,7368080,7368078,7367998,7367992,7367981,7367975,7367971,7367968,7367967,7367966,7367965,7367962,7367957,7365767,7365735,7365732,7365729,7365724,7365628,7365623,7365603,7365599,7365595,7365594,7365592,7365563,7365561,7365556,7365548,7365545,7365510','East Africa 2009','gallery',[7365510,7365545,7365548,7365556,7365561,7365592,7365594,7365595,7365599,7365603,7365563,7365623,7365628,7365724,7365729,7365732,7365735,7365767,7367957,7367962,7367965,7367966,7367967,7367968,7367971,7367975,7367981,7367992,7367998,7368078,7368080,7368091,7368095,7368099,7368101,7368110,7368111,7368113,7368124,7368136,7368158,7368273,7368285,7368280,7368287,7368291,7368293,7368295],0, 0, '', 'gallery_398592.html',0,0);
				  					galleries[260952] = new gallery(260952,'4471636','Bernadette','section313438',[4471636],0, 0, '', 'section313438_260952.html',0,0);
				  					galleries[260946] = new gallery(260946,'4471633','Claire','section313438',[4471633,7362641,7362639,7365045,7365057,7365059,7367795,7367845,7367848,7367854,7367858,7367861],0, 0, '', 'section313438_260946.html',0,0);
				  					galleries[260951] = new gallery(260951,'4471631','Mel','section313438',[4471631],0, 0, '', 'section313438_260951.html',0,0);
				  					galleries[260949] = new gallery(260949,'4471642','Sam','section313438',[4471642],0, 0, '', 'section313438_260949.html',0,0);
				  					galleries[260948] = new gallery(260948,'4471628','Sue','section313438',[4471628,4556126,4556139,4556149,4556331,4556144,4556155,4556158,4556333,4556186,4556191,4556195,8172957,8172996,8173025,8173144,8173157,8173165,8173177,8173195,8173202,8173218,8173231,8173236],0, 0, '', 'section313438_260948.html',0,0);
				  					galleries[260947] = new gallery(260947,'4471639','Victoria','section313438',[4471639,4596359,4596363,4596366,4596370,4596372,4596381,4596386,4596397],0, 0, '', 'section313438_260947.html',0,0);
				  					galleries[436663] = new gallery(436663,'8177851,8177850,8177849,8177848,8177847,8177845,8177844,8177841,8177839,8177818','Weddings and Honeymoons','gallery',[8177707,8177708,8177709,8177710,8177711,8177713,8177724,8177760,8177762,8177769,8177777,8177782,8177785,8177806,8177807,8177809,8177810,8177811,8177812,8177813,8177816,8177818,8177839,8177841,8177844,8177845,8177847,8177848,8177849,8177850,8177851],0, 0, '', 'gallery_436663.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '4553207,4485571,4485569,4485567,4485009,4485006,4485005,4485003,4484987,4483126,4483120,4477200,4477199,4470572,4467412,4467401';
imageSets[2] = '7368295,7368293,7368291,7368287,7368285,7368280,7368273,7368136,7368124,7368113,7368111,7368110,7368101,7368099,7368095,7368091,7368080,7368078,7367998,7367992,7367981,7367975,7367971,7367968,7367967,7367966,7367965,7367962,7367957,7365767,7365735,7365732,7365729,7365724,7365628,7365623,7365603,7365599,7365595,7365594,7365592,7365563,7365561,7365556,7365548,7365545,7365510,4485542,4485533,4485524,4485398,4485386,4485369,4485361,4485335,4485303,4483279,4483271,4483135,4477642,4477637,4477634,4477626,4477623,4477619,4477614,4477611,4477608,4477606,4477601,4477586,4477580,4477576,4477574,4471642,4471639,4471636,4471633,4471631,4471628,4470567,4470465,4470440,4470434,4467509,4467489,4467484,4467482,4467416,4467408,4467405,4467403';
imageSets[3] = '8177851,8177850,8177849,8177848,8177847,8177845,8177844,8177841,8177839,8177818,8177816,8177813,8177812,8177811,8177810,8177809,8177807,8177806,8177785,8177782,8177777,8177769,8177762,8177760,8177724,8177713,8177711,8177710,8177709,8177708,8177707,8173236,8173231,8173218,8173202,8173195,8173177,8173165,8173157,8173144,8173025,8172996,8172957,7368295,7368293,7368291,7368287,7368285,7368280,7368273,7368136,7368124,7368113,7368111,7368110,7368101,7368099,7368095,7368091,7368080,7368078,7367998,7367992,7367981,7367975,7367971,7367968,7367967,7367966,7367965,7367962,7367957,7367861,7367858,7367854,7367848,7367845,7367795,7365767,7365735,7365732,7365729,7365724,7365628,7365623,7365603,7365599,7365595,7365594,7365592,7365563,7365561,7365556,7365548,7365545,7365510,7365059,7365057,7365045,7362641,7362639,4596397,4596386,4596381,4596372,4596370,4596366,4596363,4596359,4556333,4556331,4556195,4556191,4556186,4556158,4556155,4556149,4556144,4556139,4556126,4504856,4504843,4504827,4491455,4489543,4489540,4489537,4489534,4489530,4489527,4489526,4489523,4485542,4485533,4485524,4485398,4485386,4485369,4485361,4485335,4485303,4483279,4483271,4483135,4477642,4477637,4477634,4477626,4477623,4477619,4477614,4477611,4477608,4477606,4477601,4477586,4477580,4477576,4477574,4470567,4470465,4470440,4470434,4467509,4467489,4467484,4467482,4467416,4467408,4467405,4467403';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/Peter9999/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/Peter9999/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/Peter9999/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/Peter9999/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/Peter9999/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/Peter9999/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/Peter9999/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/Peter9999/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/Peter9999/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/Peter9999/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/Peter9999/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/Peter9999/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/Peter9999/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/Peter9999/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/Peter9999/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/Peter9999/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/Peter9999/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/Peter9999/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/Peter9999/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/Peter9999/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/Peter9999/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/Peter9999/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 += 'section314921.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 && 'section314921' != '') {
					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 = 'Images with Journeys a la Carte: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
	    var options = {};	    	      	      resizePhotoInfo(options);
        if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
  	      toggleAddToCartConfirm(backgrounds);
  	    } else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
  	      toggleAddToCartConfirm(photos);
  	    }
	    });
    }
        if (!op.speed) {      clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));      $('body').trigger('clikUpdate');    }        
    return html;			}
	else {
				
		window.location = 'photo_' + nextPhoto.id + '.html';
	}
		
}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array){
  if (typeof(array) !== 'object' || array == undefined) {
    array = photos;
  }
	if($('#paymentConfirm').length > 0){
		$('#paymentConfirm').hide();
		$('#paymentAddButton')
		.unbind()
		.click(function(){
						form = document.getElementById('paymentForm');
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm').text('Item added to cart').show();}
				else{
					$('#paymentConfirm').text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm').text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}
/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp = temp +  '<p id="imageDescription">' + this.description + '</p>';
	}
		if (this.photo_ref != '') {
		temp = temp + '<p class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</p>';
	}
		if (this.takendate != '') {
				
		temp = temp + '<p class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</p>';
	}
	
	if (this.location != '') {
				
		temp = temp + '<p class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</p>';
	}
	
	if (this.photographer != '') {
				
		temp = temp + '<p class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</p>';
	}
					
				if (temp != '') {
		temp = temp + '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp = temp + '<p>Order this print:</p>';
				temp = temp + '<p class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</p>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.payment_groups_id !== '') {
		temp = temp + '<p>Buy this print online:</p>';
				temp = temp + '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp = temp + '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
				
		temp = temp + getPaymentOptions(this.payment_groups_id);
		temp = temp + '</select>';
		temp = temp + '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
	else {
				
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
			temp = temp + '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
		
	if(img){
	      if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
        imageID = imageID[1];
      } else {
			  imageID = randomListVal(galleries[gallery_id].featured_images);
      }
							
			if (imageID != 0) {
				img.src = thumbnails[imageID].src;
				img.width = thumbnails[imageID].width;
				img.height = thumbnails[imageID].height;
				img.alt = galleries[gallery_id].title;
        if (updateLink) {
          $(img).parent().attr({            href: thumbnails[imageID].fnGalleryLink(gallery_id),            title: galleries[gallery_id].title          });
        }
							}
										}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp = temp + ' | ';
				}
				temp = temp + '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
			}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

