window.thumbnails = new Object();
												thumbnails[3963063] = new thumbnail(3963063,'240058','CAROL','carol_thumb.jpg',130, 158,15,'							photo_3963063.html');
												thumbnails[6176693] = new thumbnail(6176693,'345083','WEDDING 1','wedding_1_thumb.jpg',130, 195,15,'							photo_6176693.html');
												thumbnails[3969932] = new thumbnail(3969932,'240058','ALEXIA','Alexia-1_thumb.jpg',130, 87,15,'							photo_3969932.html');
												thumbnails[3969934] = new thumbnail(3969934,'240058','ANGELINE','angeline_thumb.jpg',130, 195,15,'							photo_3969934.html');
												thumbnails[3969938] = new thumbnail(3969938,'240058','CHINESE MONK','chinese_monk1_thumb.jpg',130, 195,15,'							photo_3969938.html');
												thumbnails[3969940] = new thumbnail(3969940,'240058','ALEXIA','Alexia-2_thumb.jpg',130, 161,15,'							photo_3969940.html');
												thumbnails[3969942] = new thumbnail(3969942,'240058','FISHERMAN','fisherman_thumb.jpg',130, 195,15,'							photo_3969942.html');
												thumbnails[3969945] = new thumbnail(3969945,'240059','SPIDERWOMAN','spiderwoman_thumb.jpg',130, 198,15,'							photo_3969945.html');
												thumbnails[6176694] = new thumbnail(6176694,'345083','WEDDING 2','wedding_1-2_thumb.jpg',130, 196,15,'							photo_6176694.html');
												thumbnails[3969971] = new thumbnail(3969971,'240058','SERENE','Serene-1_thumb.jpg',130, 195,15,'							photo_3969971.html');
												thumbnails[6176695] = new thumbnail(6176695,'345083','WEDDING 3','wedding_1-3_thumb.jpg',130, 195,15,'							photo_6176695.html');
												thumbnails[3969949] = new thumbnail(3969949,'240058','JAQUELINE','jaqueline_thumb.jpg',130, 195,15,'							photo_3969949.html');
												thumbnails[6176706] = new thumbnail(6176706,'345083','WEDDING 4','wedding_2-4_thumb.jpg',130, 48,15,'							photo_6176706.html');
												thumbnails[3969946] = new thumbnail(3969946,'240058','BERNICE','Bernice-1-2_thumb.jpg',130, 195,15,'							photo_3969946.html');
												thumbnails[3969947] = new thumbnail(3969947,'240058','ARYA','indian_dancer1_thumb.jpg',130, 195,15,'							photo_3969947.html');
												thumbnails[5665771] = new thumbnail(5665771,'240058','ARYA','five_star-15_thumb.jpg',130, 176,15,'							photo_5665771.html');
												thumbnails[3969951] = new thumbnail(3969951,'240058','SHADOW PLAY','karen_thumb.jpg',130, 195,15,'							photo_3969951.html');
												thumbnails[3969953] = new thumbnail(3969953,'240058','BERNICE','Bernice-1_thumb.jpg',130, 195,15,'							photo_3969953.html');
												thumbnails[3969969] = new thumbnail(3969969,'240058','SAMANTHA','Samantha-1_thumb.jpg',130, 195,15,'							photo_3969969.html');
												thumbnails[3963069] = new thumbnail(3963069,'240058','BERNICE','Bernice-2_thumb.jpg',130, 195,15,'							photo_3963069.html');
												thumbnails[3963070] = new thumbnail(3963070,'240058','CHERYL','chreyl_thumb.jpg',130, 212,15,'							photo_3963070.html');
												thumbnails[3969977] = new thumbnail(3969977,'240058','REN WEN','ren_wen_thumb.jpg',130, 92,15,'							photo_3969977.html');
												thumbnails[3970386] = new thumbnail(3970386,'240059','WATER SPORTS','water_girls_thumb.jpg',130, 92,15,'							photo_3970386.html');
												thumbnails[3969935] = new thumbnail(3969935,'240058','ANGIE','angie_thumb.jpg',130, 87,15,'							photo_3969935.html');
												thumbnails[3969948] = new thumbnail(3969948,'240058','CAROL','Carol-1_thumb.jpg',130, 195,15,'							photo_3969948.html');
												thumbnails[3969956] = new thumbnail(3969956,'240058','CATHERINE','Catherine-1_thumb.jpg',130, 87,15,'							photo_3969956.html');
												thumbnails[6176696] = new thumbnail(6176696,'345083','WEDDING 5','wedding_1-4_thumb.jpg',130, 87,15,'							photo_6176696.html');
												thumbnails[5665770] = new thumbnail(5665770,'240058','CHRISTINE','Christine-1_thumb.jpg',130, 80,15,'							photo_5665770.html');
												thumbnails[6176697] = new thumbnail(6176697,'345083','WEDDING 6','wedding_1-5_thumb.jpg',130, 107,15,'							photo_6176697.html');
												thumbnails[6176707] = new thumbnail(6176707,'345083','WEDDING 7','wedding_2-5_thumb.jpg',130, 33,15,'							photo_6176707.html');
												thumbnails[3969933] = new thumbnail(3969933,'240058','SABRINA','five_star-43_thumb.jpg',130, 144,15,'							photo_3969933.html');
												thumbnails[3969981] = new thumbnail(3969981,'240058','HERMIT','smoking_man_thumb.jpg',130, 92,15,'							photo_3969981.html');
												thumbnails[3969982] = new thumbnail(3969982,'240058','CHRISTINE','Christine-2_thumb.jpg',130, 195,15,'							photo_3969982.html');
												thumbnails[3969955] = new thumbnail(3969955,'240058','WATER CARRIER','malay_lady1_thumb.jpg',130, 92,15,'							photo_3969955.html');
												thumbnails[3969936] = new thumbnail(3969936,'240058','BIKINI','bikini_thumb.jpg',130, 87,15,'							photo_3969936.html');
												thumbnails[3963056] = new thumbnail(3963056,'240058','REBECCA','ballarina1_thumb.jpg',130, 70,15,'							photo_3963056.html');
												thumbnails[6176708] = new thumbnail(6176708,'345083','WEDDING 8','wedding_2-6_thumb.jpg',130, 89,15,'							photo_6176708.html');
												thumbnails[3982317] = new thumbnail(3982317,'240058','MAGDALENE','Magdalene-1_thumb.jpg',130, 195,15,'							photo_3982317.html');
												thumbnails[5665778] = new thumbnail(5665778,'240058','ANGELA','five_star-42_thumb.jpg',130, 171,15,'							photo_5665778.html');
												thumbnails[4021535] = new thumbnail(4021535,'240058','KAREN','karen2_thumb.jpg',130, 139,15,'							photo_4021535.html');
												thumbnails[5665765] = new thumbnail(5665765,'240058','KAREN','five_star-38_thumb.jpg',130, 184,15,'							photo_5665765.html');
												thumbnails[5665766] = new thumbnail(5665766,'240058','KAREN','five_star-39_thumb.jpg',130, 126,15,'							photo_5665766.html');
												thumbnails[5665791] = new thumbnail(5665791,'240058','ANGIE','five_star-65_thumb.jpg',130, 195,15,'							photo_5665791.html');
												thumbnails[5665793] = new thumbnail(5665793,'240058','MAVIS','Mavis-1_thumb.jpg',130, 96,15,'							photo_5665793.html');
												thumbnails[4083102] = new thumbnail(4083102,'240058','MELISSA','Melissa-1_thumb.jpg',130, 195,15,'							photo_4083102.html');
												thumbnails[4083103] = new thumbnail(4083103,'240058','KAREN','karen_2-4_thumb.jpg',130, 198,15,'							photo_4083103.html');
												thumbnails[4083104] = new thumbnail(4083104,'240058','KAREN','karen_2_thumb.jpg',130, 184,15,'							photo_4083104.html');
												thumbnails[4083105] = new thumbnail(4083105,'240058','LYNNETTE','five_star-48_thumb.jpg',130, 195,15,'							photo_4083105.html');
												thumbnails[6176698] = new thumbnail(6176698,'345083','WEDDING 9','wedding_1-6_thumb.jpg',130, 195,15,'							photo_6176698.html');
												thumbnails[3969991] = new thumbnail(3969991,'240427','BACK FULL OF ORANGES','thaipusan-3_thumb.jpg',130, 195,15,'							photo_3969991.html');
												thumbnails[4193883] = new thumbnail(4193883,'240058','EILEEN','Eileen-1_thumb.jpg',130, 180,15,'							photo_4193883.html');
												thumbnails[3969992] = new thumbnail(3969992,'240427','CHEST OF BELLS','thaipusan-4_thumb.jpg',130, 195,15,'							photo_3969992.html');
												thumbnails[4193884] = new thumbnail(4193884,'240058','FLORENCE','Florence-1_thumb.jpg',130, 195,15,'							photo_4193884.html');
												thumbnails[3969995] = new thumbnail(3969995,'240427','WORSHIP','thaipusan-6_thumb.jpg',130, 195,15,'							photo_3969995.html');
												thumbnails[4193885] = new thumbnail(4193885,'240058','MELODY','melody_thumb.jpg',130, 195,15,'							photo_4193885.html');
												thumbnails[3969997] = new thumbnail(3969997,'240427','DIGNITY','thaipusan-7_thumb.jpg',130, 179,15,'							photo_3969997.html');
												thumbnails[4193886] = new thumbnail(4193886,'240058','KRISLYNN','five_star-44_thumb.jpg',130, 195,15,'							photo_4193886.html');
												thumbnails[3969999] = new thumbnail(3969999,'240427','PREPARING','thaipusan-8_thumb.jpg',130, 195,15,'							photo_3969999.html');
												thumbnails[4193887] = new thumbnail(4193887,'240058','VIVIAN','vivian_thumb.jpg',130, 186,15,'							photo_4193887.html');
												thumbnails[3970000] = new thumbnail(3970000,'240427','ANGER','thaipusan-9_thumb.jpg',130, 195,15,'							photo_3970000.html');
												thumbnails[4291441] = new thumbnail(4291441,'240058','HUI RONG','hui_rong1_thumb.jpg',130, 195,15,'							photo_4291441.html');
												thumbnails[4291442] = new thumbnail(4291442,'240058','LINDA','linda_thumb.jpg',130, 161,15,'							photo_4291442.html');
												thumbnails[3970001] = new thumbnail(3970001,'240427','PULLING A LOAD','thaipusan-11_thumb.jpg',130, 195,15,'							photo_3970001.html');
												thumbnails[6176709] = new thumbnail(6176709,'345083','WEDDING 10','wedding_2-7_thumb.jpg',130, 195,15,'							photo_6176709.html');
												thumbnails[6176699] = new thumbnail(6176699,'345083','WEDDING 11','wedding_1-7_thumb.jpg',130, 195,15,'							photo_6176699.html');
												thumbnails[3969755] = new thumbnail(3969755,'240059','MONKEY IN BAG','creative_thumb.jpg',130, 171,15,'							photo_3969755.html');
												thumbnails[3969990] = new thumbnail(3969990,'240427','FACE PIERCING','thaipusan-2_thumb.jpg',130, 87,15,'							photo_3969990.html');
												thumbnails[3969765] = new thumbnail(3969765,'240059','WHICH WAY?','creative-10_thumb.jpg',130, 183,15,'							photo_3969765.html');
												thumbnails[3969993] = new thumbnail(3969993,'240427','LIVING TEMPLE','thaipusan-5_thumb.jpg',130, 87,15,'							photo_3969993.html');
												thumbnails[3969768] = new thumbnail(3969768,'240059','ALONE','creative-13_thumb.jpg',130, 183,15,'							photo_3969768.html');
												thumbnails[3970003] = new thumbnail(3970003,'240427','PIERCING','thaipusan_thumb.jpg',130, 87,15,'							photo_3970003.html');
												thumbnails[3969769] = new thumbnail(3969769,'240059','PHOTOGRAPHER','creative-14_thumb.jpg',130, 183,15,'							photo_3969769.html');
												thumbnails[3969772] = new thumbnail(3969772,'240059','TEMPLE DETAIL','creative-16_thumb.jpg',130, 183,15,'							photo_3969772.html');
												thumbnails[3969773] = new thumbnail(3969773,'240059','TWO BUDDHA\'S','creative-17_thumb.jpg',130, 183,15,'							photo_3969773.html');
												thumbnails[3969775] = new thumbnail(3969775,'240059','33 AIR CONDITIONERS','creative-19_thumb.jpg',130, 183,15,'							photo_3969775.html');
												thumbnails[3969767] = new thumbnail(3969767,'240059','JAQUELINE','creative-12_thumb.jpg',130, 183,15,'							photo_3969767.html');
												thumbnails[3969776] = new thumbnail(3969776,'240059','DESPAIR','creative-20_thumb.jpg',130, 183,15,'							photo_3969776.html');
												thumbnails[3969756] = new thumbnail(3969756,'240059','REFLECTION','creative-2_thumb.jpg',130, 93,15,'							photo_3969756.html');
												thumbnails[3969757] = new thumbnail(3969757,'240059','REFLECTION','creative-3_thumb.jpg',130, 93,15,'							photo_3969757.html');
												thumbnails[3969758] = new thumbnail(3969758,'240059','LIGHT TRAILS','creative-4_thumb.jpg',130, 92,15,'							photo_3969758.html');
												thumbnails[3969759] = new thumbnail(3969759,'240059','BLUE BOTTLES','creative-5_thumb.jpg',130, 93,15,'							photo_3969759.html');
												thumbnails[3969761] = new thumbnail(3969761,'240059','DRAGON BOAT RACE','creative-6_thumb.jpg',130, 93,15,'							photo_3969761.html');
												thumbnails[3969762] = new thumbnail(3969762,'240059','HIGH FIVE','creative-7_thumb.jpg',130, 92,15,'							photo_3969762.html');
												thumbnails[3969763] = new thumbnail(3969763,'240059','OLD AND NEW','creative-8_thumb.jpg',130, 93,15,'							photo_3969763.html');
												thumbnails[3969764] = new thumbnail(3969764,'240059','LIGHT TRAILS','creative-9_thumb.jpg',130, 93,15,'							photo_3969764.html');
												thumbnails[3969766] = new thumbnail(3969766,'240059','KISSING MONKEYS','creative-11_thumb.jpg',130, 93,15,'							photo_3969766.html');
												thumbnails[3969771] = new thumbnail(3969771,'240059','SLEEPY','creative-15_thumb.jpg',130, 93,15,'							photo_3969771.html');
												thumbnails[3969774] = new thumbnail(3969774,'240059','BRYAN FERRY?','creative-18_thumb.jpg',130, 93,15,'							photo_3969774.html');
												thumbnails[3969777] = new thumbnail(3969777,'240059','TWO DRAGONS','creative-21_thumb.jpg',130, 93,15,'							photo_3969777.html');
												thumbnails[3969845] = new thumbnail(3969845,'240062','WELCOME TO A SANCTUARY OF GOOD COMPANY AND EXCELLENT WINE','france_book-12_thumb.jpg',130, 92,15,'							photo_3969845.html');
												thumbnails[3969844] = new thumbnail(3969844,'240062','ENTER INTO THE COURTYARD AND STEP BACK IN TIME','france_book-11_thumb.jpg',130, 92,15,'							photo_3969844.html');
												thumbnails[3969846] = new thumbnail(3969846,'240062','A TREE LINED AVENUE LEADING TO THE CHATEAU','france_book-13_thumb.jpg',130, 92,15,'							photo_3969846.html');
												thumbnails[3969849] = new thumbnail(3969849,'240062','REST YOUR FEET AND ENJOY THE TRANQUILITY','france_book-16_thumb.jpg',130, 92,15,'							photo_3969849.html');
												thumbnails[3969860] = new thumbnail(3969860,'240062','A CELLAR WORTH DEFENDING','france_book-27_thumb.jpg',130, 92,15,'							photo_3969860.html');
												thumbnails[3969855] = new thumbnail(3969855,'240062','HOW MANY INVADERS HAVE ATTEMPTED TO SCALE THIS WALL?','france_book-22_thumb.jpg',130, 92,15,'							photo_3969855.html');
												thumbnails[3969848] = new thumbnail(3969848,'240062','WINE STOREHOUSE WITH CHALK RECORDS','france_book-15_thumb.jpg',130, 92,15,'							photo_3969848.html');
												thumbnails[3969834] = new thumbnail(3969834,'240062','TIME STAMPED FOR ETERNITY','france_book_thumb.jpg',130, 92,15,'							photo_3969834.html');
												thumbnails[3969842] = new thumbnail(3969842,'240062','IN DEATH AS IN LIFE, I WILL WATCH OVER MY VINES','france_book-9_thumb.jpg',130, 86,15,'							photo_3969842.html');
												thumbnails[3969850] = new thumbnail(3969850,'240062','AN ORNAMENTAL BOUNDARY BLENDING WITH THE NATURAL LANDSCAPE','france_book-17_thumb.jpg',130, 92,15,'							photo_3969850.html');
												thumbnails[3969859] = new thumbnail(3969859,'240062','TRAVELLER, REST YOUR FEET AND ENJOY OUR SWEET WATER','france_book-26_thumb.jpg',130, 92,15,'							photo_3969859.html');
												thumbnails[3969851] = new thumbnail(3969851,'240062','ANOTHER PERFECT DAY DAWNS ON SAINT VALLERIN','france_book-18_thumb.jpg',130, 92,15,'							photo_3969851.html');
												thumbnails[3969852] = new thumbnail(3969852,'240062','MY NEIGHBOUR, MY FRIEND','france_book-19_thumb.jpg',130, 92,15,'							photo_3969852.html');
												thumbnails[3969854] = new thumbnail(3969854,'240062','A TRANQUIL COMMUNITY LIVING IN IDYLLIC HARMONY','france_book-21_thumb.jpg',130, 92,15,'							photo_3969854.html');
												thumbnails[3969857] = new thumbnail(3969857,'240062','THE BELL TOWER STANDS HIGH ABOVE THE VILLAGE, PROTECTING ONE AND ALL','france_book-24_thumb.jpg',130, 92,15,'							photo_3969857.html');
												thumbnails[3969853] = new thumbnail(3969853,'240062','NEARBY TOWN OF BUXY, SURROUNDED BY VINEYARDS','france_book-20_thumb.jpg',130, 92,15,'							photo_3969853.html');
												thumbnails[3969856] = new thumbnail(3969856,'240062','THE MOTHER MARY LOOKS DOWN UPON US WITH LOVE AND COMPASSION','france_book-23_thumb.jpg',130, 92,15,'							photo_3969856.html');
												thumbnails[3969861] = new thumbnail(3969861,'240062','A RICH HARVEST','france_book-28_thumb.jpg',130, 92,15,'							photo_3969861.html');
												thumbnails[3969847] = new thumbnail(3969847,'240062','A NATURAL WINDOW TO THE NEAREST TOWN OF BUXY','france_book-14_thumb.jpg',130, 184,15,'							photo_3969847.html');
												thumbnails[3969839] = new thumbnail(3969839,'240062','AVENUE OF TREES FORMING PART OF AN OLD CARRIAGEWAY','france_book-6_thumb.jpg',130, 184,15,'							photo_3969839.html');
												thumbnails[3969840] = new thumbnail(3969840,'240062','ENTRANCE TO ONE OF THE CHATEAU\'S NINE WINE CELLARS','france_book-7_thumb.jpg',130, 184,15,'							photo_3969840.html');
												thumbnails[3969841] = new thumbnail(3969841,'240062','RAYS OF SUNSHINE LIGHT UP THE CELLAR','france_book-8_thumb.jpg',130, 184,15,'							photo_3969841.html');
												thumbnails[3969858] = new thumbnail(3969858,'240062','IMAGINE THE MAIDS CHATTING AND LAUGHING ON WASH-DAY','france_book-25_thumb.jpg',130, 184,15,'							photo_3969858.html');
												thumbnails[3969837] = new thumbnail(3969837,'240062','A SANCTUARY FOR EVERYONE IN THE VILLAGE','france_book-4_thumb.jpg',130, 184,15,'							photo_3969837.html');
												thumbnails[3969838] = new thumbnail(3969838,'240062','CALLING ALL TO WORSHIP OR SOUNDING THE ALARM OF IMPENDING DANGER','france_book-5_thumb.jpg',130, 184,15,'							photo_3969838.html');
												thumbnails[3969836] = new thumbnail(3969836,'240062','KEEPS THE BELL RINGING THROUGH THE YEARS','france_book-3_thumb.jpg',130, 163,15,'							photo_3969836.html');
												thumbnails[3969843] = new thumbnail(3969843,'240062','HEADSTONE DETAIL FROM THE CEMETERY','france_book-10_thumb.jpg',130, 184,15,'							photo_3969843.html');
												thumbnails[3969835] = new thumbnail(3969835,'240062','FRESH BREAD, ANYONE?','france_book-2_thumb.jpg',130, 196,15,'							photo_3969835.html');
												thumbnails[4301439] = new thumbnail(4301439,'253629','THE THREE SISTERS, KATOOMBA','Three_Sisters1_thumb.jpg',130, 116,15,'							photo_4301439.html');
												thumbnails[4301440] = new thumbnail(4301440,'253629','SUNRISE','Australia-2_thumb.jpg',130, 95,15,'							photo_4301440.html');
												thumbnails[4301441] = new thumbnail(4301441,'253629','DAM FROM THE AIR','Australia-3_thumb.jpg',130, 93,15,'							photo_4301441.html');
												thumbnails[4301442] = new thumbnail(4301442,'253629','DISUSED WAGON','Australia_thumb.jpg',130, 87,15,'							photo_4301442.html');
												thumbnails[4301448] = new thumbnail(4301448,'253629','WAGON WHEEL','Australia-4_thumb.jpg',130, 173,15,'							photo_4301448.html');
												thumbnails[6176701] = new thumbnail(6176701,'345083','WEDDING 12','wedding_1-9_thumb.jpg',130, 195,15,'							photo_6176701.html');
												thumbnails[4316521] = new thumbnail(4316521,'240059','HDR - FRONT VIEW OF HOUSE','HDR__Infrared-3_thumb.jpg',130, 168,15,'							photo_4316521.html');
												thumbnails[4316526] = new thumbnail(4316526,'240059','HDR - FRONT YARD','HDR__Infrared-5_thumb.jpg',130, 87,15,'							photo_4316526.html');
												thumbnails[4316529] = new thumbnail(4316529,'240059','INFRARED - SIDE YARD','HDR__Infrared-7_thumb.jpg',130, 94,15,'							photo_4316529.html');
												thumbnails[4316588] = new thumbnail(4316588,'240059','CLOSE UP - CATERPILLAR','Close_Up1_thumb.jpg',130, 212,15,'							photo_4316588.html');
												thumbnails[4316876] = new thumbnail(4316876,'254337','TRISHAW DRIVER','Chinatown_thumb.jpg',130, 159,15,'							photo_4316876.html');
												thumbnails[4316885] = new thumbnail(4316885,'254337','SHOP DUMMY','Chinatown-2_thumb.jpg',130, 175,15,'							photo_4316885.html');
												thumbnails[4316992] = new thumbnail(4316992,'254337','WEEDS','Chinatown-3_thumb.jpg',130, 85,15,'							photo_4316992.html');
												thumbnails[4317160] = new thumbnail(4317160,'254337','HINDU TEMPLE','Chinatown-4_thumb.jpg',130, 90,15,'							photo_4317160.html');
												thumbnails[4317224] = new thumbnail(4317224,'254337','SLEEPING','Chinatown-5_thumb.jpg',130, 64,15,'							photo_4317224.html');
												thumbnails[4317230] = new thumbnail(4317230,'254337','SMOKING','Chinatown-6_thumb.jpg',130, 179,15,'							photo_4317230.html');
												thumbnails[4317235] = new thumbnail(4317235,'254337','PHOTOGRAPHER','Chinatown-7_thumb.jpg',130, 117,15,'							photo_4317235.html');
												thumbnails[4317236] = new thumbnail(4317236,'254337','BUDDHIST TEMPLE','Chinatown-8_thumb.jpg',130, 105,15,'							photo_4317236.html');
												thumbnails[4317313] = new thumbnail(4317313,'240059','THREE DOGS','Three_Dogs_thumb.jpg',130, 93,15,'							photo_4317313.html');
												thumbnails[4358698] = new thumbnail(4358698,'254337','SWISSOTEL','Singapore-2_thumb.jpg',130, 195,15,'							photo_4358698.html');
												thumbnails[5665767] = new thumbnail(5665767,'240059','BY THE LAKE','five_star-30_thumb.jpg',130, 134,15,'							photo_5665767.html');
												thumbnails[5665768] = new thumbnail(5665768,'240059','CLOTHES PEGS','five_star-4_thumb.jpg',130, 106,15,'							photo_5665768.html');
												thumbnails[5665794] = new thumbnail(5665794,'240059','MILLY','five_star-92_thumb.jpg',130, 100,15,'							photo_5665794.html');
												thumbnails[5665769] = new thumbnail(5665769,'240059','CROSSING THE ROAD','five_star-10_thumb.jpg',130, 155,15,'							photo_5665769.html');
												thumbnails[4358699] = new thumbnail(4358699,'254337','TSC','Singapore-1-2_thumb.jpg',130, 87,15,'							photo_4358699.html');
												thumbnails[4358700] = new thumbnail(4358700,'254337','VIEW FROM DUXTON','Singapore-1-3_thumb.jpg',130, 80,15,'							photo_4358700.html');
												thumbnails[4358724] = new thumbnail(4358724,'254337','HAPPY SHOPPING','orchard_road-4_thumb.jpg',130, 172,15,'							photo_4358724.html');
												thumbnails[4358725] = new thumbnail(4358725,'254337','WHEELOCK PLACE','orchard_road-5_thumb.jpg',130, 148,15,'							photo_4358725.html');
												thumbnails[4358726] = new thumbnail(4358726,'254337','ST. ANDREW\'S','Singapore-1_thumb.jpg',130, 87,15,'							photo_4358726.html');
												thumbnails[4358727] = new thumbnail(4358727,'254337','DUXTON','Singapore-3-2_thumb.jpg',130, 195,15,'							photo_4358727.html');
												thumbnails[4358728] = new thumbnail(4358728,'254337','VIEW FROM DUXTON','Singapore-2-2_thumb.jpg',130, 87,15,'							photo_4358728.html');
												thumbnails[7296857] = new thumbnail(7296857,'254337','WAR MEMORIAL','Singapore-3_thumb.jpg',130, 195,15,'							photo_7296857.html');
												thumbnails[4358730] = new thumbnail(4358730,'254337','GRAFFITI','orchard_road-10_thumb.jpg',130, 87,15,'							photo_4358730.html');
												thumbnails[4358774] = new thumbnail(4358774,'256154','THE CAR THAT DAD BUILT','car-2_thumb.jpg',130, 125,15,'							photo_4358774.html');
												thumbnails[4358775] = new thumbnail(4358775,'256154','THE CAR THAT DAD BUILT','car_thumb.jpg',130, 128,15,'							photo_4358775.html');
												thumbnails[4362772] = new thumbnail(4362772,'256154','MY MATERNAL GRANDPARENTS','grandparents_thumb.jpg',130, 125,15,'							photo_4362772.html');
												thumbnails[4388870] = new thumbnail(4388870,'257528','EVANS','Evans-1-2_thumb.jpg',130, 195,15,'							photo_4388870.html');
												thumbnails[4388873] = new thumbnail(4388873,'257528','EVANS','Evans-1_thumb.jpg',130, 195,15,'							photo_4388873.html');
												thumbnails[4388874] = new thumbnail(4388874,'257528','EVANS','Evans-2-2_thumb.jpg',130, 195,15,'							photo_4388874.html');
												thumbnails[4388883] = new thumbnail(4388883,'257528','EVANS','Evans-2_thumb.jpg',130, 195,15,'							photo_4388883.html');
												thumbnails[4388878] = new thumbnail(4388878,'257528','EVANS','Evans-3_thumb.jpg',130, 195,15,'							photo_4388878.html');
												thumbnails[4388881] = new thumbnail(4388881,'257528','EVANS','Evans-4_thumb.jpg',130, 195,15,'							photo_4388881.html');
												thumbnails[6176703] = new thumbnail(6176703,'345083','WEDDING 13','wedding_2-8_thumb.jpg',130, 195,15,'							photo_6176703.html');
												thumbnails[6176704] = new thumbnail(6176704,'345083','WEDDING 14','wedding_2-2_thumb.jpg',130, 195,15,'							photo_6176704.html');
												thumbnails[4388889] = new thumbnail(4388889,'257528','EVANS','Evans-5_thumb.jpg',130, 195,15,'							photo_4388889.html');
												thumbnails[6176705] = new thumbnail(6176705,'345083','WEDDING 15','wedding_2-3_thumb.jpg',130, 195,15,'							photo_6176705.html');
												thumbnails[4388893] = new thumbnail(4388893,'257528','EVANS','Evans-6_thumb.jpg',130, 195,15,'							photo_4388893.html');
												thumbnails[4388894] = new thumbnail(4388894,'257528','EVANS','Evans-7_thumb.jpg',130, 87,15,'							photo_4388894.html');
												thumbnails[7296848] = new thumbnail(7296848,'257528','EVANS','Evans-9_thumb.jpg',130, 327,15,'							photo_7296848.html');
												thumbnails[4388896] = new thumbnail(4388896,'257528','EVANS','Evans-8_thumb.jpg',130, 190,15,'							photo_4388896.html');
												thumbnails[5665795] = new thumbnail(5665795,'240059','GIRL GANG','five_star-107_thumb.jpg',130, 96,15,'							photo_5665795.html');
												thumbnails[4389849] = new thumbnail(4389849,'240058','SERENE','Serene-1-2_thumb.jpg',130, 87,15,'							photo_4389849.html');
												thumbnails[4389851] = new thumbnail(4389851,'240058','BEI BEI','bei_bei-21_thumb.jpg',130, 168,15,'							photo_4389851.html');
												thumbnails[4389852] = new thumbnail(4389852,'240058','KATTY','Katty-1_thumb.jpg',130, 195,15,'							photo_4389852.html');
												thumbnails[4403510] = new thumbnail(4403510,'258085','MALACCA','malacca_thumb.jpg',130, 157,15,'							photo_4403510.html');
												thumbnails[4403515] = new thumbnail(4403515,'258085','MALACCA','malacca-2_thumb.jpg',130, 90,15,'							photo_4403515.html');
												thumbnails[4403516] = new thumbnail(4403516,'258085','MALACCA','malacca-3_thumb.jpg',130, 148,15,'							photo_4403516.html');
												thumbnails[4403517] = new thumbnail(4403517,'258085','MALACCA','malacca-4_thumb.jpg',130, 97,15,'							photo_4403517.html');
												thumbnails[4403518] = new thumbnail(4403518,'258085','MALACCA','malacca-5_thumb.jpg',130, 109,15,'							photo_4403518.html');
												thumbnails[4396436] = new thumbnail(4396436,'240058','KELLY','Kelly-1_thumb.jpg',130, 195,15,'							photo_4396436.html');
												thumbnails[4396438] = new thumbnail(4396438,'240058','MABLE','mable_thumb.jpg',130, 223,15,'							photo_4396438.html');
												thumbnails[5665756] = new thumbnail(5665756,'240058','KRISLYNN','Krislynn-1_thumb.jpg',130, 195,15,'							photo_5665756.html');
												thumbnails[5665760] = new thumbnail(5665760,'240058','MABLE','five_star-34_thumb.jpg',130, 156,15,'							photo_5665760.html');
												thumbnails[6176700] = new thumbnail(6176700,'345083','WEDDING 16','wedding_1-8_thumb.jpg',130, 173,15,'							photo_6176700.html');
												thumbnails[5665764] = new thumbnail(5665764,'240058','MABLE','five_star-37_thumb.jpg',130, 171,15,'							photo_5665764.html');
												thumbnails[4489630] = new thumbnail(4489630,'240058','SERENE','serene_thumb.jpg',130, 105,15,'							photo_4489630.html');
												thumbnails[4489632] = new thumbnail(4489632,'240058','SERENE','Serene-1-3_thumb.jpg',130, 195,15,'							photo_4489632.html');
												thumbnails[5665772] = new thumbnail(5665772,'240058','SERENE','five_star-26_thumb.jpg',130, 134,15,'							photo_5665772.html');
												thumbnails[5665773] = new thumbnail(5665773,'240058','SERENE','five_star-28_thumb.jpg',130, 102,15,'							photo_5665773.html');
												thumbnails[5665775] = new thumbnail(5665775,'240058','EVA','five_star-31_thumb.jpg',130, 143,15,'							photo_5665775.html');
												thumbnails[5665776] = new thumbnail(5665776,'240058','EVA','five_star-32_thumb.jpg',130, 195,15,'							photo_5665776.html');
												thumbnails[4489636] = new thumbnail(4489636,'240058','NIKITA','Nikita-1_thumb.jpg',130, 195,15,'							photo_4489636.html');
												thumbnails[5665782] = new thumbnail(5665782,'240058','TIEN ME','Tien_Me-1-2_thumb.jpg',130, 104,15,'							photo_5665782.html');
												thumbnails[5665783] = new thumbnail(5665783,'240058','AZUSA','five_star-51_thumb.jpg',130, 195,15,'							photo_5665783.html');
												thumbnails[5665784] = new thumbnail(5665784,'240058','KRYSTIE','five_star-52_thumb.jpg',130, 161,15,'							photo_5665784.html');
												thumbnails[5665785] = new thumbnail(5665785,'240058','DRINK VENDOR','five_star-56_thumb.jpg',130, 110,15,'							photo_5665785.html');
												thumbnails[5665786] = new thumbnail(5665786,'240058','DRINK VENDOR','five_star-57_thumb.jpg',130, 170,15,'							photo_5665786.html');
												thumbnails[5665789] = new thumbnail(5665789,'240058','DRINK VENDOR','five_star-58_thumb.jpg',130, 172,15,'							photo_5665789.html');
												thumbnails[7296845] = new thumbnail(7296845,'256153','PURPLE TRAM','Hong_Kong-1_thumb.jpg',130, 195,15,'							photo_7296845.html');
												thumbnails[5665790] = new thumbnail(5665790,'240058','HERMIT','five_star-64_thumb.jpg',130, 195,15,'							photo_5665790.html');
												thumbnails[7296846] = new thumbnail(7296846,'256153','STORM AT THE PEAK','Hong_Kong-2_thumb.jpg',130, 87,15,'							photo_7296846.html');
												thumbnails[5665792] = new thumbnail(5665792,'240058','TIEN ME','Tien_Me-1_thumb.jpg',130, 195,15,'							photo_5665792.html');
												thumbnails[7296847] = new thumbnail(7296847,'256153','LIPPO BUILDING','Hong_Kong-3_thumb.jpg',130, 195,15,'							photo_7296847.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[240058] = new gallery(240058,'3969949','Models','gallery',[3963063,3969932,3969934,3969938,3969940,3969942,3969971,3969949,3969946,3969947,5665771,3969951,3969953,3969969,3963069,3963070,3969977,3969935,3969948,3969956,5665770,3969933,3969981,3969982,3969955,3969936,3963056,3982317,5665778,4021535,5665765,5665766,5665791,5665793,4083102,4083103,4083104,4083105,4193883,4193884,4193885,4193886,4193887,4291441,4291442,4389849,4389851,4389852,4396436,4396438,5665756,5665760,5665764,4489630,4489632,5665772,5665773,5665775,5665776,4489636,5665782,5665783,5665784,5665785,5665786,5665789,5665790,5665792],0, 0, '', '																																																																																																							gallery_240058.html',0,0);
				  					galleries[240427] = new gallery(240427,'3969997','Thaipusam','gallery',[3969991,3969992,3969995,3969997,3969999,3970000,3970001,3969990,3969993,3970003],0, 0, '', '																																																																																																							gallery_240427.html',0,0);
				  					galleries[240059] = new gallery(240059,'4316529,3969762','Creative','gallery',[3969945,3970386,3969755,3969765,3969768,3969769,3969772,3969773,3969775,3969767,3969776,3969756,3969757,3969758,3969759,3969761,3969762,3969763,3969764,3969766,3969771,3969774,3969777,4316521,4316526,4316529,4316588,4317313,5665767,5665768,5665794,5665769,5665795],0, 0, '', '																																																																																																							gallery_240059.html',0,0);
				  					galleries[240062] = new gallery(240062,'3969851','France','gallery',[3969845,3969844,3969846,3969849,3969860,3969855,3969848,3969834,3969842,3969850,3969859,3969851,3969852,3969854,3969857,3969853,3969856,3969861,3969847,3969839,3969840,3969841,3969858,3969837,3969838,3969836,3969843,3969835],0, 0, '', '																																																																																																							gallery_240062.html',0,0);
				  					galleries[253629] = new gallery(253629,'4301439','Australia','gallery',[4301439,4301440,4301441,4301442,4301448],0, 0, '', '																																																																																																							gallery_253629.html',0,0);
				  					galleries[254337] = new gallery(254337,'4358730,4316885','Singapore','gallery',[4316876,4316885,4316992,4317160,4317224,4317230,4317235,4317236,4358698,4358699,4358700,4358724,4358725,4358726,4358727,4358728,7296857,4358730],0, 0, '', '																																																																																																							gallery_254337.html',0,0);
				  					galleries[256153] = new gallery(256153,'7296847,7296846,7296845','Hong Kong','gallery',[7296845,7296846,7296847],0, 0, '', '																																																																																																							gallery_256153.html',0,0);
				  					galleries[256154] = new gallery(256154,'4358774','Way Back When...','gallery',[4358774,4358775,4362772],0, 0, '', '																																																																																																							gallery_256154.html',0,0);
				  					galleries[257527] = new gallery(257527,'6176703','Special Projects','gallery',[],0, 0, '', '																																																																																																							gallery_257527.html',0,0);
				  					galleries[257528] = new gallery(257528,'7296848,4388896,4388894,4388893,4388889,4388883,4388881,4388878,4388874,4388873','Evans','gallery',[4388870,4388873,4388874,4388883,4388878,4388881,4388889,4388893,4388894,7296848,4388896],0, 0, '257527', '																																																																																																							gallery_257528.html',0,0);
				  					galleries[345083] = new gallery(345083,'6176703','Wedding','gallery',[6176693,6176694,6176695,6176706,6176696,6176697,6176707,6176708,6176698,6176709,6176699,6176701,6176703,6176704,6176705,6176700],0, 0, '257527', '																																																																																																							gallery_345083.html',0,0);
				  					galleries[258085] = new gallery(258085,'4403510','Malacca','gallery',[4403510,4403515,4403516,4403517,4403518],0, 0, '', '																																																																																																							gallery_258085.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '3963056';
imageSets[2] = '6176703,4403510,4358774,4358730,4316885,4316529,4301439,3969997,3969949,3969851,3969762';
imageSets[3] = '7296857,7296848,7296847,7296846,7296845,6176709,6176708,6176707,6176706,6176705,6176704,6176703,6176701,6176700,6176699,6176698,6176697,6176696,6176695,6176694,6176693,5665795,5665794,5665793,5665792,5665791,5665790,5665789,5665786,5665785,5665784,5665783,5665782,5665778,5665776,5665775,5665773,5665772,5665771,5665770,5665769,5665768,5665767,5665766,5665765,5665764,5665760,5665756,4489636,4489632';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/felixthecat/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/felixthecat/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/felixthecat/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/felixthecat/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/felixthecat/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/felixthecat/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/felixthecat/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/felixthecat/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/felixthecat/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/felixthecat/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/felixthecat/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/felixthecat/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/felixthecat/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/felixthecat/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/felixthecat/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/felixthecat/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/felixthecat/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/felixthecat/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/felixthecat/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/felixthecat/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/felixthecat/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/felixthecat/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {

	imageID = randomListVal('');
		if (!basic) {
	img.src = photos[imageID].src;
	img.width = photos[imageID].width;
	img.height = photos[imageID].height;
  img.parentNode.title = img.alt = photos[imageID].caption;
	}
	else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
				
	}
			}

function getHomeImageLink(imageID) {
  	var href='', photo = backgrounds && backgrounds[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}
/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
  var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
		if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
    
  updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
  var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
      op = $.extend({},defaults,options),
      html = '', temp = '',
      photoId = op.nextPhoto.id,
      photoCaption = op.nextPhoto.caption,
      photoSrc = op.nextPhoto.src;
		
		if (!basic) {
    if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
    }
				
    if (op.$photo.length > 0) {
      html = $('<img/>',{
        'class': 'mainphoto photo',
        src: photoSrc,
        id: 'mainPic',
        name: 'mainPic',
        width: op.nextPhoto.width,
        height: op.nextPhoto.height,
        alt: photoCaption,
        css: op.css || {}
      });
      if (op.href) {
      	if (op.href.match(/<a/)) {
      	  html = $(op.href).append(html);
      	} else {
		  html = $('<a/>', {
			href: op.href,
			title: photoCaption
		  }).append(html);
	    }
      } else {
      	html = $('<a/>', {
			title: photoCaption
		  }).append(html);
      }
      if (op.speed == 0) {        op.$photo.html(html);        if (op.onBefore) {          op.onBefore.apply(op.$photo);        }        if (op.onAfter) {          op.onAfter.apply(op.$photo);        }      } else {        op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){            if (op.onAfter) {		    op.onAfter.apply(this);          }		  clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));		}, op.onBefore);
      }    }
    	if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'Geoff Healey Photography: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
	    var options = {};	    	      	      resizePhotoInfo(options);
        if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
  	      toggleAddToCartConfirm(backgrounds);
  	    } else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
  	      toggleAddToCartConfirm(photos);
  	    }
	    });
    }
        if (!op.speed) {      clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));    }        
    return html;			}
	else {
				
		window.location = 'photo_' + nextPhoto.id + '.html';
	}
		
}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array){
  if (typeof(array) !== 'object') {
    array = photos;
  }
	if($('#paymentConfirm').length > 0){
		$('#paymentConfirm').hide();
		$('#paymentAddButton')
		.unbind()
		.click(function(){
						form = document.getElementById('paymentForm');
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm').text('Item added to cart').show();}
				else{
					$('#paymentConfirm').text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm').text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}
/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp = temp +  '<p id="imageDescription">' + this.description + '</p>';
	}
		if (this.photo_ref != '') {
		temp = temp + '<p class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</p>';
	}
		if (this.takendate != '') {
				
		temp = temp + '<p class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</p>';
	}
	
	if (this.location != '') {
				
		temp = temp + '<p class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</p>';
	}
	
	if (this.photographer != '') {
				
		temp = temp + '<p class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</p>';
	}
					
				if (temp != '') {
		temp = temp + '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp = temp + '<p>Order this print:</p>';
				temp = temp + '<p class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> 							' + (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;
	}
}

			

