window.thumbnails = {};
															thumbnails[7709462] = clik.newPhoto({"id":7709462,"src":"ICH_klein_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":130});
															thumbnails[5134986] = clik.newPhoto({"id":5134986,"src":"Gründelnder_Stockentenerpel_thumb.jpg","galleries_id":290468,"server_id":5,"link":"photo_5134986.html","width":130,"caption":"","height":87});
															thumbnails[5134993] = clik.newPhoto({"id":5134993,"src":"Eichelhäher_thumb.jpg","galleries_id":290468,"server_id":5,"link":"photo_5134993.html","width":130,"caption":"","height":87});
															thumbnails[5134995] = clik.newPhoto({"id":5134995,"src":"Eisbär_thumb.jpg","galleries_id":290468,"server_id":5,"link":"photo_5134995.html","width":130,"caption":"","height":87});
															thumbnails[5134997] = clik.newPhoto({"id":5134997,"src":"Libelle_thumb.jpg","galleries_id":290468,"server_id":5,"link":"photo_5134997.html","width":130,"caption":"","height":87});
															thumbnails[5134998] = clik.newPhoto({"id":5134998,"src":"Kreuzspinne_I_Tonwertkorrektur_thumb.jpg","galleries_id":290468,"server_id":5,"link":"photo_5134998.html","width":130,"caption":"","height":87});
															thumbnails[5135000] = clik.newPhoto({"id":5135000,"src":"Möwen_thumb.jpg","galleries_id":290468,"server_id":5,"link":"photo_5135000.html","width":130,"caption":"","height":87});
															thumbnails[5135526] = clik.newPhoto({"id":5135526,"src":"Kloster_Dalheim_Dachboden_thumb.jpg","galleries_id":290500,"server_id":5,"link":"photo_5135526.html","width":130,"caption":"","height":87});
															thumbnails[5144634] = clik.newPhoto({"id":5144634,"src":"Flügelschlagende_Graugans2_thumb.jpg","galleries_id":290468,"server_id":5,"link":"photo_5144634.html","width":130,"caption":"","height":92});
															thumbnails[5159228] = clik.newPhoto({"id":5159228,"src":"Nordseebuhnen1_thumb.jpg","galleries_id":290473,"server_id":5,"link":"photo_5159228.html","width":130,"caption":"","height":87});
															thumbnails[5225102] = clik.newPhoto({"id":5225102,"src":"Cumulus_11_thumb.jpg","galleries_id":290498,"server_id":5,"link":"photo_5225102.html","width":130,"caption":"","height":87});
															thumbnails[5259023] = clik.newPhoto({"id":5259023,"src":"The_horn_thumb.jpg","galleries_id":290498,"server_id":5,"link":"photo_5259023.html","width":130,"caption":"","height":87});
															thumbnails[5140886] = clik.newPhoto({"id":5140886,"src":"HB_1_thumb.jpg","galleries_id":290535,"server_id":5,"link":"photo_5140886.html","width":130,"caption":"","height":87});
															thumbnails[5166386] = clik.newPhoto({"id":5166386,"src":"London_-_Roundabout_I_thumb.jpg","galleries_id":290543,"server_id":5,"link":"photo_5166386.html","width":130,"caption":"","height":99});
															thumbnails[5256172] = clik.newPhoto({"id":5256172,"src":"Sonja_und_Tessa_Hiddestorf1_thumb.jpg","galleries_id":296023,"server_id":5,"link":"photo_5256172.html","width":130,"caption":"","height":107});
															thumbnails[5257154] = clik.newPhoto({"id":5257154,"src":"Fountains_Abbey_Cellularium___thumb.jpg","galleries_id":290500,"server_id":5,"link":"photo_5257154.html","width":130,"caption":"","height":104});
															thumbnails[5262416] = clik.newPhoto({"id":5262416,"src":"Alte_Linde_thumb.jpg","galleries_id":294660,"server_id":5,"link":"photo_5262416.html","width":130,"caption":"","height":87});
															thumbnails[5139522] = clik.newPhoto({"id":5139522,"src":"Westerhever_Leuchtturm_III_Kopie_thumb.jpg","galleries_id":290473,"server_id":5,"link":"photo_5139522.html","width":130,"caption":"","height":87});
															thumbnails[5140797] = clik.newPhoto({"id":5140797,"src":"HB_2_thumb.jpg","galleries_id":290535,"server_id":5,"link":"photo_5140797.html","width":130,"caption":"","height":87});
															thumbnails[5143498] = clik.newPhoto({"id":5143498,"src":"Seegrasspiegelung_-_Negativ_thumb.jpg","galleries_id":290543,"server_id":5,"link":"photo_5143498.html","width":130,"caption":"","height":99});
															thumbnails[5159025] = clik.newPhoto({"id":5159025,"src":"Morgennebel_im_Teufelsmoor_2B75C3C6-2219-B5B5-4CD713383301F90E_thumb.jpg","galleries_id":290498,"server_id":5,"link":"photo_5159025.html","width":130,"caption":"","height":87});
															thumbnails[5159166] = clik.newPhoto({"id":5159166,"src":"Morgennebel_am_Bahndamm_Kopie_thumb.jpg","galleries_id":290498,"server_id":5,"link":"photo_5159166.html","width":130,"caption":"","height":87});
															thumbnails[5224601] = clik.newPhoto({"id":5224601,"src":"Raureif_Distel_thumb.jpg","galleries_id":294660,"server_id":5,"link":"photo_5224601.html","width":82,"caption":"","height":130});
															thumbnails[5248367] = clik.newPhoto({"id":5248367,"src":"Double_Delight_Druckversion_Hochformat_I_thumb.jpg","galleries_id":294660,"server_id":5,"link":"photo_5248367.html","width":87,"caption":"","height":130});
															thumbnails[5256175] = clik.newPhoto({"id":5256175,"src":"Sankt_Peter-Ording_-_Strandnixen_thumb.jpg","galleries_id":296023,"server_id":5,"link":"photo_5256175.html","width":88,"caption":"","height":130});
															thumbnails[5140801] = clik.newPhoto({"id":5140801,"src":"HB_3_thumb.jpg","galleries_id":290535,"server_id":5,"link":"photo_5140801.html","width":130,"caption":"","height":87});
															thumbnails[5143509] = clik.newPhoto({"id":5143509,"src":"Seegrasspiegelung_-_Positiv_thumb.jpg","galleries_id":290543,"server_id":5,"link":"photo_5143509.html","width":130,"caption":"","height":99});
															thumbnails[5249821] = clik.newPhoto({"id":5249821,"src":"Efeu_Elgol_thumb.jpg","galleries_id":294660,"server_id":5,"link":"photo_5249821.html","width":96,"caption":"","height":130});
															thumbnails[5262399] = clik.newPhoto({"id":5262399,"src":"Westerhever_Leuchtturm_II_thumb.jpg","galleries_id":290473,"server_id":5,"link":"photo_5262399.html","width":98,"caption":"","height":130});
															thumbnails[5140802] = clik.newPhoto({"id":5140802,"src":"HB_5_thumb.jpg","galleries_id":290535,"server_id":5,"link":"photo_5140802.html","width":130,"caption":"","height":87});
															thumbnails[5142041] = clik.newPhoto({"id":5142041,"src":"Eaux_thumb.jpg","galleries_id":290498,"server_id":5,"link":"photo_5142041.html","width":130,"caption":"","height":87});
															thumbnails[5140803] = clik.newPhoto({"id":5140803,"src":"HB_6_thumb.jpg","galleries_id":290535,"server_id":5,"link":"photo_5140803.html","width":130,"caption":"","height":87});
															thumbnails[5142022] = clik.newPhoto({"id":5142022,"src":"Felsformation_Wales_thumb.jpg","galleries_id":290498,"server_id":5,"link":"photo_5142022.html","width":130,"caption":"","height":87});
															thumbnails[5143469] = clik.newPhoto({"id":5143469,"src":"Reet_1_thumb.jpg","galleries_id":290473,"server_id":5,"link":"photo_5143469.html","width":130,"caption":"","height":130});
															thumbnails[5262434] = clik.newPhoto({"id":5262434,"src":"Birken_1_Nordharz_thumb.jpg","galleries_id":294660,"server_id":5,"link":"photo_5262434.html","width":130,"caption":"","height":130});
															thumbnails[5141919] = clik.newPhoto({"id":5141919,"src":"Barracks_Kopie_thumb.jpg","galleries_id":290498,"server_id":5,"link":"photo_5141919.html","width":130,"caption":"","height":87});
															thumbnails[5140805] = clik.newPhoto({"id":5140805,"src":"HB_7_thumb.jpg","galleries_id":290535,"server_id":5,"link":"photo_5140805.html","width":130,"caption":"","height":87});
															thumbnails[5143480] = clik.newPhoto({"id":5143480,"src":"Reet_5_thumb.jpg","galleries_id":290473,"server_id":5,"link":"photo_5143480.html","width":130,"caption":"","height":130});
															thumbnails[5140806] = clik.newPhoto({"id":5140806,"src":"HB_8_thumb.jpg","galleries_id":290535,"server_id":5,"link":"photo_5140806.html","width":130,"caption":"","height":87});
															thumbnails[5141365] = clik.newPhoto({"id":5141365,"src":"Reet_4_thumb.jpg","galleries_id":290473,"server_id":5,"link":"photo_5141365.html","width":130,"caption":"","height":130});
															thumbnails[5159196] = clik.newPhoto({"id":5159196,"src":"Angreifende_Graugans_2B96AED1-2219-B5B5-4C23A5854EF4A8EE_thumb.jpg","galleries_id":290468,"server_id":5,"link":"photo_5159196.html","width":130,"caption":"","height":92});
															thumbnails[5135730] = clik.newPhoto({"id":5135730,"src":"HB_10_MA_thumb.jpg","galleries_id":290535,"server_id":5,"link":"photo_5135730.html","width":98,"caption":"","height":110});
															thumbnails[5141410] = clik.newPhoto({"id":5141410,"src":"Hyde_Park_Corner_nachbelichtet_Kopie_thumb.jpg","galleries_id":290498,"server_id":5,"link":"photo_5141410.html","width":130,"caption":"","height":87});
															thumbnails[5143439] = clik.newPhoto({"id":5143439,"src":"Watt1_thumb.jpg","galleries_id":290473,"server_id":5,"link":"photo_5143439.html","width":129,"caption":"","height":130});
															thumbnails[5135119] = clik.newPhoto({"id":5135119,"src":"Erdmännchen2_thumb.jpg","galleries_id":290468,"server_id":5,"link":"photo_5135119.html","width":130,"caption":"","height":87});
															thumbnails[5143411] = clik.newPhoto({"id":5143411,"src":"Sankt_Peter-Ording_-_Abendstimmung_am_Meer12_thumb.jpg","galleries_id":290473,"server_id":5,"link":"photo_5143411.html","width":130,"caption":"","height":130});
															thumbnails[5143462] = clik.newPhoto({"id":5143462,"src":"Sankt_Peter-Ording_-_Gewitterstimmung_thumb.jpg","galleries_id":290473,"server_id":5,"link":"photo_5143462.html","width":130,"caption":"","height":130});
															thumbnails[5258026] = clik.newPhoto({"id":5258026,"src":"Fabrik_Schweicheln_thumb.jpg","galleries_id":290498,"server_id":5,"link":"photo_5258026.html","width":130,"caption":"","height":87});
															thumbnails[5258029] = clik.newPhoto({"id":5258029,"src":"Schattenwurf_thumb.jpg","galleries_id":290498,"server_id":5,"link":"photo_5258029.html","width":130,"caption":"","height":87});
															thumbnails[5258039] = clik.newPhoto({"id":5258039,"src":"Symmetrie_Herrenhäuser_Gärten_Hannover_thumb.jpg","galleries_id":290498,"server_id":5,"link":"photo_5258039.html","width":130,"caption":"","height":87});
															thumbnails[5256255] = clik.newPhoto({"id":5256255,"src":"London_-_Strassencafe1_thumb.jpg","galleries_id":290468,"server_id":5,"link":"photo_5256255.html","width":130,"caption":"","height":87});
															thumbnails[5258151] = clik.newPhoto({"id":5258151,"src":"Klütz_Allee_2_Kopie_thumb.jpg","galleries_id":290498,"server_id":5,"link":"photo_5258151.html","width":130,"caption":"","height":87});
															thumbnails[5141646] = clik.newPhoto({"id":5141646,"src":"Rolls_Royce_Kopie_thumb.jpg","galleries_id":290498,"server_id":5,"link":"photo_5141646.html","width":130,"caption":"","height":116});
															thumbnails[5256224] = clik.newPhoto({"id":5256224,"src":"Taube_thumb.jpg","galleries_id":290468,"server_id":5,"link":"photo_5256224.html","width":130,"caption":"","height":87});
															thumbnails[5255930] = clik.newPhoto({"id":5255930,"src":"Limestone_structure_Elgol_Isle_of_Skye_Scotland_2_RGB_thumb.jpg","galleries_id":290498,"server_id":5,"link":"photo_5255930.html","width":127,"caption":"","height":130});
															thumbnails[5256045] = clik.newPhoto({"id":5256045,"src":"Irland_Zapfsäule_thumb.jpg","galleries_id":290498,"server_id":5,"link":"photo_5256045.html","width":85,"caption":"","height":130});
															thumbnails[5256138] = clik.newPhoto({"id":5256138,"src":"Mühlenrest_gerade_thumb.jpg","galleries_id":290498,"server_id":5,"link":"photo_5256138.html","width":98,"caption":"","height":130});
															thumbnails[5256204] = clik.newPhoto({"id":5256204,"src":"Black__White_11_thumb.jpg","galleries_id":290468,"server_id":5,"link":"photo_5256204.html","width":130,"caption":"","height":87});
															thumbnails[5256374] = clik.newPhoto({"id":5256374,"src":"Fohlen_II_Kopie_thumb.jpg","galleries_id":290468,"server_id":5,"link":"photo_5256374.html","width":103,"caption":"","height":130});
															thumbnails[5257311] = clik.newPhoto({"id":5257311,"src":"Palmtree1_thumb.jpg","galleries_id":290500,"server_id":5,"link":"photo_5257311.html","width":130,"caption":"","height":130});
															thumbnails[5131413] = clik.newPhoto({"id":5131413,"src":"Schottland_-_Abendstimmung_am_Cul_Beag_Cul_Mor_Kopie1234_thumb.jpg","galleries_id":290496,"server_id":5,"link":"photo_5131413.html","width":130,"caption":"","height":87});
															thumbnails[5134996] = clik.newPhoto({"id":5134996,"src":"Going_home_Kopie_thumb.jpg","galleries_id":290496,"server_id":5,"link":"photo_5134996.html","width":130,"caption":"","height":87});
															thumbnails[5135431] = clik.newPhoto({"id":5135431,"src":"Croft_Loch_Maree_thumb.jpg","galleries_id":290496,"server_id":5,"link":"photo_5135431.html","width":130,"caption":"","height":87});
															thumbnails[5135469] = clik.newPhoto({"id":5135469,"src":"Schottland_-_Croft_ruins_-_Loch_Eriboll1_thumb.jpg","galleries_id":290496,"server_id":5,"link":"photo_5135469.html","width":130,"caption":"","height":87});
															thumbnails[5135498] = clik.newPhoto({"id":5135498,"src":"Moosbewachsene_Steinmauer_Scotland_Kopie_thumb.jpg","galleries_id":290496,"server_id":5,"link":"photo_5135498.html","width":130,"caption":"","height":87});
															thumbnails[5135501] = clik.newPhoto({"id":5135501,"src":"Rannoch_Moor_thumb.jpg","galleries_id":290496,"server_id":5,"link":"photo_5135501.html","width":130,"caption":"","height":87});
															thumbnails[5135502] = clik.newPhoto({"id":5135502,"src":"Rannoch_Moor_IV_Scotland_thumb.jpg","galleries_id":290496,"server_id":5,"link":"photo_5135502.html","width":130,"caption":"","height":87});
															thumbnails[5141130] = clik.newPhoto({"id":5141130,"src":"Isle_of_Lewis_thumb.jpg","galleries_id":290496,"server_id":5,"link":"photo_5141130.html","width":130,"caption":"","height":87});
															thumbnails[5141272] = clik.newPhoto({"id":5141272,"src":"The_Cloud_Glen_Coe_Kopie_thumb.jpg","galleries_id":290496,"server_id":5,"link":"photo_5141272.html","width":130,"caption":"","height":87});
															thumbnails[5159247] = clik.newPhoto({"id":5159247,"src":"Lonesome_tree_and_Suilven_2BA74601-2219-B5B5-4C352505C04F28F9_thumb.jpg","galleries_id":290496,"server_id":5,"link":"photo_5159247.html","width":130,"caption":"","height":87});
															thumbnails[5159421] = clik.newPhoto({"id":5159421,"src":"Canisp_Assynth_2BB8DA4A-2219-B5B5-4C7797D463BDA1C0_thumb.jpg","galleries_id":290496,"server_id":5,"link":"photo_5159421.html","width":130,"caption":"","height":87});
															thumbnails[5256404] = clik.newPhoto({"id":5256404,"src":"Brandung_II_thumb.jpg","galleries_id":290496,"server_id":5,"link":"photo_5256404.html","width":130,"caption":"","height":87});
															thumbnails[5770239] = clik.newPhoto({"id":5770239,"src":"Schottland_-_Eilean_Donan_Castle_I123456_thumb.jpg","galleries_id":290496,"server_id":5,"link":"photo_5770239.html","width":130,"caption":"","height":83});
															thumbnails[8696339] = clik.newPhoto({"id":8696339,"src":"Lena_1.10.2011-1_SW_MonoArt_thumb.jpg","galleries_id":447055,"server_id":5,"link":"photo_8696339.html","width":109,"caption":"","height":130});
															thumbnails[5141182] = clik.newPhoto({"id":5141182,"src":"Blaven_and_Loch_Slapin_Isle_of_Skye_Scotland_2_thumb.jpg","galleries_id":290497,"server_id":5,"link":"photo_5141182.html","width":130,"caption":"","height":130});
															thumbnails[5143843] = clik.newPhoto({"id":5143843,"src":"Winter_I_1D812328-2219-B5B5-4C78EFE38B8B8C91_thumb.jpg","galleries_id":290545,"server_id":5,"link":"photo_5143843.html","width":128,"caption":"","height":130});
															thumbnails[8443247] = clik.newPhoto({"id":8443247,"src":"HannaH_Goldhalsband_BW_internet_thumb.jpg","galleries_id":447055,"server_id":5,"link":"photo_8443247.html","width":130,"caption":"","height":87});
															thumbnails[5143697] = clik.newPhoto({"id":5143697,"src":"Red_Hills_and_Loch_Ainort_Isle_of_Skye_Scotland__Kopie_thumb.jpg","galleries_id":290497,"server_id":5,"link":"photo_5143697.html","width":130,"caption":"","height":130});
															thumbnails[5143952] = clik.newPhoto({"id":5143952,"src":"Winter_II_thumb.jpg","galleries_id":290545,"server_id":5,"link":"photo_5143952.html","width":130,"caption":"","height":130});
															thumbnails[8446068] = clik.newPhoto({"id":8446068,"src":"HannaH_fast_10_Monate_alt_BW1_thumb.jpg","galleries_id":447055,"server_id":5,"link":"photo_8446068.html","width":130,"caption":"","height":100});
															thumbnails[5143720] = clik.newPhoto({"id":5143720,"src":"Glen_Orchy_1_12_thumb.jpg","galleries_id":290497,"server_id":5,"link":"photo_5143720.html","width":130,"caption":"","height":130});
															thumbnails[5144645] = clik.newPhoto({"id":5144645,"src":"Wintermorgen_in_Bielefeld_-_Heepen1_thumb.jpg","galleries_id":290545,"server_id":5,"link":"photo_5144645.html","width":129,"caption":"","height":130});
															thumbnails[8446076] = clik.newPhoto({"id":8446076,"src":"HannaH_action_3_BW_thumb.jpg","galleries_id":447055,"server_id":5,"link":"photo_8446076.html","width":130,"caption":"","height":99});
															thumbnails[5262708] = clik.newPhoto({"id":5262708,"src":"Eilean_Donan_Castle_VIII_Kopie_thumb.jpg","galleries_id":290497,"server_id":5,"link":"photo_5262708.html","width":130,"caption":"","height":130});
															thumbnails[8461061] = clik.newPhoto({"id":8461061,"src":"Motte_III12._thumb.jpg","galleries_id":447055,"server_id":5,"link":"photo_8461061.html","width":130,"caption":"","height":98});
															thumbnails[5262457] = clik.newPhoto({"id":5262457,"src":"Eilean_Donan_Castle_IX_a_thumb.jpg","galleries_id":290497,"server_id":5,"link":"photo_5262457.html","width":130,"caption":"","height":130});
															thumbnails[8446285] = clik.newPhoto({"id":8446285,"src":"Kim_I_BW_Internet12_thumb.jpg","galleries_id":447055,"server_id":5,"link":"photo_8446285.html","width":130,"caption":"","height":100});
															thumbnails[5262474] = clik.newPhoto({"id":5262474,"src":"Eilean_Donan_Castle_7_Scotland_RGB_Kopie_thumb.jpg","galleries_id":290497,"server_id":5,"link":"photo_5262474.html","width":130,"caption":"","height":130});
															thumbnails[5263878] = clik.newPhoto({"id":5263878,"src":"Eilean_Donan_Castle_6_Scotland_RGB_Kopie_thumb.jpg","galleries_id":290497,"server_id":5,"link":"photo_5263878.html","width":130,"caption":"","height":130});
															thumbnails[5258022] = clik.newPhoto({"id":5258022,"src":"Ardvreck_Castle_Loch_Assynth_After_the_storm_Kopie_thumb.jpg","galleries_id":290497,"server_id":5,"link":"photo_5258022.html","width":130,"caption":"","height":130});
															thumbnails[5258214] = clik.newPhoto({"id":5258214,"src":"Glen_Roy_thumb.jpg","galleries_id":290496,"server_id":5,"link":"photo_5258214.html","width":88,"caption":"","height":130});
															thumbnails[5262410] = clik.newPhoto({"id":5262410,"src":"Schottland_Baum_thumb.jpg","galleries_id":290497,"server_id":5,"link":"photo_5262410.html","width":130,"caption":"","height":130});
															thumbnails[5165327] = clik.newPhoto({"id":5165327,"src":"Rubjerg_Knude_I_307C9E1F-2219-B5B5-4C0C9614C4DBD951_thumb.jpg","galleries_id":290696,"server_id":5,"link":"photo_5165327.html","width":130,"caption":"","height":87});
															thumbnails[5165329] = clik.newPhoto({"id":5165329,"src":"Rubjerg_Knude_II1_thumb.jpg","galleries_id":290696,"server_id":5,"link":"photo_5165329.html","width":130,"caption":"","height":85});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[290500] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"architecture","link":"section347979_290500.html","maxRecords":0.0,"photoIDs":[5135526.0,5257154.0,5257311.0],"skipIndex":0,"section_code":"section347979","featured_images":"5257311,5257154,5135526","id":290500,"singleSection":false});				  						galleries[290543] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"experiments","link":"section347979_290543.html","maxRecords":0.0,"photoIDs":[5166386.0,5143498.0,5143509.0],"skipIndex":0,"section_code":"section347979","featured_images":"5166386,5143509,5143498","id":290543,"singleSection":false});				  						galleries[290468] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"fauna","link":"section347979_290468.html","maxRecords":0.0,"photoIDs":[5134986.0,5134993.0,5134995.0,5134997.0,5134998.0,5135000.0,5144634.0,5159196.0,5135119.0,5256255.0,5256224.0,5256204.0,5256374.0],"skipIndex":0,"section_code":"section347979","featured_images":"5256374,5256255,5256224,5256204,5159196,5144634,5135119,5135000,5134998,5134997","id":290468,"singleSection":false});				  						galleries[294660] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"flora","link":"section347979_294660.html","maxRecords":0.0,"photoIDs":[5262416.0,5224601.0,5248367.0,5249821.0,5262434.0],"skipIndex":0,"section_code":"section347979","featured_images":"5262434,5262416,5249821,5248367,5224601","id":294660,"singleSection":false});				  						galleries[290535] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"H.B.","link":"section347979_290535.html","maxRecords":0.0,"photoIDs":[5140886.0,5140797.0,5140801.0,5140802.0,5140803.0,5140805.0,5140806.0,5135730.0],"skipIndex":0,"section_code":"section347979","featured_images":"5140886,5140806,5140805,5140803,5140802,5140801,5140797,5135730","id":290535,"singleSection":false});				  						galleries[290498] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"miscellaneous","link":"section347979_290498.html","maxRecords":0.0,"photoIDs":[5225102.0,5259023.0,5159025.0,5159166.0,5142041.0,5142022.0,5141919.0,5141410.0,5258026.0,5258029.0,5258039.0,5258151.0,5141646.0,5255930.0,5256045.0,5256138.0],"skipIndex":0,"section_code":"section347979","featured_images":"5259023,5258151,5258039,5258029,5258026,5256138,5256045,5255930,5225102,5159166","id":290498,"singleSection":false});				  						galleries[290696] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"new work","link":"section348020.html","maxRecords":0.0,"photoIDs":[5165327.0,5165329.0],"skipIndex":0,"section_code":"section348020","featured_images":"5165329,5165327","id":290696,"singleSection":true});				  						galleries[290473] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"North Sea","link":"section347979_290473.html","maxRecords":0.0,"photoIDs":[5159228.0,5139522.0,5262399.0,5143469.0,5143480.0,5141365.0,5143439.0,5143411.0,5143462.0],"skipIndex":0,"section_code":"section347979","featured_images":"5262399,5159228,5143480,5143469,5143462,5143439,5143411,5141365,5139522","id":290473,"singleSection":false});				  						galleries[296023] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"portraits","link":"section347979_296023.html","maxRecords":0.0,"photoIDs":[5256172.0,5256175.0],"skipIndex":0,"section_code":"section347979","featured_images":"5256175,5256172","id":296023,"singleSection":false});				  						galleries[290496] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Scotland I","link":"section388072_290496.html","maxRecords":0.0,"photoIDs":[5131413.0,5134996.0,5135431.0,5135469.0,5135498.0,5135501.0,5135502.0,5141130.0,5141272.0,5159247.0,5159421.0,5256404.0,5770239.0,5258214.0],"skipIndex":0,"section_code":"section388072","featured_images":"5770239,5258214,5256404,5159421,5159247,5141272,5141130,5135502,5135501,5135498","id":290496,"singleSection":false});				  						galleries[290497] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Scotland II","link":"section388072_290497.html","maxRecords":0.0,"photoIDs":[5141182.0,5143697.0,5143720.0,5262708.0,5262457.0,5262474.0,5263878.0,5258022.0,5262410.0],"skipIndex":0,"section_code":"section388072","featured_images":"5263878,5262708,5262474,5262457,5262410,5258022,5143720,5143697,5141182","id":290497,"singleSection":false});				  						galleries[447055] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Whippets","link":"section388072_447055.html","maxRecords":0.0,"photoIDs":[8696339.0,8443247.0,8446068.0,8446076.0,8461061.0,8446285.0],"skipIndex":0,"section_code":"section388072","featured_images":"8696339,8461061,8446285,8446076,8446068,8443247","id":447055,"singleSection":false});				  						galleries[290545] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"winter","link":"section388072_290545.html","maxRecords":0.0,"photoIDs":[5143843.0,5143952.0,5144645.0],"skipIndex":0,"section_code":"section388072","featured_images":"5144645,5143952,5143843","id":290545,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '5770239,5259023,5256404,5225102,5159421,5159247,5159228,5144634,5141272,5141130,5135526,5135502,5135501,5135498,5135469,5135431,5135000,5134998,5134997,5134996,5134995,5134993,5134986,5131413,5262416,5257154,5256172,5166386,5165327,5143843,5141182,5256175,5248367,5224601,5165329,5159166,5159025,5143952,5143697,5143498,5139522,5262399,5249821,5144645,5143720,5143509,5262708,5142041,5262457,5262434,5143469,5142022,5141919,5262474,5143480,5263878,5159196,5141365,5143439,5141410,5143411,5135119,5258026,5143462,5258029,5258039,5258151,5256255,5256224,5141646,5255930,5256045,5256204,5256138,5257311,5256374,5258022,5262410,5258214';
imageSets[3] = '5770239,5259023,5256404,5225102,5159421,5159247,5159228,5144634,5141272,5141130,5135526,5135502,5135501,5135498,5135469,5135431,5135000,5134998,5134997,5134996,5134995,5134993,5134986,5131413,5262416,5257154,5256172,5166386,5165327,5143843,5141182,5256175,5248367,5224601,5165329,5159166,5159025,5143952,5143697,5143498,5139522,5262399,5249821,5144645,5143720,5143509,5262708,5142041,5262457,5262434,5143469,5142022,5141919,5262474,5143480,5263878,5159196,5141365,5143439,5141410,5143411,5135119,5258026,5143462,5258029,5258039,5258151,5256255,5256224,5141646,5255930,5256045,5256204,5256138,5257311,5256374,5258022,5262410,5258214';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/mono/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/mono/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/mono/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/mono/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/mono/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/mono/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/mono/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/mono/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/mono/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/mono/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/mono/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/mono/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/mono/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/mono/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/mono/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/mono/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/mono/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/mono/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/mono/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/mono/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/mono/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/mono/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/mono/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/mono/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/mono/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/mono/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/mono/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 += 'section347979.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 && 'section347979' != '') {
					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 = 'MonoArt  -  fine photographs: ' + 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;
	}
}

			

