window.thumbnails = new Object();
												thumbnails[7264775] = new thumbnail(7264775,'336334','Sailfin Lizard','sailfin0068_copy_thumb.jpg',130, 86,5,'photo_7264775.html');
												thumbnails[7258178] = new thumbnail(7258178,'271886','Sumatran Tiger','PICT4384_copy_thumb.jpg',130, 226,5,'photo_7258178.html');
												thumbnails[7258187] = new thumbnail(7258187,'336329','Fox Cub','fox1 copy_thumb.jpg',130, 201,5,'photo_7258187.html');
												thumbnails[7263636] = new thumbnail(7263636,'336336','Red Arrows','_DSC4193 copy_thumb.jpg',130, 193,5,'photo_7263636.html');
												thumbnails[7263761] = new thumbnail(7263761,'336330','American Bald Eagle','PICT9001 copy_thumb.jpg',130, 195,5,'photo_7263761.html');
												thumbnails[7264212] = new thumbnail(7264212,'336331','Strawberry','strawberry1011 copy_thumb.jpg',130, 213,5,'photo_7264212.html');
												thumbnails[7264657] = new thumbnail(7264657,'336334','Chameleon','PICT7423 copy_thumb.jpg',130, 182,5,'photo_7264657.html');
												thumbnails[7277328] = new thumbnail(7277328,'336332','Young Isaac','_DSC4292 copy_thumb.jpg',130, 195,5,'photo_7277328.html');
												thumbnails[7285012] = new thumbnail(7285012,'336333','Glass wing butterfly','glasswing01639 copy_thumb.jpg',130, 195,5,'photo_7285012.html');
												thumbnails[7288177] = new thumbnail(7288177,'394006','Marine Plant','PICT6753 copy_thumb.jpg',130, 195,5,'photo_7288177.html');
												thumbnails[7288186] = new thumbnail(7288186,'394009','Zebra','zebra0188 copy_thumb.jpg',130, 195,5,'photo_7288186.html');
												thumbnails[7257937] = new thumbnail(7257937,'336333','Bumble Bee','bee copy_thumb.jpg',130, 87,5,'photo_7257937.html');
												thumbnails[7264209] = new thumbnail(7264209,'336331','Rose','rose0918 copy_thumb.jpg',130, 94,5,'photo_7264209.html');
												thumbnails[7264210] = new thumbnail(7264210,'336331','Rose','rose1515 copy_thumb.jpg',130, 114,5,'photo_7264210.html');
												thumbnails[7264191] = new thumbnail(7264191,'336331','Wild Flower','flower1472 copy_thumb.jpg',130, 83,5,'photo_7264191.html');
												thumbnails[7264192] = new thumbnail(7264192,'336331','Wild Flower','flower1477 copy_thumb.jpg',130, 86,5,'photo_7264192.html');
												thumbnails[7276588] = new thumbnail(7276588,'336331','Flower','DSC00952 copy_thumb.jpg',130, 87,5,'photo_7276588.html');
												thumbnails[7276585] = new thumbnail(7276585,'336331','Flower','_DSC1464 copy_thumb.jpg',130, 88,5,'photo_7276585.html');
												thumbnails[7264196] = new thumbnail(7264196,'336331','Floating Leaf','leaf6881 copy_thumb.jpg',130, 195,5,'photo_7264196.html');
												thumbnails[7258160] = new thumbnail(7258160,'271886','Amur Tiger','PICT4410 copy_thumb.jpg',130, 196,5,'photo_7258160.html');
												thumbnails[7258186] = new thumbnail(7258186,'336333','Damsel Fly','damsel copy_thumb.jpg',130, 86,5,'photo_7258186.html');
												thumbnails[7263610] = new thumbnail(7263610,'336336','Jet Fighter','_DSC0442 copy_thumb.jpg',130, 86,5,'photo_7263610.html');
												thumbnails[7263754] = new thumbnail(7263754,'336330','African Fish Eagle','DSC00229 copy_thumb.jpg',130, 84,5,'photo_7263754.html');
												thumbnails[7263837] = new thumbnail(7263837,'271886','Cheetah','cheetah5687 copy_thumb.jpg',130, 198,5,'photo_7263837.html');
												thumbnails[7264178] = new thumbnail(7264178,'336331','Chives','chives1041 copy_thumb.jpg',130, 206,5,'photo_7264178.html');
												thumbnails[7264645] = new thumbnail(7264645,'336334','Boa','boa0324 copy_thumb.jpg',130, 195,5,'photo_7264645.html');
												thumbnails[7276572] = new thumbnail(7276572,'336334','Crested Gecko','_DSC1583 copy_thumb.jpg',130, 87,5,'photo_7276572.html');
												thumbnails[7276575] = new thumbnail(7276575,'336331','Flower','_DSC1529 copy_thumb.jpg',130, 87,5,'photo_7276575.html');
												thumbnails[7276590] = new thumbnail(7276590,'336331','Flowers','DSC00937 copy_thumb.jpg',130, 87,5,'photo_7276590.html');
												thumbnails[7276591] = new thumbnail(7276591,'271885','Flowers','DSC00937 copy_6F3E9E9B-1EC9-D45B-1C66E1A32E57B872_thumb.jpg',130, 87,5,'photo_7276591.html');
												thumbnails[7276694] = new thumbnail(7276694,'336334','Tree Frog','DSC00865 copy_thumb.jpg',130, 87,5,'photo_7276694.html');
												thumbnails[7277323] = new thumbnail(7277323,'336332','Bogus Brothers','bogus3 copy_thumb.jpg',130, 200,5,'photo_7277323.html');
												thumbnails[7283409] = new thumbnail(7283409,'271886','Lion Roar','_DSC0672 copy_thumb.jpg',130, 195,5,'photo_7283409.html');
												thumbnails[7283416] = new thumbnail(7283416,'271886','Lion','Lion Portrait copy_thumb.jpg',130, 195,5,'photo_7283416.html');
												thumbnails[7285005] = new thumbnail(7285005,'336333','Dragon fly','dragon fly copy_thumb.jpg',130, 87,5,'photo_7285005.html');
												thumbnails[7285629] = new thumbnail(7285629,'393990','Ring Tailed Lemur','lemur0071 copy_7A1DF3D9-1EC9-D45B-1C3F05CE4F4E0B65_thumb.jpg',130, 86,5,'photo_7285629.html');
												thumbnails[7285665] = new thumbnail(7285665,'394009','Brown Bear','bear2671 copy_thumb.jpg',130, 181,5,'photo_7285665.html');
												thumbnails[7288175] = new thumbnail(7288175,'271886','Ocelot Kitten','PICT7988 copy_thumb.jpg',130, 195,5,'photo_7288175.html');
												thumbnails[7298689] = new thumbnail(7298689,'271886','Lion Cub','_DSC9917 copy_thumb.jpg',130, 179,5,'photo_7298689.html');
												thumbnails[7298710] = new thumbnail(7298710,'271886','Tiger','_DSC9476 copy_thumb.jpg',130, 195,5,'photo_7298710.html');
												thumbnails[7303138] = new thumbnail(7303138,'271885','London Scenery','PICT0488 copy_thumb.jpg',130, 86,5,'photo_7303138.html');
												thumbnails[7257940] = new thumbnail(7257940,'271886','Asiatic Lion','PICT4161 copy_thumb.jpg',130, 196,5,'photo_7257940.html');
												thumbnails[7258161] = new thumbnail(7258161,'271886','Cheetah','PICT4471 copy_thumb.jpg',130, 196,5,'photo_7258161.html');
												thumbnails[7263611] = new thumbnail(7263611,'336336','Lancaster and Hurricane','_DSC0642 copy_thumb.jpg',130, 61,5,'photo_7263611.html');
												thumbnails[7263755] = new thumbnail(7263755,'336330','Pereguin Falcon','DSC00287 copy_thumb.jpg',130, 80,5,'photo_7263755.html');
												thumbnails[7263838] = new thumbnail(7263838,'271886','Cheetah','cheetah5694 copy_thumb.jpg',130, 221,5,'photo_7263838.html');
												thumbnails[7264179] = new thumbnail(7264179,'336331','Wild Meadow','DSC00131 copy_thumb.jpg',130, 87,5,'photo_7264179.html');
												thumbnails[7264646] = new thumbnail(7264646,'336334','Panther Chameleon','chameleon0592 copy_thumb.jpg',130, 84,5,'photo_7264646.html');
												thumbnails[7277324] = new thumbnail(7277324,'336332','Bogus Brothers','bogus4 copy_thumb.jpg',130, 62,5,'photo_7277324.html');
												thumbnails[7283405] = new thumbnail(7283405,'271886','Leopard','_DSC1325 copy_thumb.jpg',130, 208,5,'photo_7283405.html');
												thumbnails[7283417] = new thumbnail(7283417,'271886','Lion','Lion Portrait1 copy_thumb.jpg',130, 206,5,'photo_7283417.html');
												thumbnails[7285006] = new thumbnail(7285006,'336333','Dragon fly','DRAGONFLY copy_thumb.jpg',130, 87,5,'photo_7285006.html');
												thumbnails[7285221] = new thumbnail(7285221,'393990','Ring Tailed Lemur','lemur2433 copy_thumb.jpg',130, 195,5,'photo_7285221.html');
												thumbnails[7298711] = new thumbnail(7298711,'271886','Tiger','_DSC9482 copy_thumb.jpg',130, 194,5,'photo_7298711.html');
												thumbnails[7303139] = new thumbnail(7303139,'271885','London Scenery','PICT0527 copy_thumb.jpg',130, 86,5,'photo_7303139.html');
												thumbnails[7257942] = new thumbnail(7257942,'271886','Tiger','PICT4334 copy_thumb.jpg',130, 196,5,'photo_7257942.html');
												thumbnails[7258162] = new thumbnail(7258162,'271886','Cheetah','PICT4475 copy_thumb.jpg',130, 196,5,'photo_7258162.html');
												thumbnails[7258188] = new thumbnail(7258188,'336329','Fox Cub','fox2 copy_thumb.jpg',130, 88,5,'photo_7258188.html');
												thumbnails[7263612] = new thumbnail(7263612,'336336','Plane','_DSC1739 copy_thumb.jpg',130, 88,5,'photo_7263612.html');
												thumbnails[7263756] = new thumbnail(7263756,'336330','Swan','DSC01922 copy_thumb.jpg',130, 81,5,'photo_7263756.html');
												thumbnails[7263839] = new thumbnail(7263839,'271886','Cheetah','cheetah5707 copy_thumb.jpg',130, 204,5,'photo_7263839.html');
												thumbnails[7264180] = new thumbnail(7264180,'336331','Wild lower','DSC00146 copy_thumb.jpg',130, 87,5,'photo_7264180.html');
												thumbnails[7264647] = new thumbnail(7264647,'336334','Chameleon','chameleon6497 copy_thumb.jpg',130, 219,5,'photo_7264647.html');
												thumbnails[7277116] = new thumbnail(7277116,'271885','Rushes','DSC01924 copy_thumb.jpg',130, 217,5,'photo_7277116.html');
												thumbnails[7283418] = new thumbnail(7283418,'271886','Lioness','Lion Portrait2 copy_thumb.jpg',130, 195,5,'photo_7283418.html');
												thumbnails[7285007] = new thumbnail(7285007,'336333','Dragon fly','dragonfly1403 copy_thumb.jpg',130, 86,5,'photo_7285007.html');
												thumbnails[7285222] = new thumbnail(7285222,'393990','Monkey','PICT5128 copy_thumb.jpg',130, 195,5,'photo_7285222.html');
												thumbnails[7285631] = new thumbnail(7285631,'394006','Rainbow','rainbow5788 copy_thumb.jpg',130, 86,5,'photo_7285631.html');
												thumbnails[7298716] = new thumbnail(7298716,'271886','Lion Cub','_DSC9743 copy_thumb.jpg',130, 195,5,'photo_7298716.html');
												thumbnails[7303140] = new thumbnail(7303140,'271885','London Scenery','PICT0533 copy_thumb.jpg',130, 86,5,'photo_7303140.html');
												thumbnails[7257944] = new thumbnail(7257944,'271886','Sumatran Tiger','PICT4389 copy_thumb.jpg',130, 208,5,'photo_7257944.html');
												thumbnails[7258163] = new thumbnail(7258163,'271886','Amur Tiger','PICT4894 copy_thumb.jpg',130, 196,5,'photo_7258163.html');
												thumbnails[7258189] = new thumbnail(7258189,'336329','Fox Cub','fox3 copy_thumb.jpg',130, 214,5,'photo_7258189.html');
												thumbnails[7263613] = new thumbnail(7263613,'336336','Airbus A380','_DSC2258 copy_thumb.jpg',130, 62,5,'photo_7263613.html');
												thumbnails[7263757] = new thumbnail(7263757,'336330','African Fish Eagle','eagle4554 copy_thumb.jpg',130, 86,5,'photo_7263757.html');
												thumbnails[7263840] = new thumbnail(7263840,'271886','Cheetah','cheetah5708 copy_thumb.jpg',130, 195,5,'photo_7263840.html');
												thumbnails[7264181] = new thumbnail(7264181,'336331','Chives','DSC00149 copy_thumb.jpg',130, 89,5,'photo_7264181.html');
												thumbnails[7264648] = new thumbnail(7264648,'336334','Chameleon','EXP00014 copy_thumb.jpg',130, 207,5,'photo_7264648.html');
												thumbnails[7285008] = new thumbnail(7285008,'336333','Caterpiller','DSC09177 copy_thumb.jpg',130, 87,5,'photo_7285008.html');
												thumbnails[7285223] = new thumbnail(7285223,'393990','Ring Tailed Lemur and Cubs','Untitled-1 copy_thumb.jpg',130, 208,5,'photo_7285223.html');
												thumbnails[7288178] = new thumbnail(7288178,'394006','Waterfall','_DSC0336 copy_thumb.jpg',130, 202,5,'photo_7288178.html');
												thumbnails[7303141] = new thumbnail(7303141,'271885','London Scenery','PICT0544 copy_thumb.jpg',130, 86,5,'photo_7303141.html');
												thumbnails[7257946] = new thumbnail(7257946,'271886','Sumatran Tiger','PICT4403 copy_thumb.jpg',130, 196,5,'photo_7257946.html');
												thumbnails[7258190] = new thumbnail(7258190,'336329','Fox','Fox4 copy_thumb.jpg',130, 206,5,'photo_7258190.html');
												thumbnails[7263614] = new thumbnail(7263614,'336336','Jet Fighter','_DSC2429 copy_thumb.jpg',130, 58,5,'photo_7263614.html');
												thumbnails[7263758] = new thumbnail(7263758,'336330','Heron','heron4961 copy_thumb.jpg',130, 195,5,'photo_7263758.html');
												thumbnails[7263841] = new thumbnail(7263841,'271886','Cheetah','cheetah5724 copy_thumb.jpg',130, 198,5,'photo_7263841.html');
												thumbnails[7264182] = new thumbnail(7264182,'336331','Wild Thistle','DSC00175 copy_thumb.jpg',130, 87,5,'photo_7264182.html');
												thumbnails[7264649] = new thumbnail(7264649,'336334','Poison Arrow Frog','frog1642 copy_thumb.jpg',130, 195,5,'photo_7264649.html');
												thumbnails[7277117] = new thumbnail(7277117,'271885','Red Sky','PICT0232 copy_thumb.jpg',130, 86,5,'photo_7277117.html');
												thumbnails[7277326] = new thumbnail(7277326,'336332','Little Girl','_DSC2848 copy_thumb.jpg',130, 182,5,'photo_7277326.html');
												thumbnails[7285009] = new thumbnail(7285009,'336333','Copper damsel fly','DSC09275 copy_thumb.jpg',130, 87,5,'photo_7285009.html');
												thumbnails[7285224] = new thumbnail(7285224,'393990','Ring Tailed Lemur','_DSC0001 copy_thumb.jpg',130, 195,5,'photo_7285224.html');
												thumbnails[7285633] = new thumbnail(7285633,'393990','Ring Tailed Lemur','_DSC0009 copy_7A1E0454-1EC9-D45B-1CCA422CED5B6A0F_thumb.jpg',130, 195,5,'photo_7285633.html');
												thumbnails[7288179] = new thumbnail(7288179,'394006','Flower','_DSC1464 copy_7E906DD5-1EC9-D45B-1C025608CB01F4C7_thumb.jpg',130, 88,5,'photo_7288179.html');
												thumbnails[7303142] = new thumbnail(7303142,'271885','London Scenery','PICT0546 copy_thumb.jpg',130, 86,5,'photo_7303142.html');
												thumbnails[7258191] = new thumbnail(7258191,'336329','Marsh Frog','marsh frog copy_thumb.jpg',130, 89,5,'photo_7258191.html');
												thumbnails[7263615] = new thumbnail(7263615,'336336','Jet Fighter','_DSC2815 copy_thumb.jpg',130, 85,5,'photo_7263615.html');
												thumbnails[7263759] = new thumbnail(7263759,'336330','Heron','heron5036 copy_thumb.jpg',130, 195,5,'photo_7263759.html');
												thumbnails[7263842] = new thumbnail(7263842,'271886','Leopard','leopard5907 copy_thumb.jpg',130, 191,5,'photo_7263842.html');
												thumbnails[7264183] = new thumbnail(7264183,'336331','Daisy','DSC00178 copy_thumb.jpg',130, 87,5,'photo_7264183.html');
												thumbnails[7264650] = new thumbnail(7264650,'336334','Frog','frog4003 copy_thumb.jpg',130, 195,5,'photo_7264650.html');
												thumbnails[7277122] = new thumbnail(7277122,'271885','Autumnal Scene','DSC01842 copy_thumb.jpg',130, 86,5,'photo_7277122.html');
												thumbnails[7285010] = new thumbnail(7285010,'336333','Copper damsel fly','DSC09282 copy_thumb.jpg',130, 195,5,'photo_7285010.html');
												thumbnails[7288180] = new thumbnail(7288180,'394006','Leaves','DSC01861 copy_thumb.jpg',130, 87,5,'photo_7288180.html');
												thumbnails[7303143] = new thumbnail(7303143,'271885','London Scenery','PICT0556 copy_thumb.jpg',130, 86,5,'photo_7303143.html');
												thumbnails[7258192] = new thumbnail(7258192,'336329','Harvest Mouse','mouse copy_thumb.jpg',130, 87,5,'photo_7258192.html');
												thumbnails[7263616] = new thumbnail(7263616,'336336','Helicopters','_DSC3196 copy_thumb.jpg',130, 87,5,'photo_7263616.html');
												thumbnails[7263760] = new thumbnail(7263760,'336330','American Bald Eagle','PICT8971 copy_thumb.jpg',130, 104,5,'photo_7263760.html');
												thumbnails[7263843] = new thumbnail(7263843,'271886','Leopard','leopardbnw5550 copy_thumb.jpg',130, 195,5,'photo_7263843.html');
												thumbnails[7264184] = new thumbnail(7264184,'336331','Buttercup','DSC00196 copy_thumb.jpg',130, 207,5,'photo_7264184.html');
												thumbnails[7264651] = new thumbnail(7264651,'336334','Poison Arrow Frog','frog4024 copy_thumb.jpg',130, 195,5,'photo_7264651.html');
												thumbnails[7277123] = new thumbnail(7277123,'271885','Autumnal Scene','DSC01952 copy_thumb.jpg',130, 202,5,'photo_7277123.html');
												thumbnails[7285011] = new thumbnail(7285011,'336333','Copper damsel fly','DSC09285 copy_thumb.jpg',130, 87,5,'photo_7285011.html');
												thumbnails[7285226] = new thumbnail(7285226,'393990','Black Lemur','_DSC1128 copy_thumb.jpg',130, 96,5,'photo_7285226.html');
												thumbnails[7285635] = new thumbnail(7285635,'394006','Curled Leaves','_DSC9185 copy_7A1E0F41-1EC9-D45B-1CB260AB2AF41209_thumb.jpg',130, 87,5,'photo_7285635.html');
												thumbnails[7303144] = new thumbnail(7303144,'271885','London Scenery','PICT0559 copy_thumb.jpg',130, 86,5,'photo_7303144.html');
												thumbnails[7258193] = new thumbnail(7258193,'336329','Red Squirel','squirel copy_thumb.jpg',130, 195,5,'photo_7258193.html');
												thumbnails[7263617] = new thumbnail(7263617,'336336','Lancaster and Hurricane','_DSC3216 copy_thumb.jpg',130, 52,5,'photo_7263617.html');
												thumbnails[7263844] = new thumbnail(7263844,'271886','Leopard','leopardbnw5563 copy_thumb.jpg',130, 195,5,'photo_7263844.html');
												thumbnails[7264185] = new thumbnail(7264185,'336331','Wild Flowers','flower0985 copy_thumb.jpg',130, 86,5,'photo_7264185.html');
												thumbnails[7264652] = new thumbnail(7264652,'336334','Gecko','gecko4012 copy_thumb.jpg',130, 195,5,'photo_7264652.html');
												thumbnails[7277124] = new thumbnail(7277124,'271885','Bluebell Wood','PICT1020 copy_6FBEBC1A-1EC9-D45B-1C408DAC9FE430B8_thumb.jpg',130, 86,5,'photo_7277124.html');
												thumbnails[7277329] = new thumbnail(7277329,'336332','Dancing Neon effect','dancingneon copy_thumb.jpg',130, 87,5,'photo_7277329.html');
												thumbnails[7303145] = new thumbnail(7303145,'271885','London Scenery','PICT0562 copy_thumb.jpg',130, 86,5,'photo_7303145.html');
												thumbnails[7258195] = new thumbnail(7258195,'336329','Red Squirel','squirel1 copy_thumb.jpg',130, 195,5,'photo_7258195.html');
												thumbnails[7263618] = new thumbnail(7263618,'336336','Formation Planes','_DSC3340 copy_thumb.jpg',130, 195,5,'photo_7263618.html');
												thumbnails[7263846] = new thumbnail(7263846,'271886','Leopard','leopardbnw5594 copy_thumb.jpg',130, 208,5,'photo_7263846.html');
												thumbnails[7264186] = new thumbnail(7264186,'336331','Wild Flowers','flower0987 copy_thumb.jpg',130, 144,5,'photo_7264186.html');
												thumbnails[7264654] = new thumbnail(7264654,'336334','Marsh Frog','marsh frog copy_60A1F0E2-1EC9-D45B-1C2A4416A7A5CDAD_thumb.jpg',130, 89,5,'photo_7264654.html');
												thumbnails[7285013] = new thumbnail(7285013,'336333','Red knee\'d tarantula','tarantula5517 copy_thumb.jpg',130, 195,5,'photo_7285013.html');
												thumbnails[7303147] = new thumbnail(7303147,'271885','London Scenery','PICT0552 copy_thumb.jpg',130, 86,5,'photo_7303147.html');
												thumbnails[7258196] = new thumbnail(7258196,'336329','Red Squirel','squirel2 copy_thumb.jpg',130, 195,5,'photo_7258196.html');
												thumbnails[7263619] = new thumbnail(7263619,'336336','Stunt Planes','_DSC3354 copy_thumb.jpg',130, 71,5,'photo_7263619.html');
												thumbnails[7263763] = new thumbnail(7263763,'336330','Owl','_DSC1208 copy_thumb.jpg',130, 87,5,'photo_7263763.html');
												thumbnails[7263847] = new thumbnail(7263847,'271886','Asiatic Lion','lion5515 copy_thumb.jpg',130, 195,5,'photo_7263847.html');
												thumbnails[7264187] = new thumbnail(7264187,'336331','Wild Flowers','flower0990 copy_thumb.jpg',130, 99,5,'photo_7264187.html');
												thumbnails[7264655] = new thumbnail(7264655,'336334','Chameleon','PICT2594 copy_thumb.jpg',130, 86,5,'photo_7264655.html');
												thumbnails[7285014] = new thumbnail(7285014,'336333','Leaf cutter ant','_DSC0569 copy_thumb.jpg',130, 84,5,'photo_7285014.html');
												thumbnails[7303148] = new thumbnail(7303148,'271885','London Scenery','PICT0554 copy_thumb.jpg',130, 86,5,'photo_7303148.html');
												thumbnails[7258197] = new thumbnail(7258197,'336329','Red Squirel','squirel3 copy_thumb.jpg',130, 202,5,'photo_7258197.html');
												thumbnails[7263620] = new thumbnail(7263620,'336336','Stunt Planes Barclays','_DSC3355 copy_thumb.jpg',130, 67,5,'photo_7263620.html');
												thumbnails[7263848] = new thumbnail(7263848,'271886','Tiger','tiger5591 copy_thumb.jpg',130, 195,5,'photo_7263848.html');
												thumbnails[7264188] = new thumbnail(7264188,'336331','Wild Flower','flower1460 copy_thumb.jpg',130, 94,5,'photo_7264188.html');
												thumbnails[7264656] = new thumbnail(7264656,'336334','Gecko','PICT5734 copy_thumb.jpg',130, 86,5,'photo_7264656.html');
												thumbnails[7285015] = new thumbnail(7285015,'336333','Locust','_DSC1136 copy_thumb.jpg',130, 195,5,'photo_7285015.html');
												thumbnails[7263621] = new thumbnail(7263621,'336336','Stunt Planes Barclays','_DSC3362 copy_thumb.jpg',130, 282,5,'photo_7263621.html');
												thumbnails[7264190] = new thumbnail(7264190,'336331','Wild Flowers','flower1468 copy_thumb.jpg',130, 86,5,'photo_7264190.html');
												thumbnails[7285016] = new thumbnail(7285016,'336333','Leaf cutter ant','_DSC1375 copy_thumb.jpg',130, 87,5,'photo_7285016.html');
												thumbnails[7263622] = new thumbnail(7263622,'336336','Stunt Planes Barclays','_DSC3375 copy_thumb.jpg',130, 81,5,'photo_7263622.html');
												thumbnails[7263849] = new thumbnail(7263849,'271886','Tiger','tiger5705 copy_thumb.jpg',130, 195,5,'photo_7263849.html');
												thumbnails[7264658] = new thumbnail(7264658,'336334','Green Tree Python','PICT8195 copy_thumb.jpg',130, 86,5,'photo_7264658.html');
												thumbnails[7285017] = new thumbnail(7285017,'336333','Praying mantis','_DSC2808 copy_thumb.jpg',130, 87,5,'photo_7285017.html');
												thumbnails[7263623] = new thumbnail(7263623,'336336','Stunt Planes Barclays','_DSC3384 copy_thumb.jpg',130, 94,5,'photo_7263623.html');
												thumbnails[7263850] = new thumbnail(7263850,'271886','Tiger','Tiger6061 copy_thumb.jpg',130, 195,5,'photo_7263850.html');
												thumbnails[7264659] = new thumbnail(7264659,'336334','Chameleons Tail','PICT9961 copy_thumb.jpg',130, 195,5,'photo_7264659.html');
												thumbnails[7285018] = new thumbnail(7285018,'336333','Mosquito','_DSC9193 copy_thumb.jpg',130, 87,5,'photo_7285018.html');
												thumbnails[7263624] = new thumbnail(7263624,'336336','Plane','_DSC3444 copy_thumb.jpg',130, 54,5,'photo_7263624.html');
												thumbnails[7263851] = new thumbnail(7263851,'271886','Tiger','tigerbnw5527 copy_thumb.jpg',130, 206,5,'photo_7263851.html');
												thumbnails[7264660] = new thumbnail(7264660,'336334','Gecko','PICT9964 copy_thumb.jpg',130, 195,5,'photo_7264660.html');
												thumbnails[7263625] = new thumbnail(7263625,'336336','Avro Vulcan','_DSC3459 copy_thumb.jpg',130, 50,5,'photo_7263625.html');
												thumbnails[7263861] = new thumbnail(7263861,'271886','Tiger','tiger5636 copy_thumb.jpg',130, 227,5,'photo_7263861.html');
												thumbnails[7264194] = new thumbnail(7264194,'336331','Wild Grass','grass1694 copy_thumb.jpg',130, 195,5,'photo_7264194.html');
												thumbnails[7264661] = new thumbnail(7264661,'336334','Snake','snake copy_thumb.jpg',130, 195,5,'photo_7264661.html');
												thumbnails[7263627] = new thumbnail(7263627,'336336','Formation Planes','_DSC3552 copy_thumb.jpg',130, 65,5,'photo_7263627.html');
												thumbnails[7264662] = new thumbnail(7264662,'336334','Green Tree Python','snake0874 copy_thumb.jpg',130, 86,5,'photo_7264662.html');
												thumbnails[7263628] = new thumbnail(7263628,'336336','Formation Planes','_DSC3593 copy_thumb.jpg',130, 183,5,'photo_7263628.html');
												thumbnails[7264197] = new thumbnail(7264197,'336331','Wild Flowers','PICT0982 copy_thumb.jpg',130, 195,5,'photo_7264197.html');
												thumbnails[7264663] = new thumbnail(7264663,'336334','Tockay Gecko','_DSC0459 copy_thumb.jpg',130, 195,5,'photo_7264663.html');
												thumbnails[7263629] = new thumbnail(7263629,'336336','Apache Helicopter','_DSC3839 copy_thumb.jpg',130, 72,5,'photo_7263629.html');
												thumbnails[7264664] = new thumbnail(7264664,'336334','','_DSC0560 copy_thumb.jpg',130, 87,5,'photo_7264664.html');
												thumbnails[7263630] = new thumbnail(7263630,'336336','Red Arrows','_DSC3938 copy_thumb.jpg',130, 203,5,'photo_7263630.html');
												thumbnails[7264198] = new thumbnail(7264198,'336331','Bluebells','PICT1024 copy_thumb.jpg',130, 195,5,'photo_7264198.html');
												thumbnails[7264665] = new thumbnail(7264665,'336334','Chameleon','_DSC1268 copy_thumb.jpg',130, 195,5,'photo_7264665.html');
												thumbnails[7263632] = new thumbnail(7263632,'336336','Red Arrows','_DSC3977 copy_thumb.jpg',130, 82,5,'photo_7263632.html');
												thumbnails[7264199] = new thumbnail(7264199,'336331','Bluebells','PICT1031 copy_thumb.jpg',130, 195,5,'photo_7264199.html');
												thumbnails[7264666] = new thumbnail(7264666,'336334','Lizard','_DSC2840 copy_thumb.jpg',130, 91,5,'photo_7264666.html');
												thumbnails[7263633] = new thumbnail(7263633,'336336','Red Arrows','_DSC3992 copy_thumb.jpg',130, 88,5,'photo_7263633.html');
												thumbnails[7264200] = new thumbnail(7264200,'336331','Bluebells','PICT1032 copy_thumb.jpg',130, 86,5,'photo_7264200.html');
												thumbnails[7263634] = new thumbnail(7263634,'336336','Red Arrow','_DSC4164 copy_thumb.jpg',130, 37,5,'photo_7263634.html');
												thumbnails[7264201] = new thumbnail(7264201,'336331','Bluebells','PICT1037 copy_thumb.jpg',130, 195,5,'photo_7264201.html');
												thumbnails[7263635] = new thumbnail(7263635,'336336','Red Arrow','_DSC4169 copy_thumb.jpg',130, 43,5,'photo_7263635.html');
												thumbnails[7264202] = new thumbnail(7264202,'336331','Bluebells','PICT1039 copy_thumb.jpg',130, 195,5,'photo_7264202.html');
												thumbnails[7264203] = new thumbnail(7264203,'336331','Bluebells','PICT1040 copy_thumb.jpg',130, 195,5,'photo_7264203.html');
												thumbnails[7263637] = new thumbnail(7263637,'336336','Red Arrows','_DSC4238 copy_thumb.jpg',130, 189,5,'photo_7263637.html');
												thumbnails[7264206] = new thumbnail(7264206,'336331','Bluebells','PICT1041 copy_thumb.jpg',130, 195,5,'photo_7264206.html');
												thumbnails[7263638] = new thumbnail(7263638,'336336','Red Arrows','_DSC4251 copy_thumb.jpg',130, 188,5,'photo_7263638.html');
												thumbnails[7264207] = new thumbnail(7264207,'336331','Strawberry','PICT1042 copy_thumb.jpg',130, 86,5,'photo_7264207.html');
												thumbnails[7263639] = new thumbnail(7263639,'336336','Red Arrows','_DSC4296 copy_thumb.jpg',130, 63,5,'photo_7263639.html');
												thumbnails[7263640] = new thumbnail(7263640,'336336','Red Arrows','_DSC4299 copy_thumb.jpg',130, 55,5,'photo_7263640.html');
												thumbnails[7263641] = new thumbnail(7263641,'336336','Red Arrows','_DSC4313 copy_thumb.jpg',130, 41,5,'photo_7263641.html');
												thumbnails[7264211] = new thumbnail(7264211,'336331','Strawberry','strawberry0997 copy_thumb.jpg',130, 195,5,'photo_7264211.html');
												thumbnails[7264213] = new thumbnail(7264213,'336331','Tree against sunset','_DSC3077 copy_thumb.jpg',130, 195,5,'photo_7264213.html');
												thumbnails[7264214] = new thumbnail(7264214,'336331','Wild Flower','_DSC3100 copy_thumb.jpg',130, 99,5,'photo_7264214.html');
												thumbnails[7264216] = new thumbnail(7264216,'336331','Wild Grass','_DSC3113 copy_thumb.jpg',130, 195,5,'photo_7264216.html');
												thumbnails[7264217] = new thumbnail(7264217,'336331','Wild Flower','_DSC3128 copy_thumb.jpg',130, 186,5,'photo_7264217.html');
												thumbnails[7264218] = new thumbnail(7264218,'336331','Passion Flower Strand','_DSC3160 copy_thumb.jpg',130, 195,5,'photo_7264218.html');
												thumbnails[7264219] = new thumbnail(7264219,'336331','Wild Flower','_DSC3161 copy_thumb.jpg',130, 195,5,'photo_7264219.html');
												thumbnails[7264220] = new thumbnail(7264220,'336331','Passion Flower','_DSC3163 copy_thumb.jpg',130, 87,5,'photo_7264220.html');
												thumbnails[7264221] = new thumbnail(7264221,'336331','Lily','_DSC3198 copy_thumb.jpg',130, 76,5,'photo_7264221.html');
												thumbnails[7264222] = new thumbnail(7264222,'336331','Sun Flower','_DSC3205 copy_thumb.jpg',130, 68,5,'photo_7264222.html');
												thumbnails[7264223] = new thumbnail(7264223,'336331','Wild Flower','_DSC3216 copy_605B05AC-1EC9-D45B-1CC954BA2A43C0C5_thumb.jpg',130, 79,5,'photo_7264223.html');
												thumbnails[7264224] = new thumbnail(7264224,'336331','Lily','_DSC3231 copy_thumb.jpg',130, 87,5,'photo_7264224.html');
												thumbnails[7264225] = new thumbnail(7264225,'336331','Drip of water on leaf','_DSC4228 copy_thumb.jpg',130, 107,5,'photo_7264225.html');
												thumbnails[7264227] = new thumbnail(7264227,'336331','Curled Leaves','_DSC9185 copy_thumb.jpg',130, 87,5,'photo_7264227.html');
												thumbnails[7264248] = new thumbnail(7264248,'336331','Bluebell Wood','PICT1020 copy_thumb.jpg',130, 86,5,'photo_7264248.html');
												thumbnails[7264249] = new thumbnail(7264249,'336331','Bluebell wood','PICT1046 copy_thumb.jpg',130, 86,5,'photo_7264249.html');
												thumbnails[7264250] = new thumbnail(7264250,'336331','Mosaic Leaf','_DSC4207 copy_thumb.jpg',130, 195,5,'photo_7264250.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[271886] = new gallery(271886,'7258178','Big Cats','gallery',[7258178,7258160,7263837,7283409,7283416,7288175,7298689,7298710,7257940,7258161,7263838,7283405,7283417,7298711,7257942,7258162,7263839,7283418,7298716,7257944,7258163,7263840,7257946,7263841,7263842,7263843,7263844,7263846,7263847,7263848,7263849,7263850,7263851,7263861],0, 0, '', 'gallery_271886.html',0,0);
				  					galleries[271885] = new gallery(271885,'7277123','Landscape / Scenery','gallery',[7276591,7303138,7303139,7277116,7303140,7303141,7277117,7303142,7277122,7303143,7277123,7303144,7277124,7303145,7303147,7303148],0, 0, '', 'gallery_271885.html',0,0);
				  					galleries[336334] = new gallery(336334,'7264657','Reptiles','gallery',[7264775,7264657,7264645,7276572,7276694,7264646,7264647,7264648,7264649,7264650,7264651,7264652,7264654,7264655,7264656,7264658,7264659,7264660,7264661,7264662,7264663,7264664,7264665,7264666],0, 0, '', 'gallery_336334.html',0,0);
				  					galleries[336330] = new gallery(336330,'7263761','Birds','gallery',[7263761,7263754,7263755,7263756,7263757,7263758,7263759,7263760,7263763],0, 0, '', 'gallery_336330.html',0,0);
				  					galleries[336331] = new gallery(336331,'7264212','Flora / Fauna','gallery',[7264212,7264209,7264210,7264191,7264192,7276588,7276585,7264196,7264178,7276575,7276590,7264179,7264180,7264181,7264182,7264183,7264184,7264185,7264186,7264187,7264188,7264190,7264194,7264197,7264198,7264199,7264200,7264201,7264202,7264203,7264206,7264207,7264211,7264213,7264214,7264216,7264217,7264218,7264219,7264220,7264221,7264222,7264223,7264224,7264225,7264227,7264248,7264249,7264250],0, 0, '', 'gallery_336331.html',0,0);
				  					galleries[336329] = new gallery(336329,'7258196,7258187','British Wildlife','gallery',[7258187,7258188,7258189,7258190,7258191,7258192,7258193,7258195,7258196,7258197],0, 0, '', 'gallery_336329.html',0,0);
				  					galleries[336333] = new gallery(336333,'7285012','Creepy Crawlies','gallery',[7285012,7257937,7258186,7285005,7285006,7285007,7285008,7285009,7285010,7285011,7285013,7285014,7285015,7285016,7285017,7285018],0, 0, '', 'gallery_336333.html',0,0);
				  					galleries[336336] = new gallery(336336,'7263636','Air Craft','gallery',[7263636,7263610,7263611,7263612,7263613,7263614,7263615,7263616,7263617,7263618,7263619,7263620,7263621,7263622,7263623,7263624,7263625,7263627,7263628,7263629,7263630,7263632,7263633,7263634,7263635,7263637,7263638,7263639,7263640,7263641],0, 0, '', 'gallery_336336.html',0,0);
				  					galleries[393990] = new gallery(393990,'7285223','Primates','gallery',[7285629,7285221,7285222,7285223,7285224,7285633,7285226],0, 0, '', 'gallery_393990.html',0,0);
				  					galleries[336332] = new gallery(336332,'7277328','People','gallery',[7277328,7277323,7277324,7277326,7277329],0, 0, '', 'gallery_336332.html',0,0);
				  					galleries[394006] = new gallery(394006,'7288177','Abstract','gallery',[7288177,7285631,7288178,7288179,7288180,7285635],0, 0, '', 'gallery_394006.html',0,0);
				  					galleries[394009] = new gallery(394009,'7288186','Beasts','gallery',[7288186,7285665],0, 0, '', 'gallery_394009.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '7257937';
imageSets[2] = '7288186,7288177,7285223,7285012,7277328,7277123,7264657,7264212,7263761,7263636,7258196,7258187,7258178';
imageSets[3] = '7303148,7303147,7303145,7303144,7303143,7303142,7303141,7303140,7303139,7303138,7298716,7298711,7298710,7298689,7288186,7288180,7288179,7288178,7288177,7288175,7285665,7285635,7285633,7285631,7285629,7285226,7285224,7285223,7285222,7285221,7285018,7285017,7285016,7285015,7285014,7285013,7285012,7285011,7285010,7285009,7285008,7285007,7285006,7285005,7283418,7283417,7283416,7283409,7283405,7277329';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/wildphotographs/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/wildphotographs/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/wildphotographs/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/wildphotographs/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/wildphotographs/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/wildphotographs/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/wildphotographs/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/wildphotographs/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/wildphotographs/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/wildphotographs/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/wildphotographs/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/wildphotographs/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/wildphotographs/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/wildphotographs/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/wildphotographs/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/wildphotographs/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/wildphotographs/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/wildphotographs/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/wildphotographs/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/wildphotographs/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/wildphotographs/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/wildphotographs/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {

	imageID = randomListVal('');
		if (!basic) {
	img.src = photos[imageID].src;
	img.width = photos[imageID].width;
	img.height = photos[imageID].height;
  img.parentNode.title = img.alt = photos[imageID].caption;
	}
	else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
				
	}
			}

function getHomeImageLink(imageID) {
  	var href='', photo = backgrounds && backgrounds[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}
/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
  var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
		if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
    
  updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
  var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
      op = $.extend({},defaults,options),
      html = '', temp = '',
      photoId = op.nextPhoto.id,
      photoCaption = op.nextPhoto.caption,
      photoSrc = op.nextPhoto.src;
		
		if (!basic) {
    if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
    }
				
    if (op.$photo.length > 0) {
      html = $('<img/>',{
        'class': 'mainphoto photo',
        src: photoSrc,
        id: 'mainPic',
        name: 'mainPic',
        width: op.nextPhoto.width,
        height: op.nextPhoto.height,
        alt: photoCaption,
        css: op.css || {}
      });
      if (op.href) {
      	if (op.href.match(/<a/)) {
      	  html = $(op.href).append(html);
      	} else {
		  html = $('<a/>', {
			href: op.href,
			title: photoCaption
		  }).append(html);
	    }
      } else {
      	html = $('<a/>', {
			title: photoCaption
		  }).append(html);
      }
      if (op.speed == 0) {        op.$photo.html(html);        if (op.onBefore) {          op.onBefore.apply(op.$photo);        }        if (op.onAfter) {          op.onAfter.apply(op.$photo);        }      } else {        op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){            if (op.onAfter) {		    op.onAfter.apply(this);          }		  clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));		  $('body').trigger('clikUpdate');		}, op.onBefore);
      }    }
    	if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'Wildphotographs: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
	    var options = {};	    	      	      resizePhotoInfo(options);
        if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
  	      toggleAddToCartConfirm(backgrounds);
  	    } else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
  	      toggleAddToCartConfirm(photos);
  	    }
	    });
    }
        if (!op.speed) {      clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));      $('body').trigger('clikUpdate');    }        
    return html;			}
	else {
				
		window.location = 'photo_' + nextPhoto.id + '.html';
	}
		
}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array){
  if (typeof(array) !== 'object') {
    array = photos;
  }
	if($('#paymentConfirm').length > 0){
		$('#paymentConfirm').hide();
		$('#paymentAddButton')
		.unbind()
		.click(function(){
						form = document.getElementById('paymentForm');
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm').text('Item added to cart').show();}
				else{
					$('#paymentConfirm').text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm').text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}
/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp = temp +  '<p id="imageDescription">' + this.description + '</p>';
	}
		if (this.takendate != '') {
				
		temp = temp + '<p class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</p>';
	}
	
	if (this.location != '') {
				
		temp = temp + '<p class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</p>';
	}
	
	if (this.photographer != '') {
				
		temp = temp + '<p class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</p>';
	}
					
	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="updateCartValue(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';
				
		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">';
	temp = temp + '	<input type="hidden" name="item_option" value="' + item_option + '">';
	temp = temp + '	<input type="hidden" name="site" value="WILDPHOTOGRAPHS">';
		temp = temp + '	<input type="hidden" name="item_number" value="'+ this.id +'">';
			temp = temp + '	<input type="hidden" name="quantity" value="1">';
								temp = temp + '	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\'\;" onmouseout="this.className=\'button\'\;" type="Button">';
			temp = temp + '	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';
	temp = temp + '</form>';
		temp = temp + '<div class="clearing">&nbsp;</div>';
	temp = temp + '<div id="confirmContainer">';
	temp = temp + '<div id="paymentConfirm">Item added to cart</div>';
	temp = temp + '</div>';
			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;
	}
}

			

