window.thumbnails = new Object();
												thumbnails[4211564] = new thumbnail(4211564,'','','Gallery-Room23_thumb.jpg',130, 55,15,'							photo_4211564.html');
												thumbnails[5997202] = new thumbnail(5997202,'','','RT-01_thumb.jpg',130, 86,15,'							photo_5997202.html');
												thumbnails[6052033] = new thumbnail(6052033,'','','RT-05_thumb.jpg',130, 86,15,'							photo_6052033.html');
												thumbnails[6000327] = new thumbnail(6000327,'','','RT-10_BB114F0F-1D09-001F-990B94B63C9E0CED_thumb.jpg',130, 86,15,'							photo_6000327.html');
												thumbnails[6000330] = new thumbnail(6000330,'','','RT-15_BB11D8C1-1D09-001F-99034ACFC2C52BD5_thumb.jpg',112, 130,15,'							photo_6000330.html');
												thumbnails[6000333] = new thumbnail(6000333,'','','RT-25_BB12F6F3-1D09-001F-99D14D407676CF66_thumb.jpg',130, 86,15,'							photo_6000333.html');
												thumbnails[6051883] = new thumbnail(6051883,'','','RT-25_thumb.jpg',89, 130,15,'							photo_6051883.html');
												thumbnails[6866077] = new thumbnail(6866077,'','','RT-28_thumb.jpg',86, 130,15,'							photo_6866077.html');
												thumbnails[6866080] = new thumbnail(6866080,'','','RT-29_thumb.jpg',95, 130,15,'							photo_6866080.html');
												thumbnails[5997224] = new thumbnail(5997224,'','','RT-07_B667544F-1D09-001F-99F5BEEA574EF88C_thumb.jpg',130, 86,15,'							photo_5997224.html');
												thumbnails[5997228] = new thumbnail(5997228,'','','RT-08_thumb.jpg',130, 87,15,'							photo_5997228.html');
												thumbnails[5997231] = new thumbnail(5997231,'','','RT-09_B66881A3-1D09-001F-9917B20A755DBB86_thumb.jpg',130, 87,15,'							photo_5997231.html');
												thumbnails[6474486] = new thumbnail(6474486,'','','RT-155_3DDB5A0A-24E8-5EC4-4F1088146ADACF29_thumb.jpg',130, 86,15,'							photo_6474486.html');
												thumbnails[5997232] = new thumbnail(5997232,'','','RT-10_thumb.jpg',130, 86,15,'							photo_5997232.html');
												thumbnails[5997233] = new thumbnail(5997233,'','','RT-11_thumb.jpg',130, 87,15,'							photo_5997233.html');
												thumbnails[5997234] = new thumbnail(5997234,'','','RT-12_B66A527B-1D09-001F-997B42C36C242939_thumb.jpg',130, 129,15,'							photo_5997234.html');
												thumbnails[6000336] = new thumbnail(6000336,'','','RT-60_BB13F364-1D09-001F-99D97C75D440066C_thumb.jpg',88, 130,15,'							photo_6000336.html');
												thumbnails[5997238] = new thumbnail(5997238,'','','RT-14_thumb.jpg',87, 130,15,'							photo_5997238.html');
												thumbnails[5997240] = new thumbnail(5997240,'','','RT-15_thumb.jpg',97, 130,15,'							photo_5997240.html');
												thumbnails[6000339] = new thumbnail(6000339,'','','RT-75_BB14BF5F-1D09-001F-99EBB1690F9D8261_thumb.jpg',130, 98,15,'							photo_6000339.html');
												thumbnails[6000340] = new thumbnail(6000340,'','','RT-80_BB1532AA-1D09-001F-9948096087A57ED2_thumb.jpg',130, 98,15,'							photo_6000340.html');
												thumbnails[5997248] = new thumbnail(5997248,'','','RT-18_thumb.jpg',130, 125,15,'							photo_5997248.html');
												thumbnails[5997250] = new thumbnail(5997250,'','','RT-19_thumb.jpg',130, 98,15,'							photo_5997250.html');
												thumbnails[6000453] = new thumbnail(6000453,'','','RT-951_thumb.jpg',130, 98,15,'							photo_6000453.html');
												thumbnails[5997255] = new thumbnail(5997255,'','','RT-21_thumb.jpg',130, 96,15,'							photo_5997255.html');
												thumbnails[5997256] = new thumbnail(5997256,'','','RT-22_B670C731-1D09-001F-99CDDAE15DEED4DD_thumb.jpg',130, 85,15,'							photo_5997256.html');
												thumbnails[5997258] = new thumbnail(5997258,'','','RT-23_thumb.jpg',86, 130,15,'							photo_5997258.html');
												thumbnails[5997277] = new thumbnail(5997277,'','','RT-25_B6728A9C-1D09-001F-99B78153BD88A45F_thumb.jpg',130, 87,15,'							photo_5997277.html');
												thumbnails[5997278] = new thumbnail(5997278,'','','RT-26_B6732630-1D09-001F-9937B1722FD9BF4D_thumb.jpg',130, 97,15,'							photo_5997278.html');
												thumbnails[5997280] = new thumbnail(5997280,'','','RT-27_B673BB3C-1D09-001F-99BC6B83BE594B13_thumb.jpg',130, 89,15,'							photo_5997280.html');
												thumbnails[6000346] = new thumbnail(6000346,'','','RT-135_thumb.jpg',130, 87,15,'							photo_6000346.html');
												thumbnails[6000347] = new thumbnail(6000347,'','','RT-140_thumb.jpg',92, 130,15,'							photo_6000347.html');
												thumbnails[6000349] = new thumbnail(6000349,'','','RT-145_thumb.jpg',105, 130,15,'							photo_6000349.html');
												thumbnails[6000352] = new thumbnail(6000352,'','','RT-150_thumb.jpg',96, 130,15,'							photo_6000352.html');
												thumbnails[6000356] = new thumbnail(6000356,'','','RT-155_thumb.jpg',130, 112,15,'							photo_6000356.html');
												thumbnails[4325303] = new thumbnail(4325303,'236436','The Actor And Writer Jeremy Nicholas','JeremyNicholas0001_thumb.jpg',130, 130,15,'							photo_4325303.html');
												thumbnails[6034171] = new thumbnail(6034171,'279744','','RTF_5_thumb.jpg',130, 130,15,'							photo_6034171.html');
												thumbnails[6045087] = new thumbnail(6045087,'236437','','RTC-05_thumb.jpg',130, 130,15,'							photo_6045087.html');
												thumbnails[6077141] = new thumbnail(6077141,'341227','','DL-5_thumb.jpg',130, 130,15,'							photo_6077141.html');
												thumbnails[6866802] = new thumbnail(6866802,'372775','','RTM-05_thumb.jpg',130, 130,15,'							photo_6866802.html');
												thumbnails[7224322] = new thumbnail(7224322,'390249','','GR-051_thumb.jpg',130, 130,15,'							photo_7224322.html');
												thumbnails[7134471] = new thumbnail(7134471,'238698','WNBR','TIE-6_thumb.jpg',130, 130,15,'							photo_7134471.html');
												thumbnails[7134476] = new thumbnail(7134476,'238698','','TIE-7_thumb.jpg',130, 130,15,'							photo_7134476.html');
												thumbnails[7134480] = new thumbnail(7134480,'238698','','TIE-9_thumb.jpg',130, 130,15,'							photo_7134480.html');
												thumbnails[4365798] = new thumbnail(4365798,'236436','','RTP-01_thumb.jpg',130, 130,15,'							photo_4365798.html');
												thumbnails[4393024] = new thumbnail(4393024,'238689','','LS-01_thumb.jpg',130, 130,15,'							photo_4393024.html');
												thumbnails[6034172] = new thumbnail(6034172,'279744','','RTF_101_thumb.jpg',130, 130,15,'							photo_6034172.html');
												thumbnails[6045155] = new thumbnail(6045155,'236437','','RTC-101_thumb.jpg',130, 130,15,'							photo_6045155.html');
												thumbnails[6077142] = new thumbnail(6077142,'341227','','DL-10_thumb.jpg',130, 130,15,'							photo_6077142.html');
												thumbnails[6866804] = new thumbnail(6866804,'372775','','RTM-10_thumb.jpg',130, 130,15,'							photo_6866804.html');
												thumbnails[7224326] = new thumbnail(7224326,'390249','','GR-101_thumb.jpg',130, 130,15,'							photo_7224326.html');
												thumbnails[7134485] = new thumbnail(7134485,'238698','','TIE-12_thumb.jpg',130, 130,15,'							photo_7134485.html');
												thumbnails[7134493] = new thumbnail(7134493,'238698','','TIE-13_thumb.jpg',130, 130,15,'							photo_7134493.html');
												thumbnails[6033625] = new thumbnail(6033625,'279744','','RTF_03_thumb.jpg',130, 130,15,'							photo_6033625.html');
												thumbnails[6045157] = new thumbnail(6045157,'236437','','RTC-151_thumb.jpg',130, 130,15,'							photo_6045157.html');
												thumbnails[6077143] = new thumbnail(6077143,'341227','','DL-15_thumb.jpg',130, 130,15,'							photo_6077143.html');
												thumbnails[6866805] = new thumbnail(6866805,'372775','','RTM-15_thumb.jpg',130, 130,15,'							photo_6866805.html');
												thumbnails[7223993] = new thumbnail(7223993,'390249','','GR-15_thumb.jpg',130, 130,15,'							photo_7223993.html');
												thumbnails[7134499] = new thumbnail(7134499,'238698','','TIE-16_thumb.jpg',130, 130,15,'							photo_7134499.html');
												thumbnails[7134503] = new thumbnail(7134503,'238698','','TIE-19_thumb.jpg',130, 130,15,'							photo_7134503.html');
												thumbnails[4365802] = new thumbnail(4365802,'236436','','RTP-02_thumb.jpg',130, 130,15,'							photo_4365802.html');
												thumbnails[4393029] = new thumbnail(4393029,'238689','','LS-02_thumb.jpg',130, 130,15,'							photo_4393029.html');
												thumbnails[6034643] = new thumbnail(6034643,'279744','','RTF_2012_thumb.jpg',130, 130,15,'							photo_6034643.html');
												thumbnails[6045106] = new thumbnail(6045106,'236437','','RTC-20_thumb.jpg',130, 130,15,'							photo_6045106.html');
												thumbnails[6077144] = new thumbnail(6077144,'341227','','DL-20_thumb.jpg',130, 130,15,'							photo_6077144.html');
												thumbnails[6866807] = new thumbnail(6866807,'372775','','RTM-20_thumb.jpg',130, 130,15,'							photo_6866807.html');
												thumbnails[7223997] = new thumbnail(7223997,'390249','','GR-20_thumb.jpg',130, 130,15,'							photo_7223997.html');
												thumbnails[7134507] = new thumbnail(7134507,'238698','','TIE-22_thumb.jpg',130, 130,15,'							photo_7134507.html');
												thumbnails[7134512] = new thumbnail(7134512,'238698','WNBR','TIE-23_thumb.jpg',130, 130,15,'							photo_7134512.html');
												thumbnails[7134514] = new thumbnail(7134514,'238698','WNBR','TIE-24_thumb.jpg',130, 130,15,'							photo_7134514.html');
												thumbnails[6033628] = new thumbnail(6033628,'279744','','RTF_05_thumb.jpg',130, 130,15,'							photo_6033628.html');
												thumbnails[6045163] = new thumbnail(6045163,'236437','','RTC-251_thumb.jpg',130, 130,15,'							photo_6045163.html');
												thumbnails[6077145] = new thumbnail(6077145,'341227','','DL-25_thumb.jpg',130, 130,15,'							photo_6077145.html');
												thumbnails[6866808] = new thumbnail(6866808,'372775','','RTM-25_thumb.jpg',130, 130,15,'							photo_6866808.html');
												thumbnails[7224006] = new thumbnail(7224006,'390249','','GR-25_thumb.jpg',130, 130,15,'							photo_7224006.html');
												thumbnails[7134517] = new thumbnail(7134517,'238698','','TIE-27_thumb.jpg',130, 130,15,'							photo_7134517.html');
												thumbnails[4365808] = new thumbnail(4365808,'236436','','RTP-03_thumb.jpg',130, 130,15,'							photo_4365808.html');
												thumbnails[4393035] = new thumbnail(4393035,'238689','','LS-03_thumb.jpg',130, 130,15,'							photo_4393035.html');
												thumbnails[6034182] = new thumbnail(6034182,'279744','','RTF_301_thumb.jpg',130, 130,15,'							photo_6034182.html');
												thumbnails[6045110] = new thumbnail(6045110,'236437','','RTC-30_thumb.jpg',130, 130,15,'							photo_6045110.html');
												thumbnails[6077146] = new thumbnail(6077146,'341227','','DL-30_thumb.jpg',130, 130,15,'							photo_6077146.html');
												thumbnails[6866809] = new thumbnail(6866809,'372775','','RTM-30_thumb.jpg',130, 130,15,'							photo_6866809.html');
												thumbnails[7162708] = new thumbnail(7162708,'238698','','TIE-30_BCEC6816-1EC9-D45B-1C93029F7DE72305_thumb.jpg',130, 130,15,'							photo_7162708.html');
												thumbnails[7224052] = new thumbnail(7224052,'390249','John Surtees','GR-30_thumb.jpg',130, 130,15,'							photo_7224052.html');
												thumbnails[7134522] = new thumbnail(7134522,'238698','','TIE-32_thumb.jpg',130, 130,15,'							photo_7134522.html');
												thumbnails[7134528] = new thumbnail(7134528,'238698','','TIE-33_thumb.jpg',130, 130,15,'							photo_7134528.html');
												thumbnails[7134531] = new thumbnail(7134531,'238698','','TIE-34_thumb.jpg',130, 130,15,'							photo_7134531.html');
												thumbnails[6034187] = new thumbnail(6034187,'279744','','RTF_35_thumb.jpg',130, 130,15,'							photo_6034187.html');
												thumbnails[6045166] = new thumbnail(6045166,'236437','','RTC-351_thumb.jpg',130, 130,15,'							photo_6045166.html');
												thumbnails[6077147] = new thumbnail(6077147,'341227','','DL_35_thumb.jpg',130, 130,15,'							photo_6077147.html');
												thumbnails[6866813] = new thumbnail(6866813,'372775','','RTM-35_thumb.jpg',130, 130,15,'							photo_6866813.html');
												thumbnails[7134536] = new thumbnail(7134536,'238698','','TIE-35_9CE3C63C-1EC9-D45B-1CDC664D337008B2_thumb.jpg',130, 130,15,'							photo_7134536.html');
												thumbnails[7224055] = new thumbnail(7224055,'390249','','GR-35_thumb.jpg',130, 130,15,'							photo_7224055.html');
												thumbnails[7134540] = new thumbnail(7134540,'238698','','TIE-36_thumb.jpg',130, 130,15,'							photo_7134540.html');
												thumbnails[7134541] = new thumbnail(7134541,'238698','','TIE-37_thumb.jpg',130, 130,15,'							photo_7134541.html');
												thumbnails[4365814] = new thumbnail(4365814,'236436','','RTP-04_thumb.jpg',130, 130,15,'							photo_4365814.html');
												thumbnails[6033635] = new thumbnail(6033635,'279744','','RTF_08_thumb.jpg',130, 130,15,'							photo_6033635.html');
												thumbnails[6045167] = new thumbnail(6045167,'236437','','RTC-401_thumb.jpg',130, 130,15,'							photo_6045167.html');
												thumbnails[6070597] = new thumbnail(6070597,'238698','','TIE-40_thumb.jpg',130, 130,15,'							photo_6070597.html');
												thumbnails[6077150] = new thumbnail(6077150,'341227','','DL-40_thumb.jpg',130, 130,15,'							photo_6077150.html');
												thumbnails[6866814] = new thumbnail(6866814,'372775','','RTM-40_thumb.jpg',130, 130,15,'							photo_6866814.html');
												thumbnails[7224059] = new thumbnail(7224059,'390249','John Surtees','GR-40_thumb.jpg',130, 130,15,'							photo_7224059.html');
												thumbnails[7134546] = new thumbnail(7134546,'238698','','TIE-44_thumb.jpg',130, 130,15,'							photo_7134546.html');
												thumbnails[6034197] = new thumbnail(6034197,'279744','','RTF_45_thumb.jpg',130, 130,15,'							photo_6034197.html');
												thumbnails[6045168] = new thumbnail(6045168,'236437','','RTC-451_thumb.jpg',130, 130,15,'							photo_6045168.html');
												thumbnails[6070604] = new thumbnail(6070604,'238698','','TIE-45_thumb.jpg',130, 130,15,'							photo_6070604.html');
												thumbnails[6077152] = new thumbnail(6077152,'341227','','DL-45_thumb.jpg',130, 130,15,'							photo_6077152.html');
												thumbnails[6866915] = new thumbnail(6866915,'372775','','RTM-45_thumb.jpg',130, 130,15,'							photo_6866915.html');
												thumbnails[7224064] = new thumbnail(7224064,'390249','','GR-45_thumb.jpg',130, 130,15,'							photo_7224064.html');
												thumbnails[4393065] = new thumbnail(4393065,'238689','','LS-05_thumb.jpg',130, 130,15,'							photo_4393065.html');
												thumbnails[6034202] = new thumbnail(6034202,'279744','','RTF_50_thumb.jpg',130, 130,15,'							photo_6034202.html');
												thumbnails[6045170] = new thumbnail(6045170,'236437','','RTC-501_thumb.jpg',130, 130,15,'							photo_6045170.html');
												thumbnails[6070612] = new thumbnail(6070612,'238698','','TIE-50_thumb.jpg',130, 130,15,'							photo_6070612.html');
												thumbnails[6077154] = new thumbnail(6077154,'341227','','DL-50_thumb.jpg',130, 130,15,'							photo_6077154.html');
												thumbnails[6866916] = new thumbnail(6866916,'372775','','RTM-50_thumb.jpg',130, 130,15,'							photo_6866916.html');
												thumbnails[7224071] = new thumbnail(7224071,'390249','','GR-50_thumb.jpg',130, 130,15,'							photo_7224071.html');
												thumbnails[6034223] = new thumbnail(6034223,'279744','','RTF_55_thumb.jpg',130, 130,15,'							photo_6034223.html');
												thumbnails[6045126] = new thumbnail(6045126,'236437','','RTC-55_thumb.jpg',130, 130,15,'							photo_6045126.html');
												thumbnails[6070620] = new thumbnail(6070620,'238698','','TIE-55_thumb.jpg',130, 130,15,'							photo_6070620.html');
												thumbnails[6077160] = new thumbnail(6077160,'341227','','DL-55_thumb.jpg',130, 130,15,'							photo_6077160.html');
												thumbnails[6870257] = new thumbnail(6870257,'372775','','RTM-55_thumb.jpg',130, 130,15,'							photo_6870257.html');
												thumbnails[7224073] = new thumbnail(7224073,'390249','','GR-55_thumb.jpg',130, 130,15,'							photo_7224073.html');
												thumbnails[7145111] = new thumbnail(7145111,'238698','','TIE-56_thumb.jpg',130, 130,15,'							photo_7145111.html');
												thumbnails[4033363] = new thumbnail(4033363,'238694','','RT-43_thumb.jpg',130, 129,15,'							photo_4033363.html');
												thumbnails[4365827] = new thumbnail(4365827,'236436','','RTP-06_thumb.jpg',130, 130,15,'							photo_4365827.html');
												thumbnails[4393069] = new thumbnail(4393069,'238689','','LS-06_thumb.jpg',130, 130,15,'							photo_4393069.html');
												thumbnails[6034228] = new thumbnail(6034228,'279744','','RTF_60_thumb.jpg',130, 130,15,'							photo_6034228.html');
												thumbnails[6045129] = new thumbnail(6045129,'236437','','RTC-60_thumb.jpg',130, 130,15,'							photo_6045129.html');
												thumbnails[6870259] = new thumbnail(6870259,'372775','','RTM-60_thumb.jpg',130, 130,15,'							photo_6870259.html');
												thumbnails[7224074] = new thumbnail(7224074,'390249','','GR-60_thumb.jpg',130, 130,15,'							photo_7224074.html');
												thumbnails[6070589] = new thumbnail(6070589,'238698','','TIE-30_thumb.jpg',130, 130,15,'							photo_6070589.html');
												thumbnails[4033381] = new thumbnail(4033381,'238694','','RT-45_thumb.jpg',130, 108,15,'							photo_4033381.html');
												thumbnails[6034229] = new thumbnail(6034229,'279744','','RTF_65_thumb.jpg',130, 130,15,'							photo_6034229.html');
												thumbnails[6045131] = new thumbnail(6045131,'236437','','RTC-65_thumb.jpg',130, 130,15,'							photo_6045131.html');
												thumbnails[6070584] = new thumbnail(6070584,'238698','','TIE-25_thumb.jpg',130, 130,15,'							photo_6070584.html');
												thumbnails[6870268] = new thumbnail(6870268,'372775','','RTM-651_thumb.jpg',130, 130,15,'							photo_6870268.html');
												thumbnails[7224075] = new thumbnail(7224075,'390249','','GR-65_thumb.jpg',130, 130,15,'							photo_7224075.html');
												thumbnails[4033370] = new thumbnail(4033370,'238694','','RT-44_thumb.jpg',130, 100,15,'							photo_4033370.html');
												thumbnails[4365831] = new thumbnail(4365831,'236436','','RTP-07_thumb.jpg',130, 130,15,'							photo_4365831.html');
												thumbnails[4393071] = new thumbnail(4393071,'238689','','LS-07_thumb.jpg',130, 130,15,'							photo_4393071.html');
												thumbnails[6033671] = new thumbnail(6033671,'279744','','RTF_14_thumb.jpg',130, 130,15,'							photo_6033671.html');
												thumbnails[6045133] = new thumbnail(6045133,'236437','','RTC-70_thumb.jpg',130, 130,15,'							photo_6045133.html');
												thumbnails[6070638] = new thumbnail(6070638,'238698','','TIE-75_thumb.jpg',130, 130,15,'							photo_6070638.html');
												thumbnails[6870280] = new thumbnail(6870280,'372775','','RTM-70_thumb.jpg',130, 130,15,'							photo_6870280.html');
												thumbnails[7224076] = new thumbnail(7224076,'390249','','GR-70_thumb.jpg',130, 130,15,'							photo_7224076.html');
												thumbnails[4448277] = new thumbnail(4448277,'238689','Michelle Heaton ','LS-67_thumb.jpg',130, 130,15,'							photo_4448277.html');
												thumbnails[6034233] = new thumbnail(6034233,'279744','','RTF_75_thumb.jpg',130, 130,15,'							photo_6034233.html');
												thumbnails[6051889] = new thumbnail(6051889,'236437','','RTC-75_thumb.jpg',130, 130,15,'							photo_6051889.html');
												thumbnails[6070566] = new thumbnail(6070566,'238698','','TIE-15_thumb.jpg',130, 130,15,'							photo_6070566.html');
												thumbnails[6870281] = new thumbnail(6870281,'372775','','RTM-75_thumb.jpg',130, 130,15,'							photo_6870281.html');
												thumbnails[7224077] = new thumbnail(7224077,'390249','','GR-75_thumb.jpg',130, 130,15,'							photo_7224077.html');
												thumbnails[4058740] = new thumbnail(4058740,'238694','','RT-57_thumb.jpg',94, 130,15,'							photo_4058740.html');
												thumbnails[4365836] = new thumbnail(4365836,'236436','','RTP-08_thumb.jpg',130, 130,15,'							photo_4365836.html');
												thumbnails[4393073] = new thumbnail(4393073,'238689','','LS-08_thumb.jpg',130, 130,15,'							photo_4393073.html');
												thumbnails[6034236] = new thumbnail(6034236,'279744','','RTF_80_thumb.jpg',130, 130,15,'							photo_6034236.html');
												thumbnails[6051993] = new thumbnail(6051993,'236437','','RTC-80_thumb.jpg',130, 130,15,'							photo_6051993.html');
												thumbnails[6870286] = new thumbnail(6870286,'372775','','RTM-80_thumb.jpg',130, 130,15,'							photo_6870286.html');
												thumbnails[7162702] = new thumbnail(7162702,'238698','','TIE-801_thumb.jpg',130, 130,15,'							photo_7162702.html');
												thumbnails[7224078] = new thumbnail(7224078,'390249','','GR-80_thumb.jpg',130, 130,15,'							photo_7224078.html');
												thumbnails[7145165] = new thumbnail(7145165,'238698','','TIE-83_thumb.jpg',130, 130,15,'							photo_7145165.html');
												thumbnails[6034356] = new thumbnail(6034356,'279744','','RTF_8512_thumb.jpg',130, 130,15,'							photo_6034356.html');
												thumbnails[6052026] = new thumbnail(6052026,'236437','','RTC-85_thumb.jpg',130, 130,15,'							photo_6052026.html');
												thumbnails[6870287] = new thumbnail(6870287,'372775','','RTM-85_thumb.jpg',130, 130,15,'							photo_6870287.html');
												thumbnails[7145169] = new thumbnail(7145169,'238698','','TIE-85_thumb.jpg',130, 130,15,'							photo_7145169.html');
												thumbnails[7224330] = new thumbnail(7224330,'390249','','GR-85_thumb.jpg',130, 130,15,'							photo_7224330.html');
												thumbnails[4023728] = new thumbnail(4023728,'238694','','RT-26_thumb.jpg',130, 98,15,'							photo_4023728.html');
												thumbnails[4365845] = new thumbnail(4365845,'236436','','RTP-09_thumb.jpg',130, 130,15,'							photo_4365845.html');
												thumbnails[4393077] = new thumbnail(4393077,'238689','','LS-09_thumb.jpg',130, 130,15,'							photo_4393077.html');
												thumbnails[6033734] = new thumbnail(6033734,'279744','','RTF_18_thumb.jpg',130, 130,15,'							photo_6033734.html');
												thumbnails[6052027] = new thumbnail(6052027,'236437','','RTC-90_thumb.jpg',130, 130,15,'							photo_6052027.html');
												thumbnails[6070651] = new thumbnail(6070651,'238698','','TIE-90_thumb.jpg',130, 130,15,'							photo_6070651.html');
												thumbnails[6870290] = new thumbnail(6870290,'372775','','RTM-90_thumb.jpg',130, 130,15,'							photo_6870290.html');
												thumbnails[7224332] = new thumbnail(7224332,'390249','','GR-90_thumb.jpg',130, 130,15,'							photo_7224332.html');
												thumbnails[6033736] = new thumbnail(6033736,'279744','','RTF_19_thumb.jpg',130, 130,15,'							photo_6033736.html');
												thumbnails[6052029] = new thumbnail(6052029,'236437','','RTC-95_thumb.jpg',130, 130,15,'							photo_6052029.html');
												thumbnails[6070594] = new thumbnail(6070594,'238698','','TIE-35_thumb.jpg',130, 130,15,'							photo_6070594.html');
												thumbnails[6870295] = new thumbnail(6870295,'372775','','RTM-95_thumb.jpg',130, 130,15,'							photo_6870295.html');
												thumbnails[7224334] = new thumbnail(7224334,'390249','','GR-95_thumb.jpg',130, 130,15,'							photo_7224334.html');
												thumbnails[4023730] = new thumbnail(4023730,'238694','','RT-27_thumb.jpg',130, 87,15,'							photo_4023730.html');
												thumbnails[4365848] = new thumbnail(4365848,'236436','','RTP-10_thumb.jpg',130, 130,15,'							photo_4365848.html');
												thumbnails[4393080] = new thumbnail(4393080,'238689','','LS-10_thumb.jpg',130, 130,15,'							photo_4393080.html');
												thumbnails[6034751] = new thumbnail(6034751,'279744','','RTF_100_thumb.jpg',130, 130,15,'							photo_6034751.html');
												thumbnails[6052031] = new thumbnail(6052031,'236437','','RTC-100_thumb.jpg',130, 130,15,'							photo_6052031.html');
												thumbnails[6870297] = new thumbnail(6870297,'372775','','RTM-100_thumb.jpg',130, 130,15,'							photo_6870297.html');
												thumbnails[7224337] = new thumbnail(7224337,'390249','','GR-100_thumb.jpg',130, 130,15,'							photo_7224337.html');
												thumbnails[4448292] = new thumbnail(4448292,'238689','Michelle Heaton With Andy Scott-Lee','LS-66_thumb.jpg',130, 130,15,'							photo_4448292.html');
												thumbnails[6033739] = new thumbnail(6033739,'279744','','RTF_21_thumb.jpg',130, 130,15,'							photo_6033739.html');
												thumbnails[6870298] = new thumbnail(6870298,'372775','','RTM-105_thumb.jpg',130, 130,15,'							photo_6870298.html');
												thumbnails[7145174] = new thumbnail(7145174,'238698','','TIE-105_thumb.jpg',130, 130,15,'							photo_7145174.html');
												thumbnails[7224340] = new thumbnail(7224340,'390249','','GR-105_thumb.jpg',130, 130,15,'							photo_7224340.html');
												thumbnails[4393082] = new thumbnail(4393082,'238689','','LS-11_thumb.jpg',130, 130,15,'							photo_4393082.html');
												thumbnails[6033742] = new thumbnail(6033742,'279744','','RTF_22_thumb.jpg',130, 130,15,'							photo_6033742.html');
												thumbnails[6870301] = new thumbnail(6870301,'372775','','RTM-110_thumb.jpg',130, 130,15,'							photo_6870301.html');
												thumbnails[7145177] = new thumbnail(7145177,'238698','','TIE-110_thumb.jpg',130, 130,15,'							photo_7145177.html');
												thumbnails[7224356] = new thumbnail(7224356,'390249','','GR-1101_thumb.jpg',130, 130,15,'							photo_7224356.html');
												thumbnails[6033743] = new thumbnail(6033743,'279744','','RTF_23_thumb.jpg',130, 130,15,'							photo_6033743.html');
												thumbnails[6870303] = new thumbnail(6870303,'372775','','RTM-115_thumb.jpg',130, 130,15,'							photo_6870303.html');
												thumbnails[4324454] = new thumbnail(4324454,'236436','','AP-0131_thumb.jpg',130, 130,15,'							photo_4324454.html');
												thumbnails[4393086] = new thumbnail(4393086,'238689','','LS-12_thumb.jpg',130, 130,15,'							photo_4393086.html');
												thumbnails[6034756] = new thumbnail(6034756,'279744','','RTF_120_thumb.jpg',130, 130,15,'							photo_6034756.html');
												thumbnails[6870306] = new thumbnail(6870306,'372775','','RTM-120_thumb.jpg',130, 130,15,'							photo_6870306.html');
												thumbnails[7145179] = new thumbnail(7145179,'238698','','TIE-120_thumb.jpg',130, 130,15,'							photo_7145179.html');
												thumbnails[4448304] = new thumbnail(4448304,'238689','The Actress Verity Rushworth','LS-69_thumb.jpg',130, 130,15,'							photo_4448304.html');
												thumbnails[6033776] = new thumbnail(6033776,'279744','','RTF_25_thumb.jpg',130, 130,15,'							photo_6033776.html');
												thumbnails[6870311] = new thumbnail(6870311,'372775','','RTM-125_thumb.jpg',130, 130,15,'							photo_6870311.html');
												thumbnails[4325286] = new thumbnail(4325286,'236436','','BW1000_thumb.jpg',130, 130,15,'							photo_4325286.html');
												thumbnails[6033777] = new thumbnail(6033777,'279744','','RTF_26_thumb.jpg',130, 130,15,'							photo_6033777.html');
												thumbnails[6070579] = new thumbnail(6070579,'238698','','TIE-20_thumb.jpg',130, 130,15,'							photo_6070579.html');
												thumbnails[6870314] = new thumbnail(6870314,'372775','','RTM-130_thumb.jpg',130, 130,15,'							photo_6870314.html');
												thumbnails[6033778] = new thumbnail(6033778,'279744','','RTF_27_thumb.jpg',130, 130,15,'							photo_6033778.html');
												thumbnails[4179491] = new thumbnail(4179491,'238694','','RT-72_thumb.jpg',130, 98,15,'							photo_4179491.html');
												thumbnails[4393089] = new thumbnail(4393089,'238689','','LS-14_thumb.jpg',130, 130,15,'							photo_4393089.html');
												thumbnails[6033779] = new thumbnail(6033779,'279744','','RTF_28_thumb.jpg',130, 130,15,'							photo_6033779.html');
												thumbnails[7145180] = new thumbnail(7145180,'238698','','TIE-140_thumb.jpg',130, 130,15,'							photo_7145180.html');
												thumbnails[4179523] = new thumbnail(4179523,'238694','','RT-75_thumb.jpg',130, 125,15,'							photo_4179523.html');
												thumbnails[6033781] = new thumbnail(6033781,'279744','','RTF_29_thumb.jpg',130, 130,15,'							photo_6033781.html');
												thumbnails[7145184] = new thumbnail(7145184,'238698','','TIE-145_thumb.jpg',130, 130,15,'							photo_7145184.html');
												thumbnails[4033398] = new thumbnail(4033398,'238694','','RT-48_thumb.jpg',130, 98,15,'							photo_4033398.html');
												thumbnails[4325351] = new thumbnail(4325351,'236436','','RT026A_thumb.jpg',130, 130,15,'							photo_4325351.html');
												thumbnails[5997459] = new thumbnail(5997459,'279744','','RT-051_thumb.jpg',84, 130,15,'							photo_5997459.html');
												thumbnails[4033384] = new thumbnail(4033384,'238694','','RT-46_thumb.jpg',130, 98,15,'							photo_4033384.html');
												thumbnails[6034824] = new thumbnail(6034824,'279744','','RTF_155_thumb.jpg',130, 130,15,'							photo_6034824.html');
												thumbnails[4325385] = new thumbnail(4325385,'236436','','RT023A_thumb.jpg',130, 130,15,'							photo_4325385.html');
												thumbnails[4393092] = new thumbnail(4393092,'238689','','LS-16_thumb.jpg',130, 130,15,'							photo_4393092.html');
												thumbnails[6034829] = new thumbnail(6034829,'279744','','RTF_160_thumb.jpg',130, 130,15,'							photo_6034829.html');
												thumbnails[4179518] = new thumbnail(4179518,'238694','','RT-73_thumb.jpg',130, 98,15,'							photo_4179518.html');
												thumbnails[6075958] = new thumbnail(6075958,'279744','','RTC-165_thumb.jpg',130, 130,15,'							photo_6075958.html');
												thumbnails[6076226] = new thumbnail(6076226,'279744','','RTF-1702_thumb.jpg',130, 130,15,'							photo_6076226.html');
												thumbnails[4179520] = new thumbnail(4179520,'238694','','RT-74_thumb.jpg',130, 98,15,'							photo_4179520.html');
												thumbnails[4325488] = new thumbnail(4325488,'236436','','NK-072_thumb.jpg',130, 130,15,'							photo_4325488.html');
												thumbnails[4454516] = new thumbnail(4454516,'238689','','LS-35_thumb.jpg',130, 130,15,'							photo_4454516.html');
												thumbnails[4416518] = new thumbnail(4416518,'238694','','FA-17_thumb.jpg',130, 101,15,'							photo_4416518.html');
												thumbnails[4416519] = new thumbnail(4416519,'238694','','FA-18_thumb.jpg',130, 87,15,'							photo_4416519.html');
												thumbnails[4416522] = new thumbnail(4416522,'238694','','FA-19_thumb.jpg',130, 109,15,'							photo_4416522.html');
												thumbnails[4416524] = new thumbnail(4416524,'238694','','FA-20_thumb.jpg',130, 95,15,'							photo_4416524.html');
												thumbnails[4416528] = new thumbnail(4416528,'238694','','FA-21_thumb.jpg',130, 98,15,'							photo_4416528.html');
												thumbnails[4416530] = new thumbnail(4416530,'238694','','FA-22_thumb.jpg',97, 130,15,'							photo_4416530.html');
												thumbnails[4416534] = new thumbnail(4416534,'238694','','FA-23_thumb.jpg',130, 98,15,'							photo_4416534.html');
												thumbnails[4416537] = new thumbnail(4416537,'238694','','FA-24_thumb.jpg',97, 130,15,'							photo_4416537.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[279744] = new gallery(279744,'6076226,6075958,6034829,6034824,6034756,6034751,6034643,6034356,6034236,6034233','Fashion','gallery',[6034171,6034172,6033625,6034643,6033628,6034182,6034187,6033635,6034197,6034202,6034223,6034228,6034229,6033671,6034233,6034236,6034356,6033734,6033736,6034751,6033739,6033742,6033743,6034756,6033776,6033777,6033778,6033779,6033781,5997459,6034824,6034829,6075958,6076226],0, 0, '', '																																																																																																							gallery_279744.html',0,0);
				  					galleries[236437] = new gallery(236437,'6052031,6052029,6052027,6052026,6051993,6051889,6045170,6045168,6045167,6045166','Commercial','gallery',[6045087,6045155,6045157,6045106,6045163,6045110,6045166,6045167,6045168,6045170,6045126,6045129,6045131,6045133,6051889,6051993,6052026,6052027,6052029,6052031],0, 0, '', '																																																																																																							gallery_236437.html',0,0);
				  					galleries[372775] = new gallery(372775,'6870314,6870311,6870306,6870303,6870301,6870298,6870297,6870295,6870290,6870287','Music','gallery',[6866802,6866804,6866805,6866807,6866808,6866809,6866813,6866814,6866915,6866916,6870257,6870259,6870268,6870280,6870281,6870286,6870287,6870290,6870295,6870297,6870298,6870301,6870303,6870306,6870311,6870314],0, 0, '', '																																																																																																							gallery_372775.html',0,0);
				  					galleries[341227] = new gallery(341227,'6077160,6077154,6077152,6077150,6077147,6077146,6077145,6077144,6077143,6077142','Design Layouts','gallery',[6077141,6077142,6077143,6077144,6077145,6077146,6077147,6077150,6077152,6077154,6077160],0, 0, '', '																																																																																																							gallery_341227.html',0,0);
				  					galleries[238689] = new gallery(238689,'4454516,4448304,4448292,4448277,4393092,4393089,4393086,4393082,4393080,4393077','Lifestyle','gallery',[4393024,4393029,4393035,4393065,4393069,4393071,4448277,4393073,4393077,4393080,4448292,4393082,4393086,4448304,4393089,4393092,4454516],0, 0, '', '																																																																																																							gallery_238689.html',0,0);
				  					galleries[236436] = new gallery(236436,'4365848,4365845,4365836,4365831,4365827,4365814,4365808,4365802,4365798,4325488','Portraits','gallery',[4325303,4365798,4365802,4365808,4365814,4365827,4365831,4365836,4365845,4365848,4324454,4325286,4325351,4325385,4325488],0, 0, '', '																																																																																																							gallery_236436.html',0,0);
				  					galleries[238694] = new gallery(238694,'4033398','Fine Art','gallery',[4033363,4033381,4033370,4058740,4023728,4023730,4179491,4179523,4033398,4033384,4179518,4179520,4416518,4416519,4416522,4416524,4416528,4416530,4416534,4416537],0, 0, '', '																																																																																																							gallery_238694.html',0,0);
				  					galleries[238698] = new gallery(238698,'7162708,7162702,7145184,7145180,7145179,7145177,7145174,7145169,7145165,7145111','This is England','gallery',[7134471,7134476,7134480,7134485,7134493,7134499,7134503,7134507,7134512,7134514,7134517,7162708,7134522,7134528,7134531,7134536,7134540,7134541,6070597,7134546,6070604,6070612,6070620,7145111,6070589,6070584,6070638,6070566,7162702,7145165,7145169,6070651,6070594,7145174,7145177,7145179,6070579,7145180,7145184],0, 0, '', '																																																																																																							gallery_238698.html',0,0);
				  					galleries[390249] = new gallery(390249,'7224356,7224340,7224337,7224334,7224332,7224330,7224326,7224322,7224078,7224077','Goodwood Revival','gallery',[7224322,7224326,7223993,7223997,7224006,7224052,7224055,7224059,7224064,7224071,7224073,7224074,7224075,7224076,7224077,7224078,7224330,7224332,7224334,7224337,7224340,7224356],0, 0, '', '																																																																																																							gallery_390249.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '6866080,6866077,6474486,6052033,6051883,6000453,6000356,6000352,6000349,6000347,6000346,6000340,6000339,6000336,6000333,6000330,6000327,5997280,5997278,5997277,5997258,5997256,5997255,5997250,5997248,5997240,5997238,5997234,5997233,5997232,5997231,5997228,5997224,5997202';
imageSets[2] = '4033398';
imageSets[3] = '7224356,7224340,7224337,7224334,7224332,7224330,7224326,7224322,7224078,7224077,7224076,7224075,7224074,7224073,7224071,7224064,7224059,7224055,7224052,7224006,7223997,7223993,7162708,7162702,7145184,7145180,7145179,7145177,7145174,7145169,7145165,7145111,7134546,7134541,7134540,7134536,7134531,7134528,7134522,7134517,7134514,7134512,7134507,7134503,7134499,7134493,7134485,7134480,7134476,7134471';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/robertthomson/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/robertthomson/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/robertthomson/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/robertthomson/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://www.clikchurch.com/robertthomson/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/robertthomson/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/robertthomson/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/robertthomson/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/robertthomson/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/robertthomson/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/robertthomson/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/robertthomson/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/robertthomson/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/robertthomson/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/robertthomson/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/robertthomson/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/robertthomson/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/robertthomson/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/robertthomson/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/robertthomson/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/robertthomson/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/robertthomson/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 = 'RT Photography: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
	    var options = {};	    	      	      resizePhotoInfo(options);
        if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
  	      toggleAddToCartConfirm(backgrounds);
  	    } else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
  	      toggleAddToCartConfirm(photos);
  	    }
	    });
    }
        if (!op.speed) {      clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));    }        
    return html;			}
	else {
				
		window.location = 'photo_' + nextPhoto.id + '.html';
	}
		
}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array){
  if (typeof(array) !== 'object') {
    array = photos;
  }
	if($('#paymentConfirm').length > 0){
		$('#paymentConfirm').hide();
		$('#paymentAddButton')
		.unbind()
		.click(function(){
						form = document.getElementById('paymentForm');
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm').text('Item added to cart').show();}
				else{
					$('#paymentConfirm').text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm').text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}
/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp = temp +  '<p id="imageDescription">' + this.description + '</p>';
	}
		if (this.photo_ref != '') {
		temp = temp + '<p class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</p>';
	}
		if (this.takendate != '') {
				
		temp = temp + '<p class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</p>';
	}
	
	if (this.location != '') {
				
		temp = temp + '<p class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</p>';
	}
	
	if (this.photographer != '') {
				
		temp = temp + '<p class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</p>';
	}
					
	temp = temp + this.fnGetPaymentInfo();
				if (temp != '') {
		temp = temp + '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
																		temp = temp + '<p>Buy now using PayPal:</p>';
				temp = temp + '<p class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> 				&pound;' + (this.item_price).toFixed(2) + '</p>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.payment_groups_id !== '') {
		temp = temp + '<p>Buy this print online:</p>';
				temp = temp + '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp = temp + '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
				
		temp = temp + getPaymentOptions(this.payment_groups_id);
		temp = temp + '</select>';
		temp = temp + '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
	else {
				
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
																				temp = temp + '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
	temp = temp + '<input type="hidden" name="item_name" value="'+item_name+'">';
								ref = '';
				if(this.photo_ref != ''){
					ref = this.photo_ref+' - '+this.caption;
				}
				else{
					ref = this.id+' - '+this.caption;
				}
				price = amount;					temp = temp + '<input type="hidden" name="cmd" value="_cart">';
	temp = temp + '<input type="hidden" name="business" value="photographyrt@aol.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="photographyrt@aol.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;
	}
}

			

