window.thumbnails = {};
															thumbnails[2067895] = clik.newPhoto({"id":2067895,"src":"coming-soon_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":94});
															thumbnails[2211288] = clik.newPhoto({"id":2211288,"src":"dr-who-close_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Dr Who","height":173});
															thumbnails[2211290] = clik.newPhoto({"id":2211290,"src":"dr-who_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Police Box","height":260});
															thumbnails[3831857] = clik.newPhoto({"id":3831857,"src":"terminator2_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Terminator 2","height":184});
															thumbnails[3961134] = clik.newPhoto({"id":3961134,"src":"teminator-head1_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Terminator","height":184});
															thumbnails[2022450] = clik.newPhoto({"id":2022450,"src":"blue-macaw_thumb.jpg","galleries_id":135410,"server_id":32,"link":"photo_2022450.html","width":130,"caption":"Blue Macaw","height":214});
															thumbnails[2022463] = clik.newPhoto({"id":2022463,"src":"tiger-head_thumb.jpg","galleries_id":135410,"server_id":32,"link":"photo_2022463.html","width":130,"caption":"Tiger Head","height":134});
															thumbnails[2022465] = clik.newPhoto({"id":2022465,"src":"rino_thumb.jpg","galleries_id":135410,"server_id":32,"link":"photo_2022465.html","width":130,"caption":"Rhino","height":165});
															thumbnails[2022671] = clik.newPhoto({"id":2022671,"src":"em1_thumb.jpg","galleries_id":135412,"server_id":32,"link":"photo_2022671.html","width":130,"caption":"Girl","height":109});
															thumbnails[2022674] = clik.newPhoto({"id":2022674,"src":"girl&boy_thumb.jpg","galleries_id":135412,"server_id":32,"link":"photo_2022674.html","width":130,"caption":"Girl and Boy","height":198});
															thumbnails[2022733] = clik.newPhoto({"id":2022733,"src":"lazycat1_thumb.jpg","galleries_id":135410,"server_id":32,"link":"photo_2022733.html","width":130,"caption":"lazy Cat","height":66});
															thumbnails[2414223] = clik.newPhoto({"id":2414223,"src":"greg 056a_thumb.jpg","galleries_id":156205,"server_id":32,"link":"photo_2414223.html","width":130,"caption":"Greg Harris","height":87});
															thumbnails[2438947] = clik.newPhoto({"id":2438947,"src":"shark_thumb.jpg","galleries_id":157400,"server_id":32,"link":"photo_2438947.html","width":130,"caption":"Great White Shark","height":222});
															thumbnails[2516883] = clik.newPhoto({"id":2516883,"src":"tall-ship_thumb.jpg","galleries_id":161313,"server_id":32,"link":"photo_2516883.html","width":130,"caption":"Ship and Moon","height":127});
															thumbnails[2561531] = clik.newPhoto({"id":2561531,"src":"big-bike_thumb.jpg","galleries_id":135424,"server_id":32,"link":"photo_2561531.html","width":130,"caption":"Harley ","height":98});
															thumbnails[2656929] = clik.newPhoto({"id":2656929,"src":"new-superbike_thumb.jpg","galleries_id":135424,"server_id":32,"link":"photo_2656929.html","width":130,"caption":"Superbike","height":93});
															thumbnails[2769204] = clik.newPhoto({"id":2769204,"src":"town-hall_thumb.jpg","galleries_id":173586,"server_id":32,"link":"photo_2769204.html","width":130,"caption":"Town Hall","height":170});
															thumbnails[2799435] = clik.newPhoto({"id":2799435,"src":"titanic_thumb.jpg","galleries_id":161313,"server_id":32,"link":"photo_2799435.html","width":130,"caption":"Titanic","height":94});
															thumbnails[2843672] = clik.newPhoto({"id":2843672,"src":"garden2_thumb.jpg","galleries_id":176745,"server_id":32,"link":"photo_2843672.html","width":130,"caption":"The Bridge","height":93});
															thumbnails[2859510] = clik.newPhoto({"id":2859510,"src":"early-morning-birdies_thumb.jpg","galleries_id":178837,"server_id":32,"link":"photo_2859510.html","width":130,"caption":"Early Morning Birdies","height":91});
															thumbnails[2881428] = clik.newPhoto({"id":2881428,"src":"OUT-INTO-THE-BLUE-YONDER-_thumb.jpg","galleries_id":178837,"server_id":32,"link":"photo_2881428.html","width":130,"caption":"Out Into The Blue Yonder","height":95});
															thumbnails[2981637] = clik.newPhoto({"id":2981637,"src":"abby-view_thumb.jpg","galleries_id":178837,"server_id":32,"link":"photo_2981637.html","width":130,"caption":"Abbey View","height":91});
															thumbnails[3700103] = clik.newPhoto({"id":3700103,"src":"blue-train1_thumb.jpg","galleries_id":135424,"server_id":32,"link":"photo_3700103.html","width":130,"caption":"Blue Train 1","height":98});
															thumbnails[3700110] = clik.newPhoto({"id":3700110,"src":"WASP1_thumb.jpg","galleries_id":176745,"server_id":32,"link":"photo_3700110.html","width":130,"caption":"Wasp","height":98});
															thumbnails[3784540] = clik.newPhoto({"id":3784540,"src":"lobster1_thumb.jpg","galleries_id":157400,"server_id":32,"link":"photo_3784540.html","width":130,"caption":"Lobster 1","height":98});
															thumbnails[3784541] = clik.newPhoto({"id":3784541,"src":"lobster-2_thumb.jpg","galleries_id":157400,"server_id":32,"link":"photo_3784541.html","width":130,"caption":"Lobster 2","height":98});
															thumbnails[3907141] = clik.newPhoto({"id":3907141,"src":"sea-view_thumb.jpg","galleries_id":157400,"server_id":32,"link":"photo_3907141.html","width":130,"caption":"Sea View","height":99});
															thumbnails[3933458] = clik.newPhoto({"id":3933458,"src":"Mr-Sharky_thumb.jpg","galleries_id":157400,"server_id":32,"link":"photo_3933458.html","width":130,"caption":"Mr Sharky","height":98});
															thumbnails[3933463] = clik.newPhoto({"id":3933463,"src":"sharky2_thumb.jpg","galleries_id":157400,"server_id":32,"link":"photo_3933463.html","width":130,"caption":"Mr Sharky's Brother","height":98});
															thumbnails[3993533] = clik.newPhoto({"id":3993533,"src":"moody-skies--calm-Seas_thumb.jpg","galleries_id":161313,"server_id":32,"link":"photo_3993533.html","width":130,"caption":"Moody Skies and Calm Seas","height":98});
															thumbnails[4015494] = clik.newPhoto({"id":4015494,"src":"napoleon-dynamite_thumb.jpg","galleries_id":146064,"server_id":32,"link":"photo_4015494.html","width":130,"caption":"Napoleon Dynamite","height":161});
															thumbnails[4055385] = clik.newPhoto({"id":4055385,"src":"arnie_thumb.jpg","galleries_id":146064,"server_id":32,"link":"photo_4055385.html","width":130,"caption":"Arnie","height":175});
															thumbnails[4072345] = clik.newPhoto({"id":4072345,"src":"columbo_thumb.jpg","galleries_id":146064,"server_id":32,"link":"photo_4072345.html","width":130,"caption":"Columbo","height":145});
															thumbnails[4598975] = clik.newPhoto({"id":4598975,"src":"the-governor_thumb.jpg","galleries_id":135410,"server_id":32,"link":"photo_4598975.html","width":130,"caption":"The Gov","height":146});
															thumbnails[4599052] = clik.newPhoto({"id":4599052,"src":"elephant_thumb.jpg","galleries_id":135410,"server_id":32,"link":"photo_4599052.html","width":130,"caption":"pencil elephants ","height":168});
															thumbnails[4600321] = clik.newPhoto({"id":4600321,"src":"beetle-bug_thumb.jpg","galleries_id":135424,"server_id":32,"link":"photo_4600321.html","width":130,"caption":"VW Beetle ","height":111});
															thumbnails[4600388] = clik.newPhoto({"id":4600388,"src":"foxglove_thumb.jpg","galleries_id":176745,"server_id":32,"link":"photo_4600388.html","width":130,"caption":"","height":185});
															thumbnails[4600390] = clik.newPhoto({"id":4600390,"src":"inseparable_thumb.jpg","galleries_id":135410,"server_id":32,"link":"photo_4600390.html","width":130,"caption":"Inseparable","height":163});
															thumbnails[4615310] = clik.newPhoto({"id":4615310,"src":"tiger-head-pencil_thumb.jpg","galleries_id":135410,"server_id":32,"link":"photo_4615310.html","width":130,"caption":"","height":102});
															thumbnails[4633796] = clik.newPhoto({"id":4633796,"src":"river-don_small_thumb.jpg","galleries_id":266154,"server_id":32,"link":"photo_4633796.html","width":130,"caption":"","height":173});
															thumbnails[4651731] = clik.newPhoto({"id":4651731,"src":"Robs-dog-_thumb.jpg","galleries_id":268320,"server_id":32,"link":"photo_4651731.html","width":130,"caption":"","height":175});
															thumbnails[4814148] = clik.newPhoto({"id":4814148,"src":"play-time_thumb.jpg","galleries_id":268320,"server_id":32,"link":"photo_4814148.html","width":130,"caption":"","height":198});
															thumbnails[4814152] = clik.newPhoto({"id":4814152,"src":"loyalty_thumb.jpg","galleries_id":268320,"server_id":32,"link":"photo_4814152.html","width":130,"caption":"","height":170});
															thumbnails[4883207] = clik.newPhoto({"id":4883207,"src":"girl_thumb.jpg","galleries_id":135412,"server_id":32,"link":"photo_4883207.html","width":130,"caption":"","height":94});
															thumbnails[5010401] = clik.newPhoto({"id":5010401,"src":"police-box2_thumb.jpg","galleries_id":284068,"server_id":32,"link":"photo_5010401.html","width":130,"caption":"","height":155});
															thumbnails[5038167] = clik.newPhoto({"id":5038167,"src":"Maxwell_thumb.jpg","galleries_id":268320,"server_id":32,"link":"photo_5038167.html","width":130,"caption":"","height":131});
															thumbnails[5219145] = clik.newPhoto({"id":5219145,"src":"sues-dog_thumb.jpg","galleries_id":268320,"server_id":32,"link":"photo_5219145.html","width":130,"caption":"","height":94});
															thumbnails[5586752] = clik.newPhoto({"id":5586752,"src":"river-don-1_thumb.jpg","galleries_id":266154,"server_id":32,"link":"photo_5586752.html","width":130,"caption":"Engine and Gearbox ","height":156});
															thumbnails[5586755] = clik.newPhoto({"id":5586755,"src":"river-don-close_thumb.jpg","galleries_id":266154,"server_id":32,"link":"photo_5586755.html","width":130,"caption":"close up of oil pumps  wire frame","height":149});
															thumbnails[5586809] = clik.newPhoto({"id":5586809,"src":"river-don-piston_thumb.jpg","galleries_id":266154,"server_id":32,"link":"photo_5586809.html","width":130,"caption":"","height":166});
															thumbnails[5586975] = clik.newPhoto({"id":5586975,"src":"see-through-river-don_thumb.jpg","galleries_id":266154,"server_id":32,"link":"photo_5586975.html","width":130,"caption":"","height":156});
															thumbnails[6026545] = clik.newPhoto({"id":6026545,"src":"footballmad_thumb.jpg","galleries_id":338957,"server_id":32,"link":"photo_6026545.html","width":130,"caption":"Football Mad","height":75});
															thumbnails[6215009] = clik.newPhoto({"id":6215009,"src":"police-box2-new_thumb.jpg","galleries_id":284068,"server_id":32,"link":"photo_6215009.html","width":130,"caption":"1929 Style Police Box hand made by me ","height":188});
															thumbnails[6215016] = clik.newPhoto({"id":6215016,"src":"tardis_thumb.jpg","galleries_id":284068,"server_id":32,"link":"photo_6215016.html","width":130,"caption":"","height":168});
															thumbnails[6215022] = clik.newPhoto({"id":6215022,"src":"police-box3_thumb.jpg","galleries_id":284068,"server_id":32,"link":"photo_6215022.html","width":130,"caption":"","height":186});
															thumbnails[6219312] = clik.newPhoto({"id":6219312,"src":"bull1_thumb.jpg","galleries_id":284068,"server_id":32,"link":"photo_6219312.html","width":130,"caption":"","height":97});
															thumbnails[6219314] = clik.newPhoto({"id":6219314,"src":"bull2_thumb.jpg","galleries_id":284068,"server_id":32,"link":"photo_6219314.html","width":130,"caption":"","height":97});
															thumbnails[6219317] = clik.newPhoto({"id":6219317,"src":"bull3_thumb.jpg","galleries_id":284068,"server_id":32,"link":"photo_6219317.html","width":130,"caption":"","height":97});
															thumbnails[6232270] = clik.newPhoto({"id":6232270,"src":"New-poster_thumb.jpg","galleries_id":266154,"server_id":32,"link":"photo_6232270.html","width":130,"caption":"","height":98});
															thumbnails[6265799] = clik.newPhoto({"id":6265799,"src":"side-seethroughnew_thumb.jpg","galleries_id":266154,"server_id":32,"link":"photo_6265799.html","width":130,"caption":"","height":156});
															thumbnails[6341024] = clik.newPhoto({"id":6341024,"src":"ptston-closeup_thumb.jpg","galleries_id":266154,"server_id":32,"link":"photo_6341024.html","width":130,"caption":"","height":102});
															thumbnails[6403696] = clik.newPhoto({"id":6403696,"src":"train-grey2wire_thumb.jpg","galleries_id":135424,"server_id":32,"link":"photo_6403696.html","width":130,"caption":"","height":98});
															thumbnails[6403755] = clik.newPhoto({"id":6403755,"src":"crossley_thumb.jpg","galleries_id":266154,"server_id":32,"link":"photo_6403755.html","width":130,"caption":"crossley gas engine ","height":88});
															thumbnails[6405308] = clik.newPhoto({"id":6405308,"src":"harley-grey_thumb.jpg","galleries_id":135424,"server_id":32,"link":"photo_6405308.html","width":130,"caption":"","height":98});
															thumbnails[6424528] = clik.newPhoto({"id":6424528,"src":"flywheel2_thumb.jpg","galleries_id":266154,"server_id":32,"link":"photo_6424528.html","width":130,"caption":"","height":98});
															thumbnails[6426815] = clik.newPhoto({"id":6426815,"src":"river-wire1_thumb.jpg","galleries_id":266154,"server_id":32,"link":"photo_6426815.html","width":130,"caption":"","height":195});
															thumbnails[7229482] = clik.newPhoto({"id":7229482,"src":"shark2_thumb.jpg","galleries_id":284068,"server_id":32,"link":"photo_7229482.html","width":130,"caption":"","height":78});
															thumbnails[7229492] = clik.newPhoto({"id":7229492,"src":"shark1_thumb.jpg","galleries_id":284068,"server_id":32,"link":"photo_7229492.html","width":130,"caption":"cardboard shark that moves ","height":70});
															thumbnails[7290131] = clik.newPhoto({"id":7290131,"src":"bathroom-render1_thumb.jpg","galleries_id":173586,"server_id":32,"link":"photo_7290131.html","width":130,"caption":"","height":98});
															thumbnails[7290936] = clik.newPhoto({"id":7290936,"src":"bathroom-render-3_thumb.jpg","galleries_id":173586,"server_id":32,"link":"photo_7290936.html","width":130,"caption":"","height":98});
															thumbnails[7541137] = clik.newPhoto({"id":7541137,"src":"tank1_thumb.jpg","galleries_id":284068,"server_id":32,"link":"photo_7541137.html","width":130,"caption":"","height":97});
															thumbnails[7541138] = clik.newPhoto({"id":7541138,"src":"tank4_thumb.jpg","galleries_id":284068,"server_id":32,"link":"photo_7541138.html","width":130,"caption":"","height":106});
															thumbnails[7541139] = clik.newPhoto({"id":7541139,"src":"tank-2_thumb.jpg","galleries_id":284068,"server_id":32,"link":"photo_7541139.html","width":130,"caption":"","height":109});
															thumbnails[7541140] = clik.newPhoto({"id":7541140,"src":"tank-3_thumb.jpg","galleries_id":284068,"server_id":32,"link":"photo_7541140.html","width":130,"caption":"","height":102});
															thumbnails[7558689] = clik.newPhoto({"id":7558689,"src":"mower1_thumb.jpg","galleries_id":284068,"server_id":32,"link":"photo_7558689.html","width":130,"caption":"","height":155});
															thumbnails[7558690] = clik.newPhoto({"id":7558690,"src":"mower2_thumb.jpg","galleries_id":284068,"server_id":32,"link":"photo_7558690.html","width":130,"caption":"","height":161});
															thumbnails[7558692] = clik.newPhoto({"id":7558692,"src":"mower3_thumb.jpg","galleries_id":284068,"server_id":32,"link":"photo_7558692.html","width":130,"caption":"","height":163});
															thumbnails[7558695] = clik.newPhoto({"id":7558695,"src":"mower4_thumb.jpg","galleries_id":284068,"server_id":32,"link":"photo_7558695.html","width":130,"caption":"","height":174});
															thumbnails[7558700] = clik.newPhoto({"id":7558700,"src":"mower5_thumb.jpg","galleries_id":284068,"server_id":32,"link":"photo_7558700.html","width":130,"caption":"","height":144});
															thumbnails[8403953] = clik.newPhoto({"id":8403953,"src":"triffid_1_thumb.jpg","galleries_id":284068,"server_id":32,"link":"photo_8403953.html","width":130,"caption":"","height":174});
															thumbnails[8403954] = clik.newPhoto({"id":8403954,"src":"triffid_3_thumb.jpg","galleries_id":284068,"server_id":32,"link":"photo_8403954.html","width":130,"caption":"","height":174});
															thumbnails[8403955] = clik.newPhoto({"id":8403955,"src":"triffid__thumb.jpg","galleries_id":284068,"server_id":32,"link":"photo_8403955.html","width":130,"caption":"","height":174});
															thumbnails[8403957] = clik.newPhoto({"id":8403957,"src":"sweeper_1_thumb.jpg","galleries_id":284068,"server_id":32,"link":"photo_8403957.html","width":130,"caption":"","height":97});
															thumbnails[8403958] = clik.newPhoto({"id":8403958,"src":"sweeper_2_thumb.jpg","galleries_id":284068,"server_id":32,"link":"photo_8403958.html","width":130,"caption":"","height":97});
															thumbnails[8403959] = clik.newPhoto({"id":8403959,"src":"P1010629_thumb.jpg","galleries_id":284068,"server_id":32,"link":"photo_8403959.html","width":130,"caption":"","height":174});
															thumbnails[8403960] = clik.newPhoto({"id":8403960,"src":"sweeper_3_thumb.jpg","galleries_id":284068,"server_id":32,"link":"photo_8403960.html","width":130,"caption":"","height":97});
															thumbnails[8404077] = clik.newPhoto({"id":8404077,"src":"sweeper_brush__thumb.jpg","galleries_id":284068,"server_id":32,"link":"photo_8404077.html","width":130,"caption":"","height":97});
															thumbnails[8853165] = clik.newPhoto({"id":8853165,"src":"new-poster_thumb.gif","galleries_id":266154,"server_id":32,"link":"photo_8853165.html","width":130,"caption":"","height":101});
															thumbnails[8853173] = clik.newPhoto({"id":8853173,"src":"rolling-mill_thumb.gif","galleries_id":266154,"server_id":32,"link":"photo_8853173.html","width":130,"caption":"","height":73});
															thumbnails[9104187] = clik.newPhoto({"id":9104187,"src":"parrot-shot_1_thumb.gif","galleries_id":135410,"server_id":38,"link":"photo_9104187.html","width":130,"caption":"","height":122});
															thumbnails[2109646] = clik.newPhoto({"id":2109646,"src":"small Etype _thumb.jpg","galleries_id":135424,"server_id":32,"link":"photo_2109646.html","width":130,"caption":"E-Type Jaguar","height":97});
															thumbnails[4599689] = clik.newPhoto({"id":4599689,"src":"river-don3_thumb.jpg","galleries_id":266154,"server_id":32,"link":"photo_4599689.html","width":130,"caption":"","height":163});
															thumbnails[2020566] = clik.newPhoto({"id":2020566,"src":"birds_thumb.jpg","galleries_id":135410,"server_id":32,"link":"photo_2020566.html","width":130,"caption":"Parrots Long","height":391});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[284068] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"3D cardboard models ","link":"gallery_284068.html","maxRecords":0.0,"photoIDs":[5010401.0,6215009.0,6215016.0,6215022.0,6219312.0,6219314.0,6219317.0,7229482.0,7229492.0,7541137.0,7541138.0,7541139.0,7541140.0,7558689.0,7558690.0,7558692.0,7558695.0,7558700.0,8403953.0,8403954.0,8403955.0,8403957.0,8403958.0,8403959.0,8403960.0,8404077.0],"skipIndex":0,"section_code":"gallery","featured_images":"8404077,8403960,8403959,8403958,8403957,8403955,8403954,8403953,7558700,7558695","id":284068,"singleSection":false});				  						galleries[146064] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Characters","link":"gallery_146064.html","maxRecords":0.0,"photoIDs":[4015494.0,4055385.0,4072345.0],"skipIndex":0,"section_code":"gallery","featured_images":"4072345,4015494","id":146064,"singleSection":false});				  						galleries[338957] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Foot Ball","link":"gallery_338957.html","maxRecords":0.0,"photoIDs":[6026545.0],"skipIndex":0,"section_code":"gallery","featured_images":6026545.0,"id":338957,"singleSection":false});				  						galleries[268320] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"pets","link":"gallery_268320.html","maxRecords":0.0,"photoIDs":[4651731.0,4814148.0,4814152.0,5038167.0,5219145.0],"skipIndex":0,"section_code":"gallery","featured_images":4651731.0,"id":268320,"singleSection":false});				  						galleries[266154] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"River Don Engine","link":"gallery_266154.html","maxRecords":0.0,"photoIDs":[4633796.0,5586752.0,5586755.0,5586809.0,5586975.0,6232270.0,6265799.0,6341024.0,6403755.0,6424528.0,6426815.0,8853165.0,8853173.0,4599689.0],"skipIndex":0,"section_code":"gallery","featured_images":6426815.0,"id":266154,"singleSection":false});				  						galleries[135410] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wildlife","link":"gallery_135410.html","maxRecords":0.0,"photoIDs":[2022450.0,2022463.0,2022465.0,2022733.0,4598975.0,4599052.0,4600390.0,4615310.0,9104187.0,2020566.0],"skipIndex":0,"section_code":"gallery","featured_images":"9104187,4615310,4600390,4599052,4598975,2022733,2022465,2022463,2022450,2020566","id":135410,"singleSection":false});				  						galleries[173586] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Architecture","link":"gallery_173586.html","maxRecords":0.0,"photoIDs":[2769204.0,7290131.0,7290936.0],"skipIndex":0,"section_code":"gallery","featured_images":2769204.0,"id":173586,"singleSection":false});				  						galleries[135412] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portraits","link":"gallery_135412.html","maxRecords":0.0,"photoIDs":[2022671.0,2022674.0,4883207.0],"skipIndex":0,"section_code":"gallery","featured_images":"4883207,2022674,2022671","id":135412,"singleSection":false});				  						galleries[178837] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Golf","link":"gallery_178837.html","maxRecords":0.0,"photoIDs":[2859510.0,2881428.0,2981637.0],"skipIndex":0,"section_code":"gallery","featured_images":2981637.0,"id":178837,"singleSection":false});				  						galleries[176745] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Nature","link":"gallery_176745.html","maxRecords":0.0,"photoIDs":[2843672.0,3700110.0,4600388.0],"skipIndex":0,"section_code":"gallery","featured_images":2843672.0,"id":176745,"singleSection":false});				  						galleries[161313] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"On The Sea","link":"gallery_161313.html","maxRecords":0.0,"photoIDs":[2516883.0,2799435.0,3993533.0],"skipIndex":0,"section_code":"gallery","featured_images":3993533.0,"id":161313,"singleSection":false});				  						galleries[135424] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"vehicles & Transport","link":"gallery_135424.html","maxRecords":0.0,"photoIDs":[2561531.0,2656929.0,3700103.0,4600321.0,6403696.0,6405308.0,2109646.0],"skipIndex":0,"section_code":"gallery","featured_images":"4600321,3700103,2656929,2561531","id":135424,"singleSection":false});				  						galleries[157400] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Marine","link":"gallery_157400.html","maxRecords":0.0,"photoIDs":[2438947.0,3784540.0,3784541.0,3907141.0,3933458.0,3933463.0],"skipIndex":0,"section_code":"gallery","featured_images":3907141.0,"id":157400,"singleSection":false});				  						galleries[156205] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Greg","link":"gallery_156205.html","maxRecords":0.0,"photoIDs":[2414223.0],"skipIndex":0,"section_code":"gallery","featured_images":2414223.0,"id":156205,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8403957,8403953,7558692,7558690,7558689,7290131,6426815,6405308,6403696,6232270,6219312,6215016,6026545,5219145,5038167,4883207,4814152,4600390,4600321,4599052,4598975,4072345,3993533,3933458,3907141,3784541,3784540,3700103,2981637,2799435,2769204,2656929,2438947,2022733';
imageSets[2] = '6426815,4651731,4600321,4072345,4015494,3993533,3961134,3907141,3700103,2981637,2843672,2769204,2656929,2561531,2414223,2211288,2067895';
imageSets[3] = '9104187,8853173,8853165,8404077,8403960,8403959,8403958,8403957,8403955,8403954,8403953,7558700,7558695,7558692,7558690,7558689,7541140,7541139,7541138,7541137,7290936,7290131,7229492,7229482,6426815,6424528,6405308,6403755,6403696,6341024,6265799,6232270,6219317,6219314,6219312,6215022,6215016,6215009,6026545,5586975,5586809,5586755,5586752,5219145,5038167,5010401,4883207,4814152,4814148,4651731';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/lazycat/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/lazycat/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/lazycat/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/lazycat/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/lazycat/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/lazycat/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/lazycat/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/lazycat/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/lazycat/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/lazycat/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/lazycat/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/lazycat/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/lazycat/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/lazycat/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/lazycat/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/lazycat/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/lazycat/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/lazycat/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/lazycat/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/lazycat/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/lazycat/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/lazycat/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/lazycat/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/lazycat/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/lazycat/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/lazycat/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/lazycat/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 = 'Greg Harris Artist/Illustrator: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.item_price !== '') {
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

