window.thumbnails = new Object();
												thumbnails[262696] = new thumbnail(262696,'23535','head shaving of new monks','01 head shaving of new monks_thumb.jpg',130, 185,18,'																			photo_262696.html');
												thumbnails[262699] = new thumbnail(262699,'23535','first robes','02 first robes_thumb.jpg',130, 171,18,'																			photo_262699.html');
												thumbnails[262701] = new thumbnail(262701,'23535','new sandals','03 new sandals_thumb.jpg',130, 170,18,'																			photo_262701.html');
												thumbnails[262703] = new thumbnail(262703,'23535','with new alms bowls','04 with new alms bowls_thumb.jpg',130, 99,18,'																			photo_262703.html');
												thumbnails[262704] = new thumbnail(262704,'23535','homage to the abbot','05 homage to the abbot_thumb.jpg',130, 100,18,'																			photo_262704.html');
												thumbnails[334641] = new thumbnail(334641,'24295','7','747w0447_thumb.jpg',130, 83,18,'																			photo_334641.html');
												thumbnails[262706] = new thumbnail(262706,'23535','morning prayers','06 morning prayers_thumb.jpg',130, 89,18,'																			photo_262706.html');
												thumbnails[262708] = new thumbnail(262708,'23535','young novices','07 young novices_thumb.jpg',130, 99,18,'																			photo_262708.html');
												thumbnails[334640] = new thumbnail(334640,'24295','Ginetta','108g0469_thumb.jpg',130, 82,18,'																			photo_334640.html');
												thumbnails[2030436] = new thumbnail(2030436,'10162','Loy Kratong','king9970a_thumb.jpg',130, 87,18,'																			photo_2030436.html');
												thumbnails[262709] = new thumbnail(262709,'23535','school bus','08 school bus_thumb.jpg',130, 100,18,'																			photo_262709.html');
												thumbnails[2030494] = new thumbnail(2030494,'10162','Lanna Mist','LannaMist9995pxb_thumb.jpg',130, 86,18,'																			photo_2030494.html');
												thumbnails[262712] = new thumbnail(262712,'23535','homework','09 homework_thumb.jpg',130, 90,18,'																			photo_262712.html');
												thumbnails[108345] = new thumbnail(108345,'10191','','BalloonAz18_thumb.jpg',130, 91,18,'																			photo_108345.html');
												thumbnails[108949] = new thumbnail(108949,'10192','Ailsa Craig','AilsaCraig020_thumb.jpg',130, 200,18,'																			photo_108949.html');
												thumbnails[114776] = new thumbnail(114776,'10163','city walk','ARPS01a_thumb.jpg',130, 171,18,'																			photo_114776.html');
												thumbnails[133739] = new thumbnail(133739,'12253','Delphine','Delphine9831c_thumb.jpg',130, 107,18,'																			photo_133739.html');
												thumbnails[262717] = new thumbnail(262717,'23535','queueing','10 queueing_thumb.jpg',130, 99,18,'																			photo_262717.html');
												thumbnails[272089] = new thumbnail(272089,'16729','Culross','culross0057_thumb.jpg',130, 97,18,'																			photo_272089.html');
												thumbnails[273595] = new thumbnail(273595,'24295','','bike0001c_thumb.jpg',130, 80,18,'																			photo_273595.html');
												thumbnails[573780] = new thumbnail(573780,'10150','brush strokes','Wedgewood0050a_thumb.jpg',130, 87,18,'																			photo_573780.html');
												thumbnails[1454629] = new thumbnail(1454629,'32006','racing Morgans','Morgans0616z2a_thumb.jpg',130, 84,18,'																			photo_1454629.html');
												thumbnails[1995305] = new thumbnail(1995305,'133899','','01a1_thumb.jpg',130, 217,18,'																			photo_1995305.html');
												thumbnails[2020964] = new thumbnail(2020964,'135442','','012_thumb.jpg',130, 179,18,'																			photo_2020964.html');
												thumbnails[2030492] = new thumbnail(2030492,'135654','','fan1_thumb.jpg',130, 86,18,'																			photo_2030492.html');
												thumbnails[5241846] = new thumbnail(5241846,'295454','water trough','Pushkar3398a_thumb.jpg',130, 93,18,'																			photo_5241846.html');
												thumbnails[5264184] = new thumbnail(5264184,'296327','blue','blue2558a_thumb.jpg',130, 87,18,'																			photo_5264184.html');
												thumbnails[262720] = new thumbnail(262720,'23535','donation to the temple','11 donation to the temple_thumb.jpg',130, 97,18,'																			photo_262720.html');
												thumbnails[262722] = new thumbnail(262722,'23535','evening service','12 evening service_thumb.jpg',130, 100,18,'																			photo_262722.html');
												thumbnails[262724] = new thumbnail(262724,'23535','worship','13 worship_thumb.jpg',130, 99,18,'																			photo_262724.html');
												thumbnails[262725] = new thumbnail(262725,'23535','Songkran blessing','14 Songkran blessing_thumb.jpg',130, 99,18,'																			photo_262725.html');
												thumbnails[108333] = new thumbnail(108333,'10150','canyon','AntelopeCanyon16_thumb.jpg',130, 68,18,'																			photo_108333.html');
												thumbnails[262726] = new thumbnail(262726,'23535','procession','15 procession_thumb.jpg',130, 99,18,'																			photo_262726.html');
												thumbnails[263204] = new thumbnail(263204,'23535','giving alms','16 giving alms1_thumb.jpg',130, 100,18,'																			photo_263204.html');
												thumbnails[262731] = new thumbnail(262731,'23535','sweeping up','17 sweeping up_thumb.jpg',130, 99,18,'																			photo_262731.html');
												thumbnails[262732] = new thumbnail(262732,'23535','horticulture','18 horticulture_thumb.jpg',130, 99,18,'																			photo_262732.html');
												thumbnails[262736] = new thumbnail(262736,'23535','restoration','19 restoration1_thumb.jpg',130, 170,18,'																			photo_262736.html');
												thumbnails[108239] = new thumbnail(108239,'10150','inspection','Balloon1_thumb.jpg',130, 87,18,'																			photo_108239.html');
												thumbnails[108942] = new thumbnail(108942,'10192','Tigh-na Blair','Cultybraggan8467b_thumb.jpg',130, 87,18,'																			photo_108942.html');
												thumbnails[182035] = new thumbnail(182035,'10163','lamp post','ARPS02a_thumb.jpg',130, 97,18,'																			photo_182035.html');
												thumbnails[262737] = new thumbnail(262737,'23535','launching a hot air balloon','20 launching a hot air balloon_thumb.jpg',130, 170,18,'																			photo_262737.html');
												thumbnails[271231] = new thumbnail(271231,'16729','Market Street','MarketSt0046_thumb.jpg',130, 108,18,'																			photo_271231.html');
												thumbnails[273597] = new thumbnail(273597,'24295','','sidecar0097a_thumb.jpg',130, 64,18,'																			photo_273597.html');
												thumbnails[396210] = new thumbnail(396210,'32006','classics','Lister0703z_thumb.jpg',130, 87,18,'																			photo_396210.html');
												thumbnails[1995313] = new thumbnail(1995313,'133899','','07_thumb.jpg',130, 108,18,'																			photo_1995313.html');
												thumbnails[2020965] = new thumbnail(2020965,'135442','','021_thumb.jpg',130, 182,18,'																			photo_2020965.html');
												thumbnails[2030488] = new thumbnail(2030488,'135654','','cyclist9909m_2_thumb.jpg',130, 99,18,'																			photo_2030488.html');
												thumbnails[5241537] = new thumbnail(5241537,'295454','collecting dung','Pushkar3407a_thumb.jpg',130, 87,18,'																			photo_5241537.html');
												thumbnails[5264182] = new thumbnail(5264182,'296327','amber','Amber3274a_thumb.jpg',130, 123,18,'																			photo_5264182.html');
												thumbnails[513592] = new thumbnail(513592,'32006','vessel','glass0860c_thumb.jpg',130, 158,18,'																			photo_513592.html');
												thumbnails[108351] = new thumbnail(108351,'10191','','BalloonAz25_thumb.jpg',130, 195,18,'																			photo_108351.html');
												thumbnails[108443] = new thumbnail(108443,'10192','misty morning Kinbuck','MistyMorningKinbuck_thumb.jpg',130, 89,18,'																			photo_108443.html');
												thumbnails[114748] = new thumbnail(114748,'10163','window cleaner','ARPS03a_thumb.jpg',130, 96,18,'																			photo_114748.html');
												thumbnails[271239] = new thumbnail(271239,'16729','looking for the last whisker','trim0088u_thumb.jpg',130, 185,18,'																			photo_271239.html');
												thumbnails[1995309] = new thumbnail(1995309,'133899','','03_thumb.jpg',130, 98,18,'																			photo_1995309.html');
												thumbnails[2020966] = new thumbnail(2020966,'135442','','031_thumb.jpg',130, 84,18,'																			photo_2020966.html');
												thumbnails[2030493] = new thumbnail(2030493,'135654','','head1_thumb.jpg',130, 87,18,'																			photo_2030493.html');
												thumbnails[5241678] = new thumbnail(5241678,'295454','wounded camel','Pushkar3423a_thumb.jpg',130, 100,18,'																			photo_5241678.html');
												thumbnails[5264233] = new thumbnail(5264233,'296327','veil','Taj_veil3329a_thumb.jpg',130, 87,18,'																			photo_5264233.html');
												thumbnails[108725] = new thumbnail(108725,'10150','signal box','SignalBox04_thumb.jpg',130, 85,18,'																			photo_108725.html');
												thumbnails[112503] = new thumbnail(112503,'10192','Bamburgh','Bamburgh85631_thumb.jpg',130, 87,18,'																			photo_112503.html');
												thumbnails[114501] = new thumbnail(114501,'10191','','balloons23a_thumb.jpg',130, 95,18,'																			photo_114501.html');
												thumbnails[182026] = new thumbnail(182026,'10163','shadows','ARPS04b_thumb.jpg',130, 97,18,'																			photo_182026.html');
												thumbnails[271235] = new thumbnail(271235,'16729','shopped out','shoppedout0048_thumb.jpg',130, 102,18,'																			photo_271235.html');
												thumbnails[367578] = new thumbnail(367578,'24295','Morgans racing','Morgans0626a_thumb.jpg',130, 70,18,'																			photo_367578.html');
												thumbnails[1995310] = new thumbnail(1995310,'133899','','04_thumb.jpg',130, 98,18,'																			photo_1995310.html');
												thumbnails[2020967] = new thumbnail(2020967,'135442','','041_thumb.jpg',130, 97,18,'																			photo_2020967.html');
												thumbnails[2030487] = new thumbnail(2030487,'135654','','cycle9922n_thumb.jpg',130, 86,18,'																			photo_2030487.html');
												thumbnails[5241702] = new thumbnail(5241702,'295454','peanut seller','Pushkar3361a_thumb.jpg',130, 83,18,'																			photo_5241702.html');
												thumbnails[5264227] = new thumbnail(5264227,'296327','smiley','shadows2008m_thumb.jpg',130, 78,18,'																			photo_5264227.html');
												thumbnails[108441] = new thumbnail(108441,'10150','lanterns','Penang02_thumb.jpg',130, 85,18,'																			photo_108441.html');
												thumbnails[108252] = new thumbnail(108252,'10163','Mancunia','Mancunia_thumb.jpg',130, 183,18,'																			photo_108252.html');
												thumbnails[108344] = new thumbnail(108344,'10191','','BalloonAz03_thumb.jpg',130, 87,18,'																			photo_108344.html');
												thumbnails[108392] = new thumbnail(108392,'10150','railroad','GrandCanyonRailroad_thumb.jpg',130, 87,18,'																			photo_108392.html');
												thumbnails[457496] = new thumbnail(457496,'16729','watch seller Si Lom','SiLom29d_thumb.jpg',130, 91,18,'																			photo_457496.html');
												thumbnails[568065] = new thumbnail(568065,'10192','Lyon in autumn','Lyon6479a_thumb.jpg',130, 179,18,'																			photo_568065.html');
												thumbnails[1995312] = new thumbnail(1995312,'133899','','06a_thumb.jpg',130, 178,18,'																			photo_1995312.html');
												thumbnails[2020968] = new thumbnail(2020968,'135442','','051_thumb.jpg',130, 194,18,'																			photo_2020968.html');
												thumbnails[2030485] = new thumbnail(2030485,'135654','','bels0015n_thumb.jpg',130, 87,18,'																			photo_2030485.html');
												thumbnails[5264194] = new thumbnail(5264194,'296327','pink','cloth2436a_thumb.jpg',130, 87,18,'																			photo_5264194.html');
												thumbnails[5571627] = new thumbnail(5571627,'295454','unruly camel','Pushkar3256c_thumb.jpg',130, 74,18,'																			photo_5571627.html');
												thumbnails[114035] = new thumbnail(114035,'10150','windsurfers','Mauii17_thumb.jpg',130, 77,18,'																			photo_114035.html');
												thumbnails[7352686] = new thumbnail(7352686,'16729','points','points7794ma_thumb.jpg',130, 195,18,'																			photo_7352686.html');
												thumbnails[108339] = new thumbnail(108339,'10150','wreck life','WreckLife2_thumb.jpg',130, 87,18,'																			photo_108339.html');
												thumbnails[109929] = new thumbnail(109929,'10163','one way','OneWay06_thumb.jpg',130, 173,18,'																			photo_109929.html');
												thumbnails[182047] = new thumbnail(182047,'10192','glacier bay','Glacier36a_thumb.jpg',130, 84,18,'																			photo_182047.html');
												thumbnails[182077] = new thumbnail(182077,'16729','cathedral close','cathedral0286_thumb.jpg',130, 65,18,'																			photo_182077.html');
												thumbnails[1995307] = new thumbnail(1995307,'133899','','02_thumb.jpg',130, 128,18,'																			photo_1995307.html');
												thumbnails[2020969] = new thumbnail(2020969,'135442','','06_thumb.jpg',130, 81,18,'																			photo_2020969.html');
												thumbnails[2030496] = new thumbnail(2030496,'135654','','organ9937m2_thumb.jpg',130, 195,18,'																			photo_2030496.html');
												thumbnails[5241503] = new thumbnail(5241503,'295454','man of Pushkar','Pushkar3220b_thumb.jpg',130, 81,18,'																			photo_5241503.html');
												thumbnails[5264244] = new thumbnail(5264244,'296327','stop or go?','windows1979a_thumb.jpg',130, 184,18,'																			photo_5264244.html');
												thumbnails[569903] = new thumbnail(569903,'10150','red boat, blue boat','RedBoat0153a_thumb.jpg',130, 87,18,'																			photo_569903.html');
												thumbnails[111172] = new thumbnail(111172,'10150','bicycle rickshaw','Rickshaw man02_thumb.jpg',130, 98,18,'																			photo_111172.html');
												thumbnails[108944] = new thumbnail(108944,'10192','Mauna Kea ','Keck and Friends_thumb.jpg',130, 85,18,'																			photo_108944.html');
												thumbnails[114769] = new thumbnail(114769,'10163','leafy walk','ARPS07a_thumb.jpg',130, 176,18,'																			photo_114769.html');
												thumbnails[1995336] = new thumbnail(1995336,'133899','','19_thumb.jpg',130, 87,18,'																			photo_1995336.html');
												thumbnails[2020970] = new thumbnail(2020970,'135442','','071_thumb.jpg',130, 94,18,'																			photo_2020970.html');
												thumbnails[2030495] = new thumbnail(2030495,'135654','','octagon1_thumb.jpg',130, 85,18,'																			photo_2030495.html');
												thumbnails[5241695] = new thumbnail(5241695,'295454','home','Pushkar3243a_thumb.jpg',130, 87,18,'																			photo_5241695.html');
												thumbnails[5264189] = new thumbnail(5264189,'296327','eye','chang3244a_thumb.jpg',130, 108,18,'																			photo_5264189.html');
												thumbnails[108248] = new thumbnail(108248,'10162','Sukothai','Sukothai_thumb.jpg',130, 98,18,'																			photo_108248.html');
												thumbnails[112504] = new thumbnail(112504,'10192','slot canyon','AZfeb01Ant30a_thumb.jpg',130, 195,18,'																			photo_112504.html');
												thumbnails[114772] = new thumbnail(114772,'10163','reflection','ARPS08a1_thumb.jpg',130, 180,18,'																			photo_114772.html');
												thumbnails[277830] = new thumbnail(277830,'10150','Hong Kong tram','tram00005m_thumb.jpg',130, 200,18,'																			photo_277830.html');
												thumbnails[899676] = new thumbnail(899676,'135654','','cross0049c_thumb.jpg',130, 178,18,'																			photo_899676.html');
												thumbnails[1995319] = new thumbnail(1995319,'133899','','10_thumb.jpg',130, 95,18,'																			photo_1995319.html');
												thumbnails[2020971] = new thumbnail(2020971,'135442','','081_thumb.jpg',130, 195,18,'																			photo_2020971.html');
												thumbnails[5241666] = new thumbnail(5241666,'295454','old pedlar','Pushkar3435a_thumb.jpg',130, 164,18,'																			photo_5241666.html');
												thumbnails[5264215] = new thumbnail(5264215,'296327','Nav','Nav3644m_thumb.jpg',130, 135,18,'																			photo_5264215.html');
												thumbnails[108947] = new thumbnail(108947,'10150','stacks','Stacks020_thumb.jpg',130, 201,18,'																			photo_108947.html');
												thumbnails[111169] = new thumbnail(111169,'10192','Church Rock','Church Rock_thumb.jpg',130, 98,18,'																			photo_111169.html');
												thumbnails[182030] = new thumbnail(182030,'10163','eight','ARPS09b_thumb.jpg',130, 170,18,'																			photo_182030.html');
												thumbnails[389654] = new thumbnail(389654,'24295','Lotus 17','Lister0703b2_thumb.jpg',130, 87,18,'																			photo_389654.html');
												thumbnails[899674] = new thumbnail(899674,'16729','in an English churchyard','berries0066m_thumb.jpg',130, 88,18,'																			photo_899674.html');
												thumbnails[1995325] = new thumbnail(1995325,'133899','','13_thumb.jpg',130, 86,18,'																			photo_1995325.html');
												thumbnails[2023853] = new thumbnail(2023853,'135442','','091_thumb.jpg',130, 92,18,'																			photo_2023853.html');
												thumbnails[2030430] = new thumbnail(2030430,'10162','Hua Hin station','HuaHin0002a_thumb.jpg',130, 195,18,'																			photo_2030430.html');
												thumbnails[2030491] = new thumbnail(2030491,'135654','','door9919nnma1_thumb.jpg',130, 202,18,'																			photo_2030491.html');
												thumbnails[5241692] = new thumbnail(5241692,'295454','water source','Pushkar3224a_thumb.jpg',130, 82,18,'																			photo_5241692.html');
												thumbnails[5264200] = new thumbnail(5264200,'296327','enigma','Jodhpur2729b_thumb.jpg',130, 107,18,'																			photo_5264200.html');
												thumbnails[108340] = new thumbnail(108340,'10192','Grand Canyon','GrandCanyon10_thumb.jpg',130, 91,18,'																			photo_108340.html');
												thumbnails[112803] = new thumbnail(112803,'10163','school','ARPS10a_thumb.jpg',130, 179,18,'																			photo_112803.html');
												thumbnails[506787] = new thumbnail(506787,'32006','vitesse','blur0793me_thumb.jpg',130, 72,18,'																			photo_506787.html');
												thumbnails[1995311] = new thumbnail(1995311,'133899','','05_thumb.jpg',130, 114,18,'																			photo_1995311.html');
												thumbnails[2023850] = new thumbnail(2023850,'135442','','101_thumb.jpg',130, 112,18,'																			photo_2023850.html');
												thumbnails[5241705] = new thumbnail(5241705,'295454','baker\'s boy','Pushkar3227a_thumb.jpg',130, 81,18,'																			photo_5241705.html');
												thumbnails[5264263] = new thumbnail(5264263,'296327','stained floor','room2251a_thumb.jpg',130, 186,18,'																			photo_5264263.html');
												thumbnails[182031] = new thumbnail(182031,'10163','Sauchiehall centre','ARPS11b_thumb.jpg',130, 188,18,'																			photo_182031.html');
												thumbnails[269411] = new thumbnail(269411,'10150','windsurfer','Kihie26c_thumb.jpg',130, 198,18,'																			photo_269411.html');
												thumbnails[269412] = new thumbnail(269412,'10192','glacier','Glacier34a_thumb.jpg',130, 83,18,'																			photo_269412.html');
												thumbnails[1995316] = new thumbnail(1995316,'133899','','08_thumb.jpg',130, 87,18,'																			photo_1995316.html');
												thumbnails[2020972] = new thumbnail(2020972,'135442','','111_thumb.jpg',130, 90,18,'																			photo_2020972.html');
												thumbnails[2030490] = new thumbnail(2030490,'135654','','door0024n11_thumb.jpg',130, 176,18,'																			photo_2030490.html');
												thumbnails[2030498] = new thumbnail(2030498,'135654','','WPT0023n1_thumb.jpg',130, 195,18,'																			photo_2030498.html');
												thumbnails[5458363] = new thumbnail(5458363,'308776','the lake city','lakecity2223xb_thumb.jpg',130, 63,18,'																			photo_5458363.html');
												thumbnails[264000] = new thumbnail(264000,'10150','dolphins','dolphins0045a_thumb.jpg',130, 173,18,'																			photo_264000.html');
												thumbnails[108341] = new thumbnail(108341,'10192','Camargue','Camargue14_thumb.jpg',130, 46,18,'																			photo_108341.html');
												thumbnails[114751] = new thumbnail(114751,'10163','the potman','ARPS12a_thumb.jpg',130, 96,18,'																			photo_114751.html');
												thumbnails[394294] = new thumbnail(394294,'24295','Jackie Stewart driving the 1971 Tyrell 001','Stewart0687b_thumb.jpg',130, 93,18,'																			photo_394294.html');
												thumbnails[396201] = new thumbnail(396201,'32006','Morgan pursuit','Morgans0641y_thumb.jpg',130, 74,18,'																			photo_396201.html');
												thumbnails[1995318] = new thumbnail(1995318,'133899','','09_thumb.jpg',130, 92,18,'																			photo_1995318.html');
												thumbnails[2020973] = new thumbnail(2020973,'135442','','121_thumb.jpg',130, 87,18,'																			photo_2020973.html');
												thumbnails[2030497] = new thumbnail(2030497,'135654','','paint0040n1_thumb.jpg',130, 195,18,'																			photo_2030497.html');
												thumbnails[5458124] = new thumbnail(5458124,'308776','the ghats','ghats2095xb_thumb.jpg',130, 87,18,'																			photo_5458124.html');
												thumbnails[108235] = new thumbnail(108235,'10163','Chiltern winter','Chiltern Winter_thumb.jpg',130, 93,18,'																			photo_108235.html');
												thumbnails[1030423] = new thumbnail(1030423,'10192','lanna dawn','lanna9991c_resize_thumb.jpg',130, 90,18,'																			photo_1030423.html');
												thumbnails[1995320] = new thumbnail(1995320,'133899','','11_thumb.jpg',130, 87,18,'																			photo_1995320.html');
												thumbnails[2020974] = new thumbnail(2020974,'135442','','131_thumb.jpg',130, 186,18,'																			photo_2020974.html');
												thumbnails[2030499] = new thumbnail(2030499,'135654','','WPT9913n_resize_thumb.jpg',130, 195,18,'																			photo_2030499.html');
												thumbnails[5571572] = new thumbnail(5571572,'308776','outside the city palace','mirror1957b_thumb.jpg',130, 81,18,'																			photo_5571572.html');
												thumbnails[108749] = new thumbnail(108749,'10192','Cheviot frost','Cheviots_thumb.jpg',130, 59,18,'																			photo_108749.html');
												thumbnails[182032] = new thumbnail(182032,'10163','morning stroll','ARPS14b_thumb.jpg',130, 98,18,'																			photo_182032.html');
												thumbnails[621003] = new thumbnail(621003,'10192','Cheviot sun','Cheviot8585b_thumb.jpg',130, 80,18,'																			photo_621003.html');
												thumbnails[1457468] = new thumbnail(1457468,'16729','monk at Wat Pan Tao','WPTmonk0026Pmx1n_thumb.jpg',130, 180,18,'																			photo_1457468.html');
												thumbnails[1995323] = new thumbnail(1995323,'133899','','12_thumb.jpg',130, 91,18,'																			photo_1995323.html');
												thumbnails[2023852] = new thumbnail(2023852,'135442','','141_thumb.jpg',130, 114,18,'																			photo_2023852.html');
												thumbnails[5458107] = new thumbnail(5458107,'308776','lake palace or Jag Niwas Palace','lake1901xa_thumb.jpg',130, 78,18,'																			photo_5458107.html');
												thumbnails[114750] = new thumbnail(114750,'10163','Rockefeller centre','ARPS15a1_thumb.jpg',130, 185,18,'																			photo_114750.html');
												thumbnails[1995337] = new thumbnail(1995337,'133899','','20_thumb.jpg',130, 85,18,'																			photo_1995337.html');
												thumbnails[2020975] = new thumbnail(2020975,'135442','','152_thumb.jpg',130, 82,18,'																			photo_2020975.html');
												thumbnails[2030486] = new thumbnail(2030486,'135654','','bowls9905o_thumb.jpg',130, 195,18,'																			photo_2030486.html');
												thumbnails[4221253] = new thumbnail(4221253,'135654','Waterfall','Wfall1115bm_thumb.jpg',130, 195,18,'																			photo_4221253.html');
												thumbnails[4221254] = new thumbnail(4221254,'32006','Waterfall','Wfall1035a_thumb.jpg',130, 195,18,'																			photo_4221254.html');
												thumbnails[5458121] = new thumbnail(5458121,'308776','no trumpeting','hornless1915xc_thumb.jpg',130, 77,18,'																			photo_5458121.html');
												thumbnails[109104] = new thumbnail(109104,'10150','arts centre','Gallery005a_thumb.jpg',130, 173,18,'																			photo_109104.html');
												thumbnails[112381] = new thumbnail(112381,'10162','a monk\'s task','BTt408_thumb.jpg',130, 156,18,'																			photo_112381.html');
												thumbnails[1995326] = new thumbnail(1995326,'133899','','14_thumb.jpg',130, 87,18,'																			photo_1995326.html');
												thumbnails[2020976] = new thumbnail(2020976,'135442','','161_thumb.jpg',130, 188,18,'																			photo_2020976.html');
												thumbnails[1995334] = new thumbnail(1995334,'133899','','17_thumb.jpg',130, 87,18,'																			photo_1995334.html');
												thumbnails[2020977] = new thumbnail(2020977,'135442','','171_thumb.jpg',130, 91,18,'																			photo_2020977.html');
												thumbnails[1995333] = new thumbnail(1995333,'133899','','16_thumb.jpg',130, 98,18,'																			photo_1995333.html');
												thumbnails[2020978] = new thumbnail(2020978,'135442','','181_thumb.jpg',130, 95,18,'																			photo_2020978.html');
												thumbnails[1995329] = new thumbnail(1995329,'133899','','15_thumb.jpg',130, 82,18,'																			photo_1995329.html');
												thumbnails[2020979] = new thumbnail(2020979,'135442','','191_thumb.jpg',130, 88,18,'																			photo_2020979.html');
												thumbnails[1995335] = new thumbnail(1995335,'133899','','18_thumb.jpg',130, 80,18,'																			photo_1995335.html');
												thumbnails[2020980] = new thumbnail(2020980,'135442','','201_thumb.jpg',130, 195,18,'																			photo_2020980.html');
												thumbnails[5571571] = new thumbnail(5571571,'308776','girl by Udaipur lake','lakegirl1946xb_thumb.jpg',130, 174,18,'																			photo_5571571.html');
												thumbnails[5571575] = new thumbnail(5571575,'308776','museum guide','guard1924xb_thumb.jpg',130, 85,18,'																			photo_5571575.html');
												thumbnails[5571573] = new thumbnail(5571573,'308776','palace detail','palace1949b_thumb.jpg',130, 83,18,'																			photo_5571573.html');
												thumbnails[5571613] = new thumbnail(5571613,'308776','the marble city','marblecity1939xa_thumb.jpg',130, 87,18,'																			photo_5571613.html');
												thumbnails[5457652] = new thumbnail(5457652,'308776','railway porters','porters1926xb_thumb.jpg',130, 163,18,'																			photo_5457652.html');
												thumbnails[5458378] = new thumbnail(5458378,'32006','reflection','reflection2092xb_thumb.jpg',130, 195,18,'																			photo_5458378.html');
												thumbnails[5464533] = new thumbnail(5464533,'295454','hearth','hearth3272xb_thumb.jpg',130, 195,18,'																			photo_5464533.html');
												thumbnails[5571574] = new thumbnail(5571574,'308776','seat of convenience','convenience2102a_thumb.jpg',130, 101,18,'																			photo_5571574.html');
												thumbnails[5458199] = new thumbnail(5458199,'308776','pot merchant','pots2081xb_thumb.jpg',130, 87,18,'																			photo_5458199.html');
												thumbnails[5464535] = new thumbnail(5464535,'295454','2 girls','Pushkar3286d_thumb.jpg',130, 154,18,'																			photo_5464535.html');
												thumbnails[5457653] = new thumbnail(5457653,'308776','basket weavers','weavers2191xb_thumb.jpg',130, 87,18,'																			photo_5457653.html');
												thumbnails[5464537] = new thumbnail(5464537,'295454','3 camels','3camels3270xc_thumb.jpg',130, 87,18,'																			photo_5464537.html');
												thumbnails[5461368] = new thumbnail(5461368,'308776','barber and customer','barber1996xb_thumb.jpg',130, 87,18,'																			photo_5461368.html');
												thumbnails[5457655] = new thumbnail(5457655,'308776','market porter','porter2087xb_thumb.jpg',130, 195,18,'																			photo_5457655.html');
												thumbnails[5464534] = new thumbnail(5464534,'295454','tails','tails3358xb_thumb.jpg',130, 78,18,'																			photo_5464534.html');
												thumbnails[5464536] = new thumbnail(5464536,'295454','wood merchant & scales','Pushkar3375b_thumb.jpg',130, 88,18,'																			photo_5464536.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[10150] = new gallery(10150,'264000,114035,109104,108441,108333,108239','Signature','gallery',[573780,108333,108239,108725,108441,108392,114035,108339,569903,111172,277830,108947,269411,264000,109104],0, 0, '', '																																																																																																							gallery_10150.html',0,0);
				  					galleries[308776] = new gallery(308776,'5571613,5571575,5571574,5571573,5571572,5571571,5461368,5458363,5458199,5458124','Udaipur','gallery',[5458363,5458124,5571572,5458107,5458121,5571571,5571575,5571573,5571613,5457652,5571574,5458199,5457653,5461368,5457655],0, 0, '295453', '																																																																																																							gallery_308776.html',0,0);
				  					galleries[10192] = new gallery(10192,'1030423,112503,108942,108340','Landscape','gallery',[108949,108942,108443,112503,568065,182047,108944,112504,111169,108340,269412,108341,1030423,108749,621003],0, 0, '', '																																																																																																							gallery_10192.html',0,0);
				  					galleries[16729] = new gallery(16729,'899674,457496,272089,271235,271231,182077','Monochrome','gallery',[272089,271231,271239,271235,457496,7352686,182077,899674,1457468],0, 0, '', '																																																																																																							gallery_16729.html',0,0);
				  					galleries[24295] = new gallery(24295,'367578,334640,273597','Motor Sport','gallery',[334641,334640,273595,273597,367578,389654,394294],0, 0, '', '																																																																																																							gallery_24295.html',0,0);
				  					galleries[10191] = new gallery(10191,'108344','Balloons in Arizona','gallery',[108345,108351,114501,108344],0, 0, '', '																																																																																																							gallery_10191.html',0,0);
				  					galleries[10163] = new gallery(10163,'114751,108235','ARPS','gallery',[114776,182035,114748,182026,108252,109929,114769,114772,182030,112803,182031,114751,108235,182032,114750],0, 0, '', '																																																																																																							gallery_10163.html',0,0);
				  					galleries[133899] = new gallery(133899,'1995337,1995310','\"Faces of Buddhism\"','gallery',[1995305,1995313,1995309,1995310,1995312,1995307,1995336,1995319,1995325,1995311,1995316,1995318,1995320,1995323,1995337,1995326,1995334,1995333,1995329,1995335],0, 0, '', '																																																																																																							gallery_133899.html',0,0);
				  					galleries[23535] = new gallery(23535,'263204,262726,262722,262708,262696','MFIAP','gallery',[262696,262699,262701,262703,262704,262706,262708,262709,262712,262717,262720,262722,262724,262725,262726,263204,262731,262732,262736,262737],0, 0, '', '																																																																																																							gallery_23535.html',0,0);
				  					galleries[295454] = new gallery(295454,'5241537,5241503','Pushkar','gallery',[5241846,5241537,5241678,5241702,5571627,5241503,5241695,5241666,5241692,5241705,5464533,5464535,5464537,5464534,5464536],0, 0, '295453', '																																																																																																							gallery_295454.html',0,0);
				  					galleries[135442] = new gallery(135442,'2023853,2023852,2023850,2020980,2020979,2020978,2020977,2020976,2020975,2020974','\"It\'s a monk\'s life\"','gallery',[2020964,2020965,2020966,2020967,2020968,2020969,2020970,2020971,2023853,2023850,2020972,2020973,2020974,2023852,2020975,2020976,2020977,2020978,2020979,2020980],0, 0, '', '																																																																																																							gallery_135442.html',0,0);
				  					galleries[135654] = new gallery(135654,'2030492','Light and shade','gallery',[2030492,2030488,2030493,2030487,2030485,2030496,2030495,899676,2030491,2030490,2030498,2030497,2030499,2030486,4221253],0, 0, '', '																																																																																																							gallery_135654.html',0,0);
				  					galleries[12253] = new gallery(12253,'133739','Girls','gallery',[133739],0, 0, '', '																																																																																																							gallery_12253.html',0,0);
				  					galleries[32006] = new gallery(32006,'4221254,1454629','Creative','gallery',[1454629,396210,513592,506787,396201,4221254,5458378],0, 0, '', '																																																																																																							gallery_32006.html',0,0);
				  					galleries[10162] = new gallery(10162,'2030494,2030436,2030430,108248','Thai','gallery',[2030436,2030494,108248,2030430,112381],0, 0, '', '																																																																																																							gallery_10162.html',0,0);
				  					galleries[296327] = new gallery(296327,'5264184','creative','gallery',[5264184,5264182,5264233,5264227,5264194,5264244,5264189,5264215,5264200,5264263],0, 0, '295453', '																																																																																																							gallery_296327.html',0,0);
				  					galleries[295453] = new gallery(295453,'5264184,5241537,5241503','India','gallery',[],0, 0, '', '																																																																																																							gallery_295453.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '5457655,5264182,5241503,4221254,568065';
imageSets[2] = '5264184,5241537,5241503,4221254,2030494,2030492,2030436,2030430,1995337,1995310,1454629,1030423,899674,457496,367578,334640,273597,272089,271235,271231,264000,263204,262726,262722,262708,262696,182077,114751,114035,112503,109104,108942,108441,108344,108340,108333,108248,108239,108235';
imageSets[3] = '7352686,5571627,5571613,5571575,5571574,5571573,5571572,5571571,5464537,5464536,5464535,5464534,5464533,5461368,5458378,5458363,5458199,5458124,5458121,5458107,5457655,5457653,5457652,5264263,5264244,5264233,5264227,5264215,5264200,5264194,5264189,5264184,5264182,5241846,5241705,5241702,5241695,5241692,5241678,5241666,5241537,5241503,4221254,4221253,2030499,2030498,2030497,2030496,2030495,2030494';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/johnrsimpson/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/johnrsimpson/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/johnrsimpson/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/johnrsimpson/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/johnrsimpson/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/johnrsimpson/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/johnrsimpson/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/johnrsimpson/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/johnrsimpson/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/johnrsimpson/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/johnrsimpson/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/johnrsimpson/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/johnrsimpson/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/johnrsimpson/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/johnrsimpson/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/johnrsimpson/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/johnrsimpson/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/johnrsimpson/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/johnrsimpson/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/johnrsimpson/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/johnrsimpson/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/johnrsimpson/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 = 'Middle Image: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
	    var options = {photoinfominwidth:200};	    		options.photoinfoadjacent = true;			      	      resizePhotoInfo(options);
        if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
  	      toggleAddToCartConfirm(backgrounds);
  	    } else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
  	      toggleAddToCartConfirm(photos);
  	    }
	    });
    }
        if (!op.speed) {      clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));    }        
    return html;			}
	else {
				
		window.location = 'photo_' + nextPhoto.id + '.html';
	}
		
}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array){
  if (typeof(array) !== 'object') {
    array = photos;
  }
	if($('#paymentConfirm').length > 0){
		$('#paymentConfirm').hide();
		$('#paymentAddButton')
		.unbind()
		.click(function(){
						form = document.getElementById('paymentForm');
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm').text('Item added to cart').show();}
				else{
					$('#paymentConfirm').text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm').text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}
/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp = temp +  '<p id="imageDescription">' + this.description + '</p>';
	}
		if (this.photo_ref != '') {
		temp = temp + '<p class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</p>';
	}
		if (this.takendate != '') {
				
		temp = temp + '<p class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</p>';
	}
	
	if (this.location != '') {
				
		temp = temp + '<p class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</p>';
	}
	
	if (this.photographer != '') {
				
		temp = temp + '<p class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</p>';
	}
					
	temp = temp + this.fnGetPaymentInfo();
				if (temp != '') {
		temp = temp + '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
																		temp = temp + '<p>Buy now using PayPal:</p>';
				temp = temp + '<p class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> 				&pound;' + (this.item_price).toFixed(2) + '</p>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.payment_groups_id !== '') {
		temp = temp + '<p>Buy this print online:</p>';
				temp = temp + '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp = temp + '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
				
		temp = temp + getPaymentOptions(this.payment_groups_id);
		temp = temp + '</select>';
		temp = temp + '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
	else {
				
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
																				temp = temp + '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
	temp = temp + '<input type="hidden" name="item_name" value="'+item_name+'">';
								ref = '';
				if(this.photo_ref != ''){
					ref = this.photo_ref+' - '+this.caption;
				}
				else{
					ref = this.id+' - '+this.caption;
				}
				price = amount;					temp = temp + '<input type="hidden" name="cmd" value="_cart">';
	temp = temp + '<input type="hidden" name="business" value="jrichardsimpson@hotmail.com">';
	temp = temp + '<input type="hidden" name="currency_code" value="GBP">';
	temp = temp + '<input type="hidden" name="add" value="1">';
					temp = temp + '<input type="hidden" name="amount" value="'+amount+'">';
	temp = temp + '<input type="hidden" name="item_number" value="'+ref+'">';
					temp = temp + '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
									temp = temp + '</form>';
								temp = temp + '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
	temp = temp + '<input type="hidden" name="cmd" value="_cart">';
	temp = temp + '<input type="hidden" name="business" value="jrichardsimpson@hotmail.com">';
	temp = temp + '<input type="hidden" name="display" value="1">';
	temp = temp + '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
	temp = temp + '</form>';
							temp = temp + '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
		
	if(img){
	      if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
        imageID = imageID[1];
      } else {
			  imageID = randomListVal(galleries[gallery_id].featured_images);
      }
							
			if (imageID != 0) {
				img.src = thumbnails[imageID].src;
				img.width = thumbnails[imageID].width;
				img.height = thumbnails[imageID].height;
				img.alt = galleries[gallery_id].title;
        if (updateLink) {
          $(img).parent().attr({            href: thumbnails[imageID].fnGalleryLink(gallery_id),            title: galleries[gallery_id].title          });
        }
							}
										}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp = temp + ' | ';
				}
				temp = temp + '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
			}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

		

