window.thumbnails = {};
															thumbnails[1910742] = clik.newPhoto({"id":1910742,"src":"website home page copy_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":201});
															thumbnails[6984075] = clik.newPhoto({"id":6984075,"src":"CLIKPICTerry_Howard_v_Stoke_City_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Terry Howard in action at Stoke City","height":132});
															thumbnails[6984076] = clik.newPhoto({"id":6984076,"src":"CLIKPICSnowing_at_Cambridge_HEA_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"A freezing cold day at cambridge United","height":84});
															thumbnails[6984085] = clik.newPhoto({"id":6984085,"src":"CLIKPICHeald_Hendon__Howard_v_Shrewsbury_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Dressing room following victory over Shrewsbury Town","height":87});
															thumbnails[6984088] = clik.newPhoto({"id":6984088,"src":"CLIKPICBallboys_celebrate_goal_v_Wolves_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Ballboys celebrate goal versus Wolves","height":85});
															thumbnails[6984089] = clik.newPhoto({"id":6984089,"src":"CLIKPICBrisbane_Road_-_Main_Entrance_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Main Entrance, Brisbane Road","height":84});
															thumbnails[6984093] = clik.newPhoto({"id":6984093,"src":"CLIKPICDressing_Room_-_Lee_Harvey_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Lee Harvey nusrses an injury","height":201});
															thumbnails[6984094] = clik.newPhoto({"id":6984094,"src":"CLIKPICKevin_Hales_in_dressing_room_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Captain Kevin Hales and team mates pre-match","height":84});
															thumbnails[6984096] = clik.newPhoto({"id":6984096,"src":"CLIKPICLeyton_Stadium_-_Aerial_view_1_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Aerial view of Leyton Stadium","height":88});
															thumbnails[6984098] = clik.newPhoto({"id":6984098,"src":"CLIKPICOs_v_Wrexham_in_snow_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"A snowbound Brisbane Road versus Wrexham","height":83});
															thumbnails[6984099] = clik.newPhoto({"id":6984099,"src":"CLIKPICPlayers__Team_Officials_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Steward at players entrance","height":212});
															thumbnails[6984101] = clik.newPhoto({"id":6984101,"src":"CLIKPICSpectators_v_Derby_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Watching from the Main Stand terrace v. Derby County","height":201});
															thumbnails[1028943] = clik.newPhoto({"id":1028943,"src":"Nr_thumb.1jpg.jpg","galleries_id":362967,"server_id":18,"link":"photo_1028943.html","width":130,"caption":"A police presence awaits at the away entrance for the twenty or so Mestre fans who made the trip to play Pro Vercelli","height":84});
															thumbnails[443599] = clik.newPhoto({"id":443599,"src":"calcio2gal_thumb.jpg","galleries_id":362967,"server_id":18,"link":"photo_443599.html","width":130,"caption":"Playing for Italy. In a Venetian Piazza, far from the bustle of the tourist \tattractions, a young \tboy dreams of representing the Azzurri. ","height":87});
															thumbnails[965090] = clik.newPhoto({"id":965090,"src":"Nr_thumb.29 smalljpg.jpg","galleries_id":362967,"server_id":18,"link":"photo_965090.html","width":130,"caption":"Chievo fans give their favourites a ticker-tape welcome at the Stadio Bentegodi in Verona","height":85});
															thumbnails[443658] = clik.newPhoto({"id":443658,"src":"calcio10gal_thumb.jpg","galleries_id":362967,"server_id":18,"link":"photo_443658.html","width":130,"caption":"Prima Durante Dopo. Before During After proclaims a well travelled banner, as Atalanta fans welcome their team onto the pitch at Parma.","height":85});
															thumbnails[443676] = clik.newPhoto({"id":443676,"src":"calcio16gal_thumb.jpg","galleries_id":362967,"server_id":18,"link":"photo_443676.html","width":130,"caption":"L'Inferno. Milan fans at the San Siro create a deafening and visually stirring atmosphere to inspire their heroes. ","height":84});
															thumbnails[443691] = clik.newPhoto({"id":443691,"src":"calcio12gal_thumb.jpg","galleries_id":362967,"server_id":18,"link":"photo_443691.html","width":130,"caption":"Ingresso. Entrance sign at the now dilapidated Stadio Filadelfia, home of Torino until 1948.","height":200});
															thumbnails[1029493] = clik.newPhoto({"id":1029493,"src":"Nr_thumb.165jpg.jpg","galleries_id":362967,"server_id":18,"link":"photo_1029493.html","width":130,"caption":"A green flare on the Curva Andrea Costa at Bologna","height":201});
															thumbnails[443844] = clik.newPhoto({"id":443844,"src":"calcio13gal_thumb.jpg","galleries_id":362967,"server_id":18,"link":"photo_443844.html","width":130,"caption":"Hero and Legend. Local boy Agostino Di Bartolomei led Roma to only their second championship in 1983. Twenty years later his picture still adorns an artisan’s shop window in Rome.  ","height":200});
															thumbnails[1029483] = clik.newPhoto({"id":1029483,"src":"Nr_thumb.48jpg.jpg","galleries_id":362967,"server_id":18,"link":"photo_1029483.html","width":130,"caption":"Pride of Liguria. A fan of Sampdoria shows his allegience to his team.","height":198});
															thumbnails[1029487] = clik.newPhoto({"id":1029487,"src":"Nr_thumb.56jpg.jpg","galleries_id":362967,"server_id":18,"link":"photo_1029487.html","width":130,"caption":"Ciro Ferrara, seen here whilst with Juventus had one of the most successful careers earning seven Scudetti ","height":202});
															thumbnails[443704] = clik.newPhoto({"id":443704,"src":"calcio7gal_thumb.jpg","galleries_id":362967,"server_id":18,"link":"photo_443704.html","width":130,"caption":"Vinci Per Noi. Win for us. Incongruously just a short vaporetta ride along the Grand Canal and the Piazza San Marco, fans of Venezia create an equally memorable spectacle.  ","height":85});
															thumbnails[1029482] = clik.newPhoto({"id":1029482,"src":"Nr_thumb.31jpg.jpg","galleries_id":362967,"server_id":18,"link":"photo_1029482.html","width":130,"caption":"Inter fans at the San Siro","height":85});
															thumbnails[446182] = clik.newPhoto({"id":446182,"src":"calcio17gal_thumb.jpg","galleries_id":362967,"server_id":18,"link":"photo_446182.html","width":130,"caption":"Francesco Totti faces the cameras after ninety minutes of perspiration and inspiration, that saw his hat-trick at Brescia earn Roma the three points in a five goal thriller.   ","height":85});
															thumbnails[446184] = clik.newPhoto({"id":446184,"src":"calcio15gal_thumb.jpg","galleries_id":362967,"server_id":18,"link":"photo_446184.html","width":130,"caption":"Game over and Roma fans head home by the thousand on vespas.","height":85});
															thumbnails[1029497] = clik.newPhoto({"id":1029497,"src":"Nr_thumb.182jpg.jpg","galleries_id":362967,"server_id":18,"link":"photo_1029497.html","width":130,"caption":"Italy have won the World Cup for A fourth time and a fan in Soho, London kisses the national badge","height":91});
															thumbnails[1914680] = clik.newPhoto({"id":1914680,"src":"Paypal page (UK)2_thumb.jpg","galleries_id":85382,"server_id":18,"link":"photo_1914680.html","width":130,"caption":"Paypal or card payments (UK exc.Eire)","height":200});
															thumbnails[1915196] = clik.newPhoto({"id":1915196,"src":"website Paypal Eire and Europe_thumb.jpg","galleries_id":128385,"server_id":18,"link":"photo_1915196.html","width":130,"caption":"Paypal or card payments<br>\r\n(Eire and Europe)","height":195});
															thumbnails[1914640] = clik.newPhoto({"id":1914640,"src":"website Worldwide copy_thumb.jpg","galleries_id":128385,"server_id":18,"link":"photo_1914640.html","width":130,"caption":"Paypal or card payments (Worldwide)","height":199});
															thumbnails[867296] = clik.newPhoto({"id":867296,"src":"Fes - medina doorwayjpgjpg_thumb.jpg","galleries_id":66593,"server_id":18,"link":"photo_867296.html","width":130,"caption":"Fes medina - doorway","height":204});
															thumbnails[867298] = clik.newPhoto({"id":867298,"src":"Fes - medina fishmongerjpgjpg_thumb.jpg","galleries_id":66593,"server_id":18,"link":"photo_867298.html","width":130,"caption":"Fes medina - fishmonger","height":202});
															thumbnails[867307] = clik.newPhoto({"id":867307,"src":"Meknes medina market 3jpgjpg_thumb.jpg","galleries_id":66593,"server_id":18,"link":"photo_867307.html","width":130,"caption":"Meknes medina - butcher","height":202});
															thumbnails[867310] = clik.newPhoto({"id":867310,"src":"Meknes medina market 4Ajpgjpg1_thumb.jpg","galleries_id":66593,"server_id":18,"link":"photo_867310.html","width":130,"caption":"Meknes medina - butcher","height":202});
															thumbnails[867311] = clik.newPhoto({"id":867311,"src":"Rabat - mussel stalljpgjpg1_thumb.jpg","galleries_id":66593,"server_id":18,"link":"photo_867311.html","width":130,"caption":"Rabat - mussel stall","height":202});
															thumbnails[867314] = clik.newPhoto({"id":867314,"src":"Fes - medina wall paintingjpgjpg_thumb.jpg","galleries_id":66593,"server_id":18,"link":"photo_867314.html","width":130,"caption":"Fes medina - wall painting","height":83});
															thumbnails[867325] = clik.newPhoto({"id":867325,"src":"Fes tannery 16jpgjpg_thumb.jpg","galleries_id":66593,"server_id":18,"link":"photo_867325.html","width":130,"caption":"Fes medina - tannery","height":84});
															thumbnails[867332] = clik.newPhoto({"id":867332,"src":"Fes medina school 5jpgjpg_thumb.jpg","galleries_id":66593,"server_id":18,"link":"photo_867332.html","width":130,"caption":"Fes medina - school","height":84});
															thumbnails[867334] = clik.newPhoto({"id":867334,"src":"Fes medina horsejpgjpg_thumb.jpg","galleries_id":66593,"server_id":18,"link":"photo_867334.html","width":130,"caption":"Fes medina - delivery by horse","height":84});
															thumbnails[867335] = clik.newPhoto({"id":867335,"src":"Meknes Station - mother & childjpgjpg_thumb.jpg","galleries_id":66593,"server_id":18,"link":"photo_867335.html","width":130,"caption":"Meknes Station - mother and child","height":87});
															thumbnails[867337] = clik.newPhoto({"id":867337,"src":"Meknes to Rabat 5jpgjpg_thumb.jpg","galleries_id":66593,"server_id":18,"link":"photo_867337.html","width":130,"caption":"On the train from Meknes to Rabat","height":84});
															thumbnails[867340] = clik.newPhoto({"id":867340,"src":"Rabat 1jpgjpg_thumb.jpg","galleries_id":66593,"server_id":18,"link":"photo_867340.html","width":130,"caption":"Rabat - outside the medina wall","height":84});
															thumbnails[867341] = clik.newPhoto({"id":867341,"src":"Rabat medina 4jpgjpg_thumb.jpg","galleries_id":66593,"server_id":18,"link":"photo_867341.html","width":130,"caption":"Rabat medina - shopfront","height":84});
															thumbnails[867343] = clik.newPhoto({"id":867343,"src":"Marrakesh 5jpgjpg_thumb.jpg","galleries_id":66593,"server_id":18,"link":"photo_867343.html","width":130,"caption":"Marrakesh at dusk","height":85});
															thumbnails[867344] = clik.newPhoto({"id":867344,"src":"Marrakesh 3jpgjpg_thumb.jpg","galleries_id":66593,"server_id":18,"link":"photo_867344.html","width":130,"caption":"Marrakesh - food stalls ","height":85});
															thumbnails[500039] = clik.newPhoto({"id":500039,"src":"Carmen 10A copyjpg3_thumb.jpg","galleries_id":38357,"server_id":18,"link":"photo_500039.html","width":130,"caption":"","height":201});
															thumbnails[500040] = clik.newPhoto({"id":500040,"src":"Dagmara 7B01 internetjpg_thumb.jpg","galleries_id":38357,"server_id":18,"link":"photo_500040.html","width":130,"caption":"","height":194});
															thumbnails[866296] = clik.newPhoto({"id":866296,"src":"Little Petra 1Ajpg_thumb.jpg","galleries_id":38612,"server_id":18,"link":"photo_866296.html","width":130,"caption":"Bedouin youths warm up with a cup of strong tea in a cave in Little Petra","height":203});
															thumbnails[6099479] = clik.newPhoto({"id":6099479,"src":"2009_05_26_Geneva_0855_copy2_edited-1_low_thumb.jpg","galleries_id":38357,"server_id":18,"link":"photo_6099479.html","width":130,"caption":"","height":124});
															thumbnails[866298] = clik.newPhoto({"id":866298,"src":"Beduoin1 - Petrajpg_thumb.jpg","galleries_id":38612,"server_id":18,"link":"photo_866298.html","width":130,"caption":"Bedouin at Petra","height":83});
															thumbnails[6095899] = clik.newPhoto({"id":6095899,"src":"2009_08_06_Sasha_0182_edited-1_bw_copy_low_copy2_thumb.jpg","galleries_id":38357,"server_id":18,"link":"photo_6095899.html","width":130,"caption":"","height":184});
															thumbnails[866300] = clik.newPhoto({"id":866300,"src":"Petra 1jpg_thumb.jpg","galleries_id":38612,"server_id":18,"link":"photo_866300.html","width":130,"caption":"Petra - the Monastery","height":84});
															thumbnails[926486] = clik.newPhoto({"id":926486,"src":"AFW Before 2jpg_thumb.jpg","galleries_id":70484,"server_id":18,"link":"photo_926486.html","width":130,"caption":"#1","height":200});
															thumbnails[7101104] = clik.newPhoto({"id":7101104,"src":"Miranda2_0071_bw_low_thumb.jpg","galleries_id":38357,"server_id":18,"link":"photo_7101104.html","width":130,"caption":"","height":194});
															thumbnails[866306] = clik.newPhoto({"id":866306,"src":"Petra - donkeyjpg_thumb.jpg","galleries_id":38612,"server_id":18,"link":"photo_866306.html","width":130,"caption":"Petra - a working donkey takes a rest","height":85});
															thumbnails[7101027] = clik.newPhoto({"id":7101027,"src":"Alex2_0287_edited-1_low_res_thumb.jpg","galleries_id":38357,"server_id":18,"link":"photo_7101027.html","width":130,"caption":"","height":87});
															thumbnails[866301] = clik.newPhoto({"id":866301,"src":"Petra - Sand Bottle Stalljpg_thumb.jpg","galleries_id":38612,"server_id":18,"link":"photo_866301.html","width":130,"caption":"Petra - sand in a Bottle souvenirs","height":201});
															thumbnails[7100954] = clik.newPhoto({"id":7100954,"src":"2009_05_26_Geneva_0915_Website_thumb.jpg","galleries_id":38357,"server_id":18,"link":"photo_7100954.html","width":130,"caption":"","height":87});
															thumbnails[500062] = clik.newPhoto({"id":500062,"src":"Dagmara 15 copyjpg_thumb.jpg","galleries_id":38357,"server_id":18,"link":"photo_500062.html","width":130,"caption":"","height":89});
															thumbnails[866307] = clik.newPhoto({"id":866307,"src":"Petra - Camelsjpg_thumb.jpg","galleries_id":38612,"server_id":18,"link":"photo_866307.html","width":130,"caption":"Petra - camel herd","height":85});
															thumbnails[866316] = clik.newPhoto({"id":866316,"src":"Salt - Mannequin 1A copyjpg_thumb.jpg","galleries_id":38612,"server_id":18,"link":"photo_866316.html","width":130,"caption":"Mannequin outside shop in Salt","height":85});
															thumbnails[6095896] = clik.newPhoto({"id":6095896,"src":"2009_09_04_Miranda_0277_edited-1_low_thumb.jpg","galleries_id":38357,"server_id":18,"link":"photo_6095896.html","width":130,"caption":"","height":87});
															thumbnails[500068] = clik.newPhoto({"id":500068,"src":"Actress 105 internetjpg_thumb.jpg","galleries_id":38357,"server_id":18,"link":"photo_500068.html","width":130,"caption":"","height":88});
															thumbnails[866308] = clik.newPhoto({"id":866308,"src":"Checkpointjpg_thumb.jpg","galleries_id":38612,"server_id":18,"link":"photo_866308.html","width":130,"caption":"Checkpoint near the Dead Sea","height":84});
															thumbnails[926513] = clik.newPhoto({"id":926513,"src":"Girl in white skull cap 7Ajpg_thumb.jpg","galleries_id":70484,"server_id":18,"link":"photo_926513.html","width":130,"caption":"#2","height":200});
															thumbnails[866313] = clik.newPhoto({"id":866313,"src":"Salt Bus Station 1jpg_thumb.jpg","galleries_id":38612,"server_id":18,"link":"photo_866313.html","width":130,"caption":"Tea stall at Salt bus station","height":85});
															thumbnails[4167084] = clik.newPhoto({"id":4167084,"src":"2009_05_26_Geneva_0772_low_thumb.jpg","galleries_id":38357,"server_id":18,"link":"photo_4167084.html","width":130,"caption":"","height":194});
															thumbnails[500074] = clik.newPhoto({"id":500074,"src":"Actress 403 internetjpg_thumb.jpg","galleries_id":38357,"server_id":18,"link":"photo_500074.html","width":130,"caption":"","height":194});
															thumbnails[866314] = clik.newPhoto({"id":866314,"src":"Salt - Petrol Stationjpg_thumb.jpg","galleries_id":38612,"server_id":18,"link":"photo_866314.html","width":130,"caption":"Salt - Petrol Station","height":84});
															thumbnails[926502] = clik.newPhoto({"id":926502,"src":"Girl in corset 3jpg_thumb.jpg","galleries_id":70484,"server_id":18,"link":"photo_926502.html","width":130,"caption":"#3","height":202});
															thumbnails[500076] = clik.newPhoto({"id":500076,"src":"Girl at Toynbee 304 copyjpg_thumb.jpg","galleries_id":38357,"server_id":18,"link":"photo_500076.html","width":130,"caption":"","height":196});
															thumbnails[616249] = clik.newPhoto({"id":616249,"src":"Male nude 6 copyjpg_thumb.jpg","galleries_id":38357,"server_id":18,"link":"photo_616249.html","width":130,"caption":"","height":190});
															thumbnails[926455] = clik.newPhoto({"id":926455,"src":"AFW2Bjpg_thumb.jpg","galleries_id":70484,"server_id":18,"link":"photo_926455.html","width":130,"caption":"#4","height":201});
															thumbnails[4167194] = clik.newPhoto({"id":4167194,"src":"DSC_0141jpg_thumb.jpg","galleries_id":38357,"server_id":18,"link":"photo_4167194.html","width":130,"caption":"","height":194});
															thumbnails[2064623] = clik.newPhoto({"id":2064623,"src":"Actress - tpr web_thumb.jpg","galleries_id":38357,"server_id":18,"link":"photo_2064623.html","width":130,"caption":"","height":188});
															thumbnails[2064624] = clik.newPhoto({"id":2064624,"src":"Dagmara 19 tpr web_thumb.jpg","galleries_id":38357,"server_id":18,"link":"photo_2064624.html","width":130,"caption":"","height":202});
															thumbnails[926516] = clik.newPhoto({"id":926516,"src":"Girl with tattooed face 1jpg_thumb.jpg","galleries_id":70484,"server_id":18,"link":"photo_926516.html","width":130,"caption":"#5","height":203});
															thumbnails[926524] = clik.newPhoto({"id":926524,"src":"Girls at the rail 1jpg_thumb.jpg","galleries_id":70484,"server_id":18,"link":"photo_926524.html","width":130,"caption":"#6","height":84});
															thumbnails[7101119] = clik.newPhoto({"id":7101119,"src":"Audrone2_DSC_0063_copy_low_thumb.jpg","galleries_id":38357,"server_id":18,"link":"photo_7101119.html","width":130,"caption":"","height":194});
															thumbnails[926500] = clik.newPhoto({"id":926500,"src":"Girl in black dress 1jpg1_thumb.jpg","galleries_id":70484,"server_id":18,"link":"photo_926500.html","width":130,"caption":"#7","height":84});
															thumbnails[6096376] = clik.newPhoto({"id":6096376,"src":"Alexandra3_0069_low_thumb.jpg","galleries_id":38357,"server_id":18,"link":"photo_6096376.html","width":130,"caption":"","height":194});
															thumbnails[6097373] = clik.newPhoto({"id":6097373,"src":"France3_DSC_0100_copy_low_thumb.jpg","galleries_id":38357,"server_id":18,"link":"photo_6097373.html","width":130,"caption":"","height":194});
															thumbnails[926523] = clik.newPhoto({"id":926523,"src":"Girl with white dress 1jpg_thumb.jpg","galleries_id":70484,"server_id":18,"link":"photo_926523.html","width":130,"caption":"#8","height":85});
															thumbnails[926507] = clik.newPhoto({"id":926507,"src":"Girl in mirror 1jpg_thumb.jpg","galleries_id":70484,"server_id":18,"link":"photo_926507.html","width":130,"caption":"#9","height":84});
															thumbnails[4167459] = clik.newPhoto({"id":4167459,"src":"DSC_0145_edited-1jpg_thumb.jpg","galleries_id":38357,"server_id":18,"link":"photo_4167459.html","width":130,"caption":"","height":194});
															thumbnails[926494] = clik.newPhoto({"id":926494,"src":"Girl at mirror 1jpg_thumb.jpg","galleries_id":70484,"server_id":18,"link":"photo_926494.html","width":130,"caption":"#10","height":85});
															thumbnails[926532] = clik.newPhoto({"id":926532,"src":"Men with blue hair and lipsjpg_thumb.jpg","galleries_id":70484,"server_id":18,"link":"photo_926532.html","width":130,"caption":"#11","height":201});
															thumbnails[2064630] = clik.newPhoto({"id":2064630,"src":"Amy 9 b&w tpr web_thumb.jpg","galleries_id":38357,"server_id":18,"link":"photo_2064630.html","width":130,"caption":"","height":204});
															thumbnails[6096262] = clik.newPhoto({"id":6096262,"src":"Rita2_DSC_0051_copy_edited-1_low_thumb.jpg","galleries_id":38357,"server_id":18,"link":"photo_6096262.html","width":130,"caption":"","height":194});
															thumbnails[926510] = clik.newPhoto({"id":926510,"src":"Girl in underwear 6 combined001_thumb.jpg","galleries_id":70484,"server_id":18,"link":"photo_926510.html","width":130,"caption":"#12","height":202});
															thumbnails[926526] = clik.newPhoto({"id":926526,"src":"Girls in corsets 1jpg_thumb.jpg","galleries_id":70484,"server_id":18,"link":"photo_926526.html","width":130,"caption":"#13","height":195});
															thumbnails[4167402] = clik.newPhoto({"id":4167402,"src":"DSC_0155_bw_copy034_thumb.jpg","galleries_id":38357,"server_id":18,"link":"photo_4167402.html","width":130,"caption":"","height":194});
															thumbnails[926620] = clik.newPhoto({"id":926620,"src":"Red and black dress and gloves 1jpg_thumb.jpg","galleries_id":70484,"server_id":18,"link":"photo_926620.html","width":130,"caption":"#14","height":202});
															thumbnails[6097299] = clik.newPhoto({"id":6097299,"src":"Sarah2_DSC_0057_edited-1_bw_low_thumb.jpg","galleries_id":38357,"server_id":18,"link":"photo_6097299.html","width":130,"caption":"","height":191});
															thumbnails[926491] = clik.newPhoto({"id":926491,"src":"AFW before 4jpg_thumb.jpg","galleries_id":70484,"server_id":18,"link":"photo_926491.html","width":130,"caption":"#15","height":202});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[362967] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"ITALIAN FOOTBALL","link":"section432449.html","maxRecords":0.0,"photoIDs":[1028943.0,443599.0,965090.0,443658.0,443676.0,443691.0,1029493.0,443844.0,1029483.0,1029487.0,443704.0,1029482.0,446182.0,446184.0,1029497.0],"skipIndex":0,"section_code":"section432449","featured_images":"1029497,1029493,1029487,1029483,1029482,1028943,965090,446184,446182,443844","id":362967,"singleSection":true});				  						galleries[85382] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Buy CALCISSIMO - Now just £10 inc p&p ","link":"section117832.html","maxRecords":0.0,"photoIDs":[1914680.0],"skipIndex":0,"section_code":"section117832","featured_images":1914680.0,"id":85382,"singleSection":true});				  						galleries[128385] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Calcissimo book - Buy Now (Eire and Worldwide) ","link":"section167361.html","maxRecords":0.0,"photoIDs":[1915196.0,1914640.0],"skipIndex":0,"section_code":"section167361","featured_images":"1915196,1914640","id":128385,"singleSection":true});				  						galleries[38612] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"JORDAN","link":"section99366_38612.html","maxRecords":0.0,"photoIDs":[866296.0,866298.0,866300.0,866306.0,866301.0,866307.0,866316.0,866308.0,866313.0,866314.0],"skipIndex":0,"section_code":"section99366","featured_images":"866316,866314,866313,866308,866307,866306,866301,866300,866298,866296","id":38612,"singleSection":false});				  						galleries[66593] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"MOROCCO","link":"section99366_66593.html","maxRecords":0.0,"photoIDs":[867296.0,867298.0,867307.0,867310.0,867311.0,867314.0,867325.0,867332.0,867334.0,867335.0,867337.0,867340.0,867341.0,867343.0,867344.0],"skipIndex":0,"section_code":"section99366","featured_images":"867344,867343,867341,867340,867337,867335,867334,867332,867325,867314","id":66593,"singleSection":false});				  						galleries[38357] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"NUDES & PORTRAITS","link":"section99366_38357.html","maxRecords":0.0,"photoIDs":[500039.0,500040.0,6099479.0,6095899.0,7101104.0,7101027.0,7100954.0,500062.0,6095896.0,500068.0,4167084.0,500074.0,500076.0,616249.0,4167194.0,2064623.0,2064624.0,7101119.0,6096376.0,6097373.0,4167459.0,2064630.0,6096262.0,4167402.0,6097299.0],"skipIndex":0,"section_code":"section99366","featured_images":"7101119,7101104,7101027,7100954,6099479,6097373,6097299,6096376,6096262,6095899","id":38357,"singleSection":false});				  						galleries[70484] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"FASHION","link":"section99366_70484.html","maxRecords":0.0,"photoIDs":[926486.0,926513.0,926502.0,926455.0,926516.0,926524.0,926500.0,926523.0,926507.0,926494.0,926532.0,926510.0,926526.0,926620.0,926491.0],"skipIndex":0,"section_code":"section99366","featured_images":"926620,926532,926526,926524,926523,926516,926513,926510,926507,926502","id":70484,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '1910742';
imageSets[3] = '7101119,7101104,7101027,7100954,6984101,6984099,6984098,6984096,6984094,6984093,6984089,6984088,6984085,6984076,6984075,6099479,6097373,6097299,6096376,6096262,6095899,6095896,4167459,4167402,4167194,4167084,2064630,2064624,2064623,1915196,1914680,1914640,1910742,1029497,1029493,1029487,1029483,1029482,1028943,965090,926620,926532,926526,926524,926523,926516,926513,926510,926507,926502';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/timreder/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/timreder/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/timreder/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/timreder/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/timreder/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/timreder/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/timreder/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/timreder/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/timreder/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/timreder/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/timreder/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/timreder/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/timreder/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/timreder/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/timreder/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/timreder/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/timreder/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/timreder/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/timreder/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/timreder/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/timreder/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/timreder/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/timreder/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/timreder/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/timreder/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 += 'section432449.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 && 'section432449' != '') {
					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 = 'tpr 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 book online</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp += '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
		else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
																		temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="tim.reder@tiscali.co.uk">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="tim.reder@tiscali.co.uk">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

