window.thumbnails = {};
															thumbnails[6885491] = clik.newPhoto({"id":6885491,"src":"Flowrider031010-271aw-b_thumb.jpg","galleries_id":306434,"server_id":32,"link":"photo_6885491.html","width":130,"caption":"Flying...","height":87});
															thumbnails[6691070] = clik.newPhoto({"id":6691070,"src":"QBN-dog4aw_thumb.jpg","galleries_id":306462,"server_id":32,"link":"photo_6691070.html","width":130,"caption":"Am I pretty?","height":171});
															thumbnails[6691165] = clik.newPhoto({"id":6691165,"src":"QBN-dog5aw_thumb.jpg","galleries_id":306462,"server_id":32,"link":"photo_6691165.html","width":130,"caption":"","height":94});
															thumbnails[6531495] = clik.newPhoto({"id":6531495,"src":"KA-678rw_thumb.jpg","galleries_id":358811,"server_id":37,"link":"photo_6531495.html","width":130,"caption":"","height":108});
															thumbnails[4743034] = clik.newPhoto({"id":4743034,"src":"B1as1_thumb.jpg","galleries_id":176819,"server_id":32,"link":"photo_4743034.html","width":130,"caption":"Belted Hoverfly","height":87});
															thumbnails[4493495] = clik.newPhoto({"id":4493495,"src":"BM09_Sun-104as_thumb.jpg","galleries_id":306427,"server_id":32,"link":"photo_4493495.html","width":130,"caption":"","height":169});
															thumbnails[4493079] = clik.newPhoto({"id":4493079,"src":"BM09_Fri-326ac_Dan_Ross_thumb.jpg","galleries_id":306427,"server_id":32,"link":"photo_4493079.html","width":130,"caption":"Dan Ross","height":117});
															thumbnails[4492998] = clik.newPhoto({"id":4492998,"src":"BM09_Wedn-073as_thumb.jpg","galleries_id":306427,"server_id":32,"link":"photo_4492998.html","width":130,"caption":"Micah","height":194});
															thumbnails[3610638] = clik.newPhoto({"id":3610638,"src":"Fistral-180309---062x_thumb.jpg","galleries_id":306434,"server_id":32,"link":"photo_3610638.html","width":130,"caption":"Josh Hughes","height":124});
															thumbnails[3610812] = clik.newPhoto({"id":3610812,"src":"DK-shop---075x_thumb.jpg","galleries_id":306439,"server_id":32,"link":"photo_3610812.html","width":130,"caption":"DK Surfboards shop interior","height":92});
															thumbnails[3610881] = clik.newPhoto({"id":3610881,"src":"DK-shop---077x_thumb.jpg","galleries_id":306439,"server_id":32,"link":"photo_3610881.html","width":130,"caption":"DK Surfboards shop interior","height":90});
															thumbnails[3610974] = clik.newPhoto({"id":3610974,"src":"Fistral-180309---35x_thumb.jpg","galleries_id":306439,"server_id":32,"link":"photo_3610974.html","width":130,"caption":"DK Surfboards shop","height":97});
															thumbnails[3610990] = clik.newPhoto({"id":3610990,"src":"DK-shop---042x_thumb.jpg","galleries_id":306439,"server_id":32,"link":"photo_3610990.html","width":130,"caption":"DK Surfboards","height":100});
															thumbnails[3521299] = clik.newPhoto({"id":3521299,"src":"Daisy-5a_thumb.jpg","galleries_id":176819,"server_id":32,"link":"photo_3521299.html","width":130,"caption":"After the rain...","height":130});
															thumbnails[3521548] = clik.newPhoto({"id":3521548,"src":"Leucojum-05c_thumb.jpg","galleries_id":176819,"server_id":32,"link":"photo_3521548.html","width":130,"caption":"Leucojum","height":194});
															thumbnails[2927031] = clik.newPhoto({"id":2927031,"src":"Josh-121008-1_thumb.jpg","galleries_id":306434,"server_id":32,"link":"photo_2927031.html","width":130,"caption":"Josh Hughes","height":102});
															thumbnails[2935839] = clik.newPhoto({"id":2935839,"src":"Ed-XPY2008_thumb.jpg","galleries_id":176386,"server_id":32,"link":"photo_2935839.html","width":130,"caption":"Ed","height":86});
															thumbnails[2885296] = clik.newPhoto({"id":2885296,"src":"Gig3479a_thumb.jpg","galleries_id":306430,"server_id":32,"link":"photo_2885296.html","width":130,"caption":"Falmouth - The Winning Team","height":86});
															thumbnails[2885284] = clik.newPhoto({"id":2885284,"src":"Gig3426b_thumb.jpg","galleries_id":306430,"server_id":32,"link":"photo_2885284.html","width":129,"caption":"Falmouth","height":194});
															thumbnails[2899307] = clik.newPhoto({"id":2899307,"src":"BMasters-Sun-080808-161_thumb.jpg","galleries_id":306427,"server_id":32,"link":"photo_2899307.html","width":129,"caption":"Wiggoly Dantas","height":194});
															thumbnails[2885107] = clik.newPhoto({"id":2885107,"src":"BMasters-Thurs-070808-111_thumb.jpg","galleries_id":306427,"server_id":32,"link":"photo_2885107.html","width":129,"caption":"Boardmasters '08","height":194});
															thumbnails[2840291] = clik.newPhoto({"id":2840291,"src":"Tulips1_thumb.jpg","galleries_id":176819,"server_id":32,"link":"photo_2840291.html","width":130,"caption":"Tulips","height":196});
															thumbnails[2909292] = clik.newPhoto({"id":2909292,"src":"Tulips2_thumb.jpg","galleries_id":176819,"server_id":32,"link":"photo_2909292.html","width":130,"caption":"Tulips at Eden","height":86});
															thumbnails[3104643] = clik.newPhoto({"id":3104643,"src":"Jamie378bb_thumb.jpg","galleries_id":176386,"server_id":32,"link":"photo_3104643.html","width":130,"caption":"Jamie","height":182});
															thumbnails[3610648] = clik.newPhoto({"id":3610648,"src":"Heitor_Alves_thumb.jpg","galleries_id":306427,"server_id":32,"link":"photo_3610648.html","width":130,"caption":"Heitor Alves","height":88});
															thumbnails[3610663] = clik.newPhoto({"id":3610663,"src":"Forgetmenot-1x_thumb.jpg","galleries_id":176819,"server_id":32,"link":"photo_3610663.html","width":130,"caption":"Forget-me-not","height":161});
															thumbnails[3697869] = clik.newPhoto({"id":3697869,"src":"Trebah_1_thumb.jpg","galleries_id":306451,"server_id":32,"link":"photo_3697869.html","width":130,"caption":"Trebah Gardens","height":191});
															thumbnails[4221178] = clik.newPhoto({"id":4221178,"src":"NT_Crantock_09_-_037ac_thumb.jpg","galleries_id":306431,"server_id":32,"link":"photo_4221178.html","width":130,"caption":"","height":124});
															thumbnails[5755246] = clik.newPhoto({"id":5755246,"src":"David-3_thumb.jpg","galleries_id":176386,"server_id":32,"link":"photo_5755246.html","width":130,"caption":"David","height":180});
															thumbnails[5771884] = clik.newPhoto({"id":5771884,"src":"T--Dylan-4aw_thumb.jpg","galleries_id":358811,"server_id":32,"link":"photo_5771884.html","width":130,"caption":"A very happy day...","height":179});
															thumbnails[6525307] = clik.newPhoto({"id":6525307,"src":"KA-688as_thumb.jpg","galleries_id":358811,"server_id":32,"link":"photo_6525307.html","width":130,"caption":"","height":195});
															thumbnails[6525311] = clik.newPhoto({"id":6525311,"src":"KA-686as_thumb.jpg","galleries_id":358811,"server_id":32,"link":"photo_6525311.html","width":130,"caption":"Katie's Bouquet","height":195});
															thumbnails[6531802] = clik.newPhoto({"id":6531802,"src":"KA-199rw_thumb.jpg","galleries_id":358811,"server_id":37,"link":"photo_6531802.html","width":130,"caption":"","height":87});
															thumbnails[6531877] = clik.newPhoto({"id":6531877,"src":"KA_519ass_thumb.jpg","galleries_id":358811,"server_id":32,"link":"photo_6531877.html","width":130,"caption":"The confetti moment...","height":174});
															thumbnails[6531904] = clik.newPhoto({"id":6531904,"src":"BritJuniors2010-101a-tot-w_thumb.jpg","galleries_id":176386,"server_id":32,"link":"photo_6531904.html","width":130,"caption":"","height":195});
															thumbnails[6690696] = clik.newPhoto({"id":6690696,"src":"SJs-1st-Birthday-75aw_thumb.jpg","galleries_id":176386,"server_id":32,"link":"photo_6690696.html","width":130,"caption":"It's my Birthday...","height":198});
															thumbnails[6690921] = clik.newPhoto({"id":6690921,"src":"KA_566bw_thumb.jpg","galleries_id":358811,"server_id":32,"link":"photo_6690921.html","width":130,"caption":"Katie","height":130});
															thumbnails[6691019] = clik.newPhoto({"id":6691019,"src":"KA-577bw-w_thumb.jpg","galleries_id":358811,"server_id":32,"link":"photo_6691019.html","width":130,"caption":"See you all at the reception...","height":91});
															thumbnails[6691207] = clik.newPhoto({"id":6691207,"src":"RockyIIbw_thumb.jpg","galleries_id":306462,"server_id":32,"link":"photo_6691207.html","width":130,"caption":"My name is Rocky...","height":105});
															thumbnails[6691330] = clik.newPhoto({"id":6691330,"src":"joshinthecave_bw_thumb.jpg","galleries_id":306427,"server_id":32,"link":"photo_6691330.html","width":130,"caption":"DJ Josh Hughes","height":125});
															thumbnails[6691427] = clik.newPhoto({"id":6691427,"src":"BM-Sun-251as-podium_thumb.jpg","galleries_id":306427,"server_id":32,"link":"photo_6691427.html","width":130,"caption":"Marc Lacomare","height":163});
															thumbnails[6691454] = clik.newPhoto({"id":6691454,"src":"Russ_Winter-BM-Sun-023as_thumb.jpg","galleries_id":306427,"server_id":32,"link":"photo_6691454.html","width":130,"caption":"Russell Winter","height":109});
															thumbnails[6691499] = clik.newPhoto({"id":6691499,"src":"BM-Fri-018aw_thumb.jpg","galleries_id":306427,"server_id":32,"link":"photo_6691499.html","width":130,"caption":"Get on board...","height":108});
															thumbnails[6691519] = clik.newPhoto({"id":6691519,"src":"Chelsea1969cp_thumb.jpg","galleries_id":176386,"server_id":32,"link":"photo_6691519.html","width":130,"caption":"Chelsea","height":195});
															thumbnails[6691523] = clik.newPhoto({"id":6691523,"src":"SJs-1st-Birthday-51aw_thumb.jpg","galleries_id":176386,"server_id":32,"link":"photo_6691523.html","width":130,"caption":"It's my birthday too...","height":194});
															thumbnails[6691530] = clik.newPhoto({"id":6691530,"src":"SJs-1st-Birthday-27aw_thumb.jpg","galleries_id":176386,"server_id":32,"link":"photo_6691530.html","width":130,"caption":"My shoes.....","height":103});
															thumbnails[7040301] = clik.newPhoto({"id":7040301,"src":"Ports_28_03_09091a7x5_thumb.jpg","galleries_id":176385,"server_id":32,"link":"photo_7040301.html","width":130,"caption":"South Parade Pier","height":87});
															thumbnails[8430706] = clik.newPhoto({"id":8430706,"src":"Molly-Williams-2008f_thumb.jpg","galleries_id":176386,"server_id":32,"link":"photo_8430706.html","width":130,"caption":"Molly","height":118});
															thumbnails[8430707] = clik.newPhoto({"id":8430707,"src":"Cant-reach-1w_thumb.jpg","galleries_id":306434,"server_id":32,"link":"photo_8430707.html","width":130,"caption":"","height":83});
															thumbnails[8430708] = clik.newPhoto({"id":8430708,"src":"Apt1-077aw_thumb.jpg","galleries_id":306439,"server_id":32,"link":"photo_8430708.html","width":130,"caption":"","height":180});
															thumbnails[8430709] = clik.newPhoto({"id":8430709,"src":"PMoN1aww_thumb.jpg","galleries_id":448848,"server_id":32,"link":"photo_8430709.html","width":130,"caption":"Stranded...","height":163});
															thumbnails[8489383] = clik.newPhoto({"id":8489383,"src":"PMoN-1aw_thumb.jpg","galleries_id":448848,"server_id":32,"link":"photo_8489383.html","width":130,"caption":"Portuguese Man of War","height":87});
															thumbnails[8547822] = clik.newPhoto({"id":8547822,"src":"Jack-15-cake-2aww_thumb.jpg","galleries_id":451691,"server_id":37,"link":"photo_8547822.html","width":130,"caption":"","height":87});
															thumbnails[8548514] = clik.newPhoto({"id":8548514,"src":"19J_6814aww_thumb.jpg","galleries_id":451691,"server_id":37,"link":"photo_8548514.html","width":130,"caption":"","height":194});
															thumbnails[8548548] = clik.newPhoto({"id":8548548,"src":"19J_6820aww_thumb.jpg","galleries_id":451691,"server_id":37,"link":"photo_8548548.html","width":130,"caption":"","height":87});
															thumbnails[8548554] = clik.newPhoto({"id":8548554,"src":"CHR2008-15aww_thumb.jpg","galleries_id":451691,"server_id":37,"link":"photo_8548554.html","width":130,"caption":"","height":104});
															thumbnails[8548768] = clik.newPhoto({"id":8548768,"src":"KA-099rw_thumb.jpg","galleries_id":358811,"server_id":37,"link":"photo_8548768.html","width":130,"caption":"","height":163});
															thumbnails[8548810] = clik.newPhoto({"id":8548810,"src":"KA-668rw_thumb.jpg","galleries_id":358811,"server_id":37,"link":"photo_8548810.html","width":130,"caption":"","height":86});
															thumbnails[8573078] = clik.newPhoto({"id":8573078,"src":"PMoN_6449aww_thumb.jpg","galleries_id":448848,"server_id":37,"link":"photo_8573078.html","width":130,"caption":"","height":87});
															thumbnails[4492628] = clik.newPhoto({"id":4492628,"src":"BM09_Fri-186as_Alan_Stokes_thumb.jpg","galleries_id":306427,"server_id":32,"link":"photo_4492628.html","width":130,"caption":"Alan Stokes","height":104});
															thumbnails[5422502] = clik.newPhoto({"id":5422502,"src":"Tolcarne-Huts-01abw_thumb.jpg","galleries_id":176385,"server_id":32,"link":"photo_5422502.html","width":130,"caption":"Beach Huts at Tolcarne","height":108});
															thumbnails[5422512] = clik.newPhoto({"id":5422512,"src":"Tolcarne-Huts-01bbw_thumb.jpg","galleries_id":176385,"server_id":32,"link":"photo_5422512.html","width":130,"caption":"Tolcarne Beach Huts","height":78});
															thumbnails[5422499] = clik.newPhoto({"id":5422499,"src":"Gannel_Boat_Jan_2010w_thumb.jpg","galleries_id":176385,"server_id":32,"link":"photo_5422499.html","width":130,"caption":"Gannel Wreck 2010","height":182});
															thumbnails[3146983] = clik.newPhoto({"id":3146983,"src":"Corinne 053b_thumb.jpg","galleries_id":176386,"server_id":32,"link":"photo_3146983.html","width":130,"caption":"Corinne","height":212});
															thumbnails[2828978] = clik.newPhoto({"id":2828978,"src":"Lucia1_thumb.jpg","galleries_id":176386,"server_id":32,"link":"photo_2828978.html","width":130,"caption":"Lucia","height":196});
															thumbnails[2864776] = clik.newPhoto({"id":2864776,"src":"Josh Hughes Somo_thumb.jpg","galleries_id":306434,"server_id":32,"link":"photo_2864776.html","width":129,"caption":"Josh Hughes","height":94});
															thumbnails[5422753] = clik.newPhoto({"id":5422753,"src":"Coz-240909-145aa_thumb.jpg","galleries_id":176386,"server_id":32,"link":"photo_5422753.html","width":130,"caption":"Corinne","height":114});
															thumbnails[2870534] = clik.newPhoto({"id":2870534,"src":"Josh168b_thumb.jpg","galleries_id":176386,"server_id":32,"link":"photo_2870534.html","width":129,"caption":"Josh","height":101});
															thumbnails[2864723] = clik.newPhoto({"id":2864723,"src":"Jack-at-La-Torche1_thumb.jpg","galleries_id":306434,"server_id":32,"link":"photo_2864723.html","width":129,"caption":"Jack Hughes","height":100});
															thumbnails[5422516] = clik.newPhoto({"id":5422516,"src":"T--D-2b_thumb.jpg","galleries_id":358811,"server_id":32,"link":"photo_5422516.html","width":130,"caption":"","height":214});
															thumbnails[3610743] = clik.newPhoto({"id":3610743,"src":"Bridesmaids_on_the_beach_thumb.jpg","galleries_id":358811,"server_id":32,"link":"photo_3610743.html","width":130,"caption":"Bridesmaids","height":194});
															thumbnails[5422524] = clik.newPhoto({"id":5422524,"src":"Brother_and_Sister_thumb.jpg","galleries_id":358811,"server_id":32,"link":"photo_5422524.html","width":130,"caption":"A toast for the Bride","height":169});
															thumbnails[2828982] = clik.newPhoto({"id":2828982,"src":"Anna1_thumb.jpg","galleries_id":176386,"server_id":32,"link":"photo_2828982.html","width":130,"caption":"Anna","height":182});
															thumbnails[3697832] = clik.newPhoto({"id":3697832,"src":"Lanza_thumb.jpg","galleries_id":176385,"server_id":32,"link":"photo_3697832.html","width":130,"caption":"Going for a surf...","height":86});
															thumbnails[2885095] = clik.newPhoto({"id":2885095,"src":"BMasters-Thurs-070808-037-(1_thumb.jpg","galleries_id":306427,"server_id":32,"link":"photo_2885095.html","width":130,"caption":"Boardmasters '08","height":86});
															thumbnails[2828471] = clik.newPhoto({"id":2828471,"src":"littlewave1b_thumb.jpg","galleries_id":176385,"server_id":32,"link":"photo_2828471.html","width":130,"caption":"Little Wave - La Torche","height":110});
															thumbnails[2870086] = clik.newPhoto({"id":2870086,"src":"Charlotte-03d_thumb.jpg","galleries_id":176386,"server_id":32,"link":"photo_2870086.html","width":130,"caption":"Charlotte","height":194});
															thumbnails[4409441] = clik.newPhoto({"id":4409441,"src":"EPsunset3a_thumb.jpg","galleries_id":176385,"server_id":32,"link":"photo_4409441.html","width":130,"caption":"El Palmar Sunset","height":182});
															thumbnails[2833993] = clik.newPhoto({"id":2833993,"src":"EPsunset2_thumb.jpg","galleries_id":176385,"server_id":32,"link":"photo_2833993.html","width":130,"caption":"El Palmar Sunset","height":85});
															thumbnails[2831553] = clik.newPhoto({"id":2831553,"src":"Carla1_thumb.jpg","galleries_id":176386,"server_id":32,"link":"photo_2831553.html","width":130,"caption":"Carla","height":182});
															thumbnails[4220454] = clik.newPhoto({"id":4220454,"src":"Sunset_Gul_NS09-001b_thumb.jpg","galleries_id":176385,"server_id":32,"link":"photo_4220454.html","width":130,"caption":"Fistral Sunset","height":100});
															thumbnails[2863719] = clik.newPhoto({"id":2863719,"src":"Anna-86b_thumb.jpg","galleries_id":176386,"server_id":32,"link":"photo_2863719.html","width":130,"caption":"Anna","height":217});
															thumbnails[2828989] = clik.newPhoto({"id":2828989,"src":"Ailsa1_thumb.jpg","galleries_id":176386,"server_id":32,"link":"photo_2828989.html","width":130,"caption":"Ailsa","height":194});
															thumbnails[2863751] = clik.newPhoto({"id":2863751,"src":"Anna-34b_thumb.jpg","galleries_id":176386,"server_id":32,"link":"photo_2863751.html","width":130,"caption":"Anna","height":194});
															thumbnails[2834036] = clik.newPhoto({"id":2834036,"src":"Santander289_thumb.jpg","galleries_id":176385,"server_id":32,"link":"photo_2834036.html","width":130,"caption":"Sunset in Somo","height":87});
															thumbnails[2840248] = clik.newPhoto({"id":2840248,"src":"Santander1852_thumb.jpg","galleries_id":176385,"server_id":32,"link":"photo_2840248.html","width":130,"caption":"Playa de Loredo y Somo","height":197});
															thumbnails[2840287] = clik.newPhoto({"id":2840287,"src":"GannelBoat1_thumb.jpg","galleries_id":176385,"server_id":32,"link":"photo_2840287.html","width":130,"caption":"Gannel Wreck","height":95});
															thumbnails[2840288] = clik.newPhoto({"id":2840288,"src":"GannelBoat33_thumb.jpg","galleries_id":176385,"server_id":32,"link":"photo_2840288.html","width":130,"caption":"Gannel Wreck","height":86});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[451691] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Cakes By Annemarie","link":"gallery_451691.html","maxRecords":0.0,"photoIDs":[8547822.0,8548514.0,8548548.0,8548554.0],"skipIndex":0,"section_code":"gallery","featured_images":8548548,"id":451691,"singleSection":false});				  						galleries[448848] = clik.newGallery({"parentGallery":306445,"usePopups":false,"title":"Life In & Around the Ocean","link":"gallery_448848.html","maxRecords":0.0,"photoIDs":[8430709.0,8489383.0,8573078.0],"skipIndex":0,"section_code":"gallery","featured_images":"8573078,8430709","id":448848,"singleSection":false});				  						galleries[176385] = clik.newGallery({"parentGallery":306445,"usePopups":false,"title":"Coastal Scenes","link":"gallery_176385.html","maxRecords":0.0,"photoIDs":[7040301.0,5422502.0,5422512.0,5422499.0,3697832.0,2828471.0,4409441.0,2833993.0,4220454.0,2834036.0,2840248.0,2840287.0,2840288.0],"skipIndex":0,"section_code":"gallery","featured_images":"5422502,5422499,4409441,2833993","id":176385,"singleSection":false});				  						galleries[306445] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Land & Sea","link":"gallery_306445.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"8573078,8430709,5422502,5422499,4409441,2833993","id":306445,"singleSection":false});				  						galleries[306451] = clik.newGallery({"parentGallery":306445,"usePopups":false,"title":"Landscape","link":"gallery_306451.html","maxRecords":0.0,"photoIDs":[3697869.0],"skipIndex":0,"section_code":"gallery","featured_images":3697869.0,"id":306451,"singleSection":false});				  						galleries[176386] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Lifestyle & Portrait","link":"gallery_176386.html","maxRecords":0.0,"photoIDs":[2935839.0,3104643.0,5755246.0,6531904.0,6690696.0,6691519.0,6691523.0,6691530.0,8430706.0,3146983.0,2828978.0,5422753.0,2870534.0,2828982.0,2870086.0,2831553.0,2863719.0,2828989.0,2863751.0],"skipIndex":0,"section_code":"gallery","featured_images":"6691523,6691519,6690696,5755246,3146983,2828978","id":176386,"singleSection":false});				  						galleries[358811] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Weddings","link":"gallery_358811.html","maxRecords":0.0,"photoIDs":[6531495.0,5771884.0,6525307.0,6525311.0,6531802.0,6531877.0,6690921.0,6691019.0,8548768.0,8548810.0,5422516.0,3610743.0,5422524.0],"skipIndex":0,"section_code":"gallery","featured_images":"6531877,5771884,3610743","id":358811,"singleSection":false});				  						galleries[306434] = clik.newGallery({"parentGallery":306442,"usePopups":false,"title":"Miscellaneous Surfing","link":"gallery_306434.html","maxRecords":0.0,"photoIDs":[6885491.0,3610638.0,2927031.0,8430707.0,2864776.0,2864723.0],"skipIndex":0,"section_code":"gallery","featured_images":"3610638,2927031,2864776","id":306434,"singleSection":false});				  						galleries[306442] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Surfing & Surfing Events","link":"gallery_306442.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"6691454,6691427,6691330,4493495,4492628,3610648,3610638,2927031,2864776","id":306442,"singleSection":false});				  						galleries[306427] = clik.newGallery({"parentGallery":306442,"usePopups":false,"title":"Boardmasters","link":"gallery_306427.html","maxRecords":0.0,"photoIDs":[4493495.0,4493079.0,4492998.0,2899307.0,2885107.0,3610648.0,6691330.0,6691427.0,6691454.0,6691499.0,4492628.0,2885095.0],"skipIndex":0,"section_code":"gallery","featured_images":"6691454,6691427,6691330,4493495,4492628,3610648","id":306427,"singleSection":false});				  						galleries[306430] = clik.newGallery({"parentGallery":306443,"usePopups":false,"title":"Cornish Gig Racing","link":"gallery_306430.html","maxRecords":0.0,"photoIDs":[2885296.0,2885284.0],"skipIndex":0,"section_code":"gallery","featured_images":2885284.0,"id":306430,"singleSection":false});				  						galleries[176819] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Plants & Flowers","link":"gallery_176819.html","maxRecords":0.0,"photoIDs":[4743034.0,3521299.0,3521548.0,2840291.0,2909292.0,3610663.0],"skipIndex":0,"section_code":"gallery","featured_images":"3610663,3521299,2909292,2840291","id":176819,"singleSection":false});				  						galleries[306431] = clik.newGallery({"parentGallery":306442,"usePopups":false,"title":"UK Surf Comps","link":"gallery_306431.html","maxRecords":0.0,"photoIDs":[4221178.0],"skipIndex":0,"section_code":"gallery","featured_images":4221178.0,"id":306431,"singleSection":false});				  						galleries[306462] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Pets & other animals","link":"gallery_306462.html","maxRecords":0.0,"photoIDs":[6691070.0,6691165.0,6691207.0],"skipIndex":0,"section_code":"gallery","featured_images":6691070.0,"id":306462,"singleSection":false});				  						galleries[306443] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Miscellaneous Events","link":"gallery_306443.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"3610990,3610881,2885284","id":306443,"singleSection":false});				  						galleries[306439] = clik.newGallery({"parentGallery":306443,"usePopups":false,"title":"Website Shots","link":"gallery_306439.html","maxRecords":0.0,"photoIDs":[3610812.0,3610881.0,3610974.0,3610990.0,8430708.0],"skipIndex":0,"section_code":"gallery","featured_images":"3610990,3610881","id":306439,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8573078,6885491,6691530,6691519,6691499,6691330,6691070,6531904,6531877,6531802,5755246,4743034,3610990,3521548,5422502,5422499,5422516,3610743';
imageSets[2] = '8573078,8430709,6691523,6691519,6691454,6691427,6691330,6691070,6690696,6531877,5771884,5755246,4493495,3610990,3610881,3610663,3610648,3610638,3521299,2927031,2909292,2885284,2840291,4492628,5422502,5422499,3146983,2864776,2828978,3610743,4409441,2833993';
imageSets[3] = '3697832';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/annemariehughes/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'www.clikpic.com/annemariehughes/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/annemariehughes/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/annemariehughes/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/annemariehughes/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/annemariehughes/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/annemariehughes/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/annemariehughes/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/annemariehughes/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/annemariehughes/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/annemariehughes/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/annemariehughes/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/annemariehughes/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/annemariehughes/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/annemariehughes/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/annemariehughes/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/annemariehughes/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/annemariehughes/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/annemariehughes/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/annemariehughes/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/annemariehughes/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/annemariehughes/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/annemariehughes/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/annemariehughes/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/annemariehughes/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = backgrounds && backgrounds[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'Annemarie Hughes 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>Image by Annemarie Hughes </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="ANNEMARIEHUGHES">';
			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;
	}
}

			

