window.thumbnails = {};
															thumbnails[6569456] = clik.newPhoto({"id":6569456,"src":"REBEIRAO_CLARO_thumb.jpg","galleries_id":360481,"server_id":1,"link":"photo_6569456.html","width":130,"caption":"Man in boat, Ribeirão Claro, Brazil","height":82});
															thumbnails[6569179] = clik.newPhoto({"id":6569179,"src":"PARATY_1_thumb.jpg","galleries_id":360481,"server_id":1,"link":"photo_6569179.html","width":130,"caption":"A horse carriage carries tourists in the colonial town of Paraty.","height":87});
															thumbnails[6569204] = clik.newPhoto({"id":6569204,"src":"PARATY_2_thumb.jpg","galleries_id":360481,"server_id":1,"link":"photo_6569204.html","width":130,"caption":"A woman looks for her mobile phone in the colonial town of Paraty in Brazil.","height":83});
															thumbnails[6569305] = clik.newPhoto({"id":6569305,"src":"PARATY_3_thumb.jpg","galleries_id":360481,"server_id":1,"link":"photo_6569305.html","width":130,"caption":"Paraty, Brazil","height":87});
															thumbnails[6569307] = clik.newPhoto({"id":6569307,"src":"PARATY_4_thumb.jpg","galleries_id":360481,"server_id":1,"link":"photo_6569307.html","width":130,"caption":"Man in red T-shirt, Paraty, Brazil.","height":87});
															thumbnails[6569544] = clik.newPhoto({"id":6569544,"src":"COOLING_OFF_IN_PARIS_thumb.jpg","galleries_id":360481,"server_id":1,"link":"photo_6569544.html","width":130,"caption":"Children cooling off at the Trocadero, Paris, France.","height":83});
															thumbnails[6569566] = clik.newPhoto({"id":6569566,"src":"TROCADERO_PARIS_WEATHER_thumb.jpg","galleries_id":360481,"server_id":1,"link":"photo_6569566.html","width":130,"caption":"Children cooling off at the Trocadero, Paris, France.","height":87});
															thumbnails[6569583] = clik.newPhoto({"id":6569583,"src":"BORNEMOUTH_thumb.jpg","galleries_id":360481,"server_id":1,"link":"photo_6569583.html","width":87,"caption":"Sunbathing in Bornemouth","height":130});
															thumbnails[6560606] = clik.newPhoto({"id":6560606,"src":"Agence_France-Presse01_thumb.jpg","galleries_id":360078,"server_id":1,"link":"photo_6560606.html","width":130,"caption":"Picture take on July 20, 2008 shows the reservoir bed of the Kouris dam, the largest of a network of 107 dams in Cyprus, near the southern port of Limassol. Drought-hit Cyprus signed an agreement with a Cypriot shipping firm on April 21, 2008 to ferry eight million cubic metres of water from Greece to help ease the island's water crisis.","height":87});
															thumbnails[6564134] = clik.newPhoto({"id":6564134,"src":"Agence_France-Presse16_thumb.jpg","galleries_id":360078,"server_id":1,"link":"photo_6564134.html","width":130,"caption":"Relatives of the victims of the Helios air tragedy weep during a memorial service, commemorating the second anniversary of the crash, in the Cypriot capital Nicosia, 11 August 2007. Cypriot relatives of passengers killed when an airliner ran out of oxygen and slammed into a Greek hillside are claiming damages from the state arguing that Cyprus's civil aviation authority was at fault, their lawyer said today. ALEX MITA\/AFP","height":91});
															thumbnails[6560626] = clik.newPhoto({"id":6560626,"src":"Agence_France-Presse02_thumb.jpg","galleries_id":360078,"server_id":1,"link":"photo_6560626.html","width":130,"caption":"French sailors stand on the deck of a warhip carrying refugees from war-torn Lebanon to the Mediterranean island of Cyprus, as it docks at Laranca Port.","height":83});
															thumbnails[6564133] = clik.newPhoto({"id":6564133,"src":"Agence_France-Presse15_thumb.jpg","galleries_id":360078,"server_id":1,"link":"photo_6564133.html","width":130,"caption":"A Cypriot villager struggles to put out the fire by using a branch at Pelendri village in the Troodos mountains, 06 August 2007. The fire, which came amid temperatures touching 40 degrees celsius (104 Fahrenheit) in the island, is suspected to be arson. With the European forest fire season barely underway, EU figures show that last month was the worst July on record and one of the worst months ever recorded for outbreaks. ALEX MITA\/AFP","height":86});
															thumbnails[6564132] = clik.newPhoto({"id":6564132,"src":"Agence_France-Presse13_thumb.jpg","galleries_id":360078,"server_id":1,"link":"photo_6564132.html","width":130,"caption":"File picture dated July 19, 2007 shows tourists arriving at Larnaca International Airport. Cyprus tourist arrivals nosedived 19 percent in the holiday island's key sector during February, compared to the same month of 2008, official figures showed on March 9, 2009. Last month, arrivals numbered 56,626, down from 70,140 in February of last year. ALEX MITA\/AFP","height":82});
															thumbnails[6564131] = clik.newPhoto({"id":6564131,"src":"Agence_France-Presse12_thumb.jpg","galleries_id":360078,"server_id":1,"link":"photo_6564131.html","width":130,"caption":"Residents of Lymbia near the coastal Cypriot town of Larnaca watch cars burn on the Nicosia-Larnaca highway, 17 April, 2007. Eight people where injured today as police scuffled with demonstrators who set alight a vehicle and tyres as they protested against the planned construction of an EU-funded landfill site in their area, citing health risks to the community. ","height":83});
															thumbnails[6568736] = clik.newPhoto({"id":6568736,"src":"SURCOUF_FOR_AFP04_thumb.jpg","galleries_id":360482,"server_id":1,"link":"photo_6568736.html","width":130,"caption":"French Navy Cook Eric Brissy prepares lunch on board the stealth frigate Surcouf, 17 February 2007. The 150 sailors on board the frigate, called the Surcouf, who arrived at the end of November as part of a bolstered UN peacekeeping mission in the area.","height":87});
															thumbnails[6568791] = clik.newPhoto({"id":6568791,"src":"SURCOUF_FOR_AFP05_thumb.jpg","galleries_id":360482,"server_id":1,"link":"photo_6568791.html","width":130,"caption":"A sailor stands guard on board the stealth frigate Surcouf, 17 February 2007. The 150 sailors on board the frigate, called the Surcouf, who arrived at the end of November as part of a bolstered UN peacekeeping mission in the area","height":87});
															thumbnails[6568904] = clik.newPhoto({"id":6568904,"src":"SURCOUF_FOR_AFP06_thumb.jpg","galleries_id":360482,"server_id":1,"link":"photo_6568904.html","width":130,"caption":"Spent casings lie scattered on board the stealth frigate Surcouf, during a firing exercise, on 17 February 2007. The 150 sailors on board the frigate, called the Surcouf, who arrived at the end of November as part of a bolstered UN peacekeeping mission in the area","height":87});
															thumbnails[6569178] = clik.newPhoto({"id":6569178,"src":"SURCOUF_FOR_AFP09_thumb.jpg","galleries_id":360482,"server_id":1,"link":"photo_6569178.html","width":130,"caption":"View of the stealth frigate Surcouf, on 17 February 2007. The 150 sailors on board the frigate, called the Surcouf, were part of a bolstered UN peacekeeping mission in the area.","height":87});
															thumbnails[6568586] = clik.newPhoto({"id":6568586,"src":"SURCOUF_FOR_AFP01_thumb.jpg","galleries_id":360482,"server_id":1,"link":"photo_6568586.html","width":130,"caption":"A French Navy sailor dressed in fire-fighting gear stands guard as a helicopter prepares to take off from the deck of the French Frigate Surcouf. The 150 sailors on board the frigate, were part of a bolstered UN peacekeeping Force.","height":87});
															thumbnails[6568695] = clik.newPhoto({"id":6568695,"src":"SURCOUF_FOR_AFP02_thumb.jpg","galleries_id":360482,"server_id":1,"link":"photo_6568695.html","width":130,"caption":"A French Navy sailor inspect a helicopter as it prepares to take off from the deck of the French Frigate Surcouf.","height":87});
															thumbnails[6568706] = clik.newPhoto({"id":6568706,"src":"SURCOUF_FOR_AFP03_thumb.jpg","galleries_id":360482,"server_id":1,"link":"photo_6568706.html","width":130,"caption":"A French officer supervises a fire drill aboard the French Frigate Surcouf, as it patrols Lebanese waters as part of UNIFIL, looking for weapons smuggling and illegal immigrants.","height":87});
															thumbnails[6569043] = clik.newPhoto({"id":6569043,"src":"SURCOUF_FOR_AFP07_thumb.jpg","galleries_id":360482,"server_id":1,"link":"photo_6569043.html","width":130,"caption":"A helicopter takes off from the deck of the stealth frigate Surcouf, on 16 February 2007. The 150 sailors on board the frigate, called the Surcouf, were part of a bolstered UN peacekeeping mission in the area.","height":87});
															thumbnails[6569076] = clik.newPhoto({"id":6569076,"src":"SURCOUF_FOR_AFP08_thumb.jpg","galleries_id":360482,"server_id":1,"link":"photo_6569076.html","width":130,"caption":"A helicopter prepares for take-off from the deck of the stealth frigate Surcouf, on 16 February 2007. The 150 sailors on board the frigate, called the Surcouf, were part of a bolstered UN peacekeeping mission in the area.","height":87});
															thumbnails[6564130] = clik.newPhoto({"id":6564130,"src":"Agence_France-Presse11_thumb.jpg","galleries_id":360078,"server_id":1,"link":"photo_6564130.html","width":130,"caption":"A Greek Orthodox priest throws a cross into the sea in a religious ceremony to blesss the waters in the coastal town of Zygi 06 January 2007 to mark Epiphany day. The Epiphany is one of the most highly esteemed holidays in the Greek Orthodox faith. It commemorates the day when John the Baptist christened the 30 year old Jesus Christ in the Jordan River more than 2,000 years ago. ALEX MITA\/AFP","height":87});
															thumbnails[6564127] = clik.newPhoto({"id":6564127,"src":"Agence_France-Presse09_thumb.jpg","galleries_id":360078,"server_id":1,"link":"photo_6564127.html","width":130,"caption":"Greek Cypriot university students hold up the flags of Cyprus (yellow\/green) and Greece during a demonstration outside the US embassy in Nicosia, 17 November 2006. The protest was held to mark the 32th anniversary of the crushing of the student-led uprising against the 1967-74 military junta in Greece. ALEX MITA\/AFP","height":87});
															thumbnails[6564128] = clik.newPhoto({"id":6564128,"src":"Agence_France-Presse10_thumb.jpg","galleries_id":360078,"server_id":1,"link":"photo_6564128.html","width":130,"caption":"A United Nations explosives expert demonstrates scannning the ground before clearing the last two mines at the UN-controlled buffer zone in the Cypriot capital Nicosia, 22 November 2006. With the symbolic explosion of two anti-personnel mines, the UN declared today that the world's last divided capital is now mine-free. The land mines were placed after the invasion of the east Mediterranean island by Turkish forces in 1974. ALEX MITA\/AFP","height":87});
															thumbnails[6564126] = clik.newPhoto({"id":6564126,"src":"Agence_France-Presse08_thumb.jpg","galleries_id":360078,"server_id":1,"link":"photo_6564126.html","width":130,"caption":"Bishop Chrysostomos of Paphos (C) follows the procession to St. John's Cathedral for his enthronement ceremony as the new archbishop of Cyprus 12 November 2006. The 65-year-old cleric, who had been the church's de facto head since the his namesake predecessor fell ill more than four years ago, was elected the new archbishop last week after a complex series of public and secret ballots that included elected lay representatives as well as senior clergy. Chrysostomos chose the name Chrysostomos II. AFP PHOTO\/ALEX MITA ","height":86});
															thumbnails[6564125] = clik.newPhoto({"id":6564125,"src":"Agence_France-Presse06_thumb.jpg","galleries_id":360078,"server_id":1,"link":"photo_6564125.html","width":130,"caption":"A Greek Orthodox priest blesses a cauldron for a baptism at the Ayios Ioannis church next to the Archbishopric in Nicosia, 05 November 2006. After the controversial postponement of elections yesterday to appoint the island's new Archbishop to replace the ailing Chrysostomos, the elections will start again today, where it is expected a new Archbishop will be announced. AFP PHOTO\/ALEX MITA ","height":87});
															thumbnails[6564121] = clik.newPhoto({"id":6564121,"src":"Agence_France-Presse05_thumb.jpg","galleries_id":360078,"server_id":1,"link":"photo_6564121.html","width":130,"caption":"Turkish settlers watch over their children as they play on the Turkish Cypriot-controlled side of Nicosia, 03 November 2006. The number of settlers from Turkey in the north of the divided island, according to figures in the UN peace plan is 40,000, although the Greek Cypriot government claims the number is higher. The EU's presidency scrapped yesterday crunch talks with senior Turkish and Cypriot officials, ahead of the publication of a key report on Ankara's bid to join the bloc. Ankara and Nicosia officials blamed each other for the failure to hold talks. Turkey, which invaded the northern third of Cyprus in 1974, does not recognise the Greek Cypriot government and avoids any move that might be interpreted as recognition. AFP PHOTO\/ALEX MITA ","height":87});
															thumbnails[6560652] = clik.newPhoto({"id":6560652,"src":"Agence_France-Presse04_thumb.jpg","galleries_id":360078,"server_id":1,"link":"photo_6560652.html","width":130,"caption":"US navy men stand aboard the USS Eisenhower, one of the world's largest warships, off the Cypriot coast, 25 October 2006. The USS Eisenhower, one of the world's largest warships, docked off Cyprus today in what US officials described a 'thank you' visit for the eastern Mediterranean country's help as an evacuation hub during the Lebanon conflict. ALEX MITA\/AFP","height":87});
															thumbnails[6560642] = clik.newPhoto({"id":6560642,"src":"Agence_France-Presse03_thumb.jpg","galleries_id":360078,"server_id":1,"link":"photo_6560642.html","width":130,"caption":"Evacuees from war-torn Lebanon aboard a UN-chartered crusie ship peer out of a window as they dock in Larnaca port in Cyprus, early 21 July 2006. Cyprus is the hub for the influx of foreign nationals evacuated from war-torn Lebanon and the island's ports and airports are creaking under the sheer weight of numbers as more and more evacuees flee the Israeli bombardment during the peak tourism season in Cyprus, meaning accommodation and flights are scarce. AFP PHOTO\/ALEX MITA (Photo credit should read ALEX MITA\/AFP","height":87});
															thumbnails[6569595] = clik.newPhoto({"id":6569595,"src":"CYPRUS-RELIGION-MUSLIM-NAZIM_thumb.jpg","galleries_id":360481,"server_id":1,"link":"photo_6569595.html","width":130,"caption":"Sheikh Nazim Kibrisi, the spiritual leader of the Turkish-Cypriots is pictured at his house in Lefka village in the Turkish-occupied northern part of Cyprus 18 February 2005.","height":87});
															thumbnails[6569612] = clik.newPhoto({"id":6569612,"src":"IMG_0097_thumb.jpg","galleries_id":360481,"server_id":1,"link":"photo_6569612.html","width":130,"caption":"Old Man Sleeping, Nicosia, Cyprus","height":87});
															thumbnails[6559581] = clik.newPhoto({"id":6559581,"src":"Captain_Howdys_Flying_Circus01_thumb.jpg","galleries_id":178454,"server_id":1,"link":"photo_6559581.html","width":93,"caption":"","height":130});
															thumbnails[6559582] = clik.newPhoto({"id":6559582,"src":"Captain_Howdys_Flying_Circus02_thumb.jpg","galleries_id":178454,"server_id":1,"link":"photo_6559582.html","width":87,"caption":"","height":130});
															thumbnails[6559584] = clik.newPhoto({"id":6559584,"src":"Captain_Howdys_Flying_Circus03_thumb.jpg","galleries_id":178454,"server_id":1,"link":"photo_6559584.html","width":130,"caption":"","height":87});
															thumbnails[6559586] = clik.newPhoto({"id":6559586,"src":"Captain_Howdys_Flying_Circus04_thumb.jpg","galleries_id":178454,"server_id":1,"link":"photo_6559586.html","width":87,"caption":"","height":130});
															thumbnails[6559588] = clik.newPhoto({"id":6559588,"src":"Captain_Howdys_Flying_Circus05_thumb.jpg","galleries_id":178454,"server_id":1,"link":"photo_6559588.html","width":130,"caption":"","height":87});
															thumbnails[6559590] = clik.newPhoto({"id":6559590,"src":"Captain_Howdys_Flying_Circus06_thumb.jpg","galleries_id":178454,"server_id":1,"link":"photo_6559590.html","width":130,"caption":"","height":87});
															thumbnails[6559592] = clik.newPhoto({"id":6559592,"src":"Captain_Howdys_Flying_Circus07_thumb.jpg","galleries_id":178454,"server_id":1,"link":"photo_6559592.html","width":130,"caption":"","height":87});
															thumbnails[6559593] = clik.newPhoto({"id":6559593,"src":"Captain_Howdys_Flying_Circus08_thumb.jpg","galleries_id":178454,"server_id":1,"link":"photo_6559593.html","width":87,"caption":"","height":130});
															thumbnails[6559597] = clik.newPhoto({"id":6559597,"src":"Captain_Howdys_Flying_Circus09_thumb.jpg","galleries_id":178454,"server_id":1,"link":"photo_6559597.html","width":130,"caption":"","height":87});
															thumbnails[6559599] = clik.newPhoto({"id":6559599,"src":"Captain_Howdys_Flying_Circus10_thumb.jpg","galleries_id":178454,"server_id":1,"link":"photo_6559599.html","width":130,"caption":"","height":87});
															thumbnails[6559602] = clik.newPhoto({"id":6559602,"src":"Captain_Howdys_Flying_Circus11_thumb.jpg","galleries_id":178454,"server_id":1,"link":"photo_6559602.html","width":130,"caption":"","height":87});
															thumbnails[6559603] = clik.newPhoto({"id":6559603,"src":"Captain_Howdys_Flying_Circus12_thumb.jpg","galleries_id":178454,"server_id":1,"link":"photo_6559603.html","width":130,"caption":"","height":87});
															thumbnails[6559943] = clik.newPhoto({"id":6559943,"src":"Ledra_Street_01_thumb.jpg","galleries_id":178455,"server_id":1,"link":"photo_6559943.html","width":130,"caption":"","height":87});
															thumbnails[6559945] = clik.newPhoto({"id":6559945,"src":"Ledra_Street_02_thumb.jpg","galleries_id":178455,"server_id":1,"link":"photo_6559945.html","width":130,"caption":"","height":87});
															thumbnails[6559947] = clik.newPhoto({"id":6559947,"src":"Ledra_Street_03_thumb.jpg","galleries_id":178455,"server_id":1,"link":"photo_6559947.html","width":130,"caption":"","height":87});
															thumbnails[6559952] = clik.newPhoto({"id":6559952,"src":"Ledra_Street_04_thumb.jpg","galleries_id":178455,"server_id":1,"link":"photo_6559952.html","width":130,"caption":"","height":89});
															thumbnails[6559954] = clik.newPhoto({"id":6559954,"src":"Ledra_Street_05_thumb.jpg","galleries_id":178455,"server_id":1,"link":"photo_6559954.html","width":130,"caption":"","height":87});
															thumbnails[6559957] = clik.newPhoto({"id":6559957,"src":"Ledra_Street_06_thumb.jpg","galleries_id":178455,"server_id":1,"link":"photo_6559957.html","width":91,"caption":"","height":130});
															thumbnails[6559959] = clik.newPhoto({"id":6559959,"src":"Ledra_Street_07_thumb.jpg","galleries_id":178455,"server_id":1,"link":"photo_6559959.html","width":130,"caption":"","height":87});
															thumbnails[6559962] = clik.newPhoto({"id":6559962,"src":"Ledra_Street_08_thumb.jpg","galleries_id":178455,"server_id":1,"link":"photo_6559962.html","width":130,"caption":"","height":87});
															thumbnails[6559964] = clik.newPhoto({"id":6559964,"src":"Ledra_Street_09_thumb.jpg","galleries_id":178455,"server_id":1,"link":"photo_6559964.html","width":87,"caption":"","height":130});
															thumbnails[6559967] = clik.newPhoto({"id":6559967,"src":"Ledra_Street_10_thumb.jpg","galleries_id":178455,"server_id":1,"link":"photo_6559967.html","width":100,"caption":"","height":130});
															thumbnails[6559970] = clik.newPhoto({"id":6559970,"src":"Ledra_Street_11_thumb.jpg","galleries_id":178455,"server_id":1,"link":"photo_6559970.html","width":130,"caption":"","height":87});
															thumbnails[6559973] = clik.newPhoto({"id":6559973,"src":"Ledra_Street_12_thumb.jpg","galleries_id":178455,"server_id":1,"link":"photo_6559973.html","width":130,"caption":"","height":87});
															thumbnails[6559977] = clik.newPhoto({"id":6559977,"src":"Ledra_Street_13_thumb.jpg","galleries_id":178455,"server_id":1,"link":"photo_6559977.html","width":130,"caption":"","height":87});
															thumbnails[6559979] = clik.newPhoto({"id":6559979,"src":"Ledra_Street_14_thumb.jpg","galleries_id":178455,"server_id":1,"link":"photo_6559979.html","width":87,"caption":"","height":130});
															thumbnails[6559981] = clik.newPhoto({"id":6559981,"src":"Ledra_Street_15_thumb.jpg","galleries_id":178455,"server_id":1,"link":"photo_6559981.html","width":87,"caption":"","height":130});
															thumbnails[6559984] = clik.newPhoto({"id":6559984,"src":"Ledra_Street_16_thumb.jpg","galleries_id":178455,"server_id":1,"link":"photo_6559984.html","width":130,"caption":"","height":87});
															thumbnails[6559985] = clik.newPhoto({"id":6559985,"src":"Ledra_Street_17_thumb.jpg","galleries_id":178455,"server_id":1,"link":"photo_6559985.html","width":130,"caption":"","height":87});
															thumbnails[6559987] = clik.newPhoto({"id":6559987,"src":"Ledra_Street_18_thumb.jpg","galleries_id":178455,"server_id":1,"link":"photo_6559987.html","width":130,"caption":"","height":87});
															thumbnails[6559989] = clik.newPhoto({"id":6559989,"src":"Ledra_Street_19_thumb.jpg","galleries_id":178455,"server_id":1,"link":"photo_6559989.html","width":130,"caption":"","height":87});
															thumbnails[6559991] = clik.newPhoto({"id":6559991,"src":"Ledra_Street_20_thumb.jpg","galleries_id":178455,"server_id":1,"link":"photo_6559991.html","width":87,"caption":"","height":130});
															thumbnails[6559993] = clik.newPhoto({"id":6559993,"src":"Ledra_Street_21_thumb.jpg","galleries_id":178455,"server_id":1,"link":"photo_6559993.html","width":87,"caption":"","height":130});
															thumbnails[6559997] = clik.newPhoto({"id":6559997,"src":"Ledra_Street_23_thumb.jpg","galleries_id":178455,"server_id":1,"link":"photo_6559997.html","width":130,"caption":"","height":87});
															thumbnails[6560002] = clik.newPhoto({"id":6560002,"src":"Ledra_Street_24_thumb.jpg","galleries_id":178455,"server_id":1,"link":"photo_6560002.html","width":87,"caption":"","height":130});
															thumbnails[6560003] = clik.newPhoto({"id":6560003,"src":"Ledra_Street_25_thumb.jpg","galleries_id":178455,"server_id":1,"link":"photo_6560003.html","width":130,"caption":"","height":87});
															thumbnails[6564135] = clik.newPhoto({"id":6564135,"src":"Agence_France-Presse18_thumb.jpg","galleries_id":360078,"server_id":1,"link":"photo_6564135.html","width":130,"caption":"","height":87});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[360078] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Agence France-Presse","link":"gallery_360078.html","maxRecords":0.0,"photoIDs":[6560606.0,6564134.0,6560626.0,6564133.0,6564132.0,6564131.0,6564130.0,6564127.0,6564128.0,6564126.0,6564125.0,6564121.0,6560652.0,6560642.0,6564135.0],"skipIndex":0,"section_code":"gallery","featured_images":"6560626,6560606","id":360078,"singleSection":false});				  						galleries[360481] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Around the World","link":"gallery_360481.html","maxRecords":0.0,"photoIDs":[6569456.0,6569179.0,6569204.0,6569305.0,6569307.0,6569544.0,6569566.0,6569583.0,6569595.0,6569612.0],"skipIndex":0,"section_code":"gallery","featured_images":6569179.0,"id":360481,"singleSection":false});				  						galleries[360482] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Patrolling Lebanese Waters","link":"gallery_360482.html","maxRecords":0.0,"photoIDs":[6568736.0,6568791.0,6568904.0,6569178.0,6568586.0,6568695.0,6568706.0,6569043.0,6569076.0],"skipIndex":0,"section_code":"gallery","featured_images":6568586.0,"id":360482,"singleSection":false});				  						galleries[178454] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Captain Howdy's Flying Circus","link":"gallery_178454.html","maxRecords":0.0,"photoIDs":[6559581.0,6559582.0,6559584.0,6559586.0,6559588.0,6559590.0,6559592.0,6559593.0,6559597.0,6559599.0,6559602.0,6559603.0],"skipIndex":0,"section_code":"gallery","featured_images":6559581.0,"id":178454,"singleSection":false});				  						galleries[178455] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Ledra Street - Cyprus","link":"gallery_178455.html","maxRecords":0.0,"photoIDs":[6559943.0,6559945.0,6559947.0,6559952.0,6559954.0,6559957.0,6559959.0,6559962.0,6559964.0,6559967.0,6559970.0,6559973.0,6559977.0,6559979.0,6559981.0,6559984.0,6559985.0,6559987.0,6559989.0,6559991.0,6559993.0,6559997.0,6560002.0,6560003.0],"skipIndex":0,"section_code":"gallery","featured_images":"6560003,6559977,6559973,6559952","id":178455,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '6569595,6569566,6569544,6569179,6560626,6559977,6559973';
imageSets[2] = '6569179,6568586,6560626,6560606,6560003,6559977,6559973,6559952,6559581';
imageSets[3] = '6559602,6559599';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/almit24/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/almit24/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/almit24/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/almit24/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/almit24/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/almit24/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/almit24/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/almit24/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/almit24/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/almit24/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/almit24/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/almit24/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/almit24/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/almit24/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/almit24/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/almit24/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/almit24/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/almit24/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/almit24/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/almit24/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/almit24/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/almit24/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/almit24/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/almit24/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = backgrounds && backgrounds[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$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 = 'Alex Mita 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="updateCartValue($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';
		
		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">';
			temp += '	<input type="hidden" name="item_option" value="' + item_option + '">';
			temp += '	<input type="hidden" name="site" value="ALMIT24">';
			temp += '	<input type="hidden" name="item_number" value="'+ this.id +'">';
			temp += '	<input type="hidden" name="quantity" value="1">';
						temp += '	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\'\;" onmouseout="this.className=\'button\'\;" type="Button">';
							temp += '	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';
			temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
			temp += '<div id="confirmContainer">';
			temp += '<div id="paymentConfirm">Item added to cart</div>';
			temp += '</div>';
			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;
	}
}

			

