window.thumbnails = {};
															thumbnails[1807086] = clik.newPhoto({"id":1807086,"src":"Matthew_ice_blue_thumb.jpg","galleries_id":121136,"server_id":1,"link":"photo_1807086.html","width":130,"caption":"Matthew IceBlue","height":195});
															thumbnails[1807093] = clik.newPhoto({"id":1807093,"src":"poppy_thumb.jpg","galleries_id":121485,"server_id":1,"link":"photo_1807093.html","width":130,"caption":"Poppy","height":86});
															thumbnails[1807113] = clik.newPhoto({"id":1807113,"src":"Lanyon_Twilight_a_thumb.jpg","galleries_id":121486,"server_id":1,"link":"photo_1807113.html","width":130,"caption":"Lanyon Twilight","height":87});
															thumbnails[1812002] = clik.newPhoto({"id":1812002,"src":"Sign_of_the_times1_thumb.jpg","galleries_id":121487,"server_id":1,"link":"photo_1812002.html","width":130,"caption":"Sign of the Times","height":194});
															thumbnails[6484544] = clik.newPhoto({"id":6484544,"src":"DSCF8826a_thumb.jpg","galleries_id":357191,"server_id":1,"link":"photo_6484544.html","width":130,"caption":"","height":173});
															thumbnails[1807390] = clik.newPhoto({"id":1807390,"src":"Robert_bw_thumb.jpg","galleries_id":121136,"server_id":1,"link":"photo_1807390.html","width":130,"caption":"Robert","height":195});
															thumbnails[1807450] = clik.newPhoto({"id":1807450,"src":"Lanyon_Quoit_thumb.jpg","galleries_id":121486,"server_id":1,"link":"photo_1807450.html","width":130,"caption":"Lanyon Quoit","height":87});
															thumbnails[6484618] = clik.newPhoto({"id":6484618,"src":"DSCF8738a_thumb.jpg","galleries_id":357191,"server_id":1,"link":"photo_6484618.html","width":130,"caption":"","height":208});
															thumbnails[6775518] = clik.newPhoto({"id":6775518,"src":"Viking_Head_thumb.jpg","galleries_id":121487,"server_id":1,"link":"photo_6775518.html","width":130,"caption":"Viking Head","height":173});
															thumbnails[6851281] = clik.newPhoto({"id":6851281,"src":"Copy-of-Lavender-Bunches_thumb.jpg","galleries_id":121485,"server_id":1,"link":"photo_6851281.html","width":130,"caption":"Lavender Bunches","height":87});
															thumbnails[1807440] = clik.newPhoto({"id":1807440,"src":"Jamie_bw_thumb.jpg","galleries_id":121136,"server_id":1,"link":"photo_1807440.html","width":130,"caption":"Jamie","height":195});
															thumbnails[1812001] = clik.newPhoto({"id":1812001,"src":"Helsinki_thumb.jpg","galleries_id":121487,"server_id":1,"link":"photo_1812001.html","width":130,"caption":"The Docks, Helsinki","height":194});
															thumbnails[6484563] = clik.newPhoto({"id":6484563,"src":"DSCF8853a_thumb.jpg","galleries_id":357191,"server_id":1,"link":"photo_6484563.html","width":130,"caption":"","height":173});
															thumbnails[6851001] = clik.newPhoto({"id":6851001,"src":"Mulfra_Quoit_thumb.JPG","galleries_id":121486,"server_id":1,"link":"photo_6851001.html","width":130,"caption":"Mulfra Quoit","height":87});
															thumbnails[6853774] = clik.newPhoto({"id":6853774,"src":"CNV00019_thumb.JPG","galleries_id":121485,"server_id":1,"link":"photo_6853774.html","width":130,"caption":"Autumn Gold","height":87});
															thumbnails[1807444] = clik.newPhoto({"id":1807444,"src":"DSCF1753a1_thumb.jpg","galleries_id":121487,"server_id":1,"link":"photo_1807444.html","width":130,"caption":"La Belle","height":173});
															thumbnails[6484653] = clik.newPhoto({"id":6484653,"src":"DSCF9366a_thumb.jpg","galleries_id":357191,"server_id":1,"link":"photo_6484653.html","width":130,"caption":"","height":173});
															thumbnails[6851023] = clik.newPhoto({"id":6851023,"src":"Pawton_resized_thumb.jpg","galleries_id":121486,"server_id":1,"link":"photo_6851023.html","width":130,"caption":"Pawton Quoit","height":87});
															thumbnails[6851249] = clik.newPhoto({"id":6851249,"src":"cobweb_thumb.JPG","galleries_id":121485,"server_id":1,"link":"photo_6851249.html","width":130,"caption":"Cobweb Raindrops","height":87});
															thumbnails[8055295] = clik.newPhoto({"id":8055295,"src":"IMG_4706b_thumb.jpg","galleries_id":121136,"server_id":1,"link":"photo_8055295.html","width":130,"caption":"Matthew & Helen","height":195});
															thumbnails[1807370] = clik.newPhoto({"id":1807370,"src":"Tulip_display_thumb.jpg","galleries_id":121485,"server_id":1,"link":"photo_1807370.html","width":130,"caption":"Tulips","height":195});
															thumbnails[1807443] = clik.newPhoto({"id":1807443,"src":"Painted_shells1_thumb.jpg","galleries_id":121487,"server_id":1,"link":"photo_1807443.html","width":130,"caption":"Painted Shells","height":87});
															thumbnails[1807449] = clik.newPhoto({"id":1807449,"src":"Rainbow_Sennen_Cove1_thumb.jpg","galleries_id":121486,"server_id":1,"link":"photo_1807449.html","width":130,"caption":"Rainbow, Sennen Cove","height":195});
															thumbnails[1942548] = clik.newPhoto({"id":1942548,"src":"Matthew_red_thumb.jpg","galleries_id":121136,"server_id":1,"link":"photo_1942548.html","width":130,"caption":"Matthew - Red","height":173});
															thumbnails[6484621] = clik.newPhoto({"id":6484621,"src":"DSCF9416a_thumb.jpg","galleries_id":357191,"server_id":1,"link":"photo_6484621.html","width":130,"caption":"","height":173});
															thumbnails[1807368] = clik.newPhoto({"id":1807368,"src":"Agapanthus_buds_thumb.jpg","galleries_id":121485,"server_id":1,"link":"photo_1807368.html","width":130,"caption":"Agapanthus buds","height":195});
															thumbnails[1807438] = clik.newPhoto({"id":1807438,"src":"Anita_Dobson1_thumb.jpg","galleries_id":121136,"server_id":1,"link":"photo_1807438.html","width":130,"caption":"Anita Dobson","height":154});
															thumbnails[1827785] = clik.newPhoto({"id":1827785,"src":"St_Anthony_Head_thumb.jpg","galleries_id":121486,"server_id":1,"link":"photo_1827785.html","width":130,"caption":"St Anthony Head","height":195});
															thumbnails[6484727] = clik.newPhoto({"id":6484727,"src":"DSCF9432a_thumb.jpg","galleries_id":357191,"server_id":1,"link":"photo_6484727.html","width":130,"caption":"","height":173});
															thumbnails[6775738] = clik.newPhoto({"id":6775738,"src":"Abstract_rev_thumb.jpg","galleries_id":121487,"server_id":1,"link":"photo_6775738.html","width":130,"caption":"Eden Abstract","height":87});
															thumbnails[1807383] = clik.newPhoto({"id":1807383,"src":"Lily_of_the _Valley1_thumb.jpg","galleries_id":121485,"server_id":1,"link":"photo_1807383.html","width":130,"caption":"Lily of the Valley","height":173});
															thumbnails[1807437] = clik.newPhoto({"id":1807437,"src":"Anna_Wing_bw2_thumb.jpg","galleries_id":121136,"server_id":1,"link":"photo_1807437.html","width":130,"caption":"Anna Wing","height":140});
															thumbnails[1807447] = clik.newPhoto({"id":1807447,"src":"Venetian_beads_thumb.jpg","galleries_id":121487,"server_id":1,"link":"photo_1807447.html","width":130,"caption":"Venetian Beads","height":87});
															thumbnails[7130319] = clik.newPhoto({"id":7130319,"src":"IMG_0769_thumb.JPG","galleries_id":357191,"server_id":1,"link":"photo_7130319.html","width":130,"caption":"","height":195});
															thumbnails[8692000] = clik.newPhoto({"id":8692000,"src":"Treen_Cliffs_best_thumb.jpg","galleries_id":121486,"server_id":1,"link":"photo_8692000.html","width":130,"caption":"TOWARDS LOGAN ROCK","height":195});
															thumbnails[1807116] = clik.newPhoto({"id":1807116,"src":"Stroud Weekend Dec 04 (50)_thumb.jpg","galleries_id":121487,"server_id":1,"link":"photo_1807116.html","width":130,"caption":"Taps Close Up","height":87});
															thumbnails[1807389] = clik.newPhoto({"id":1807389,"src":"June_Brown1_thumb.jpg","galleries_id":121136,"server_id":1,"link":"photo_1807389.html","width":130,"caption":"June Brown","height":195});
															thumbnails[1827788] = clik.newPhoto({"id":1827788,"src":"Porthleven_thumb.jpg","galleries_id":121486,"server_id":1,"link":"photo_1827788.html","width":130,"caption":"The Harbour, Porthleven","height":195});
															thumbnails[1939265] = clik.newPhoto({"id":1939265,"src":"bug2_thumb.jpg","galleries_id":121485,"server_id":1,"link":"photo_1939265.html","width":130,"caption":"Summer Beetle","height":178});
															thumbnails[1809435] = clik.newPhoto({"id":1809435,"src":"Sunset_Porthleven_thumb.jpg","galleries_id":121486,"server_id":1,"link":"photo_1809435.html","width":130,"caption":"Porthleven Sunset","height":87});
															thumbnails[1812618] = clik.newPhoto({"id":1812618,"src":"Matthew_James_London_thumb.jpg","galleries_id":121136,"server_id":1,"link":"photo_1812618.html","width":130,"caption":"Matthew James","height":194});
															thumbnails[6610529] = clik.newPhoto({"id":6610529,"src":"IMG_0949a_thumb.jpg","galleries_id":357191,"server_id":1,"link":"photo_6610529.html","width":130,"caption":"","height":195});
															thumbnails[6775687] = clik.newPhoto({"id":6775687,"src":"Squirrel_thumb.jpg","galleries_id":121485,"server_id":1,"link":"photo_6775687.html","width":130,"caption":"Grey Squirrel","height":87});
															thumbnails[6851288] = clik.newPhoto({"id":6851288,"src":"Paris-Trip-23_thumb.jpg","galleries_id":121487,"server_id":1,"link":"photo_6851288.html","width":130,"caption":"Carving, Paris","height":195});
															thumbnails[7138670] = clik.newPhoto({"id":7138670,"src":"IMG_0920_thumb.jpg","galleries_id":357191,"server_id":1,"link":"photo_7138670.html","width":130,"caption":"","height":195});
															thumbnails[1807391] = clik.newPhoto({"id":1807391,"src":"Adam2_thumb.jpg","galleries_id":121136,"server_id":1,"link":"photo_1807391.html","width":130,"caption":"Adam","height":195});
															thumbnails[6610738] = clik.newPhoto({"id":6610738,"src":"IMG_1098b_thumb.jpg","galleries_id":357191,"server_id":1,"link":"photo_6610738.html","width":130,"caption":"","height":195});
															thumbnails[6851085] = clik.newPhoto({"id":6851085,"src":"Robin__thumb.jpg","galleries_id":121485,"server_id":1,"link":"photo_6851085.html","width":130,"caption":"Robin","height":87});
															thumbnails[6859271] = clik.newPhoto({"id":6859271,"src":"Blue-glass-art_thumb.jpg","galleries_id":121487,"server_id":1,"link":"photo_6859271.html","width":130,"caption":"Blue Glass Art","height":195});
															thumbnails[8278376] = clik.newPhoto({"id":8278376,"src":"Mevagissey_for_web_thumb.jpg","galleries_id":121486,"server_id":1,"link":"photo_8278376.html","width":130,"caption":"Mevagissey","height":87});
															thumbnails[1807448] = clik.newPhoto({"id":1807448,"src":"Morning_Mist_Polruan1_thumb.jpg","galleries_id":121486,"server_id":1,"link":"photo_1807448.html","width":130,"caption":"Polruan Mist","height":98});
															thumbnails[6775389] = clik.newPhoto({"id":6775389,"src":"Charlotte_thumb.jpg","galleries_id":121136,"server_id":1,"link":"photo_6775389.html","width":130,"caption":"CHARLOTTE","height":195});
															thumbnails[6851266] = clik.newPhoto({"id":6851266,"src":"The-Mackerel_thumb.jpg","galleries_id":121485,"server_id":1,"link":"photo_6851266.html","width":130,"caption":"Mackerel","height":87});
															thumbnails[6859276] = clik.newPhoto({"id":6859276,"src":"Glass-Art_thumb.jpg","galleries_id":121487,"server_id":1,"link":"photo_6859276.html","width":130,"caption":"Glass Art","height":195});
															thumbnails[7137398] = clik.newPhoto({"id":7137398,"src":"IMG_0601_thumb.JPG","galleries_id":357191,"server_id":1,"link":"photo_7137398.html","width":130,"caption":"","height":195});
															thumbnails[1807386] = clik.newPhoto({"id":1807386,"src":"IMG_0667_thumb.jpg","galleries_id":121485,"server_id":1,"link":"photo_1807386.html","width":130,"caption":"Plant Study","height":87});
															thumbnails[1807445] = clik.newPhoto({"id":1807445,"src":"Rope_thumb.jpg","galleries_id":121487,"server_id":1,"link":"photo_1807445.html","width":130,"caption":"Rope","height":129});
															thumbnails[1812000] = clik.newPhoto({"id":1812000,"src":"Hafina_thumb.jpg","galleries_id":121136,"server_id":1,"link":"photo_1812000.html","width":130,"caption":"Hafina","height":195});
															thumbnails[1813794] = clik.newPhoto({"id":1813794,"src":"Polruan_Colour_thumb.jpg","galleries_id":121486,"server_id":1,"link":"photo_1813794.html","width":130,"caption":"Polruan","height":98});
															thumbnails[7130390] = clik.newPhoto({"id":7130390,"src":"IMG_1795_thumb.JPG","galleries_id":357191,"server_id":1,"link":"photo_7130390.html","width":130,"caption":"","height":195});
															thumbnails[1807114] = clik.newPhoto({"id":1807114,"src":"Boconnoc_Woods_thumb.jpg","galleries_id":121486,"server_id":1,"link":"photo_1807114.html","width":130,"caption":"The Woods, Boconnoc","height":87});
															thumbnails[1828321] = clik.newPhoto({"id":1828321,"src":"Robert_close_up1_thumb.jpg","galleries_id":121136,"server_id":1,"link":"photo_1828321.html","width":130,"caption":"Robert 2","height":195});
															thumbnails[6775522] = clik.newPhoto({"id":6775522,"src":"Wheels_2_thumb.jpg","galleries_id":121487,"server_id":1,"link":"photo_6775522.html","width":130,"caption":"Wheels","height":98});
															thumbnails[6853930] = clik.newPhoto({"id":6853930,"src":"Eider-Drake-crop_thumb.jpg","galleries_id":121485,"server_id":1,"link":"photo_6853930.html","width":130,"caption":"Eider Drake","height":186});
															thumbnails[7130431] = clik.newPhoto({"id":7130431,"src":"IMG_09241_thumb.JPG","galleries_id":357191,"server_id":1,"link":"photo_7130431.html","width":130,"caption":"","height":87});
															thumbnails[1828278] = clik.newPhoto({"id":1828278,"src":"Mathew 2_thumb.jpg","galleries_id":121136,"server_id":1,"link":"photo_1828278.html","width":130,"caption":"Mathew","height":195});
															thumbnails[6610456] = clik.newPhoto({"id":6610456,"src":"IMG_1786b_thumb.jpg","galleries_id":357191,"server_id":1,"link":"photo_6610456.html","width":130,"caption":"","height":87});
															thumbnails[6853705] = clik.newPhoto({"id":6853705,"src":"CNV000151_thumb.JPG","galleries_id":121485,"server_id":1,"link":"photo_6853705.html","width":130,"caption":"Razorbills","height":194});
															thumbnails[6926852] = clik.newPhoto({"id":6926852,"src":"Lace-for-web_thumb.jpg","galleries_id":121487,"server_id":1,"link":"photo_6926852.html","width":130,"caption":"Lace making","height":98});
															thumbnails[9077497] = clik.newPhoto({"id":9077497,"src":"IMG_1941b_thumb.jpg","galleries_id":121486,"server_id":1,"link":"photo_9077497.html","width":130,"caption":"Boswens Longstone","height":87});
															thumbnails[1807379] = clik.newPhoto({"id":1807379,"src":"Duck_silhouette_thumb.jpg","galleries_id":121485,"server_id":1,"link":"photo_1807379.html","width":130,"caption":"The Lone Drake","height":195});
															thumbnails[1813715] = clik.newPhoto({"id":1813715,"src":"Mathew_A_thumb.jpg","galleries_id":121136,"server_id":1,"link":"photo_1813715.html","width":130,"caption":"Mathew 2","height":195});
															thumbnails[7130335] = clik.newPhoto({"id":7130335,"src":"IMG_1352_thumb.JPG","galleries_id":357191,"server_id":1,"link":"photo_7130335.html","width":130,"caption":"","height":87});
															thumbnails[7960325] = clik.newPhoto({"id":7960325,"src":"IMG_4543aa_thumb.jpg","galleries_id":121487,"server_id":1,"link":"photo_7960325.html","width":130,"caption":"BOTTLE ART","height":124});
															thumbnails[8801430] = clik.newPhoto({"id":8801430,"src":"IMG_8707_thumb.JPG","galleries_id":121486,"server_id":1,"link":"photo_8801430.html","width":130,"caption":"Cornish Sunrise","height":87});
															thumbnails[1807079] = clik.newPhoto({"id":1807079,"src":"Charlotte_bw_thumb.jpg","galleries_id":121136,"server_id":1,"link":"photo_1807079.html","width":130,"caption":"Charlotte 2","height":195});
															thumbnails[1811998] = clik.newPhoto({"id":1811998,"src":"Rockpool_thumb.jpg","galleries_id":121486,"server_id":1,"link":"photo_1811998.html","width":130,"caption":"Rockpool","height":87});
															thumbnails[6853725] = clik.newPhoto({"id":6853725,"src":"CNV00011_thumb.JPG","galleries_id":121485,"server_id":1,"link":"photo_6853725.html","width":130,"caption":"Winter Pony","height":194});
															thumbnails[7130483] = clik.newPhoto({"id":7130483,"src":"IMG_2341_adj_thumb.jpg","galleries_id":357191,"server_id":1,"link":"photo_7130483.html","width":130,"caption":"","height":87});
															thumbnails[8831197] = clik.newPhoto({"id":8831197,"src":"leaf_thumb.jpg","galleries_id":121487,"server_id":1,"link":"photo_8831197.html","width":130,"caption":"Gold leaf","height":177});
															thumbnails[1807441] = clik.newPhoto({"id":1807441,"src":"Steph_thumb.jpg","galleries_id":121136,"server_id":1,"link":"photo_1807441.html","width":130,"caption":"Stephanie ","height":195});
															thumbnails[1942544] = clik.newPhoto({"id":1942544,"src":"purity_thumb.jpg","galleries_id":121485,"server_id":1,"link":"photo_1942544.html","width":130,"caption":"Purity","height":87});
															thumbnails[7137412] = clik.newPhoto({"id":7137412,"src":"bb_38_copy_thumb.jpg","galleries_id":357191,"server_id":1,"link":"photo_7137412.html","width":130,"caption":"","height":195});
															thumbnails[8831182] = clik.newPhoto({"id":8831182,"src":"IMG_6132a_thumb.jpg","galleries_id":121487,"server_id":1,"link":"photo_8831182.html","width":130,"caption":"Shattered Glass","height":198});
															thumbnails[9017664] = clik.newPhoto({"id":9017664,"src":"IMG_1368a_thumb.jpg","galleries_id":121486,"server_id":1,"link":"photo_9017664.html","width":130,"caption":"Marazion sunset","height":87});
															thumbnails[1809434] = clik.newPhoto({"id":1809434,"src":"Stephanie_thumb.jpg","galleries_id":121136,"server_id":1,"link":"photo_1809434.html","width":130,"caption":"Stephanie 2","height":173});
															thumbnails[1813740] = clik.newPhoto({"id":1813740,"src":"Boathouse_Trevarno_thumb.jpg","galleries_id":121486,"server_id":1,"link":"photo_1813740.html","width":130,"caption":"The Boat-house, Trevarno","height":87});
															thumbnails[6775346] = clik.newPhoto({"id":6775346,"src":"wed4_thumb.jpg","galleries_id":357191,"server_id":1,"link":"photo_6775346.html","width":130,"caption":"","height":195});
															thumbnails[6851128] = clik.newPhoto({"id":6851128,"src":"roses_a_thumb.jpg","galleries_id":121485,"server_id":1,"link":"photo_6851128.html","width":130,"caption":"Roses","height":87});
															thumbnails[8832498] = clik.newPhoto({"id":8832498,"src":"IMG_7948a_thumb.JPG","galleries_id":121487,"server_id":1,"link":"photo_8832498.html","width":130,"caption":"Morning Dew","height":87});
															thumbnails[1807381] = clik.newPhoto({"id":1807381,"src":"Blue_Moon1_thumb.jpg","galleries_id":121485,"server_id":1,"link":"photo_1807381.html","width":130,"caption":"Blue Moon","height":104});
															thumbnails[1812615] = clik.newPhoto({"id":1812615,"src":"summer harbour, porthleven_thumb.jpg","galleries_id":121486,"server_id":1,"link":"photo_1812615.html","width":130,"caption":"Porthleven Harbour","height":87});
															thumbnails[6916786] = clik.newPhoto({"id":6916786,"src":"Anna_Wing_thumb.jpg","galleries_id":121136,"server_id":1,"link":"photo_6916786.html","width":130,"caption":"Anna Wing","height":195});
															thumbnails[8939765] = clik.newPhoto({"id":8939765,"src":"IMG_8449a_thumb.jpg","galleries_id":121487,"server_id":1,"link":"photo_8939765.html","width":130,"caption":"Autumn Reflections","height":87});
															thumbnails[1807385] = clik.newPhoto({"id":1807385,"src":"Autumn_leaves1_thumb.jpg","galleries_id":121485,"server_id":1,"link":"photo_1807385.html","width":130,"caption":"Autumn Leaves","height":98});
															thumbnails[1812612] = clik.newPhoto({"id":1812612,"src":"portrait_thumb.jpg","galleries_id":121136,"server_id":1,"link":"photo_1812612.html","width":130,"caption":"Derek","height":195});
															thumbnails[6851043] = clik.newPhoto({"id":6851043,"src":"mulfra_hill_resized_thumb.jpg","galleries_id":121486,"server_id":1,"link":"photo_6851043.html","width":130,"caption":"View from Mulfra Hill","height":89});
															thumbnails[9017740] = clik.newPhoto({"id":9017740,"src":"North_Sea_James_Kitto_thumb.jpg","galleries_id":121487,"server_id":1,"link":"photo_9017740.html","width":130,"caption":"North Sea waves, Lowestoft","height":87});
															thumbnails[1807439] = clik.newPhoto({"id":1807439,"src":"Daniel_blue_thumb.jpg","galleries_id":121136,"server_id":1,"link":"photo_1807439.html","width":130,"caption":"Daniel Blue","height":87});
															thumbnails[6851247] = clik.newPhoto({"id":6851247,"src":"stack-bw_thumb.jpg","galleries_id":121486,"server_id":1,"link":"photo_6851247.html","width":130,"caption":"Engine House Chimney","height":194});
															thumbnails[6851254] = clik.newPhoto({"id":6851254,"src":"Carolina-Wood-Duck_thumb.jpg","galleries_id":121485,"server_id":1,"link":"photo_6851254.html","width":130,"caption":"Carolina Wood Duck","height":87});
															thumbnails[9017760] = clik.newPhoto({"id":9017760,"src":"The_beach_Lowestoft_thumb.jpg","galleries_id":121487,"server_id":1,"link":"photo_9017760.html","width":130,"caption":"The beach, Lowestoft","height":87});
															thumbnails[1807375] = clik.newPhoto({"id":1807375,"src":"Mandarin_drake_thumb.jpg","galleries_id":121485,"server_id":1,"link":"photo_1807375.html","width":130,"caption":"Mandarin Drake","height":87});
															thumbnails[1807388] = clik.newPhoto({"id":1807388,"src":"Motherly_love_thumb.jpg","galleries_id":121136,"server_id":1,"link":"photo_1807388.html","width":130,"caption":"Helen with Charlie","height":98});
															thumbnails[8787585] = clik.newPhoto({"id":8787585,"src":"IMG_9304a_thumb.jpg","galleries_id":121486,"server_id":1,"link":"photo_8787585.html","width":130,"caption":"Porth Nanven","height":203});
															thumbnails[1807377] = clik.newPhoto({"id":1807377,"src":"a (6)_thumb.jpg","galleries_id":121485,"server_id":1,"link":"photo_1807377.html","width":130,"caption":"Pintail Drake","height":87});
															thumbnails[1813626] = clik.newPhoto({"id":1813626,"src":"Gambian_smiles1_thumb.jpg","galleries_id":121136,"server_id":1,"link":"photo_1813626.html","width":130,"caption":"Gambian smiles","height":85});
															thumbnails[6851211] = clik.newPhoto({"id":6851211,"src":"The-Pier-Porthleven-a_thumb.jpg","galleries_id":121486,"server_id":1,"link":"photo_6851211.html","width":130,"caption":"The Pier, Porthleven","height":195});
															thumbnails[6854168] = clik.newPhoto({"id":6854168,"src":"Cape-Teal_thumb.jpg","galleries_id":121485,"server_id":1,"link":"photo_6854168.html","width":130,"caption":"Cape Teal","height":87});
															thumbnails[6859215] = clik.newPhoto({"id":6859215,"src":"Summer_Reflections_thumb.JPG","galleries_id":121486,"server_id":1,"link":"photo_6859215.html","width":130,"caption":"Summer Reflections","height":194});
															thumbnails[6969774] = clik.newPhoto({"id":6969774,"src":"Matthew-ice-blue_thumb.jpg","galleries_id":121136,"server_id":1,"link":"photo_6969774.html","width":130,"caption":"Matthew - Iceblue 2","height":95});
															thumbnails[1807373] = clik.newPhoto({"id":1807373,"src":"Beech_Leaves_thumb.jpg","galleries_id":121485,"server_id":1,"link":"photo_1807373.html","width":130,"caption":"Autumn Beech Leaves","height":87});
															thumbnails[1807387] = clik.newPhoto({"id":1807387,"src":"Robert_half2_thumb.jpg","galleries_id":121136,"server_id":1,"link":"photo_1807387.html","width":130,"caption":"Robert half","height":212});
															thumbnails[8692457] = clik.newPhoto({"id":8692457,"src":"Ding_Dong_sepia_thumb.jpg","galleries_id":121486,"server_id":1,"link":"photo_8692457.html","width":130,"caption":"Ding Dong Mine","height":194});
															thumbnails[6793129] = clik.newPhoto({"id":6793129,"src":"anna_web_thumb.jpg","galleries_id":121136,"server_id":1,"link":"photo_6793129.html","width":130,"caption":"Anna Wing ","height":142});
															thumbnails[6858704] = clik.newPhoto({"id":6858704,"src":"clematis_flower_thumb.jpg","galleries_id":121485,"server_id":1,"link":"photo_6858704.html","width":130,"caption":"Clematis flower","height":87});
															thumbnails[8692150] = clik.newPhoto({"id":8692150,"src":"Sunset_copy_thumb.jpg","galleries_id":121486,"server_id":1,"link":"photo_8692150.html","width":130,"caption":"Golden Sunset","height":198});
															thumbnails[6851293] = clik.newPhoto({"id":6851293,"src":"Porthleven-Evening_thumb.jpg","galleries_id":121486,"server_id":1,"link":"photo_6851293.html","width":130,"caption":"Porthleven Evening","height":195});
															thumbnails[6859111] = clik.newPhoto({"id":6859111,"src":"Pheasant_thumb.jpg","galleries_id":121485,"server_id":1,"link":"photo_6859111.html","width":130,"caption":"Cock Pheasant","height":87});
															thumbnails[6864925] = clik.newPhoto({"id":6864925,"src":"Yellow-Ivy-leaf_thumb.jpg","galleries_id":121485,"server_id":1,"link":"photo_6864925.html","width":130,"caption":"Yellow Ivy Leaf","height":97});
															thumbnails[7962584] = clik.newPhoto({"id":7962584,"src":"View_from_Ding_Dong_by_James_Kitto_A_thumb.jpg","galleries_id":121486,"server_id":1,"link":"photo_7962584.html","width":130,"caption":"VIEW FROM DING DONG","height":177});
															thumbnails[7962554] = clik.newPhoto({"id":7962554,"src":"Kynance_Cove_Cornwall_by_James_Kitto_2a_thumb.jpg","galleries_id":121486,"server_id":1,"link":"photo_7962554.html","width":130,"caption":"KYNANCE COVE","height":87});
															thumbnails[8943529] = clik.newPhoto({"id":8943529,"src":"British_Blue_thumb.jpg","galleries_id":121485,"server_id":1,"link":"photo_8943529.html","width":130,"caption":"British Blue","height":93});
															thumbnails[7962556] = clik.newPhoto({"id":7962556,"src":"St_Ives_by_James_KittoA_thumb.jpg","galleries_id":121486,"server_id":1,"link":"photo_7962556.html","width":130,"caption":"ST IVES","height":87});
															thumbnails[7962581] = clik.newPhoto({"id":7962581,"src":"View_to_Fowey_by_James_Kitto_A_thumb.jpg","galleries_id":121486,"server_id":1,"link":"photo_7962581.html","width":130,"caption":"VIEW TO FOWEY","height":98});
															thumbnails[7137316] = clik.newPhoto({"id":7137316,"src":"Morning_Reflection12_thumb.jpg","galleries_id":121486,"server_id":1,"link":"photo_7137316.html","width":130,"caption":"Morning Reflection","height":87});
															thumbnails[8266424] = clik.newPhoto({"id":8266424,"src":"stack_thumb.jpg","galleries_id":121486,"server_id":1,"link":"photo_8266424.html","width":130,"caption":"Stack of Stones, Scilly","height":87});
															thumbnails[1807452] = clik.newPhoto({"id":1807452,"src":"Sennen_Cove_thumb.jpg","galleries_id":121486,"server_id":1,"link":"photo_1807452.html","width":130,"caption":"Sennen Cove","height":87});
															thumbnails[8687588] = clik.newPhoto({"id":8687588,"src":"IMG_7934b1_thumb.jpg","galleries_id":121486,"server_id":1,"link":"photo_8687588.html","width":130,"caption":"CARN GALVER MINE","height":87});
															thumbnails[8788013] = clik.newPhoto({"id":8788013,"src":"IMG_9057a_thumb.jpg","galleries_id":121486,"server_id":1,"link":"photo_8788013.html","width":130,"caption":"Waves at Priest's Cove","height":87});
															thumbnails[6775984] = clik.newPhoto({"id":6775984,"src":"A_Slice_of_Polruan_web_thumb.jpg","galleries_id":121486,"server_id":1,"link":"photo_6775984.html","width":130,"caption":"A slice of Polruan","height":173});
															thumbnails[6775678] = clik.newPhoto({"id":6775678,"src":"snow_thumb.jpg","galleries_id":121486,"server_id":1,"link":"photo_6775678.html","width":130,"caption":"Snowy fields, Wendron","height":195});
															thumbnails[8687371] = clik.newPhoto({"id":8687371,"src":"Zennor_Mermaid_thumb.jpg","galleries_id":121486,"server_id":1,"link":"photo_8687371.html","width":130,"caption":"The Mermaid of Zennor","height":195});
															thumbnails[8820454] = clik.newPhoto({"id":8820454,"src":"IMG_9717a_thumb.jpg","galleries_id":121486,"server_id":1,"link":"photo_8820454.html","width":130,"caption":"The Causeway, St Michael's Mount","height":184});
															thumbnails[8831218] = clik.newPhoto({"id":8831218,"src":"Jubilee_Pool_Penzance_thumb.jpg","galleries_id":121486,"server_id":1,"link":"photo_8831218.html","width":130,"caption":"Jubilee Pool","height":195});
															thumbnails[1809433] = clik.newPhoto({"id":1809433,"src":"The_Mount_thumb.jpg","galleries_id":121486,"server_id":1,"link":"photo_1809433.html","width":130,"caption":"St Michael's Mount","height":87});
															thumbnails[9017309] = clik.newPhoto({"id":9017309,"src":"IMG_1244a_thumb.jpg","galleries_id":121486,"server_id":1,"link":"photo_9017309.html","width":130,"caption":"Winter waves, Perranuthnoe","height":87});
															thumbnails[1812617] = clik.newPhoto({"id":1812617,"src":"Jubilee_Pool_thumb.jpg","galleries_id":121486,"server_id":1,"link":"photo_1812617.html","width":130,"caption":"Jubilee Pool","height":87});
															thumbnails[1811997] = clik.newPhoto({"id":1811997,"src":"Beach_days_thumb.jpg","galleries_id":121486,"server_id":1,"link":"photo_1811997.html","width":130,"caption":"Summer Beach","height":87});
															thumbnails[9078178] = clik.newPhoto({"id":9078178,"src":"Botallack_Crowns_Mine_thumb.jpg","galleries_id":121486,"server_id":1,"link":"photo_9078178.html","width":130,"caption":"Engine House, The Crowns Mine, Botallack","height":195});
															thumbnails[9078223] = clik.newPhoto({"id":9078223,"src":"Botallack_thumb.jpg","galleries_id":121486,"server_id":1,"link":"photo_9078223.html","width":130,"caption":"The Crowns, Botallack","height":87});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[121486] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Cornwall","link":"gallery_121486.html","maxRecords":0.0,"photoIDs":[1807113.0,1807450.0,6851001.0,6851023.0,1807449.0,1827785.0,8692000.0,1827788.0,1809435.0,8278376.0,1807448.0,1813794.0,1807114.0,9077497.0,8801430.0,1811998.0,9017664.0,1813740.0,1812615.0,6851043.0,6851247.0,8787585.0,6851211.0,6859215.0,8692457.0,8692150.0,6851293.0,7962584.0,7962554.0,7962556.0,7962581.0,7137316.0,8266424.0,1807452.0,8687588.0,8788013.0,6775984.0,6775678.0,8687371.0,8820454.0,8831218.0,1809433.0,9017309.0,1812617.0,1811997.0,9078178.0,9078223.0],"skipIndex":0,"section_code":"gallery","featured_images":"1807452,1807113","id":121486,"singleSection":false});				  						galleries[121136] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portraits","link":"gallery_121136.html","maxRecords":0.0,"photoIDs":[1807086.0,1807390.0,1807440.0,8055295.0,1942548.0,1807438.0,1807437.0,1807389.0,1812618.0,1807391.0,6775389.0,1812000.0,1828321.0,1828278.0,1813715.0,1807079.0,1807441.0,1809434.0,6916786.0,1812612.0,1807439.0,1807388.0,1813626.0,6969774.0,1807387.0,6793129.0],"skipIndex":0,"section_code":"gallery","featured_images":1807388.0,"id":121136,"singleSection":false});				  						galleries[357191] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wedding Photography","link":"gallery_357191.html","maxRecords":0.0,"photoIDs":[6484544.0,6484618.0,6484563.0,6484653.0,6484621.0,6484727.0,7130319.0,6610529.0,7138670.0,6610738.0,7137398.0,7130390.0,7130431.0,6610456.0,7130335.0,7130483.0,7137412.0,6775346.0],"skipIndex":0,"section_code":"gallery","featured_images":"7138670,7137412,7137398,7130483,7130431,7130390,7130335,7130319,6775346,6610738","id":357191,"singleSection":false});				  						galleries[121485] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Flora & Fauna","link":"gallery_121485.html","maxRecords":0.0,"photoIDs":[1807093.0,6851281.0,6853774.0,6851249.0,1807370.0,1807368.0,1807383.0,1939265.0,6775687.0,6851085.0,6851266.0,1807386.0,6853930.0,6853705.0,1807379.0,6853725.0,1942544.0,6851128.0,1807381.0,1807385.0,6851254.0,1807375.0,1807377.0,6854168.0,1807373.0,6858704.0,6859111.0,6864925.0,8943529.0],"skipIndex":0,"section_code":"gallery","featured_images":1807381.0,"id":121485,"singleSection":false});				  						galleries[121487] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Miscellaneous","link":"gallery_121487.html","maxRecords":0.0,"photoIDs":[1812002.0,6775518.0,1812001.0,1807444.0,1807443.0,6775738.0,1807447.0,1807116.0,6851288.0,6859271.0,6859276.0,1807445.0,6775522.0,6926852.0,7960325.0,8831197.0,8831182.0,8832498.0,8939765.0,9017740.0,9017760.0],"skipIndex":0,"section_code":"gallery","featured_images":1807443.0,"id":121487,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '9078223,9078178,9077497,9017760,9017740,9017664,9017309,8943529,8939765,8832498,8831218,8831197,8831182,8820454,8801430,8788013,8787585,8692457,8692150,8692000,8687588,8687371,8278376,8266424,8055295,7962584,7962581,7962556,7962554,7960325,7138670,7137412,7137398,7137316,7130483,7130431,7130390,7130335,7130319,6969774,6926852,6916786,6864925,6859276,6859271,6859215,6859111,6858704,6854168,6853930';
imageSets[2] = '1807113,1807443,1807381,1807388,1807452';
imageSets[3] = '9078223,9078178,9077497,9017760,9017740,9017664,9017309,8943529,8939765,8832498,8831218,8831197,8831182,8820454,8801430,8788013,8787585,8692457,8692150,8692000,8687588,8687371,8278376,8266424,8055295,7962584,7962581,7962556,7962554,7960325,7138670,7137412,7137398,7137316,7130483,7130431,7130390,7130335,7130319,6969774,6926852,6916786,6864925,6859276,6859271,6859215,6859111,6858704,6854168,6853930';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/jameskitto/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/jameskitto/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/jameskitto/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/jameskitto/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/jameskitto/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/jameskitto/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/jameskitto/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/jameskitto/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/jameskitto/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/jameskitto/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/jameskitto/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/jameskitto/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/jameskitto/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/jameskitto/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/jameskitto/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/jameskitto/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/jameskitto/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/jameskitto/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/jameskitto/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/jameskitto/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/jameskitto/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/jameskitto/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/jameskitto/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/jameskitto/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/jameskitto/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/jameskitto/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/jameskitto/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 || photos || {})[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:'',$detailContainer:'',
                    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 (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'James Kitto Photography: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		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.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			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', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
	temp += this.fnGetPaymentInfo();
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
																		temp += '<p>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp += '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		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 += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			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 += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="kitto8@aol.com">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="kitto8@aol.com">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						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({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* 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 += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

