window.thumbnails = {};
															thumbnails[8171903] = clik.newPhoto({"id":8171903,"src":"001-Winter-Sunset_thumb.jpg","galleries_id":436464,"server_id":32,"link":"photo_8171903.html","width":130,"caption":"First: Winter Sunset","height":98});
															thumbnails[8172052] = clik.newPhoto({"id":8172052,"src":"010-Going-for-Goal_thumb.jpg","galleries_id":436459,"server_id":32,"link":"photo_8172052.html","width":130,"caption":"Best Annual DPI & First Open: Going for Goal","height":98});
															thumbnails[8172158] = clik.newPhoto({"id":8172158,"src":"014-St-Pancreas-Sculpture_thumb.jpg","galleries_id":436465,"server_id":32,"link":"photo_8172158.html","width":130,"caption":"First: St Pancras Sculpture","height":98});
															thumbnails[8172174] = clik.newPhoto({"id":8172174,"src":"007-Nicki_thumb.jpg","galleries_id":436463,"server_id":32,"link":"photo_8172174.html","width":130,"caption":"First: Nicki","height":98});
															thumbnails[8172520] = clik.newPhoto({"id":8172520,"src":"024-Hyena-Running_thumb.jpg","galleries_id":436460,"server_id":32,"link":"photo_8172520.html","width":130,"caption":"First: Hyena Running","height":98});
															thumbnails[8172079] = clik.newPhoto({"id":8172079,"src":"033-Moto-Cross-Jumper_thumb.jpg","galleries_id":436459,"server_id":32,"link":"photo_8172079.html","width":130,"caption":"Very Highly Commended: Moto Cross Jumper","height":98});
															thumbnails[8172086] = clik.newPhoto({"id":8172086,"src":"041-Tom-Sweet-Dreams_thumb.jpg","galleries_id":436459,"server_id":32,"link":"photo_8172086.html","width":130,"caption":"Very Highly Commended: Tom Sweet Dreams","height":98});
															thumbnails[8172161] = clik.newPhoto({"id":8172161,"src":"003-The-Mayor-of-Crewe_thumb.jpg","galleries_id":436463,"server_id":32,"link":"photo_8172161.html","width":130,"caption":"Very Highly Commended: The Mayor of Crewe","height":98});
															thumbnails[8172341] = clik.newPhoto({"id":8172341,"src":"010-tranquil-sea_thumb.jpg","galleries_id":436464,"server_id":32,"link":"photo_8172341.html","width":130,"caption":"Very Highly Commended: Tranquil Sea","height":98});
															thumbnails[8172431] = clik.newPhoto({"id":8172431,"src":"037-Perch-Rock-Lighthouse_thumb.jpg","galleries_id":436464,"server_id":32,"link":"photo_8172431.html","width":130,"caption":"Very Highly Commended: Perch Rock Lighthouse","height":98});
															thumbnails[8172504] = clik.newPhoto({"id":8172504,"src":"007-Stalking-Lioness-at-Dawn_thumb.jpg","galleries_id":436460,"server_id":32,"link":"photo_8172504.html","width":130,"caption":"Very Highly Commended: Stalking Lioness at Dawn","height":98});
															thumbnails[8172507] = clik.newPhoto({"id":8172507,"src":"009-Cheetah-in-the-Grass_thumb.jpg","galleries_id":436460,"server_id":32,"link":"photo_8172507.html","width":130,"caption":"Very Highly Commended: Cheetah in the Grass","height":98});
															thumbnails[8172516] = clik.newPhoto({"id":8172516,"src":"022-Mallards-Turf-war_thumb.jpg","galleries_id":436460,"server_id":32,"link":"photo_8172516.html","width":130,"caption":"Very Highly Commended: Mallard's Turf Wars","height":98});
															thumbnails[8172529] = clik.newPhoto({"id":8172529,"src":"026-male-lion-licking-his-lips_thumb.jpg","galleries_id":436460,"server_id":32,"link":"photo_8172529.html","width":130,"caption":"Very Highly Commended: Male Lion Licking His Lips  ","height":98});
															thumbnails[8172061] = clik.newPhoto({"id":8172061,"src":"017-dahlia-fire-and-brimstone_thumb.jpg","galleries_id":436459,"server_id":32,"link":"photo_8172061.html","width":130,"caption":"Highly Commended: Dahila Fire & Brimstone","height":98});
															thumbnails[8172073] = clik.newPhoto({"id":8172073,"src":"022-Threatening-Mandrill_thumb.jpg","galleries_id":436459,"server_id":32,"link":"photo_8172073.html","width":130,"caption":"Highly Commended: Threatening Mandrill ","height":98});
															thumbnails[8172152] = clik.newPhoto({"id":8172152,"src":"047-LIon-at-Sunrise_thumb.jpg","galleries_id":436459,"server_id":32,"link":"photo_8172152.html","width":130,"caption":"Highly Commended: Dawn Patrol","height":98});
															thumbnails[8172160] = clik.newPhoto({"id":8172160,"src":"019-Wall-Art---Adge-Langadoc_thumb.jpg","galleries_id":436465,"server_id":32,"link":"photo_8172160.html","width":130,"caption":"Highly Commended: Wall Art ~ Agde, Langedoc","height":98});
															thumbnails[8172167] = clik.newPhoto({"id":8172167,"src":"006-My-first-Portrait_thumb.jpg","galleries_id":436463,"server_id":32,"link":"photo_8172167.html","width":130,"caption":"Highly Commended: My First Portrait","height":98});
															thumbnails[8172181] = clik.newPhoto({"id":8172181,"src":"019-Zebra-Creative_thumb.jpg","galleries_id":436463,"server_id":32,"link":"photo_8172181.html","width":130,"caption":"Highly Commended: Zebra Creative","height":98});
															thumbnails[8172347] = clik.newPhoto({"id":8172347,"src":"017-chemical-plant_thumb.jpg","galleries_id":436464,"server_id":32,"link":"photo_8172347.html","width":130,"caption":"Highlt Commended: Chemical Plant","height":98});
															thumbnails[8172503] = clik.newPhoto({"id":8172503,"src":"005-jackal_thumb.jpg","galleries_id":436460,"server_id":32,"link":"photo_8172503.html","width":130,"caption":"Highly Commended: Jackal","height":98});
															thumbnails[8172510] = clik.newPhoto({"id":8172510,"src":"011-Prowling-Male-Leopard_thumb.jpg","galleries_id":436460,"server_id":32,"link":"photo_8172510.html","width":130,"caption":"Highly Commended: Prowling Male Leopard","height":98});
															thumbnails[8172015] = clik.newPhoto({"id":8172015,"src":"001-orchid_thumb.jpg","galleries_id":436459,"server_id":32,"link":"photo_8172015.html","width":130,"caption":"Commended: Orchid","height":98});
															thumbnails[8172065] = clik.newPhoto({"id":8172065,"src":"021-South-African-Owl-Cap_thumb.jpg","galleries_id":436459,"server_id":32,"link":"photo_8172065.html","width":130,"caption":"Commended: South Afican Owl","height":98});
															thumbnails[8172084] = clik.newPhoto({"id":8172084,"src":"040-Fighting-the-Current_thumb.jpg","galleries_id":436459,"server_id":32,"link":"photo_8172084.html","width":130,"caption":"Commended: Fighting the Current","height":98});
															thumbnails[8172090] = clik.newPhoto({"id":8172090,"src":"042-White-Cheeked-Pintai-Capl_thumb.jpg","galleries_id":436459,"server_id":32,"link":"photo_8172090.html","width":130,"caption":"Commended: White-Cheeked Pintail","height":98});
															thumbnails[8172157] = clik.newPhoto({"id":8172157,"src":"006-Bavarian-Window_thumb.jpg","galleries_id":436465,"server_id":32,"link":"photo_8172157.html","width":130,"caption":"Commended: Bavarian Window","height":98});
															thumbnails[8172179] = clik.newPhoto({"id":8172179,"src":"017-Tina_thumb.jpg","galleries_id":436463,"server_id":32,"link":"photo_8172179.html","width":130,"caption":"Commended: Tina","height":98});
															thumbnails[8172182] = clik.newPhoto({"id":8172182,"src":"021-Masai-Giraffe_thumb.jpg","galleries_id":436463,"server_id":32,"link":"photo_8172182.html","width":130,"caption":"Commended: Masai Giraffe","height":98});
															thumbnails[8172187] = clik.newPhoto({"id":8172187,"src":"023-Old-soldier_thumb.jpg","galleries_id":436463,"server_id":32,"link":"photo_8172187.html","width":130,"caption":"Commended: Old Soldier","height":98});
															thumbnails[8172190] = clik.newPhoto({"id":8172190,"src":"024-Cat_thumb.jpg","galleries_id":436463,"server_id":32,"link":"photo_8172190.html","width":130,"caption":"Commended: Cat","height":98});
															thumbnails[8172192] = clik.newPhoto({"id":8172192,"src":"028-The-Stoker_thumb.jpg","galleries_id":436463,"server_id":32,"link":"photo_8172192.html","width":130,"caption":"Commended: The Stoker","height":98});
															thumbnails[8172343] = clik.newPhoto({"id":8172343,"src":"011-Across-the-divide_thumb.jpg","galleries_id":436464,"server_id":32,"link":"photo_8172343.html","width":130,"caption":"Commended: Across the Divide","height":98});
															thumbnails[8172350] = clik.newPhoto({"id":8172350,"src":"027-Skeleton-Coast_thumb.jpg","galleries_id":436464,"server_id":32,"link":"photo_8172350.html","width":130,"caption":"Commended: Skeleton Coast","height":87});
															thumbnails[8172353] = clik.newPhoto({"id":8172353,"src":"030-sunrise-happisburgh-norfolk_thumb.jpg","galleries_id":436464,"server_id":32,"link":"photo_8172353.html","width":130,"caption":"Commended: Sunrise Happisburgh Norfolk","height":98});
															thumbnails[8172498] = clik.newPhoto({"id":8172498,"src":"002-Black-Winged-Stilt_thumb.jpg","galleries_id":436460,"server_id":32,"link":"photo_8172498.html","width":130,"caption":"Commended: Black Winged Stilt","height":98});
															thumbnails[8172500] = clik.newPhoto({"id":8172500,"src":"003-Red-Kite_thumb.jpg","galleries_id":436460,"server_id":32,"link":"photo_8172500.html","width":130,"caption":"Commended: Red Kite","height":98});
															thumbnails[8172511] = clik.newPhoto({"id":8172511,"src":"016-Three-Vultures_thumb.jpg","galleries_id":436460,"server_id":32,"link":"photo_8172511.html","width":130,"caption":"Commended: Three Vultures","height":98});
															thumbnails[8172513] = clik.newPhoto({"id":8172513,"src":"020-elephant-with-carf_thumb.jpg","galleries_id":436460,"server_id":32,"link":"photo_8172513.html","width":130,"caption":"Commended: Elephant with Calf","height":98});
															thumbnails[8172518] = clik.newPhoto({"id":8172518,"src":"023-Black-Belied-Bustard_thumb.jpg","galleries_id":436460,"server_id":32,"link":"photo_8172518.html","width":130,"caption":"Commended: Black Bellied Bustard","height":98});
															thumbnails[8172530] = clik.newPhoto({"id":8172530,"src":"029-Wart-Hog-with-Piglets_thumb.jpg","galleries_id":436460,"server_id":32,"link":"photo_8172530.html","width":130,"caption":"Commended: Wart Hog with Piglets","height":98});
															thumbnails[7145907] = clik.newPhoto({"id":7145907,"src":"Baboon-with-Infant_thumb.jpg","galleries_id":386239,"server_id":32,"link":"photo_7145907.html","width":130,"caption":"First:  Baboon with Infant","height":98});
															thumbnails[7160107] = clik.newPhoto({"id":7160107,"src":"Prowling_Lioness_thumb.jpg","galleries_id":386244,"server_id":32,"link":"photo_7160107.html","width":130,"caption":"First: Prowling Lioness","height":98});
															thumbnails[7174493] = clik.newPhoto({"id":7174493,"src":"Hyena-Running_thumb.jpg","galleries_id":387665,"server_id":32,"link":"photo_7174493.html","width":130,"caption":"First: Hyena Running","height":98});
															thumbnails[7314392] = clik.newPhoto({"id":7314392,"src":"Peace-Lilly_thumb.jpg","galleries_id":395651,"server_id":32,"link":"photo_7314392.html","width":130,"caption":"First: Peace Lilly","height":98});
															thumbnails[7420021] = clik.newPhoto({"id":7420021,"src":"Digging-In_thumb.jpg","galleries_id":402132,"server_id":32,"link":"photo_7420021.html","width":130,"caption":"1st : Digging In","height":98});
															thumbnails[7508667] = clik.newPhoto({"id":7508667,"src":"1st-Blot-on-the-Landscape_thumb.jpg","galleries_id":407149,"server_id":32,"link":"photo_7508667.html","width":130,"caption":"1st: Blot on the Landscape","height":98});
															thumbnails[8744144] = clik.newPhoto({"id":8744144,"src":"1stThe-hairdressers-car_thumb.jpg","galleries_id":460677,"server_id":32,"link":"photo_8744144.html","width":130,"caption":"1st: The Hairdresser's Car","height":98});
															thumbnails[8744287] = clik.newPhoto({"id":8744287,"src":"1st_Non-parla-inglese_thumb.jpg","galleries_id":460669,"server_id":32,"link":"photo_8744287.html","width":130,"caption":"1st: Non paria inglese ","height":98});
															thumbnails[8744345] = clik.newPhoto({"id":8744345,"src":"1st-brothers_thumb.jpg","galleries_id":460678,"server_id":32,"link":"photo_8744345.html","width":130,"caption":"1st: Brothers","height":87});
															thumbnails[8744354] = clik.newPhoto({"id":8744354,"src":"1st-seaweed-in-the-sand_thumb.jpg","galleries_id":460679,"server_id":32,"link":"photo_8744354.html","width":52,"caption":"1st: Seaweed in the Sand","height":100});
															thumbnails[9033816] = clik.newPhoto({"id":9033816,"src":"0018_thumb.jpg","galleries_id":475970,"server_id":32,"link":"photo_9033816.html","width":130,"caption":"1st: Walkway","height":98});
															thumbnails[9033892] = clik.newPhoto({"id":9033892,"src":"0037_thumb.jpg","galleries_id":475969,"server_id":32,"link":"photo_9033892.html","width":75,"caption":"1st: Up Down and Across","height":100});
															thumbnails[9033943] = clik.newPhoto({"id":9033943,"src":"00151_thumb.jpg","galleries_id":475972,"server_id":32,"link":"photo_9033943.html","width":130,"caption":"1st: Rustic Charm","height":98});
															thumbnails[9034061] = clik.newPhoto({"id":9034061,"src":"C60_F57_02_Ian_Yellow_Billed_Oxpecker_thumb.jpg","galleries_id":475971,"server_id":32,"link":"photo_9034061.html","width":122,"caption":"1st: Yellow Billed Oxpecker","height":100});
															thumbnails[7145979] = clik.newPhoto({"id":7145979,"src":"Lilac-Breasted-Roller_thumb.jpg","galleries_id":386239,"server_id":32,"link":"photo_7145979.html","width":130,"caption":"Second= : Lilac Breasted Roller","height":98});
															thumbnails[7146022] = clik.newPhoto({"id":7146022,"src":"Heather_thumb.jpg","galleries_id":386244,"server_id":32,"link":"photo_7146022.html","width":130,"caption":"Second: Heather","height":98});
															thumbnails[7174488] = clik.newPhoto({"id":7174488,"src":"Black-Winged-Stilt_thumb.jpg","galleries_id":387665,"server_id":32,"link":"photo_7174488.html","width":130,"caption":"Second: Black Winged Stilt","height":98});
															thumbnails[7314335] = clik.newPhoto({"id":7314335,"src":"Leopard_thumb.jpg","galleries_id":395651,"server_id":32,"link":"photo_7314335.html","width":130,"caption":"Second: Leopard","height":98});
															thumbnails[7420029] = clik.newPhoto({"id":7420029,"src":"Lion-at-Sunrise_thumb.jpg","galleries_id":402132,"server_id":32,"link":"photo_7420029.html","width":130,"caption":"2nd : Lion at Sunrise","height":98});
															thumbnails[7508668] = clik.newPhoto({"id":7508668,"src":"2nd-Copper-Mine-Chimney-Peckforton_thumb.jpg","galleries_id":407149,"server_id":32,"link":"photo_7508668.html","width":75,"caption":"2nd: Copper Mine Chimney ~ Peckforton","height":100});
															thumbnails[8744155] = clik.newPhoto({"id":8744155,"src":"2nd-Threatening-Mandrill_thumb.jpg","galleries_id":460677,"server_id":32,"link":"photo_8744155.html","width":130,"caption":"2nd: Threatening Mandrill","height":98});
															thumbnails[8744290] = clik.newPhoto({"id":8744290,"src":"2nd_A-happy-home_thumb.jpg","galleries_id":460669,"server_id":32,"link":"photo_8744290.html","width":130,"caption":"2nd: A Happy Home","height":98});
															thumbnails[8744346] = clik.newPhoto({"id":8744346,"src":"2nd-pigeon_thumb.jpg","galleries_id":460678,"server_id":32,"link":"photo_8744346.html","width":130,"caption":"2nd: Pigeon","height":93});
															thumbnails[8744363] = clik.newPhoto({"id":8744363,"src":"2ndPied-Kingfisher-Hovering_thumb.jpg","galleries_id":460679,"server_id":32,"link":"photo_8744363.html","width":130,"caption":"2nd: Pied Kingfisher Hovering","height":98});
															thumbnails[9033821] = clik.newPhoto({"id":9033821,"src":"0019_thumb.jpg","galleries_id":475970,"server_id":32,"link":"photo_9033821.html","width":130,"caption":"2nd: Were Jaming","height":98});
															thumbnails[9033889] = clik.newPhoto({"id":9033889,"src":"0033_thumb.jpg","galleries_id":475969,"server_id":32,"link":"photo_9033889.html","width":130,"caption":"2nd: Warthog Piglets at Play","height":98});
															thumbnails[9033938] = clik.newPhoto({"id":9033938,"src":"00071_thumb.jpg","galleries_id":475972,"server_id":32,"link":"photo_9033938.html","width":130,"caption":"2nd: Central Locking","height":98});
															thumbnails[9034080] = clik.newPhoto({"id":9034080,"src":"0038_thumb.jpg","galleries_id":475971,"server_id":32,"link":"photo_9034080.html","width":130,"caption":"2nd Lion with Buffalo","height":98});
															thumbnails[7145980] = clik.newPhoto({"id":7145980,"src":"Soldier-in-the-Shadows_thumb.jpg","galleries_id":386239,"server_id":32,"link":"photo_7145980.html","width":130,"caption":"Second= : Soldier in the Shadows","height":98});
															thumbnails[7146000] = clik.newPhoto({"id":7146000,"src":"Wilf-Paddon-on-Sandy_thumb.jpg","galleries_id":386239,"server_id":32,"link":"photo_7146000.html","width":130,"caption":"Second= : Wilf Paddon on Sandy","height":98});
															thumbnails[7160103] = clik.newPhoto({"id":7160103,"src":"Phil_Mercer__thumb.jpg","galleries_id":386244,"server_id":32,"link":"photo_7160103.html","width":130,"caption":"Third: Phil Mercer","height":98});
															thumbnails[7174503] = clik.newPhoto({"id":7174503,"src":"Topi-Drinking_thumb.jpg","galleries_id":387665,"server_id":32,"link":"photo_7174503.html","width":130,"caption":"Third: Topi Drinking","height":98});
															thumbnails[7314240] = clik.newPhoto({"id":7314240,"src":"City-Heights_thumb.jpg","galleries_id":395651,"server_id":32,"link":"photo_7314240.html","width":130,"caption":"Third: City Heights","height":98});
															thumbnails[7420014] = clik.newPhoto({"id":7420014,"src":"Autumn_thumb.jpg","galleries_id":402132,"server_id":32,"link":"photo_7420014.html","width":130,"caption":"3rd : Autumn","height":98});
															thumbnails[7508669] = clik.newPhoto({"id":7508669,"src":"3rd-Aushwitz-2---Birkenau_thumb.jpg","galleries_id":407149,"server_id":32,"link":"photo_7508669.html","width":130,"caption":"3rd: Aushwitz 2 ~ Birkenau","height":98});
															thumbnails[8744163] = clik.newPhoto({"id":8744163,"src":"3rd-Wheelie_thumb.jpg","galleries_id":460677,"server_id":32,"link":"photo_8744163.html","width":130,"caption":"3rd: Wheelie","height":87});
															thumbnails[8744292] = clik.newPhoto({"id":8744292,"src":"3rd_The-colours-of-Burano_thumb.jpg","galleries_id":460669,"server_id":32,"link":"photo_8744292.html","width":130,"caption":"3rd: The Colours of Burano","height":98});
															thumbnails[8744347] = clik.newPhoto({"id":8744347,"src":"3rd-Caiman-lizard_thumb.jpg","galleries_id":460678,"server_id":32,"link":"photo_8744347.html","width":130,"caption":"3rd: Caiman Lizard","height":98});
															thumbnails[8744365] = clik.newPhoto({"id":8744365,"src":"3eThis-is-for-Money_thumb.jpg","galleries_id":460679,"server_id":32,"link":"photo_8744365.html","width":130,"caption":"3rd=: This is for Money","height":98});
															thumbnails[9033812] = clik.newPhoto({"id":9033812,"src":"0007_thumb.jpg","galleries_id":475970,"server_id":32,"link":"photo_9033812.html","width":130,"caption":"3rd: Sempervivum","height":98});
															thumbnails[9033884] = clik.newPhoto({"id":9033884,"src":"0022_thumb.jpg","galleries_id":475969,"server_id":32,"link":"photo_9033884.html","width":130,"caption":"3rd: Memories of France ","height":98});
															thumbnails[9033934] = clik.newPhoto({"id":9033934,"src":"0004_thumb.jpg","galleries_id":475972,"server_id":32,"link":"photo_9033934.html","width":130,"caption":"3rd Driving Home for Christmas","height":98});
															thumbnails[9034087] = clik.newPhoto({"id":9034087,"src":"0051_thumb.jpg","galleries_id":475971,"server_id":32,"link":"photo_9034087.html","width":130,"caption":"3rd: Yellow Throated Longclaw","height":98});
															thumbnails[8744364] = clik.newPhoto({"id":8744364,"src":"3rd-Barbary_Macaque_and_Baby_thumb.jpg","galleries_id":460679,"server_id":32,"link":"photo_8744364.html","width":87,"caption":"3rd=: Barbary Macque and Baby","height":100});
															thumbnails[7146016] = clik.newPhoto({"id":7146016,"src":"Couples_thumb.jpg","galleries_id":386244,"server_id":32,"link":"photo_7146016.html","width":130,"caption":"Fourth: Couples","height":98});
															thumbnails[7174492] = clik.newPhoto({"id":7174492,"src":"Gateway_thumb.jpg","galleries_id":387665,"server_id":32,"link":"photo_7174492.html","width":130,"caption":"Fourth: Gateway","height":98});
															thumbnails[7314245] = clik.newPhoto({"id":7314245,"src":"Common-Toad_thumb.jpg","galleries_id":395651,"server_id":32,"link":"photo_7314245.html","width":130,"caption":"Fourth: Common Toad","height":98});
															thumbnails[7420010] = clik.newPhoto({"id":7420010,"src":"Across-the-divide_thumb.jpg","galleries_id":402132,"server_id":32,"link":"photo_7420010.html","width":130,"caption":"4th : Accross the Divide","height":98});
															thumbnails[7508670] = clik.newPhoto({"id":7508670,"src":"4th-ICI-chimneys-winnington_thumb.jpg","galleries_id":407149,"server_id":32,"link":"photo_7508670.html","width":130,"caption":"4th: ICI Chimneys ~ Winnington","height":98});
															thumbnails[8744165] = clik.newPhoto({"id":8744165,"src":"4th-Swan-Drop_thumb.jpg","galleries_id":460677,"server_id":32,"link":"photo_8744165.html","width":130,"caption":"4th: Swan Drop","height":87});
															thumbnails[8744343] = clik.newPhoto({"id":8744343,"src":"4e_Lone-Gondola_thumb.jpg","galleries_id":460669,"server_id":32,"link":"photo_8744343.html","width":130,"caption":"4th: Lone Gondola ","height":98});
															thumbnails[8744349] = clik.newPhoto({"id":8744349,"src":"4e-Foraging-Jay_thumb.jpg","galleries_id":460678,"server_id":32,"link":"photo_8744349.html","width":130,"caption":"4th=: Foraging Jay ","height":98});
															thumbnails[9033809] = clik.newPhoto({"id":9033809,"src":"0006_thumb.jpg","galleries_id":475970,"server_id":32,"link":"photo_9033809.html","width":75,"caption":"4th: Sea Front","height":100});
															thumbnails[9033894] = clik.newPhoto({"id":9033894,"src":"0047_thumb.jpg","galleries_id":475969,"server_id":32,"link":"photo_9033894.html","width":130,"caption":"4th: From Out the Mist","height":90});
															thumbnails[9033941] = clik.newPhoto({"id":9033941,"src":"00081_thumb.jpg","galleries_id":475972,"server_id":32,"link":"photo_9033941.html","width":130,"caption":"4th: Floating Feather","height":98});
															thumbnails[9034068] = clik.newPhoto({"id":9034068,"src":"00331_thumb.jpg","galleries_id":475971,"server_id":32,"link":"photo_9034068.html","width":130,"caption":"4th: Liverpool Metropolitan Cathederal","height":98});
															thumbnails[8744350] = clik.newPhoto({"id":8744350,"src":"4e-peregrin_thumb.jpg","galleries_id":460678,"server_id":32,"link":"photo_8744350.html","width":130,"caption":"4th= Peregrin","height":86});
															thumbnails[7146004] = clik.newPhoto({"id":7146004,"src":"Greyhound-Substitute_thumb.jpg","galleries_id":386239,"server_id":32,"link":"photo_7146004.html","width":130,"caption":"Fifth= : Greyhound Substitute","height":98});
															thumbnails[7160110] = clik.newPhoto({"id":7160110,"src":"Vulture_on_Ledge_thumb.jpg","galleries_id":386244,"server_id":32,"link":"photo_7160110.html","width":130,"caption":"Fifth: Vulture on Ledge","height":98});
															thumbnails[7174495] = clik.newPhoto({"id":7174495,"src":"Lighthouse_thumb.jpg","galleries_id":387665,"server_id":32,"link":"photo_7174495.html","width":130,"caption":"Fifth: Lighthouse","height":98});
															thumbnails[7314228] = clik.newPhoto({"id":7314228,"src":"African-Children_thumb.jpg","galleries_id":395651,"server_id":32,"link":"photo_7314228.html","width":130,"caption":"Fifth: African Children","height":98});
															thumbnails[7420031] = clik.newPhoto({"id":7420031,"src":"Patroling-Cheetah_thumb.jpg","galleries_id":402132,"server_id":32,"link":"photo_7420031.html","width":130,"caption":"Commended : Patroling Cheetah","height":98});
															thumbnails[7508671] = clik.newPhoto({"id":7508671,"src":"5th-Beach-Chimneys_thumb.jpg","galleries_id":407149,"server_id":32,"link":"photo_7508671.html","width":130,"caption":"5th: Beach Chimneys","height":95});
															thumbnails[8744170] = clik.newPhoto({"id":8744170,"src":"5e-wild-pony-snowdonia_thumb.jpg","galleries_id":460677,"server_id":32,"link":"photo_8744170.html","width":130,"caption":"5th=: Wild Ponies~ Snowdonia","height":98});
															thumbnails[8744295] = clik.newPhoto({"id":8744295,"src":"4e_spreklia_thumb.jpg","galleries_id":460669,"server_id":32,"link":"photo_8744295.html","width":130,"caption":"5th: Spreklia","height":98});
															thumbnails[8744366] = clik.newPhoto({"id":8744366,"src":"5e-Full-Throttle_thumb.jpg","galleries_id":460679,"server_id":32,"link":"photo_8744366.html","width":130,"caption":"5th=: Full Throttle","height":98});
															thumbnails[9033814] = clik.newPhoto({"id":9033814,"src":"0015_thumb.jpg","galleries_id":475970,"server_id":32,"link":"photo_9033814.html","width":130,"caption":"5th: Windsurfer at the Turn","height":98});
															thumbnails[9033867] = clik.newPhoto({"id":9033867,"src":"0008_thumb.jpg","galleries_id":475969,"server_id":32,"link":"photo_9033867.html","width":130,"caption":"5th: Yellow Billed Oxpeckers on Buffalo","height":98});
															thumbnails[9033927] = clik.newPhoto({"id":9033927,"src":"0003_thumb.jpg","galleries_id":475972,"server_id":32,"link":"photo_9033927.html","width":130,"caption":"5th: Blue Beetle ","height":98});
															thumbnails[9034031] = clik.newPhoto({"id":9034031,"src":"0025_thumb.jpg","galleries_id":475971,"server_id":32,"link":"photo_9034031.html","width":130,"caption":"5th:Helen","height":98});
															thumbnails[7146008] = clik.newPhoto({"id":7146008,"src":"Patroling-Cheetah-Coalition_thumb.jpg","galleries_id":386239,"server_id":32,"link":"photo_7146008.html","width":130,"caption":"Fifth= : Patroling Cheetah Coalition","height":98});
															thumbnails[8744226] = clik.newPhoto({"id":8744226,"src":"5e-Hiding-Heron_thumb.jpg","galleries_id":460677,"server_id":32,"link":"photo_8744226.html","width":130,"caption":"5th= Hiding Heron","height":53});
															thumbnails[8744367] = clik.newPhoto({"id":8744367,"src":"5e-Ground-Hornbill-Feeding_thumb.jpg","galleries_id":460679,"server_id":32,"link":"photo_8744367.html","width":130,"caption":"5th=: Ground Hornbill Feeding ","height":98});
															thumbnails[7146005] = clik.newPhoto({"id":7146005,"src":"Red-KIte_thumb.jpg","galleries_id":386239,"server_id":32,"link":"photo_7146005.html","width":130,"caption":"Fifth= : Red Kite","height":98});
															thumbnails[7174541] = clik.newPhoto({"id":7174541,"src":"Great-Spotted-Woodpecker_thumb.jpg","galleries_id":387665,"server_id":32,"link":"photo_7174541.html","width":130,"caption":"Commended: Great Spotted Woodpecker","height":98});
															thumbnails[7174474] = clik.newPhoto({"id":7174474,"src":"Sunrise-Happisbough-bee_thumb.jpg","galleries_id":387665,"server_id":32,"link":"photo_7174474.html","width":130,"caption":"Commended: Sunrise Happisborough Beech ","height":98});
															thumbnails[7508676] = clik.newPhoto({"id":7508676,"src":"HC-Chimney-at-Sunset_thumb.jpg","galleries_id":407149,"server_id":32,"link":"photo_7508676.html","width":130,"caption":"Highly Commended: Chimneys at Sunset","height":98});
															thumbnails[9033851] = clik.newPhoto({"id":9033851,"src":"0001_thumb.jpg","galleries_id":475969,"server_id":32,"link":"photo_9033851.html","width":130,"caption":"Commended: KeepYour Eyes on the Ball","height":79});
															thumbnails[9033879] = clik.newPhoto({"id":9033879,"src":"00181_thumb.jpg","galleries_id":475969,"server_id":32,"link":"photo_9033879.html","width":130,"caption":"Commended: Goal!","height":64});
															thumbnails[9033952] = clik.newPhoto({"id":9033952,"src":"00182_thumb.jpg","galleries_id":475971,"server_id":32,"link":"photo_9033952.html","width":130,"caption":"Commended: Short Stop","height":91});
															thumbnails[9033959] = clik.newPhoto({"id":9033959,"src":"00082_thumb.jpg","galleries_id":475971,"server_id":32,"link":"photo_9033959.html","width":130,"caption":"Commended: Late Night Shopping","height":98});
															thumbnails[9034023] = clik.newPhoto({"id":9034023,"src":"0020_thumb.jpg","galleries_id":475971,"server_id":32,"link":"photo_9034023.html","width":130,"caption":"Commended: Heron","height":98});
															thumbnails[7508678] = clik.newPhoto({"id":7508678,"src":"HC-Ruin-Porth-Ysgaden_thumb.jpg","galleries_id":407149,"server_id":32,"link":"photo_7508678.html","width":130,"caption":"Highly Commended: Ruin Porth Ysgaden","height":98});
															thumbnails[9033859] = clik.newPhoto({"id":9033859,"src":"0005_thumb.jpg","galleries_id":475969,"server_id":32,"link":"photo_9033859.html","width":130,"caption":"Commended: Three Banded Plover","height":98});
															thumbnails[9033966] = clik.newPhoto({"id":9033966,"src":"00191_thumb.jpg","galleries_id":475971,"server_id":32,"link":"photo_9033966.html","width":130,"caption":"Commended: Goldfinch","height":98});
															thumbnails[7174494] = clik.newPhoto({"id":7174494,"src":"Just-a-Warning_thumb.jpg","galleries_id":387665,"server_id":32,"link":"photo_7174494.html","width":130,"caption":"Commended: Just a Warning","height":98});
															thumbnails[7508674] = clik.newPhoto({"id":7508674,"src":"C-Chateau-Chimneys_thumb.jpg","galleries_id":407149,"server_id":32,"link":"photo_7508674.html","width":130,"caption":"Commended: Chateau Chimneys","height":95});
															thumbnails[7420038] = clik.newPhoto({"id":7420038,"src":"The-King_thumb.jpg","galleries_id":402132,"server_id":32,"link":"photo_7420038.html","width":130,"caption":"Commended : The King","height":98});
															thumbnails[7420036] = clik.newPhoto({"id":7420036,"src":"Soaring-Ruppells-Griffon-Vulture_thumb.jpg","galleries_id":402132,"server_id":32,"link":"photo_7420036.html","width":130,"caption":"Commended : Soaring Ruppell's Griffon Vulture","height":92});
															thumbnails[7420023] = clik.newPhoto({"id":7420023,"src":"Eyes-on-the-Ball_thumb.jpg","galleries_id":402132,"server_id":32,"link":"photo_7420023.html","width":130,"caption":"Commended : Eyes on the Ball","height":98});
															thumbnails[7314443] = clik.newPhoto({"id":7314443,"src":"Roofline-NRM-York_thumb.jpg","galleries_id":395651,"server_id":32,"link":"photo_7314443.html","width":130,"caption":"Commended: Roofline ~ NRM York","height":98});
															thumbnails[7420018] = clik.newPhoto({"id":7420018,"src":"Brambling_thumb.jpg","galleries_id":402132,"server_id":32,"link":"photo_7420018.html","width":130,"caption":"Commended : Brambling","height":98});
															thumbnails[7314384] = clik.newPhoto({"id":7314384,"src":"Mute-Swan-Take-Off_thumb.jpg","galleries_id":387665,"server_id":32,"link":"photo_7314384.html","width":130,"caption":"Commended: Mute Swan Take Off","height":98});
															thumbnails[7174500] = clik.newPhoto({"id":7174500,"src":"Serval-Cat_thumb.jpg","galleries_id":387665,"server_id":32,"link":"photo_7174500.html","width":130,"caption":"Commended: Serval Cat","height":98});
															thumbnails[7314354] = clik.newPhoto({"id":7314354,"src":"Hindu-Pilgrims-at-Madurai_thumb.jpg","galleries_id":395651,"server_id":32,"link":"photo_7314354.html","width":130,"caption":"Commended: Hidu Pilgrims at Madurai","height":83});
															thumbnails[7314356] = clik.newPhoto({"id":7314356,"src":"Insect-Feeding_thumb.jpg","galleries_id":395651,"server_id":32,"link":"photo_7314356.html","width":130,"caption":"Commended: Insect Feeding","height":98});
															thumbnails[7174498] = clik.newPhoto({"id":7174498,"src":"Over-the-last_thumb.jpg","galleries_id":387665,"server_id":32,"link":"photo_7174498.html","width":130,"caption":"Commended: Over the Last","height":98});
															thumbnails[7314223] = clik.newPhoto({"id":7314223,"src":"Helen_thumb.jpg","galleries_id":395651,"server_id":32,"link":"photo_7314223.html","width":130,"caption":"Commended: Helen","height":98});
															thumbnails[7314359] = clik.newPhoto({"id":7314359,"src":"Lappet-Faced-Vulture_thumb.jpg","galleries_id":395651,"server_id":32,"link":"photo_7314359.html","width":130,"caption":"Commended: Lappet Faced Vulture","height":98});
															thumbnails[7314447] = clik.newPhoto({"id":7314447,"src":"Throttle_thumb.jpg","galleries_id":395651,"server_id":32,"link":"photo_7314447.html","width":130,"caption":"Commended: On Full Throtle ","height":98});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[436462] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Annuals 2011","link":"gallery_436462.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"8172530,8172529,8172520,8172518,8172516,8172513,8172511,8172510,8172507,8172504","id":436462,"singleSection":false});				  						galleries[365264] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Competition Results","link":"gallery_365264.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"9034087,9034080,9034068,9034061,9034031,9034023,9033966,9033959,9033952,9033943","id":365264,"singleSection":false});				  						galleries[475971] = clik.newGallery({"parentGallery":365264,"usePopups":false,"title":"January 2012 Advanced DPI","link":"gallery_475971.html","maxRecords":0.0,"photoIDs":[9034061.0,9034080.0,9034087.0,9034068.0,9034031.0,9033952.0,9033959.0,9034023.0,9033966.0],"skipIndex":0,"section_code":"gallery","featured_images":"9034087,9034080,9034068,9034061,9034031,9034023,9033966,9033959,9033952","id":475971,"singleSection":false});				  						galleries[475972] = clik.newGallery({"parentGallery":365264,"usePopups":false,"title":"January 2012 Beginner DPI","link":"gallery_475972.html","maxRecords":0.0,"photoIDs":[9033943.0,9033938.0,9033934.0,9033941.0,9033927.0],"skipIndex":0,"section_code":"gallery","featured_images":"9033943,9033941,9033938,9033934,9033927","id":475972,"singleSection":false});				  						galleries[475969] = clik.newGallery({"parentGallery":365264,"usePopups":false,"title":"December 2011 Advanced DPI","link":"gallery_475969.html","maxRecords":0.0,"photoIDs":[9033892.0,9033889.0,9033884.0,9033894.0,9033867.0,9033851.0,9033879.0,9033859.0],"skipIndex":0,"section_code":"gallery","featured_images":"9033894,9033892,9033889,9033884,9033879,9033867,9033859,9033851","id":475969,"singleSection":false});				  						galleries[475970] = clik.newGallery({"parentGallery":365264,"usePopups":false,"title":"December 2011 Beginner DPI","link":"gallery_475970.html","maxRecords":0.0,"photoIDs":[9033816.0,9033821.0,9033812.0,9033809.0,9033814.0],"skipIndex":0,"section_code":"gallery","featured_images":"9033821,9033816,9033814,9033812,9033809","id":475970,"singleSection":false});				  						galleries[460679] = clik.newGallery({"parentGallery":365264,"usePopups":false,"title":"November 2011 Advanced DPI","link":"gallery_460679.html","maxRecords":0.0,"photoIDs":[8744354.0,8744363.0,8744365.0,8744364.0,8744366.0,8744367.0],"skipIndex":0,"section_code":"gallery","featured_images":"8744367,8744366,8744365,8744364,8744363,8744354","id":460679,"singleSection":false});				  						galleries[460678] = clik.newGallery({"parentGallery":365264,"usePopups":false,"title":"November 2011 Beginner DPI","link":"gallery_460678.html","maxRecords":0.0,"photoIDs":[8744345.0,8744346.0,8744347.0,8744349.0,8744350.0],"skipIndex":0,"section_code":"gallery","featured_images":"8744350,8744349,8744347,8744346,8744345","id":460678,"singleSection":false});				  						galleries[460677] = clik.newGallery({"parentGallery":365264,"usePopups":false,"title":"September 2011 Advanced DPI","link":"gallery_460677.html","maxRecords":0.0,"photoIDs":[8744144.0,8744155.0,8744163.0,8744165.0,8744170.0,8744226.0],"skipIndex":0,"section_code":"gallery","featured_images":"8744226,8744170,8744165,8744163,8744155,8744144","id":460677,"singleSection":false});				  						galleries[460669] = clik.newGallery({"parentGallery":365264,"usePopups":false,"title":"September 2011 Beginner DPI","link":"gallery_460669.html","maxRecords":0.0,"photoIDs":[8744287.0,8744290.0,8744292.0,8744343.0,8744295.0],"skipIndex":0,"section_code":"gallery","featured_images":"8744343,8744295,8744292,8744290,8744287","id":460669,"singleSection":false});				  						galleries[407149] = clik.newGallery({"parentGallery":365264,"usePopups":false,"title":"Theme Competition ~ Chimneys","link":"gallery_407149.html","maxRecords":0.0,"photoIDs":[7508667.0,7508668.0,7508669.0,7508670.0,7508671.0,7508676.0,7508678.0,7508674.0],"skipIndex":0,"section_code":"gallery","featured_images":"7508678,7508676,7508674,7508671,7508670,7508669,7508668,7508667","id":407149,"singleSection":false});				  						galleries[402132] = clik.newGallery({"parentGallery":365264,"usePopups":false,"title":"February 2011 DPI Competition","link":"gallery_402132.html","maxRecords":0.0,"photoIDs":[7420021.0,7420029.0,7420014.0,7420010.0,7420031.0,7420038.0,7420036.0,7420023.0,7420018.0],"skipIndex":0,"section_code":"gallery","featured_images":"7420038,7420036,7420031,7420029,7420023,7420021,7420018,7420014,7420010","id":402132,"singleSection":false});				  						galleries[395651] = clik.newGallery({"parentGallery":365264,"usePopups":false,"title":"January 2011 DPI Competition","link":"gallery_395651.html","maxRecords":0.0,"photoIDs":[7314392.0,7314335.0,7314240.0,7314245.0,7314228.0,7314443.0,7314354.0,7314356.0,7314223.0,7314359.0,7314447.0],"skipIndex":0,"section_code":"gallery","featured_images":"7314447,7314443,7314392,7314359,7314356,7314354,7314335,7314245,7314240,7314228","id":395651,"singleSection":false});				  						galleries[387665] = clik.newGallery({"parentGallery":365264,"usePopups":false,"title":"December 2010 DPI Competition","link":"gallery_387665.html","maxRecords":0.0,"photoIDs":[7174493.0,7174488.0,7174503.0,7174492.0,7174495.0,7174541.0,7174474.0,7174494.0,7314384.0,7174500.0,7174498.0],"skipIndex":0,"section_code":"gallery","featured_images":"7314384,7174541,7174503,7174500,7174498,7174495,7174494,7174493,7174492,7174488","id":387665,"singleSection":false});				  						galleries[386244] = clik.newGallery({"parentGallery":365264,"usePopups":false,"title":"November 2010 DPI Competition","link":"gallery_386244.html","maxRecords":0.0,"photoIDs":[7160107.0,7146022.0,7160103.0,7146016.0,7160110.0],"skipIndex":0,"section_code":"gallery","featured_images":"7160110,7160107,7160103,7146022,7146016","id":386244,"singleSection":false});				  						galleries[386239] = clik.newGallery({"parentGallery":365264,"usePopups":false,"title":"October 2010 DPI Competition","link":"gallery_386239.html","maxRecords":0.0,"photoIDs":[7145907.0,7145979.0,7145980.0,7146000.0,7146004.0,7146008.0,7146005.0],"skipIndex":0,"section_code":"gallery","featured_images":"7146008,7146005,7146004,7146000,7145980,7145979,7145907","id":386239,"singleSection":false});				  						galleries[436459] = clik.newGallery({"parentGallery":436462,"usePopups":false,"title":" Annual Open","link":"gallery_436459.html","maxRecords":0.0,"photoIDs":[8172052.0,8172079.0,8172086.0,8172061.0,8172073.0,8172152.0,8172015.0,8172065.0,8172084.0,8172090.0],"skipIndex":0,"section_code":"gallery","featured_images":"8172152,8172090,8172086,8172084,8172079,8172073,8172065,8172061,8172052,8172015","id":436459,"singleSection":false});				  						galleries[436465] = clik.newGallery({"parentGallery":436462,"usePopups":false,"title":"Annual Record","link":"gallery_436465.html","maxRecords":0.0,"photoIDs":[8172158.0,8172160.0,8172157.0],"skipIndex":0,"section_code":"gallery","featured_images":"8172160,8172158,8172157","id":436465,"singleSection":false});				  						galleries[436464] = clik.newGallery({"parentGallery":436462,"usePopups":false,"title":"Annual Landscape","link":"gallery_436464.html","maxRecords":0.0,"photoIDs":[8171903.0,8172341.0,8172431.0,8172347.0,8172343.0,8172350.0,8172353.0],"skipIndex":0,"section_code":"gallery","featured_images":"8172431,8172353,8172350,8172347,8172343,8172341,8171903","id":436464,"singleSection":false});				  						galleries[436463] = clik.newGallery({"parentGallery":436462,"usePopups":false,"title":"Annual Portrait","link":"gallery_436463.html","maxRecords":0.0,"photoIDs":[8172174.0,8172161.0,8172167.0,8172181.0,8172179.0,8172182.0,8172187.0,8172190.0,8172192.0],"skipIndex":0,"section_code":"gallery","featured_images":"8172192,8172190,8172187,8172182,8172181,8172179,8172174,8172167,8172161","id":436463,"singleSection":false});				  						galleries[436460] = clik.newGallery({"parentGallery":436462,"usePopups":false,"title":"Annual Natural History","link":"gallery_436460.html","maxRecords":0.0,"photoIDs":[8172520.0,8172504.0,8172507.0,8172516.0,8172529.0,8172503.0,8172510.0,8172498.0,8172500.0,8172511.0,8172513.0,8172518.0,8172530.0],"skipIndex":0,"section_code":"gallery","featured_images":"8172530,8172529,8172520,8172518,8172516,8172513,8172511,8172510,8172507,8172504","id":436460,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '9034061,9033943,9033892,9033816';
imageSets[3] = '9034087,9034080,9034068,9034061,9034031,9034023,9033966,9033959,9033952,9033943,9033941,9033938,9033934,9033927,9033894,9033892,9033889,9033884,9033879,9033867,9033859,9033851,9033821,9033816,9033814,9033812,9033809,8744367,8744366,8744365,8744364,8744363,8744354,8744350,8744349,8744347,8744346,8744345,8744343,8744295,8744292,8744290,8744287,8744226,8744170,8744165,8744163,8744155,8744144,8172530';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/daicymru/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/daicymru/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/daicymru/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/daicymru/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/daicymru/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/daicymru/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/daicymru/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/daicymru/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/daicymru/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/daicymru/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/daicymru/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/daicymru/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/daicymru/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/daicymru/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/daicymru/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/daicymru/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/daicymru/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/daicymru/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/daicymru/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/daicymru/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/daicymru/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/daicymru/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/daicymru/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/daicymru/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/daicymru/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/daicymru/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/daicymru/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 = 'MID-CHESHIRE CAMERA CLUB: ' + 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>';
	}
				
				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>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (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.item_price !== '') {
			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;
	}
}

			

