window.thumbnails = {};
															thumbnails[4405640] = clik.newPhoto({"id":4405640,"src":"paypal-logo_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":139});
															thumbnails[4405651] = clik.newPhoto({"id":4405651,"src":"images_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":136});
															thumbnails[4405656] = clik.newPhoto({"id":4405656,"src":"free_shipping_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":68});
															thumbnails[4439947] = clik.newPhoto({"id":4439947,"src":"lance_in_paris_setee_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":104});
															thumbnails[4518408] = clik.newPhoto({"id":4518408,"src":"adrian_timmis_and_paul_shipley2_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Adrain and Paul ","height":92});
															thumbnails[4787895] = clik.newPhoto({"id":4787895,"src":"6819_1120578218558_1350131343_315726_8082034_n_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":31});
															thumbnails[5836669] = clik.newPhoto({"id":5836669,"src":"IMG_1101_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Sunderland 2008 Ist Place","height":130});
															thumbnails[5934915] = clik.newPhoto({"id":5934915,"src":"revolutions_and_cycling_art_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Revolutions and Cycling Art Exhibition","height":184});
															thumbnails[6283308] = clik.newPhoto({"id":6283308,"src":"SaatchiGallery0021_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"saatchi gallery","height":182});
															thumbnails[6861146] = clik.newPhoto({"id":6861146,"src":"colleen_cueny_brown_small_crop_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"collen detail","height":195});
															thumbnails[6861193] = clik.newPhoto({"id":6861193,"src":"photo_to_painting_2_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Photo to painting","height":92});
															thumbnails[7896208] = clik.newPhoto({"id":7896208,"src":"me_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":87});
															thumbnails[8316565] = clik.newPhoto({"id":8316565,"src":"interior_1_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Interior","height":90});
															thumbnails[8334383] = clik.newPhoto({"id":8334383,"src":"photo_thumb.JPG","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Geraint Thomas Team Sky","height":173});
															thumbnails[8438369] = clik.newPhoto({"id":8438369,"src":"cav_in_green_framed_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Mark Cavendish in Green and Sunflower Yellow","height":182});
															thumbnails[8472619] = clik.newPhoto({"id":8472619,"src":"coppi_frame_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Fausto Coppi","height":177});
															thumbnails[4743504] = clik.newPhoto({"id":4743504,"src":"alison_shanksworld_champion_thumb.jpg","galleries_id":256487,"server_id":18,"link":"photo_4743504.html","width":130,"caption":"Alison Shanks World Champion 2009<br>\r\nhttp:\/\/www.alisonshanks.co.nz\/","height":95});
															thumbnails[4856763] = clik.newPhoto({"id":4856763,"src":"alistair_brownlee3_thumb.jpg","galleries_id":256487,"server_id":18,"link":"photo_4856763.html","width":130,"caption":"Alistair Brownlee World Champion Triathlete 2009","height":92});
															thumbnails[4913566] = clik.newPhoto({"id":4913566,"src":"rob_jebb_painting_thumb.jpg","galleries_id":256487,"server_id":18,"link":"photo_4913566.html","width":130,"caption":"Rob Jebb at Ribble Head Three Peaks Yorkshire","height":92});
															thumbnails[5034222] = clik.newPhoto({"id":5034222,"src":"bradley_wiggins_2_painting_thumb.jpg","galleries_id":256487,"server_id":18,"link":"photo_5034222.html","width":130,"caption":"Bradley Wiggins Tour de france","height":92});
															thumbnails[5147294] = clik.newPhoto({"id":5147294,"src":"doc_and_john_small_image_thumb.jpg","galleries_id":256487,"server_id":18,"link":"photo_5147294.html","width":130,"caption":"The Doctor and Uncle Johnny","height":92});
															thumbnails[5147299] = clik.newPhoto({"id":5147299,"src":"lindsay_ayton_small_image_thumb.jpg","galleries_id":256487,"server_id":18,"link":"photo_5147299.html","width":130,"caption":"Lindsay Ayton Talks","height":92});
															thumbnails[5322194] = clik.newPhoto({"id":5322194,"src":"pj_clarkes_small_thumb.jpg","galleries_id":299613,"server_id":18,"link":"photo_5322194.html","width":130,"caption":"P J Clarkes 55th and 3rd New York New York","height":184});
															thumbnails[5322265] = clik.newPhoto({"id":5322265,"src":"lucy_and_jimmy_small12_thumb.jpg","galleries_id":299613,"server_id":18,"link":"photo_5322265.html","width":130,"caption":"Lucy and Jimmy","height":184});
															thumbnails[5514671] = clik.newPhoto({"id":5514671,"src":"pj_clarkes_2small_thumb.jpg","galleries_id":299613,"server_id":18,"link":"photo_5514671.html","width":130,"caption":"P J Clarke's New York","height":92});
															thumbnails[5521677] = clik.newPhoto({"id":5521677,"src":"Ians_MGsmall_thumb.jpg","galleries_id":299613,"server_id":18,"link":"photo_5521677.html","width":130,"caption":"Ian Young's pride and Joy. His MG outside the Tyne Pub Newcastle","height":184});
															thumbnails[5528359] = clik.newPhoto({"id":5528359,"src":"photo_to_painting_thumb.jpg","galleries_id":299613,"server_id":18,"link":"photo_5528359.html","width":130,"caption":"Turn Your Photos into original paintings","height":92});
															thumbnails[5625700] = clik.newPhoto({"id":5625700,"src":"bwsmall_thumb.jpg","galleries_id":256489,"server_id":18,"link":"photo_5625700.html","width":130,"caption":"P J clarkes New York","height":87});
															thumbnails[5625704] = clik.newPhoto({"id":5625704,"src":"yellow2_thumb.jpg","galleries_id":256489,"server_id":18,"link":"photo_5625704.html","width":130,"caption":"P J Clarkes New York Taxis","height":87});
															thumbnails[5625809] = clik.newPhoto({"id":5625809,"src":"bubbles_small_thumb.jpg","galleries_id":256490,"server_id":18,"link":"photo_5625809.html","width":130,"caption":"","height":184});
															thumbnails[6283201] = clik.newPhoto({"id":6283201,"src":"new_york_cycle_courier_0nesmall_thumb.jpg","galleries_id":299613,"server_id":18,"link":"photo_6283201.html","width":130,"caption":"New York Cycle Courier Number One","height":184});
															thumbnails[6283202] = clik.newPhoto({"id":6283202,"src":"newy_your_bicycle_courier_2small_thumb.jpg","galleries_id":299613,"server_id":18,"link":"photo_6283202.html","width":130,"caption":"New York Cycle Courier Number Two","height":184});
															thumbnails[6521001] = clik.newPhoto({"id":6521001,"src":"plug_hole_small_thumb.jpg","galleries_id":299613,"server_id":18,"link":"photo_6521001.html","width":130,"caption":"Plug hole","height":92});
															thumbnails[6521005] = clik.newPhoto({"id":6521005,"src":"SURF_1SMALL_thumb.jpg","galleries_id":299613,"server_id":18,"link":"photo_6521005.html","width":130,"caption":"SURF 1","height":92});
															thumbnails[7361393] = clik.newPhoto({"id":7361393,"src":"angel_runner_small_thumb.jpg","galleries_id":435374,"server_id":18,"link":"photo_7361393.html","width":130,"caption":"Great North Runner Angel of the North","height":92});
															thumbnails[7361534] = clik.newPhoto({"id":7361534,"src":"central_park_busker_small_thumb.jpg","galleries_id":299613,"server_id":18,"link":"photo_7361534.html","width":130,"caption":"Busker in Central Park NYC","height":92});
															thumbnails[7367644] = clik.newPhoto({"id":7367644,"src":"ironman_swim_small_thumb.jpg","galleries_id":435374,"server_id":18,"link":"photo_7367644.html","width":130,"caption":"Ironman Open Water Swimmer","height":92});
															thumbnails[7641662] = clik.newPhoto({"id":7641662,"src":"dean_karnazes_smaller_thumb.jpg","galleries_id":435374,"server_id":18,"link":"photo_7641662.html","width":130,"caption":"Dean Karnazes Ultramarathon Man","height":98});
															thumbnails[8142521] = clik.newPhoto({"id":8142521,"src":"jillian_michaels2_thumb.jpg","galleries_id":435374,"server_id":18,"link":"photo_8142521.html","width":130,"caption":"Jillian Michaels THE COACH & AUTHOR","height":182});
															thumbnails[8177876] = clik.newPhoto({"id":8177876,"src":"Bus_card_t_shirt_thumb.jpg","galleries_id":436676,"server_id":18,"link":"photo_8177876.html","width":130,"caption":"Bradley Wiggins T shirt","height":130});
															thumbnails[8178554] = clik.newPhoto({"id":8178554,"src":"rainbow_abstract_thumb.jpg","galleries_id":299613,"server_id":18,"link":"photo_8178554.html","width":130,"caption":"World Champion Abstract Painting","height":184});
															thumbnails[8178555] = clik.newPhoto({"id":8178555,"src":"la_vie_thumb.jpg","galleries_id":299613,"server_id":18,"link":"photo_8178555.html","width":130,"caption":"La Vie En Claire Abstract Painting","height":184});
															thumbnails[8178563] = clik.newPhoto({"id":8178563,"src":"rainbow_abstract_t_thumb.jpg","galleries_id":436676,"server_id":18,"link":"photo_8178563.html","width":130,"caption":"World Champion Rainbow Abstract","height":130});
															thumbnails[8178570] = clik.newPhoto({"id":8178570,"src":"LA_VIE_EN_CLAIRE_ART_T_SHIRT_thumb.jpg","galleries_id":436676,"server_id":18,"link":"photo_8178570.html","width":130,"caption":"La Vie en claire","height":130});
															thumbnails[8199694] = clik.newPhoto({"id":8199694,"src":"cadel_t_shirt_thumb.jpg","galleries_id":436676,"server_id":18,"link":"photo_8199694.html","width":130,"caption":"Cadel Evans Aussie Superstar cycling winner TDF 2011","height":130});
															thumbnails[8199696] = clik.newPhoto({"id":8199696,"src":"thomas_voeckler_s_shirt_thumb.jpg","galleries_id":436676,"server_id":18,"link":"photo_8199696.html","width":130,"caption":"Thomas Voeckler in the Jaune","height":130});
															thumbnails[8199700] = clik.newPhoto({"id":8199700,"src":"cav_t_shirt_thumb.jpg","galleries_id":436676,"server_id":18,"link":"photo_8199700.html","width":130,"caption":"Mark CAV Cavandish Sprints","height":130});
															thumbnails[8283858] = clik.newPhoto({"id":8283858,"src":"big_mig_t_shirt_thumb.jpg","galleries_id":436676,"server_id":18,"link":"photo_8283858.html","width":130,"caption":"BIG MIG Miguel Indurain T Shirt","height":130});
															thumbnails[8283863] = clik.newPhoto({"id":8283863,"src":"wiggins_grey_thumb.jpg","galleries_id":436676,"server_id":18,"link":"photo_8283863.html","width":130,"caption":"Wiggins Grey T Shirt","height":130});
															thumbnails[8283866] = clik.newPhoto({"id":8283866,"src":"wiggins_blue_thumb.jpg","galleries_id":436676,"server_id":18,"link":"photo_8283866.html","width":130,"caption":"Wiggins Blue T Shirt","height":130});
															thumbnails[8284050] = clik.newPhoto({"id":8284050,"src":"indurainsmall_thumb.jpg","galleries_id":256487,"server_id":18,"link":"photo_8284050.html","width":130,"caption":"BIG MIG ..Miguel Indurain","height":184});
															thumbnails[8323023] = clik.newPhoto({"id":8323023,"src":"cadel_at_the_arcsmall_thumb.jpg","galleries_id":256487,"server_id":18,"link":"photo_8323023.html","width":130,"caption":"Cadel Evans Le Tour de France winner 2011","height":92});
															thumbnails[8336055] = clik.newPhoto({"id":8336055,"src":"fabsmall_thumb.jpg","galleries_id":256487,"server_id":18,"link":"photo_8336055.html","width":130,"caption":"fabian Cancellara","height":92});
															thumbnails[8336164] = clik.newPhoto({"id":8336164,"src":"becky_724x1024_thumb.jpg","galleries_id":256487,"server_id":18,"link":"photo_8336164.html","width":130,"caption":"Becky James UK Track Cyclist","height":184});
															thumbnails[8346128] = clik.newPhoto({"id":8346128,"src":"paris_policesmall_thumb.jpg","galleries_id":256489,"server_id":18,"link":"photo_8346128.html","width":130,"caption":"Parisian Police Flying Squad","height":92});
															thumbnails[8358108] = clik.newPhoto({"id":8358108,"src":"cadel_mountains_thumb.jpg","galleries_id":256487,"server_id":18,"link":"photo_8358108.html","width":130,"caption":"Cadel Evans in the Mountains","height":92});
															thumbnails[8472590] = clik.newPhoto({"id":8472590,"src":"bolt_frame_thumb.jpg","galleries_id":435374,"server_id":18,"link":"photo_8472590.html","width":130,"caption":"USAIN BOLT","height":177});
															thumbnails[8472613] = clik.newPhoto({"id":8472613,"src":"charly_gaul_frame_thumb.jpg","galleries_id":256487,"server_id":18,"link":"photo_8472613.html","width":130,"caption":"Charly Gaul","height":177});
															thumbnails[8499606] = clik.newPhoto({"id":8499606,"src":"eddy_mframe1_thumb.jpg","galleries_id":256487,"server_id":18,"link":"photo_8499606.html","width":130,"caption":"Eddy Merckx,","height":177});
															thumbnails[8540817] = clik.newPhoto({"id":8540817,"src":"cummins_and_cav_thumb.jpg","galleries_id":256487,"server_id":18,"link":"photo_8540817.html","width":130,"caption":"TEAM GB World Championships","height":184});
															thumbnails[8547554] = clik.newPhoto({"id":8547554,"src":"cleaned_dave_lloydframe_thumb.jpg","galleries_id":256487,"server_id":18,"link":"photo_8547554.html","width":130,"caption":"Dave Lloyd","height":95});
															thumbnails[8613812] = clik.newPhoto({"id":8613812,"src":"pj_clarkes_2small_01FCE354-24E8-5EC4-4FA9D8EEB4A4B9BE_thumb.jpg","galleries_id":299613,"server_id":18,"link":"photo_8613812.html","width":130,"caption":"Pink Lady Leaving PJ's","height":92});
															thumbnails[8644486] = clik.newPhoto({"id":8644486,"src":"rick_and_vox_new_scan_painting_small_thumb.jpg","galleries_id":299613,"server_id":18,"link":"photo_8644486.html","width":130,"caption":"Rickenbacker Guitar and Vox Amp ...Acrylics","height":184});
															thumbnails[8645945] = clik.newPhoto({"id":8645945,"src":"chet_small_image_thumb.jpg","galleries_id":299613,"server_id":18,"link":"photo_8645945.html","width":130,"caption":"CHET BAKER","height":184});
															thumbnails[8682742] = clik.newPhoto({"id":8682742,"src":"fd_frame_thumb.jpg","galleries_id":299613,"server_id":18,"link":"photo_8682742.html","width":130,"caption":"***COMMISSIONS AVAILABLE***Finley and Darcy PORTRAIT","height":95});
															thumbnails[8918824] = clik.newPhoto({"id":8918824,"src":"runnning_in_the_park_thumb.jpg","galleries_id":299613,"server_id":18,"link":"photo_8918824.html","width":130,"caption":"Running in a snowy Central Park","height":95});
															thumbnails[8918826] = clik.newPhoto({"id":8918826,"src":"drop_me_at_clarkes_frame_thumb.jpg","galleries_id":299613,"server_id":18,"link":"photo_8918826.html","width":130,"caption":"Drop Me at P J Clarkes","height":95});
															thumbnails[8918828] = clik.newPhoto({"id":8918828,"src":"joe_f_frame_thumb.jpg","galleries_id":435374,"server_id":18,"link":"photo_8918828.html","width":130,"caption":"Smokin Joe Frazier","height":177});
															thumbnails[8918894] = clik.newPhoto({"id":8918894,"src":"cavendish2small_thumb.jpg","galleries_id":256487,"server_id":18,"link":"photo_8918894.html","width":130,"caption":"Cavendish in Green and Yellow","height":87});
															thumbnails[4398344] = clik.newPhoto({"id":4398344,"src":"adrian_timmis_small_file_thumb.jpg","galleries_id":256487,"server_id":18,"link":"photo_4398344.html","width":130,"caption":"Adrian Timmis Tour De France Time trial 1987","height":92});
															thumbnails[8203890] = clik.newPhoto({"id":8203890,"src":"thomas2small_thumb.jpg","galleries_id":256487,"server_id":18,"link":"photo_8203890.html","width":130,"caption":"GERAINT THOMAS Team Sky","height":184});
															thumbnails[4398605] = clik.newPhoto({"id":4398605,"src":"cycling0001_thumb.jpg","galleries_id":256487,"server_id":18,"link":"photo_4398605.html","width":130,"caption":"Lance  Armstrong Time trial","height":97});
															thumbnails[8199685] = clik.newPhoto({"id":8199685,"src":"cadel_evanssmall_thumb.jpg","galleries_id":256487,"server_id":18,"link":"photo_8199685.html","width":130,"caption":"CADEL EVANS DAY BREAK","height":92});
															thumbnails[5772506] = clik.newPhoto({"id":5772506,"src":"wiggins_tracksmall_thumb.jpg","galleries_id":256487,"server_id":18,"link":"photo_5772506.html","width":130,"caption":"Bradley Wiggins Team GB on the Track","height":92});
															thumbnails[8199631] = clik.newPhoto({"id":8199631,"src":"thomas_voecklersmall_thumb.jpg","galleries_id":256487,"server_id":18,"link":"photo_8199631.html","width":130,"caption":"Thomas Voeckler dans le Jaune","height":92});
															thumbnails[4398613] = clik.newPhoto({"id":4398613,"src":"cycling0005_thumb.jpg","galleries_id":256487,"server_id":18,"link":"photo_4398613.html","width":130,"caption":"Paul Shipley","height":97});
															thumbnails[7645373] = clik.newPhoto({"id":7645373,"src":"wigginssmall_thumb.jpg","galleries_id":256487,"server_id":18,"link":"photo_7645373.html","width":130,"caption":"Bradley Wiggins Team Sky","height":184});
															thumbnails[7645360] = clik.newPhoto({"id":7645360,"src":"gsmall_thumb.jpg","galleries_id":256487,"server_id":18,"link":"photo_7645360.html","width":130,"caption":"Geraint Thomas Team Sky Cycling","height":184});
															thumbnails[7641665] = clik.newPhoto({"id":7641665,"src":"graeme_obreesmaller_thumb.jpg","galleries_id":256487,"server_id":18,"link":"photo_7641665.html","width":130,"caption":"Graeme Obree Scottish Cyclist","height":92});
															thumbnails[4439948] = clik.newPhoto({"id":4439948,"src":"pantani1small_thumb.jpg","galleries_id":256487,"server_id":18,"link":"photo_4439948.html","width":130,"caption":"Pantani The Pirate","height":166});
															thumbnails[7567421] = clik.newPhoto({"id":7567421,"src":"steve_Bauer_small_thumb.jpg","galleries_id":256487,"server_id":18,"link":"photo_7567421.html","width":130,"caption":"Steve Bauer The Great Canadian Tour De France Rider","height":184});
															thumbnails[4398627] = clik.newPhoto({"id":4398627,"src":"cycling0027_thumb.jpg","galleries_id":256487,"server_id":18,"link":"photo_4398627.html","width":130,"caption":"Livestrong","height":184});
															thumbnails[6861140] = clik.newPhoto({"id":6861140,"src":"colleen_cueny_brown_small_thumb.jpg","galleries_id":256487,"server_id":18,"link":"photo_6861140.html","width":130,"caption":"Colleeen Cueny Brown US Cyclist","height":92});
															thumbnails[4398609] = clik.newPhoto({"id":4398609,"src":"cycling0003_thumb.jpg","galleries_id":256487,"server_id":18,"link":"photo_4398609.html","width":130,"caption":"Eddy Merckx","height":181});
															thumbnails[6520999] = clik.newPhoto({"id":6520999,"src":"contadorsmall_thumb.jpg","galleries_id":256487,"server_id":18,"link":"photo_6520999.html","width":130,"caption":"Alberto Contador","height":92});
															thumbnails[6299275] = clik.newPhoto({"id":6299275,"src":"lance_radioshacksmaller1_thumb.jpg","galleries_id":256487,"server_id":18,"link":"photo_6299275.html","width":130,"caption":"Lance Armstrong Tour 2010","height":184});
															thumbnails[6294596] = clik.newPhoto({"id":6294596,"src":"rochesmall3_thumb.jpg","galleries_id":256487,"server_id":18,"link":"photo_6294596.html","width":130,"caption":"Stephen Roche","height":184});
															thumbnails[6075368] = clik.newPhoto({"id":6075368,"src":"millar_small_thumb.jpg","galleries_id":256487,"server_id":18,"link":"photo_6075368.html","width":130,"caption":"Robert Millar","height":184});
															thumbnails[5772508] = clik.newPhoto({"id":5772508,"src":"king_o9f_the_mountainsmall_E1B3FDA3-1D09-001F-99F53867657993D5_thumb.jpg","galleries_id":256487,"server_id":18,"link":"photo_5772508.html","width":130,"caption":"King of the mountains","height":92});
															thumbnails[4646307] = clik.newPhoto({"id":4646307,"src":"cadel_evans_thumb.jpg","galleries_id":256487,"server_id":18,"link":"photo_4646307.html","width":130,"caption":"Cadel Evans","height":95});
															thumbnails[5772507] = clik.newPhoto({"id":5772507,"src":"pantanin_and_the_devilsmall_thumb.jpg","galleries_id":256487,"server_id":18,"link":"photo_5772507.html","width":130,"caption":"Marco Pantani Classic duel with the devil","height":184});
															thumbnails[4646320] = clik.newPhoto({"id":4646320,"src":"INDURAIN_thumb.jpg","galleries_id":256487,"server_id":18,"link":"photo_4646320.html","width":130,"caption":"Miguel Indurain Time Trial in Poppys","height":97});
															thumbnails[5772504] = clik.newPhoto({"id":5772504,"src":"mark_cavandishsmall_thumb.jpg","galleries_id":256487,"server_id":18,"link":"photo_5772504.html","width":130,"caption":"Mark Cavendish Sprints for the line","height":92});
															thumbnails[5147305] = clik.newPhoto({"id":5147305,"src":"fignon_and_lemond_small_image_thumb.jpg","galleries_id":256487,"server_id":18,"link":"photo_5147305.html","width":130,"caption":"Fignon versus Lemond","height":184});
															thumbnails[4646323] = clik.newPhoto({"id":4646323,"src":"yellow_jersey_thumb.jpg","galleries_id":256487,"server_id":18,"link":"photo_4646323.html","width":130,"caption":"Le Maillot Jaune in Lavender","height":99});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[256488] = clik.newGallery({"parentGallery":256484,"usePopups":false,"title":"Abstract Art","link":"gallery_256488.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"","id":256488,"singleSection":false});				  						galleries[435374] = clik.newGallery({"parentGallery":256483,"usePopups":false,"title":"Athletes","link":"gallery_435374.html","maxRecords":0.0,"photoIDs":[7361393.0,7367644.0,7641662.0,8142521.0,8472590.0,8918828.0],"skipIndex":0,"section_code":"gallery","featured_images":"8918828,8472590,8142521,7641662,7367644,7361393","id":435374,"singleSection":false});				  						galleries[256487] = clik.newGallery({"parentGallery":256483,"usePopups":false,"title":"Cycling Art","link":"gallery_256487.html","maxRecords":0.0,"photoIDs":[4743504.0,4856763.0,4913566.0,5034222.0,5147294.0,5147299.0,8284050.0,8323023.0,8336055.0,8336164.0,8358108.0,8472613.0,8499606.0,8540817.0,8547554.0,8918894.0,4398344.0,8203890.0,4398605.0,8199685.0,5772506.0,8199631.0,4398613.0,7645373.0,7645360.0,7641665.0,4439948.0,7567421.0,4398627.0,6861140.0,4398609.0,6520999.0,6299275.0,6294596.0,6075368.0,5772508.0,4646307.0,5772507.0,4646320.0,5772504.0,5147305.0,4646323.0],"skipIndex":0,"section_code":"gallery","featured_images":"8918894,8547554,8540817,8499606,8472613,8358108,8336164,8336055,8323023,8284050,8203890,8199685,8199631,7645373,7645360,7641665,7567421,6861140,6520999,6299275,6294596,6075368,5772508,5772507,5772506,5772504,5147305,5147299,5147294,5034222,4913566,4646323,4646320,4646307,4398605,4398344","id":256487,"singleSection":false});				  						galleries[436676] = clik.newGallery({"parentGallery":256483,"usePopups":false,"title":"Limited Edition T Shirts","link":"gallery_436676.html","maxRecords":0.0,"photoIDs":[8177876.0,8178563.0,8178570.0,8199694.0,8199696.0,8199700.0,8283858.0,8283863.0,8283866.0],"skipIndex":0,"section_code":"gallery","featured_images":"8283866,8283863,8283858,8199700,8199696,8199694,8178570,8178563,8177876","id":436676,"singleSection":false});				  						galleries[299613] = clik.newGallery({"parentGallery":256483,"usePopups":false,"title":"Other Art","link":"gallery_299613.html","maxRecords":0.0,"photoIDs":[5322194.0,5322265.0,5514671.0,5521677.0,5528359.0,6283201.0,6283202.0,6521001.0,6521005.0,7361534.0,8178554.0,8178555.0,8613812.0,8644486.0,8645945.0,8682742.0,8918824.0,8918826.0],"skipIndex":0,"section_code":"gallery","featured_images":"8918826,8918824,8682742,8645945,8644486,8613812,8178555,8178554,7361534,6521005,6521001,6283202,5322194","id":299613,"singleSection":false});				  						galleries[256489] = clik.newGallery({"parentGallery":256483,"usePopups":false,"title":"Photography","link":"gallery_256489.html","maxRecords":0.0,"photoIDs":[5625700.0,5625704.0,8346128.0],"skipIndex":0,"section_code":"gallery","featured_images":"8346128,5625700","id":256489,"singleSection":false});				  						galleries[256490] = clik.newGallery({"parentGallery":256484,"usePopups":false,"title":"Photography","link":"gallery_256490.html","maxRecords":0.0,"photoIDs":[5625809.0],"skipIndex":0,"section_code":"gallery","featured_images":5625809.0,"id":256490,"singleSection":false});				  						galleries[256483] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Paul Shipley","link":"gallery_256483.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"8918894,8918828,8918826,8918824,8682742,8645945,8644486,8613812,8547554,8540817,8499606,8472613,8472590,8358108,8346128,8336164,8336055,8323023,8284050,8283866,8283863,8283858,8203890,8199700,8199696,8199694,8199685,8199631,8178570,8178563,8178555,8178554,8177876,8142521,7645373,7645360,7641665,7641662,7567421,7367644,7361534,7361393,6861140,6521005,6521001,6520999,6299275,6294596,6283202,6075368,5772508,5772507,5772506,5772504,5625700,5322194,5147305,5147299,5147294,5034222,4913566,4646323,4646320,4646307,4398605,4398344","id":256483,"singleSection":false});				  						galleries[256484] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Caroline Shipley","link":"gallery_256484.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":5625809.0,"id":256484,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[243607] = '7896208';
imageSets[1] = '8918894,8547554,8540817,8499606,8472619,8472613,8472590,8358108,8336164,8336055,8334383,8323023,8316565,8284050,8142521,7641662,7367644,7361393,6861193,5147299,5147294,5034222,4913566,4856763,4743504,8203890,4398344,8199685,4398605,8199631,5772506,4398613,7645373,7645360,7641665,7567421,4439948,6861140,4398627,6520999,4398609,6075368,5772508,5772507,4646307,5772504,4646320,5147305,4646323';
imageSets[2] = '8918894,8918828,8918826,8918824,8682742,8645945,8644486,8613812,8547554,8540817,8499606,8472619,8472613,8472590,8358108,8346128,8336164,8336055,8323023,8284050,8283866,8283863,8283858,8199700,8199696,8199694,8178570,8178563,8178555,8178554,8177876,8142521,7641662,7367644,7361534,7361393,6521005,6521001,6283202,5625700,5322194,5147299,5147294,5034222,4913566,8203890,4398344,8199685,4398605,8199631,5772506,7645373,7645360,7641665,7567421,6861140,6520999,6299275,6294596,6075368,5772508,5772507,4646307,5772504,4646320,5147305,4646323';
imageSets[3] = '8918894,8547554,8540817,8499606,8472619,8472613,8472590,8358108,8336164,8336055,8323023,8284050,8142521,7896208,7367644,7361534,7361393,6521005,6521001,6283202,5836669,5322265,4913566,8203890,4398344,8199685,4398605,8199631,5772506,4398613,7645373,7645360,7641665,7567421,4439948,6861140,4398627,6520999,4398609,6299275,6294596,5772508,5772507,5772504,5147305';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/shippas/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/shippas/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/shippas/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/shippas/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/shippas/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/shippas/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/shippas/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/shippas/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/shippas/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/shippas/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/shippas/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/shippas/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/shippas/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/shippas/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/shippas/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/shippas/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/shippas/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/shippas/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/shippas/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/shippas/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/shippas/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/shippas/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/shippas/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/shippas/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/shippas/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/shippas/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/shippas/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 = 'Veritas Art: ' + 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="SHIPPAS">';
			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;
	}
}

			

