window.thumbnails = {};
															thumbnails[7241657] = clik.newPhoto({"id":7241657,"src":"jo_thumb_22_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":97});
															thumbnails[7222216] = clik.newPhoto({"id":7222216,"src":"web_shutter_closed_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":156});
															thumbnails[7222218] = clik.newPhoto({"id":7222218,"src":"web_shutter_open_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":150});
															thumbnails[7226607] = clik.newPhoto({"id":7226607,"src":"web_back_view_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":159});
															thumbnails[4454808] = clik.newPhoto({"id":4454808,"src":"Angel-1_thumb.jpg","galleries_id":259690,"server_id":18,"link":"photo_4454808.html","width":113,"caption":"Angel 1","height":160});
															thumbnails[4454726] = clik.newPhoto({"id":4454726,"src":"8mm-Cine-salt-print_thumb.jpg","galleries_id":259689,"server_id":18,"link":"photo_4454726.html","width":113,"caption":"8mm cine salt  print which was scanned before fading as part of the experiments featured in \"A sideways movement in time\".","height":160});
															thumbnails[4454747] = clik.newPhoto({"id":4454747,"src":"Bicycle-Collage-salt-print_thumb.jpg","galleries_id":259689,"server_id":18,"link":"photo_4454747.html","width":113,"caption":"Bicycle collage salt print, also featured in \"A sideways movement in time\".","height":160});
															thumbnails[4454779] = clik.newPhoto({"id":4454779,"src":"Salt-Print-Variations_thumb.jpg","galleries_id":259689,"server_id":18,"link":"photo_4454779.html","width":113,"caption":"Salt print variations","height":160});
															thumbnails[4458940] = clik.newPhoto({"id":4458940,"src":"Say-it-with-Flowers_thumb.jpg","galleries_id":259690,"server_id":18,"link":"photo_4458940.html","width":113,"caption":"Say it with flowers","height":160});
															thumbnails[4506386] = clik.newPhoto({"id":4506386,"src":"Confessional-Box-salt-print_thumb.jpg","galleries_id":259689,"server_id":18,"link":"photo_4506386.html","width":130,"caption":"Confessional Box collage salt print, also featured in \"A sideways movement in time\".","height":97});
															thumbnails[7988897] = clik.newPhoto({"id":7988897,"src":"Hebridean_Sheep_Farmer_1_thumb.jpg","galleries_id":259690,"server_id":18,"link":"photo_7988897.html","width":130,"caption":"Hebridean Sheep Farmer","height":91});
															thumbnails[8720483] = clik.newPhoto({"id":8720483,"src":"1_thumb.jpg","galleries_id":459684,"server_id":18,"link":"photo_8720483.html","width":130,"caption":1.0,"height":125});
															thumbnails[4454735] = clik.newPhoto({"id":4454735,"src":"Anthotype-1_thumb.jpg","galleries_id":259689,"server_id":18,"link":"photo_4454735.html","width":125,"caption":"Anthotype 1","height":160});
															thumbnails[7945400] = clik.newPhoto({"id":7945400,"src":"Brighton_thumb.jpg","galleries_id":259690,"server_id":18,"link":"photo_7945400.html","width":112,"caption":"Brighton","height":160});
															thumbnails[8720487] = clik.newPhoto({"id":8720487,"src":"21_thumb.jpg","galleries_id":459684,"server_id":18,"link":"photo_8720487.html","width":130,"caption":2.0,"height":128});
															thumbnails[8720495] = clik.newPhoto({"id":8720495,"src":"31_thumb.jpg","galleries_id":459684,"server_id":18,"link":"photo_8720495.html","width":130,"caption":3.0,"height":130});
															thumbnails[9077608] = clik.newPhoto({"id":9077608,"src":"Siesta_Time1_thumb.jpg","galleries_id":259690,"server_id":18,"link":"photo_9077608.html","width":115,"caption":"Siesta Time","height":160});
															thumbnails[5135942] = clik.newPhoto({"id":5135942,"src":"Southampton_Art_Gallery_thumb.jpg","galleries_id":259690,"server_id":18,"link":"photo_5135942.html","width":115,"caption":"Art Gallery","height":160});
															thumbnails[8720500] = clik.newPhoto({"id":8720500,"src":"4_thumb.jpg","galleries_id":459684,"server_id":18,"link":"photo_8720500.html","width":130,"caption":4.0,"height":127});
															thumbnails[4458973] = clik.newPhoto({"id":4458973,"src":"Winchester-Cathedral-in-the_thumb.jpg","galleries_id":259690,"server_id":18,"link":"photo_4458973.html","width":113,"caption":"Winchester Cathedral in the rain","height":160});
															thumbnails[4514844] = clik.newPhoto({"id":4514844,"src":"Anthotype-7_thumb.jpg","galleries_id":259689,"server_id":18,"link":"photo_4514844.html","width":123,"caption":"Anthotype 7","height":160});
															thumbnails[8720504] = clik.newPhoto({"id":8720504,"src":"5_thumb.jpg","galleries_id":459684,"server_id":18,"link":"photo_8720504.html","width":130,"caption":5.0,"height":129});
															thumbnails[9086782] = clik.newPhoto({"id":9086782,"src":"Paris_La_Defense_2_thumb.jpg","galleries_id":259690,"server_id":37,"link":"photo_9086782.html","width":118,"caption":"Paris","height":160});
															thumbnails[4454813] = clik.newPhoto({"id":4454813,"src":"Bicycle---Rome_thumb.jpg","galleries_id":259690,"server_id":18,"link":"photo_4454813.html","width":113,"caption":"Bicycles Rome","height":160});
															thumbnails[8720523] = clik.newPhoto({"id":8720523,"src":"6_thumb.jpg","galleries_id":459684,"server_id":18,"link":"photo_8720523.html","width":130,"caption":6.0,"height":134});
															thumbnails[8572483] = clik.newPhoto({"id":8572483,"src":"Brighton_Pier_2_thumb.jpg","galleries_id":259690,"server_id":18,"link":"photo_8572483.html","width":130,"caption":"Brighton ","height":85});
															thumbnails[8720528] = clik.newPhoto({"id":8720528,"src":"7_thumb.jpg","galleries_id":459684,"server_id":18,"link":"photo_8720528.html","width":130,"caption":7.0,"height":130});
															thumbnails[4454910] = clik.newPhoto({"id":4454910,"src":"Figure---Rome_thumb.jpg","galleries_id":259690,"server_id":18,"link":"photo_4454910.html","width":113,"caption":"Figure Rome","height":160});
															thumbnails[8720532] = clik.newPhoto({"id":8720532,"src":"8_thumb.jpg","galleries_id":459684,"server_id":18,"link":"photo_8720532.html","width":130,"caption":8.0,"height":129});
															thumbnails[4976755] = clik.newPhoto({"id":4976755,"src":"Cross_thumb.jpg","galleries_id":259689,"server_id":18,"link":"photo_4976755.html","width":128,"caption":"Signs & Fragments 14","height":160});
															thumbnails[5255773] = clik.newPhoto({"id":5255773,"src":"Eiffel-Tower_-_Bromoil_thumb.jpg","galleries_id":259690,"server_id":18,"link":"photo_5255773.html","width":130,"caption":"Eiffel Tower scan from Bromoil","height":96});
															thumbnails[4918827] = clik.newPhoto({"id":4918827,"src":"Angel_Collage_thumb.jpg","galleries_id":259689,"server_id":18,"link":"photo_4918827.html","width":130,"caption":"Angel Collage - Van Dyke Brown - original image size 23cm X 38cm","height":89});
															thumbnails[4454750] = clik.newPhoto({"id":4454750,"src":"Dandelion-Seeds_thumb.jpg","galleries_id":259689,"server_id":18,"link":"photo_4454750.html","width":130,"caption":"Dandelion seeds","height":102});
															thumbnails[4454903] = clik.newPhoto({"id":4454903,"src":"Eiffel-Tower_thumb.jpg","galleries_id":259690,"server_id":18,"link":"photo_4454903.html","width":130,"caption":"Eiffel Tower","height":92});
															thumbnails[8720538] = clik.newPhoto({"id":8720538,"src":"9_thumb.jpg","galleries_id":459684,"server_id":18,"link":"photo_8720538.html","width":130,"caption":9.0,"height":130});
															thumbnails[7909127] = clik.newPhoto({"id":7909127,"src":"Kids_-_Rome_thumb.jpg","galleries_id":259690,"server_id":18,"link":"photo_7909127.html","width":130,"caption":"Kids - Rome","height":91});
															thumbnails[8720542] = clik.newPhoto({"id":8720542,"src":"10_thumb.jpg","galleries_id":459684,"server_id":18,"link":"photo_8720542.html","width":130,"caption":10.0,"height":129});
															thumbnails[7644371] = clik.newPhoto({"id":7644371,"src":"Waitors_-_Rome_thumb.jpg","galleries_id":259690,"server_id":18,"link":"photo_7644371.html","width":123,"caption":"Waitors - Rome","height":160});
															thumbnails[8720554] = clik.newPhoto({"id":8720554,"src":"11_thumb.jpg","galleries_id":459684,"server_id":18,"link":"photo_8720554.html","width":130,"caption":11.0,"height":127});
															thumbnails[4458938] = clik.newPhoto({"id":4458938,"src":"Rue-Rambuteau---Paris_thumb.jpg","galleries_id":259690,"server_id":18,"link":"photo_4458938.html","width":113,"caption":"Rue Rambuteau Paris","height":160});
															thumbnails[8720556] = clik.newPhoto({"id":8720556,"src":"12_thumb.jpg","galleries_id":459684,"server_id":18,"link":"photo_8720556.html","width":130,"caption":12.0,"height":130});
															thumbnails[8720567] = clik.newPhoto({"id":8720567,"src":"131_thumb.jpg","galleries_id":459684,"server_id":18,"link":"photo_8720567.html","width":130,"caption":13.0,"height":130});
															thumbnails[4454754] = clik.newPhoto({"id":4454754,"src":"Feathers_thumb.jpg","galleries_id":259689,"server_id":18,"link":"photo_4454754.html","width":130,"caption":"Feathers","height":92});
															thumbnails[4875339] = clik.newPhoto({"id":4875339,"src":"Bookcase_thumb.jpg","galleries_id":259689,"server_id":18,"link":"photo_4875339.html","width":112,"caption":"Bookcase","height":160});
															thumbnails[5599412] = clik.newPhoto({"id":5599412,"src":"Shieling--Scotland_thumb.jpg","galleries_id":259689,"server_id":18,"link":"photo_5599412.html","width":130,"caption":"Sheiling Scotland","height":101});
															thumbnails[8720561] = clik.newPhoto({"id":8720561,"src":"14_thumb.jpg","galleries_id":459684,"server_id":18,"link":"photo_8720561.html","width":130,"caption":14.0,"height":129});
															thumbnails[4458960] = clik.newPhoto({"id":4458960,"src":"Venetian-Figure_thumb.jpg","galleries_id":259690,"server_id":18,"link":"photo_4458960.html","width":113,"caption":"Venetian-Figure","height":160});
															thumbnails[4489820] = clik.newPhoto({"id":4489820,"src":"Signs--Fragments-1_thumb.jpg","galleries_id":259689,"server_id":18,"link":"photo_4489820.html","width":130,"caption":"Signs & Fragments (from a series of 25 prints)","height":127});
															thumbnails[8720572] = clik.newPhoto({"id":8720572,"src":"15_thumb.jpg","galleries_id":459684,"server_id":18,"link":"photo_8720572.html","width":130,"caption":15.0,"height":130});
															thumbnails[4458926] = clik.newPhoto({"id":4458926,"src":"Old-Estapona---Spain_thumb.jpg","galleries_id":259690,"server_id":18,"link":"photo_4458926.html","width":113,"caption":"Old Estepona Spain","height":160});
															thumbnails[8720573] = clik.newPhoto({"id":8720573,"src":"16_thumb.jpg","galleries_id":459684,"server_id":18,"link":"photo_8720573.html","width":130,"caption":16.0,"height":129});
															thumbnails[4489849] = clik.newPhoto({"id":4489849,"src":"Signs--Fragments-2_thumb.jpg","galleries_id":259689,"server_id":18,"link":"photo_4489849.html","width":130,"caption":"Signs & Fragments ","height":125});
															thumbnails[4458956] = clik.newPhoto({"id":4458956,"src":"Valencia---Spain_thumb.jpg","galleries_id":259690,"server_id":18,"link":"photo_4458956.html","width":130,"caption":"Valencia Spain","height":97});
															thumbnails[4489853] = clik.newPhoto({"id":4489853,"src":"Signs--Fragments-3_thumb.jpg","galleries_id":259689,"server_id":18,"link":"photo_4489853.html","width":130,"caption":"Signs & Fragments ","height":122});
															thumbnails[8720581] = clik.newPhoto({"id":8720581,"src":"17_thumb.jpg","galleries_id":459684,"server_id":18,"link":"photo_8720581.html","width":130,"caption":17.0,"height":130});
															thumbnails[4458976] = clik.newPhoto({"id":4458976,"src":"Windows--Valencia_windows_lighter_thumb.jpg","galleries_id":259690,"server_id":18,"link":"photo_4458976.html","width":130,"caption":"Windows Valencia","height":92});
															thumbnails[4489860] = clik.newPhoto({"id":4489860,"src":"Signs--Fragments-4_thumb.jpg","galleries_id":259689,"server_id":18,"link":"photo_4489860.html","width":130,"caption":"Signs & Fragments ","height":126});
															thumbnails[8720585] = clik.newPhoto({"id":8720585,"src":"18_thumb.jpg","galleries_id":459684,"server_id":18,"link":"photo_8720585.html","width":130,"caption":18.0,"height":130});
															thumbnails[4458981] = clik.newPhoto({"id":4458981,"src":"Windows---Valencia-1_thumb.jpg","galleries_id":259690,"server_id":18,"link":"photo_4458981.html","width":130,"caption":"Windows Valencia 1","height":92});
															thumbnails[8721210] = clik.newPhoto({"id":8721210,"src":"19_thumb.jpg","galleries_id":459684,"server_id":18,"link":"photo_8721210.html","width":130,"caption":19.0,"height":127});
															thumbnails[8720593] = clik.newPhoto({"id":8720593,"src":"20_thumb.jpg","galleries_id":459684,"server_id":18,"link":"photo_8720593.html","width":130,"caption":20.0,"height":129});
															thumbnails[4458930] = clik.newPhoto({"id":4458930,"src":"Palma-Cathedral_thumb.jpg","galleries_id":259690,"server_id":18,"link":"photo_4458930.html","width":130,"caption":"Cyclists Palma Cathedral","height":92});
															thumbnails[4489884] = clik.newPhoto({"id":4489884,"src":"Signs--Fragments-7_thumb.jpg","galleries_id":259689,"server_id":18,"link":"photo_4489884.html","width":130,"caption":"Signs & Fragments  ","height":126});
															thumbnails[4454760] = clik.newPhoto({"id":4454760,"src":"Light--Shade_thumb.jpg","galleries_id":259689,"server_id":18,"link":"photo_4454760.html","width":113,"caption":"Light & Shade","height":160});
															thumbnails[4458936] = clik.newPhoto({"id":4458936,"src":"Rebajas---Spain_thumb.jpg","galleries_id":259690,"server_id":18,"link":"photo_4458936.html","width":130,"caption":"Rebajas Spain","height":92});
															thumbnails[4511303] = clik.newPhoto({"id":4511303,"src":"Gaudi_Park_-_Barcelona_thumb.jpg","galleries_id":259690,"server_id":18,"link":"photo_4511303.html","width":130,"caption":"Gaudi Park Barcelona","height":92});
															thumbnails[4521309] = clik.newPhoto({"id":4521309,"src":"Angel-1_1A725A00-1D09-001F-99E26B32A6719F07_thumb.jpg","galleries_id":259689,"server_id":18,"link":"photo_4521309.html","width":113,"caption":"Angel ","height":160});
															thumbnails[4458931] = clik.newPhoto({"id":4458931,"src":"Paris_thumb.jpg","galleries_id":259690,"server_id":18,"link":"photo_4458931.html","width":130,"caption":"Paris","height":92});
															thumbnails[4458954] = clik.newPhoto({"id":4458954,"src":"Tuileries---Paris_thumb.jpg","galleries_id":259690,"server_id":18,"link":"photo_4458954.html","width":130,"caption":"Tuileries Paris","height":92});
															thumbnails[4458975] = clik.newPhoto({"id":4458975,"src":"Window-Shoping---Paris_thumb.jpg","galleries_id":259690,"server_id":18,"link":"photo_4458975.html","width":130,"caption":"Window shoping Paris","height":92});
															thumbnails[4503673] = clik.newPhoto({"id":4503673,"src":"The-Bee-Keeper_thumb.jpg","galleries_id":259689,"server_id":18,"link":"photo_4503673.html","width":130,"caption":"The Bee Keeper","height":92});
															thumbnails[4508151] = clik.newPhoto({"id":4508151,"src":"Grass---Spain_thumb.jpg","galleries_id":259689,"server_id":18,"link":"photo_4508151.html","width":130,"caption":"Grass Spain","height":93});
															thumbnails[4458949] = clik.newPhoto({"id":4458949,"src":"The-Old-Curiosity-Shop_thumb.jpg","galleries_id":259690,"server_id":18,"link":"photo_4458949.html","width":130,"caption":"The Old Curiosity Shop","height":92});
															thumbnails[7908385] = clik.newPhoto({"id":7908385,"src":"Dali_posters_-_Rome_thumb.jpg","galleries_id":259690,"server_id":18,"link":"photo_7908385.html","width":130,"caption":"Dali posters - Rome","height":81});
															thumbnails[7612267] = clik.newPhoto({"id":7612267,"src":"Callanish_Solar_Eclipse_thumb.jpg","galleries_id":259690,"server_id":18,"link":"photo_7612267.html","width":124,"caption":"Solar Eclipse - Callanish","height":160});
															thumbnails[4454913] = clik.newPhoto({"id":4454913,"src":"Gents-Dress-Hire---Ireland_thumb.jpg","galleries_id":259690,"server_id":18,"link":"photo_4454913.html","width":113,"caption":"Gents Dress Hire Ireland","height":160});
															thumbnails[4499353] = clik.newPhoto({"id":4499353,"src":"Noticeboard---Prague_thumb.jpg","galleries_id":259689,"server_id":18,"link":"photo_4499353.html","width":130,"caption":"Noticeboard Prague","height":96});
															thumbnails[4458924] = clik.newPhoto({"id":4458924,"src":"Ma-Murphys---Ireland_thumb.jpg","galleries_id":259690,"server_id":18,"link":"photo_4458924.html","width":130,"caption":"Ma Murphy's Ireland","height":92});
															thumbnails[4492565] = clik.newPhoto({"id":4492565,"src":"brighton-Pier-2-green_thumb.jpg","galleries_id":259689,"server_id":18,"link":"photo_4492565.html","width":130,"caption":"Brighton Pier","height":46});
															thumbnails[4548056] = clik.newPhoto({"id":4548056,"src":"Figure-in-Cloister_thumb.jpg","galleries_id":259689,"server_id":18,"link":"photo_4548056.html","width":130,"caption":"Figure in cloister - sabattier ","height":155});
															thumbnails[4458925] = clik.newPhoto({"id":4458925,"src":"Moving-Sheep---Ireland_thumb.jpg","galleries_id":259690,"server_id":18,"link":"photo_4458925.html","width":130,"caption":"Moving sheep Ireland","height":92});
															thumbnails[4458966] = clik.newPhoto({"id":4458966,"src":"Warehouses----Ireland_thumb.jpg","galleries_id":259690,"server_id":18,"link":"photo_4458966.html","width":130,"caption":"Warehouses Ireland","height":92});
															thumbnails[6325609] = clik.newPhoto({"id":6325609,"src":"Scottish_Fishermen_thumb.jpg","galleries_id":259690,"server_id":18,"link":"photo_6325609.html","width":130,"caption":"Scottish Fishermen","height":92});
															thumbnails[4454815] = clik.newPhoto({"id":4454815,"src":"Cemetery---Prague_thumb.jpg","galleries_id":259690,"server_id":18,"link":"photo_4454815.html","width":130,"caption":"Cemetery Prague","height":92});
															thumbnails[4454909] = clik.newPhoto({"id":4454909,"src":"Exercise-in-the-Park---Prag_thumb.jpg","galleries_id":259690,"server_id":18,"link":"photo_4454909.html","width":130,"caption":"Man and Tree - Prague","height":92});
															thumbnails[4458933] = clik.newPhoto({"id":4458933,"src":"Park---Prague_thumb.jpg","galleries_id":259690,"server_id":18,"link":"photo_4458933.html","width":130,"caption":"Prague park","height":92});
															thumbnails[4458934] = clik.newPhoto({"id":4458934,"src":"Prague2_thumb.jpg","galleries_id":259690,"server_id":18,"link":"photo_4458934.html","width":130,"caption":"Prague","height":92});
															thumbnails[4458921] = clik.newPhoto({"id":4458921,"src":"La-Defense-1_thumb.jpg","galleries_id":259690,"server_id":18,"link":"photo_4458921.html","width":130,"caption":"La Defense 1","height":92});
															thumbnails[4458932] = clik.newPhoto({"id":4458932,"src":"Paris-Boulevard_thumb.jpg","galleries_id":259690,"server_id":18,"link":"photo_4458932.html","width":130,"caption":"Paris Boulevard","height":92});
															thumbnails[4458941] = clik.newPhoto({"id":4458941,"src":"St-Eustache---Paris_thumb.jpg","galleries_id":259690,"server_id":18,"link":"photo_4458941.html","width":130,"caption":"St Eustache Paris","height":92});
															thumbnails[4454918] = clik.newPhoto({"id":4454918,"src":"La-Defense_thumb.jpg","galleries_id":259690,"server_id":18,"link":"photo_4454918.html","width":130,"caption":"La Defense","height":92});
															thumbnails[4458928] = clik.newPhoto({"id":4458928,"src":"Outfitters---England_thumb.jpg","galleries_id":259690,"server_id":18,"link":"photo_4458928.html","width":130,"caption":"Outfitters England","height":92});
															thumbnails[4458927] = clik.newPhoto({"id":4458927,"src":"Old-Pier-Brighton_thumb.jpg","galleries_id":259690,"server_id":18,"link":"photo_4458927.html","width":130,"caption":"Old Pier Brighton","height":92});
															thumbnails[4458965] = clik.newPhoto({"id":4458965,"src":"Wall-Plants_thumb.jpg","galleries_id":259690,"server_id":18,"link":"photo_4458965.html","width":130,"caption":"Wall plants","height":92});
															thumbnails[4454811] = clik.newPhoto({"id":4454811,"src":"Antique-Shop_thumb.jpg","galleries_id":259690,"server_id":18,"link":"photo_4454811.html","width":130,"caption":"Antique shop","height":92});
															thumbnails[4454902] = clik.newPhoto({"id":4454902,"src":"Colosseum---Rome_thumb.jpg","galleries_id":259690,"server_id":18,"link":"photo_4454902.html","width":130,"caption":"Colosseum Rome","height":92});
															thumbnails[6809826] = clik.newPhoto({"id":6809826,"src":"pinhole-13_thumb.jpg","galleries_id":259690,"server_id":18,"link":"photo_6809826.html","width":130,"caption":"Pinhole image","height":82});
															thumbnails[6962013] = clik.newPhoto({"id":6962013,"src":"Newlyn_Harbour_1b_thumb.jpg","galleries_id":259690,"server_id":18,"link":"photo_6962013.html","width":130,"caption":"Newlyn Harbour","height":92});
															thumbnails[6962018] = clik.newPhoto({"id":6962018,"src":"Newlyn_Harbour_1d_thumb.jpg","galleries_id":259690,"server_id":18,"link":"photo_6962018.html","width":130,"caption":"Newlyn Harbour","height":92});
															thumbnails[7516489] = clik.newPhoto({"id":7516489,"src":"Falmouth_thumb.jpg","galleries_id":259690,"server_id":18,"link":"photo_7516489.html","width":130,"caption":"Falmouth","height":87});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[259689] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gallery 1: Colour and mixed media ","link":"gallery_259689.html","maxRecords":0.0,"photoIDs":[4454726.0,4454747.0,4454779.0,4506386.0,4454735.0,4514844.0,4976755.0,4918827.0,4454750.0,4454754.0,4875339.0,5599412.0,4489820.0,4489849.0,4489853.0,4489860.0,4489884.0,4454760.0,4521309.0,4503673.0,4508151.0,4499353.0,4492565.0,4548056.0],"skipIndex":0,"section_code":"gallery","featured_images":4489853.0,"id":259689,"singleSection":false});				  						galleries[259690] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gallery 2: Monochrome and mixed media","link":"gallery_259690.html","maxRecords":0.0,"photoIDs":[4454808.0,4458940.0,7988897.0,7945400.0,9077608.0,5135942.0,4458973.0,9086782.0,4454813.0,8572483.0,4454910.0,5255773.0,4454903.0,7909127.0,7644371.0,4458938.0,4458960.0,4458926.0,4458956.0,4458976.0,4458981.0,4458930.0,4458936.0,4511303.0,4458931.0,4458954.0,4458975.0,4458949.0,7908385.0,7612267.0,4454913.0,4458924.0,4458925.0,4458966.0,6325609.0,4454815.0,4454909.0,4458933.0,4458934.0,4458921.0,4458932.0,4458941.0,4454918.0,4458928.0,4458927.0,4458965.0,4454811.0,4454902.0,6809826.0,6962013.0,6962018.0,7516489.0],"skipIndex":0,"section_code":"gallery","featured_images":4454909.0,"id":259690,"singleSection":false});				  						galleries[459684] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gallery 3 \"Light from a kilner Jar\"","link":"gallery_459684.html","maxRecords":0.0,"photoIDs":[8720483.0,8720487.0,8720495.0,8720500.0,8720504.0,8720523.0,8720528.0,8720532.0,8720538.0,8720542.0,8720554.0,8720556.0,8720567.0,8720561.0,8720572.0,8720573.0,8720581.0,8720585.0,8721210.0,8720593.0],"skipIndex":0,"section_code":"gallery","featured_images":8720542.0,"id":459684,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '4489884';
imageSets[2] = '8720542,4489853,4454909';
imageSets[3] = '4458940,4458973,4454910,4458938,4458960,4458926,4458956,4458976,4458981,4458936,4458931,4458954,4458975,4458949,4454913,4458924,4458925,4458966,4454909,4458933,4458934,4458921,4458932,4458941,4454918,4458927,4458965';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/cliveht/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/cliveht/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/cliveht/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/cliveht/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/cliveht/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/cliveht/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/cliveht/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/cliveht/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/cliveht/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/cliveht/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/cliveht/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/cliveht/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/cliveht/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/cliveht/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/cliveht/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/cliveht/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/cliveht/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/cliveht/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/cliveht/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/cliveht/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/cliveht/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/cliveht/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/cliveht/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/cliveht/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/cliveht/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/cliveht/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/cliveht/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 = 'Good Compositions for Fine Art Display: ' + 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>Clive Heritage-Tilley </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> &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.item_price !== '') {
																		temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="cliveheritagetilley@hotmail.com">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="cliveheritagetilley@hotmail.com">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

