window.thumbnails = new Object();
												thumbnails[7655262] = new thumbnail(7655262,'295545','Relaxing #2','Djursland_2011_2_thumb.jpg',130, 87,5,'photo_7655262.html');
												thumbnails[7655263] = new thumbnail(7655263,'295545','Relaxing #3','Djursland_2011_1_thumb.jpg',130, 87,5,'photo_7655263.html');
												thumbnails[7316335] = new thumbnail(7316335,'295545','The end of the land','Near_Højer_Sluse_1_thumb.jpg',130, 87,5,'photo_7316335.html');
												thumbnails[7316338] = new thumbnail(7316338,'295545','First barrier','Near_Højer_Sluse_2_thumb.jpg',130, 87,5,'photo_7316338.html');
												thumbnails[7316323] = new thumbnail(7316323,'295545','Rails ','Rails_Germany_thumb.jpg',130, 185,5,'photo_7316323.html');
												thumbnails[7316329] = new thumbnail(7316329,'295545','Tidal Flat','Tidal_Flat_Germany_thumb.jpg',130, 195,5,'photo_7316329.html');
												thumbnails[5743974] = new thumbnail(5743974,'295545','Bulbjerg','Bulbjerg_thumb.jpg',130, 87,5,'photo_5743974.html');
												thumbnails[5743977] = new thumbnail(5743977,'295545','Mors','Mors_thumb.jpg',130, 87,5,'photo_5743977.html');
												thumbnails[5743978] = new thumbnail(5743978,'295545','Mors II','Mors_2_thumb.jpg',130, 86,5,'photo_5743978.html');
												thumbnails[5743925] = new thumbnail(5743925,'295545','Factory Aalborg','Factory_KHReinau_thumb.jpg',130, 71,5,'photo_5743925.html');
												thumbnails[5275394] = new thumbnail(5275394,'295545','Ice at Madum Sø','Madum_Sø_thumb.jpg',130, 87,5,'photo_5275394.html');
												thumbnails[5267318] = new thumbnail(5267318,'295545','Snow in Hellum','Sne_Hellum_thumb.jpg',130, 86,5,'photo_5267318.html');
												thumbnails[5267344] = new thumbnail(5267344,'295545','Snow at Myrdalstræde','Sne_Myrdalstræde_thumb.jpg',130, 93,5,'photo_5267344.html');
												thumbnails[5267371] = new thumbnail(5267371,'295545','Snow at Myrdalstræde II','Sne_Myrdalstræde_II_thumb.jpg',130, 86,5,'photo_5267371.html');
												thumbnails[5267457] = new thumbnail(5267457,'295545','Snow at Myrdalstræde III','Sne_Myrdalstræde_III_thumb.jpg',130, 63,5,'photo_5267457.html');
												thumbnails[5267735] = new thumbnail(5267735,'295545','Snow at Myrdalstræde IV','Snow_Myrdalstræde_IV_thumb.jpg',130, 63,5,'photo_5267735.html');
												thumbnails[5259019] = new thumbnail(5259019,'295545','Grønlandshavnen by Night','Grønlandshavnen_thumb.JPG',130, 87,5,'photo_5259019.html');
												thumbnails[5259022] = new thumbnail(5259022,'295545','Vendsysselværket by Night','Vattenfall_Night_thumb.JPG',130, 74,5,'photo_5259022.html');
												thumbnails[5259012] = new thumbnail(5259012,'295545','Train','Train_thumb.JPG',130, 66,5,'photo_5259012.html');
												thumbnails[5267795] = new thumbnail(5267795,'295545','Aalborg Industries','Aalborg_Industries_thumb.jpg',130, 87,5,'photo_5267795.html');
												thumbnails[5244404] = new thumbnail(5244404,'295545','Leaves','Leaves_Kristian_Reinau_thumb.jpg',130, 87,5,'photo_5244404.html');
												thumbnails[5244471] = new thumbnail(5244471,'295545','Rebild Bakker','Rebil_Bakker_Kristian_Reinau_thumb.jpg',130, 87,5,'photo_5244471.html');
												thumbnails[5244477] = new thumbnail(5244477,'295545','Nordkraft Aalborg','Nordkraft_Aalborg_Kristian_Reinau_thumb.jpg',130, 87,5,'photo_5244477.html');
												thumbnails[5244478] = new thumbnail(5244478,'295545','Portland Aalborg','Portland_Aalborg_Kristian_Reinau_thumb.jpg',130, 87,5,'photo_5244478.html');
												thumbnails[5244653] = new thumbnail(5244653,'295545','Trees','Trees_Kristian_Reinau_thumb.jpg',130, 87,5,'photo_5244653.html');
												thumbnails[5244674] = new thumbnail(5244674,'295545','Plates','Plates_thumb.jpg',130, 116,5,'photo_5244674.html');
												thumbnails[5288770] = new thumbnail(5288770,'295565','Captured today.. It is Kristian Reinau that is sitting in the corner.<br>\r\n<br>\r\nI used a pol-filter to make the \"postcard\" sky. ','kristian_thumb.JPG',130, 87,5,'photo_5288770.html');
												thumbnails[5284186] = new thumbnail(5284186,'295565','Madum Sø covered by snow ','Almost_panorama_thumb.JPG',130, 40,5,'photo_5284186.html');
												thumbnails[5284188] = new thumbnail(5284188,'295565','A house and fog','House_thumb.JPG',130, 63,5,'photo_5284188.html');
												thumbnails[5284202] = new thumbnail(5284202,'295565','What a strange view! ','Strange_view_thumb.JPG',130, 451,5,'photo_5284202.html');
												thumbnails[5276079] = new thumbnail(5276079,'295565','Hohøj at Mariager Fjord','Hohøj_thumb.JPG',130, 119,5,'photo_5276079.html');
												thumbnails[5262347] = new thumbnail(5262347,'295565','Snowy tree ','snetræ_thumb.JPG',130, 168,5,'photo_5262347.html');
												thumbnails[5263650] = new thumbnail(5263650,'295565','Snowy Church','Snekirke_thumb.JPG',130, 134,5,'photo_5263650.html');
												thumbnails[5248993] = new thumbnail(5248993,'295565','','Eveningtime_thumb.JPG',130, 87,5,'photo_5248993.html');
												thumbnails[5284208] = new thumbnail(5284208,'295565','The sun and the clouds compete','The_sun_thumb.JPG',130, 92,5,'photo_5284208.html');
												thumbnails[5284198] = new thumbnail(5284198,'295565','','Snow_thumb.JPG',130, 117,5,'photo_5284198.html');
												thumbnails[5284450] = new thumbnail(5284450,'295565','Stones at the edge of the water in Mariager Fjord near the town of Assens','Waterstones_thumb.JPG',130, 86,5,'photo_5284450.html');
												thumbnails[5451867] = new thumbnail(5451867,'295565','Nibe harbour frozen down','nibe_thumb.JPG',130, 58,5,'photo_5451867.html');
												thumbnails[5818587] = new thumbnail(5818587,'295565','The bridge over the strait of Lillebælt and the sun with a Halo! ','lillebælt_thumb.JPG',130, 87,5,'photo_5818587.html');
												thumbnails[5818596] = new thumbnail(5818596,'295565','Madum sø','IMG_7125_thumb.JPG',130, 195,5,'photo_5818596.html');
												thumbnails[6053493] = new thumbnail(6053493,'340106','','_MG_9283_thumb.jpg',130, 87,5,'photo_6053493.html');
												thumbnails[6053495] = new thumbnail(6053495,'340106','','_MG_92851_thumb.jpg',130, 87,5,'photo_6053495.html');
												thumbnails[6053498] = new thumbnail(6053498,'340106','','_MG_9326_thumb.jpg',130, 87,5,'photo_6053498.html');
												thumbnails[6053517] = new thumbnail(6053517,'340106','','_MG_9340_thumb.jpg',130, 87,5,'photo_6053517.html');
												thumbnails[6053519] = new thumbnail(6053519,'340106','','_MG_9348_thumb.jpg',130, 87,5,'photo_6053519.html');
												thumbnails[6053520] = new thumbnail(6053520,'340106','','_MG_9360_thumb.jpg',130, 87,5,'photo_6053520.html');
												thumbnails[6053521] = new thumbnail(6053521,'340106','','_MG_9362_thumb.jpg',130, 87,5,'photo_6053521.html');
												thumbnails[6053522] = new thumbnail(6053522,'340106','','_MG_9364_thumb.jpg',130, 87,5,'photo_6053522.html');
												thumbnails[6053523] = new thumbnail(6053523,'340106','','_MG_9369_thumb.jpg',130, 87,5,'photo_6053523.html');
												thumbnails[6053525] = new thumbnail(6053525,'340106','','_MG_9372_thumb.jpg',130, 87,5,'photo_6053525.html');
												thumbnails[6053528] = new thumbnail(6053528,'340106','','_MG_9375_thumb.jpg',130, 87,5,'photo_6053528.html');
												thumbnails[6053529] = new thumbnail(6053529,'340106','','_MG_9376_thumb.jpg',130, 87,5,'photo_6053529.html');
												thumbnails[6053530] = new thumbnail(6053530,'340106','','_MG_9379_thumb.jpg',130, 87,5,'photo_6053530.html');
												thumbnails[6053531] = new thumbnail(6053531,'340106','','_MG_9384_thumb.jpg',130, 87,5,'photo_6053531.html');
												thumbnails[6053532] = new thumbnail(6053532,'340106','','_MG_9388_thumb.jpg',130, 87,5,'photo_6053532.html');
												thumbnails[6053533] = new thumbnail(6053533,'340106','','_MG_9392_thumb.jpg',130, 87,5,'photo_6053533.html');
												thumbnails[6053534] = new thumbnail(6053534,'340106','','_MG_9400_thumb.jpg',130, 87,5,'photo_6053534.html');
												thumbnails[6053535] = new thumbnail(6053535,'340106','','_MG_9409_thumb.jpg',130, 87,5,'photo_6053535.html');
												thumbnails[6053537] = new thumbnail(6053537,'340106','','_MG_9413_thumb.jpg',130, 87,5,'photo_6053537.html');
												thumbnails[6053539] = new thumbnail(6053539,'340106','','_MG_9419_thumb.jpg',130, 87,5,'photo_6053539.html');
												thumbnails[6053540] = new thumbnail(6053540,'340106','','_MG_9423_thumb.jpg',130, 87,5,'photo_6053540.html');
												thumbnails[6053541] = new thumbnail(6053541,'340106','','_MG_9425_thumb.jpg',130, 87,5,'photo_6053541.html');
												thumbnails[6053543] = new thumbnail(6053543,'340106','','_MG_9428_thumb.jpg',130, 87,5,'photo_6053543.html');
												thumbnails[6053545] = new thumbnail(6053545,'340106','','_MG_9430_thumb.jpg',130, 87,5,'photo_6053545.html');
												thumbnails[6053546] = new thumbnail(6053546,'340106','','_MG_9432_thumb.jpg',130, 87,5,'photo_6053546.html');
												thumbnails[6053547] = new thumbnail(6053547,'340106','','_MG_9436_thumb.jpg',130, 87,5,'photo_6053547.html');
												thumbnails[6053549] = new thumbnail(6053549,'340106','','_MG_9449_thumb.jpg',130, 87,5,'photo_6053549.html');
												thumbnails[6053554] = new thumbnail(6053554,'340106','','_MG_9452_thumb.jpg',130, 87,5,'photo_6053554.html');
												thumbnails[6053556] = new thumbnail(6053556,'340106','','_MG_9463_thumb.jpg',130, 87,5,'photo_6053556.html');
												thumbnails[6053558] = new thumbnail(6053558,'340106','','_MG_9474_thumb.jpg',130, 87,5,'photo_6053558.html');
												thumbnails[6053560] = new thumbnail(6053560,'340106','','_MG_9477_thumb.jpg',130, 87,5,'photo_6053560.html');
												thumbnails[6053564] = new thumbnail(6053564,'340106','','_MG_9492_thumb.jpg',130, 87,5,'photo_6053564.html');
												thumbnails[6053565] = new thumbnail(6053565,'340106','','_MG_9499_thumb.jpg',130, 87,5,'photo_6053565.html');
												thumbnails[6053573] = new thumbnail(6053573,'340106','','_MG_9501_thumb.jpg',130, 87,5,'photo_6053573.html');
												thumbnails[6053575] = new thumbnail(6053575,'340106','','_MG_9504_thumb.jpg',130, 87,5,'photo_6053575.html');
												thumbnails[6053579] = new thumbnail(6053579,'340106','','_MG_9528_thumb.jpg',130, 87,5,'photo_6053579.html');
												thumbnails[6053581] = new thumbnail(6053581,'340106','','_MG_9536_thumb.jpg',130, 87,5,'photo_6053581.html');
												thumbnails[6053591] = new thumbnail(6053591,'340106','','_MG_9542_thumb.jpg',130, 87,5,'photo_6053591.html');
												thumbnails[6053593] = new thumbnail(6053593,'340106','','_MG_9549_thumb.jpg',130, 87,5,'photo_6053593.html');
												thumbnails[6053594] = new thumbnail(6053594,'340106','','_MG_9568_thumb.jpg',130, 87,5,'photo_6053594.html');
												thumbnails[6053596] = new thumbnail(6053596,'340106','','_MG_9576_thumb.jpg',130, 87,5,'photo_6053596.html');
												thumbnails[6053598] = new thumbnail(6053598,'340106','','_MG_9583_thumb.jpg',130, 87,5,'photo_6053598.html');
												thumbnails[6053600] = new thumbnail(6053600,'340106','','_MG_9585_thumb.jpg',130, 87,5,'photo_6053600.html');
												thumbnails[6053603] = new thumbnail(6053603,'340106','','_MG_9597_thumb.jpg',130, 87,5,'photo_6053603.html');
												thumbnails[6053605] = new thumbnail(6053605,'340106','','_MG_9598_thumb.jpg',130, 87,5,'photo_6053605.html');
												thumbnails[6053607] = new thumbnail(6053607,'340106','','_MG_9606_thumb.jpg',130, 87,5,'photo_6053607.html');
												thumbnails[6053608] = new thumbnail(6053608,'340106','','_MG_9607_thumb.jpg',130, 87,5,'photo_6053608.html');
												thumbnails[6053610] = new thumbnail(6053610,'340106','','_MG_9615_thumb.jpg',130, 87,5,'photo_6053610.html');
												thumbnails[6053615] = new thumbnail(6053615,'340106','','_MG_9624_thumb.jpg',130, 87,5,'photo_6053615.html');
												thumbnails[6053616] = new thumbnail(6053616,'340106','','_MG_9625_thumb.jpg',130, 87,5,'photo_6053616.html');
												thumbnails[6053618] = new thumbnail(6053618,'340106','','_MG_9631_thumb.jpg',130, 87,5,'photo_6053618.html');
												thumbnails[6053623] = new thumbnail(6053623,'340106','','_MG_9647_thumb.jpg',130, 87,5,'photo_6053623.html');
												thumbnails[6053625] = new thumbnail(6053625,'340106','','_MG_9651_thumb.jpg',130, 87,5,'photo_6053625.html');
												thumbnails[6053626] = new thumbnail(6053626,'340106','','_MG_9656_thumb.jpg',130, 87,5,'photo_6053626.html');
												thumbnails[6053627] = new thumbnail(6053627,'340106','','_MG_9659_thumb.jpg',130, 87,5,'photo_6053627.html');
												thumbnails[6053628] = new thumbnail(6053628,'340106','','_MG_9663_thumb.jpg',130, 87,5,'photo_6053628.html');
												thumbnails[6053629] = new thumbnail(6053629,'340106','','_MG_9664_thumb.jpg',130, 87,5,'photo_6053629.html');
												thumbnails[6053635] = new thumbnail(6053635,'340106','','_MG_9673_thumb.jpg',130, 87,5,'photo_6053635.html');
												thumbnails[6053637] = new thumbnail(6053637,'340106','','_MG_9684_thumb.jpg',130, 87,5,'photo_6053637.html');
												thumbnails[6053638] = new thumbnail(6053638,'340106','','_MG_9692_thumb.jpg',130, 87,5,'photo_6053638.html');
												thumbnails[6053640] = new thumbnail(6053640,'340106','','_MG_9695_thumb.jpg',130, 87,5,'photo_6053640.html');
												thumbnails[6053647] = new thumbnail(6053647,'340106','','_MG_9701_thumb.jpg',130, 87,5,'photo_6053647.html');
												thumbnails[6053650] = new thumbnail(6053650,'340106','','_MG_9707_thumb.jpg',130, 87,5,'photo_6053650.html');
												thumbnails[6053651] = new thumbnail(6053651,'340106','','_MG_9710_thumb.jpg',130, 87,5,'photo_6053651.html');
												thumbnails[6053652] = new thumbnail(6053652,'340106','','_MG_9715_thumb.jpg',130, 87,5,'photo_6053652.html');
												thumbnails[6053653] = new thumbnail(6053653,'340106','','_MG_9729_thumb.jpg',130, 87,5,'photo_6053653.html');
												thumbnails[6053657] = new thumbnail(6053657,'340106','','_MG_9741_thumb.jpg',130, 87,5,'photo_6053657.html');
												thumbnails[6053659] = new thumbnail(6053659,'340106','','_MG_9748_thumb.jpg',130, 87,5,'photo_6053659.html');
												thumbnails[6053660] = new thumbnail(6053660,'340106','','_MG_9751_thumb.jpg',130, 87,5,'photo_6053660.html');
												thumbnails[6053661] = new thumbnail(6053661,'340106','','_MG_9756_thumb.jpg',130, 87,5,'photo_6053661.html');
												thumbnails[6053663] = new thumbnail(6053663,'340106','','_MG_9757_thumb.jpg',130, 87,5,'photo_6053663.html');
												thumbnails[6053666] = new thumbnail(6053666,'340106','','_MG_9763_thumb.jpg',130, 87,5,'photo_6053666.html');
												thumbnails[6053668] = new thumbnail(6053668,'340106','','_MG_9777_thumb.jpg',130, 87,5,'photo_6053668.html');
												thumbnails[6053669] = new thumbnail(6053669,'340106','','_MG_9782_thumb.jpg',130, 87,5,'photo_6053669.html');
												thumbnails[6053672] = new thumbnail(6053672,'340106','','_MG_9787_thumb.jpg',130, 87,5,'photo_6053672.html');
												thumbnails[6053673] = new thumbnail(6053673,'340106','','_MG_9788_thumb.jpg',130, 87,5,'photo_6053673.html');
												thumbnails[6053674] = new thumbnail(6053674,'340106','','_MG_9791_thumb.jpg',130, 87,5,'photo_6053674.html');
												thumbnails[6053676] = new thumbnail(6053676,'340106','','_MG_9794_thumb.jpg',130, 87,5,'photo_6053676.html');
												thumbnails[6053678] = new thumbnail(6053678,'340106','','_MG_9797_thumb.jpg',130, 87,5,'photo_6053678.html');
												thumbnails[6053680] = new thumbnail(6053680,'340106','','_MG_9802_thumb.jpg',130, 87,5,'photo_6053680.html');
												thumbnails[6053682] = new thumbnail(6053682,'340106','','_MG_9804_thumb.jpg',130, 87,5,'photo_6053682.html');
												thumbnails[6053683] = new thumbnail(6053683,'340106','','_MG_9808_thumb.jpg',130, 87,5,'photo_6053683.html');
												thumbnails[6053685] = new thumbnail(6053685,'340106','','_MG_9812_thumb.jpg',130, 87,5,'photo_6053685.html');
												thumbnails[6053686] = new thumbnail(6053686,'340106','','_MG_9814_thumb.jpg',130, 87,5,'photo_6053686.html');
												thumbnails[6053691] = new thumbnail(6053691,'340106','','_MG_9819_thumb.jpg',130, 87,5,'photo_6053691.html');
												thumbnails[6053695] = new thumbnail(6053695,'340106','','_MG_9824_thumb.jpg',130, 87,5,'photo_6053695.html');
												thumbnails[6053696] = new thumbnail(6053696,'340106','','_MG_9830_thumb.jpg',130, 87,5,'photo_6053696.html');
												thumbnails[6053697] = new thumbnail(6053697,'340106','','_MG_9831_thumb.jpg',130, 87,5,'photo_6053697.html');
												thumbnails[6053698] = new thumbnail(6053698,'340106','','_MG_9833_thumb.jpg',130, 87,5,'photo_6053698.html');
												thumbnails[6053701] = new thumbnail(6053701,'340106','','_MG_9835_thumb.jpg',130, 87,5,'photo_6053701.html');
												thumbnails[6053703] = new thumbnail(6053703,'340106','','_MG_9837_thumb.jpg',130, 87,5,'photo_6053703.html');
												thumbnails[6053705] = new thumbnail(6053705,'340106','','_MG_9839_thumb.jpg',130, 87,5,'photo_6053705.html');
												thumbnails[6053706] = new thumbnail(6053706,'340106','','_MG_9841_thumb.jpg',130, 87,5,'photo_6053706.html');
												thumbnails[6053710] = new thumbnail(6053710,'340106','','_MG_9844_thumb.jpg',130, 87,5,'photo_6053710.html');
												thumbnails[6053712] = new thumbnail(6053712,'340106','','_MG_9847_thumb.jpg',130, 87,5,'photo_6053712.html');
												thumbnails[6053713] = new thumbnail(6053713,'340106','','_MG_9867_thumb.jpg',130, 87,5,'photo_6053713.html');
												thumbnails[6053714] = new thumbnail(6053714,'340106','','_MG_9870_thumb.jpg',130, 87,5,'photo_6053714.html');
												thumbnails[6053715] = new thumbnail(6053715,'340106','','_MG_9885_thumb.jpg',130, 87,5,'photo_6053715.html');
												thumbnails[6053716] = new thumbnail(6053716,'340106','','_MG_9895_thumb.jpg',130, 87,5,'photo_6053716.html');
												thumbnails[6053717] = new thumbnail(6053717,'340106','','_MG_9899_thumb.jpg',130, 87,5,'photo_6053717.html');
												thumbnails[6053718] = new thumbnail(6053718,'340106','','_MG_9900_thumb.jpg',130, 87,5,'photo_6053718.html');
												thumbnails[6053719] = new thumbnail(6053719,'340106','','_MG_9907_thumb.jpg',130, 87,5,'photo_6053719.html');
												thumbnails[6053721] = new thumbnail(6053721,'340106','','_MG_9914_thumb.jpg',130, 87,5,'photo_6053721.html');
												thumbnails[6053722] = new thumbnail(6053722,'340106','','_MG_99141_thumb.jpg',130, 87,5,'photo_6053722.html');
												thumbnails[6053723] = new thumbnail(6053723,'340106','','_MG_9915_thumb.jpg',130, 87,5,'photo_6053723.html');
												thumbnails[6053725] = new thumbnail(6053725,'340106','','_MG_9931_thumb.jpg',130, 87,5,'photo_6053725.html');
												thumbnails[6053726] = new thumbnail(6053726,'340106','','_MG_9937_thumb.jpg',130, 87,5,'photo_6053726.html');
												thumbnails[6053727] = new thumbnail(6053727,'340106','','_MG_9960_thumb.jpg',130, 87,5,'photo_6053727.html');
												thumbnails[6053488] = new thumbnail(6053488,'340106','','_MG_9069_thumb.jpg',130, 195,5,'photo_6053488.html');
												thumbnails[6053620] = new thumbnail(6053620,'340106','','_MG_9638_thumb.jpg',130, 195,5,'photo_6053620.html');
												thumbnails[6053631] = new thumbnail(6053631,'340106','','_MG_9668_thumb.jpg',130, 195,5,'photo_6053631.html');
												thumbnails[6053656] = new thumbnail(6053656,'340106','','_MG_9733_thumb.jpg',130, 195,5,'photo_6053656.html');
												thumbnails[6053690] = new thumbnail(6053690,'340106','','_MG_9817_thumb.jpg',130, 195,5,'photo_6053690.html');
												thumbnails[6053720] = new thumbnail(6053720,'340106','','_MG_9909_thumb.jpg',130, 195,5,'photo_6053720.html');
												thumbnails[7867300] = new thumbnail(7867300,'424542','','Karneval_2011_44_thumb.jpg',130, 87,5,'photo_7867300.html');
												thumbnails[7867315] = new thumbnail(7867315,'424542','','Karneval_2011_41_thumb.jpg',130, 87,5,'photo_7867315.html');
												thumbnails[7867321] = new thumbnail(7867321,'424542','','Karneval_2011_38_thumb.jpg',130, 87,5,'photo_7867321.html');
												thumbnails[7867323] = new thumbnail(7867323,'424542','','Karneval_2011_36_thumb.jpg',130, 87,5,'photo_7867323.html');
												thumbnails[7867325] = new thumbnail(7867325,'424542','','Karneval_2011_35_thumb.jpg',130, 87,5,'photo_7867325.html');
												thumbnails[7867326] = new thumbnail(7867326,'424542','','Karneval_2011_34_thumb.jpg',130, 87,5,'photo_7867326.html');
												thumbnails[7867327] = new thumbnail(7867327,'424542','','Karneval_2011_33_thumb.jpg',130, 87,5,'photo_7867327.html');
												thumbnails[7867333] = new thumbnail(7867333,'424542','','Karneval_2011_32_thumb.jpg',130, 87,5,'photo_7867333.html');
												thumbnails[7867336] = new thumbnail(7867336,'424542','','Karneval_2011_31_thumb.jpg',130, 87,5,'photo_7867336.html');
												thumbnails[7867337] = new thumbnail(7867337,'424542','','Karneval_2011_30_thumb.jpg',130, 87,5,'photo_7867337.html');
												thumbnails[7867339] = new thumbnail(7867339,'424542','','Karneval_2011_29_thumb.jpg',130, 87,5,'photo_7867339.html');
												thumbnails[7867347] = new thumbnail(7867347,'424542','','Karneval_2011_26_thumb.jpg',130, 87,5,'photo_7867347.html');
												thumbnails[7867349] = new thumbnail(7867349,'424542','','Karneval_2011_25_thumb.jpg',130, 87,5,'photo_7867349.html');
												thumbnails[7867351] = new thumbnail(7867351,'424542','','Karneval_2011_24_thumb.jpg',130, 87,5,'photo_7867351.html');
												thumbnails[7867352] = new thumbnail(7867352,'424542','','Karneval_2011_23_thumb.jpg',130, 87,5,'photo_7867352.html');
												thumbnails[7867359] = new thumbnail(7867359,'424542','','Karneval_2011_22_thumb.jpg',130, 87,5,'photo_7867359.html');
												thumbnails[7867362] = new thumbnail(7867362,'424542','','Karneval_2011_21_thumb.jpg',130, 87,5,'photo_7867362.html');
												thumbnails[7867363] = new thumbnail(7867363,'424542','','Karneval_2011_20_thumb.jpg',130, 87,5,'photo_7867363.html');
												thumbnails[7867364] = new thumbnail(7867364,'424542','','Karneval_2011_19_thumb.jpg',130, 87,5,'photo_7867364.html');
												thumbnails[7867368] = new thumbnail(7867368,'424542','','Karneval_2011_18_thumb.jpg',130, 87,5,'photo_7867368.html');
												thumbnails[7867375] = new thumbnail(7867375,'424542','','Karneval_2011_17_thumb.jpg',130, 87,5,'photo_7867375.html');
												thumbnails[7867376] = new thumbnail(7867376,'424542','','Karneval_2011_16_thumb.jpg',130, 87,5,'photo_7867376.html');
												thumbnails[7867377] = new thumbnail(7867377,'424542','','Karneval_2011_15_thumb.jpg',130, 87,5,'photo_7867377.html');
												thumbnails[7867380] = new thumbnail(7867380,'424542','','Karneval_2011_14_thumb.jpg',130, 87,5,'photo_7867380.html');
												thumbnails[7867381] = new thumbnail(7867381,'424542','','Karneval_2011_13_thumb.jpg',130, 87,5,'photo_7867381.html');
												thumbnails[7867382] = new thumbnail(7867382,'424542','','Karneval_2011_12_thumb.jpg',130, 87,5,'photo_7867382.html');
												thumbnails[7867390] = new thumbnail(7867390,'424542','','Karneval_2011_10_thumb.jpg',130, 87,5,'photo_7867390.html');
												thumbnails[7867391] = new thumbnail(7867391,'424542','','Karneval_2011_9_thumb.jpg',130, 87,5,'photo_7867391.html');
												thumbnails[7867392] = new thumbnail(7867392,'424542','','Karneval_2011_8_thumb.jpg',130, 87,5,'photo_7867392.html');
												thumbnails[7867394] = new thumbnail(7867394,'424542','','Karneval_2011_7_thumb.jpg',130, 87,5,'photo_7867394.html');
												thumbnails[7867395] = new thumbnail(7867395,'424542','','Karneval_2011_6_thumb.jpg',130, 87,5,'photo_7867395.html');
												thumbnails[7867396] = new thumbnail(7867396,'424542','','Karneval_2011_5_thumb.jpg',130, 87,5,'photo_7867396.html');
												thumbnails[7867397] = new thumbnail(7867397,'424542','','Karneval_2011_4_thumb.jpg',130, 87,5,'photo_7867397.html');
												thumbnails[7867320] = new thumbnail(7867320,'424542','','Karneval_2011_39_thumb.jpg',130, 195,5,'photo_7867320.html');
												thumbnails[7867322] = new thumbnail(7867322,'424542','','Karneval_2011_37_thumb.jpg',130, 195,5,'photo_7867322.html');
												thumbnails[7867345] = new thumbnail(7867345,'424542','','Karneval_2011_28_thumb.jpg',130, 195,5,'photo_7867345.html');
												thumbnails[7867346] = new thumbnail(7867346,'424542','','Karneval_2011_27_thumb.jpg',130, 195,5,'photo_7867346.html');
												thumbnails[7867398] = new thumbnail(7867398,'424542','','Karneval_2011_3_thumb.jpg',130, 195,5,'photo_7867398.html');
												thumbnails[7867399] = new thumbnail(7867399,'424542','','Karneval_2011_2_thumb.jpg',130, 195,5,'photo_7867399.html');
												thumbnails[5244821] = new thumbnail(5244821,'295567','Pike, weighing in at over 4 kg\'s. Test trip with Rudi, caught on some new softbaits from AMS. Great day. Catch and release. ','Gedde_Fyn_1_thumb.JPG',130, 195,5,'photo_5244821.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[340106] = new gallery(340106,'6053727,6053726,6053725,6053723,6053722,6053721,6053720,6053719,6053718,6053717','Aalborg Karneval 2010','section406950',[6053493,6053495,6053498,6053517,6053519,6053520,6053521,6053522,6053523,6053525,6053528,6053529,6053530,6053531,6053532,6053533,6053534,6053535,6053537,6053539,6053540,6053541,6053543,6053545,6053546,6053547,6053549,6053554,6053556,6053558,6053560,6053564,6053565,6053573,6053575,6053579,6053581,6053591,6053593,6053594,6053596,6053598,6053600,6053603,6053605,6053607,6053608,6053610,6053615,6053616,6053618,6053623,6053625,6053626,6053627,6053628,6053629,6053635,6053637,6053638,6053640,6053647,6053650,6053651,6053652,6053653,6053657,6053659,6053660,6053661,6053663,6053666,6053668,6053669,6053672,6053673,6053674,6053676,6053678,6053680,6053682,6053683,6053685,6053686,6053691,6053695,6053696,6053697,6053698,6053701,6053703,6053705,6053706,6053710,6053712,6053713,6053714,6053715,6053716,6053717,6053718,6053719,6053721,6053722,6053723,6053725,6053726,6053727,6053488,6053620,6053631,6053656,6053690,6053720],0, 1, '', 'section406950.html',0,1);
				  					galleries[424542] = new gallery(424542,'7867399,7867398,7867397,7867396,7867395,7867394,7867392,7867391,7867390,7867382','Aalborg Karneval 2011','section509406',[7867300,7867315,7867321,7867323,7867325,7867326,7867327,7867333,7867336,7867337,7867339,7867347,7867349,7867351,7867352,7867359,7867362,7867363,7867364,7867368,7867375,7867376,7867377,7867380,7867381,7867382,7867390,7867391,7867392,7867394,7867395,7867396,7867397,7867320,7867322,7867345,7867346,7867398,7867399],0, 1, '', 'section509406.html',0,1);
				  					galleries[295565] = new gallery(295565,'5818596,5818587,5451867,5288770,5284450,5284208,5284202,5284198,5284188,5284186','Pictures by Andreas Hegner Reinau ','section353360',[5288770,5284186,5284188,5284202,5276079,5262347,5263650,5248993,5284208,5284198,5284450,5451867,5818587,5818596],0, 0, '', 'section353360.html',0,1);
				  					galleries[295545] = new gallery(295545,'7655263,7655262,7316338,7316335,7316329,7316323,5743978,5743977,5743974,5743925','Pictures by Kristian Hegner Reinau','gallery',[7655262,7655263,7316335,7316338,7316323,7316329,5743974,5743977,5743978,5743925,5275394,5267318,5267344,5267371,5267457,5267735,5259019,5259022,5259012,5267795,5244404,5244471,5244477,5244478,5244653,5244674],0, 1, '', 'gallery.html',0,1);
				  					galleries[295567] = new gallery(295567,'5244821','Pictures from our fishing trips','section353373',[5244821],0, 0, '', 'section353373.html',0,1);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '7867399,7867398,7867397,7867396,7867395,7867394,7867392,7867391,7867390,7867382,7867381,7867380,7867377,7867376,7867375,7867368,7867364,7867363,7867362,7867359,7867352,7867351,7867349,7867347,7867346,7867345,7867339,7867337,7867336,7867333,7867327,7867326,7867325,7867323,7867322,7867321,7867320,7867315,7867300,7655263,7655262,7316338,7316335,7316329,7316323,6053727,6053726,6053725,6053723,6053722';
imageSets[3] = '7867399,7867398,7867397,7867396,7867395,7867394,7867392,7867391,7867390,7867382,7867381,7867380,7867377,7867376,7867375,7867368,7867364,7867363,7867362,7867359,7867352,7867351,7867349,7867347,7867346,7867345,7867339,7867337,7867336,7867333,7867327,7867326,7867325,7867323,7867322,7867321,7867320,7867315,7867300,7655263,7655262,7316338,7316335,7316329,7316323,6053727,6053726,6053725,6053723,6053722';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/brdreinau/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/brdreinau/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/brdreinau/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/brdreinau/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/brdreinau/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/brdreinau/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/brdreinau/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/brdreinau/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/brdreinau/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/brdreinau/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/brdreinau/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/brdreinau/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/brdreinau/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/brdreinau/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/brdreinau/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/brdreinau/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/brdreinau/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/brdreinau/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/brdreinau/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/brdreinau/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/brdreinau/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/brdreinau/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:'',
                    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 (!basic) {
    if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
    }
				
    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));		  $('body').trigger('clikUpdate');		}, op.onBefore);
      }    }
    	if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'Reinau Photo: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
	    var options = {photoinfominwidth:220};	    	      	      resizePhotoInfo(options);
        if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
  	      toggleAddToCartConfirm(backgrounds);
  	    } else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
  	      toggleAddToCartConfirm(photos);
  	    }
	    });
    }
        if (!op.speed) {      clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));      $('body').trigger('clikUpdate');    }        
    return html;			}
	else {
				
		window.location = 'photo_' + nextPhoto.id + '.html';
	}
		
}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array){
  if (typeof(array) !== 'object') {
    array = photos;
  }
	if($('#paymentConfirm').length > 0){
		$('#paymentConfirm').hide();
		$('#paymentAddButton')
		.unbind()
		.click(function(){
						form = document.getElementById('paymentForm');
			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').text('Item added to cart').show();}
				else{
					$('#paymentConfirm').text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm').text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}
/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp = temp +  '<p id="imageDescription">' + this.description + '</p>';
	}
		if (this.photo_ref != '') {
		temp = temp + '<p class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</p>';
	}
		if (this.takendate != '') {
				
		temp = temp + '<p class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</p>';
	}
	
	if (this.location != '') {
				
		temp = temp + '<p class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</p>';
	}
	
	if (this.photographer != '') {
				
		temp = temp + '<p class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</p>';
	}
					
				if (temp != '') {
		temp = temp + '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp = temp + '<p>Order this print:</p>';
				temp = temp + '<p class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</p>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.payment_groups_id !== '') {
		temp = temp + '<p>Buy this print online:</p>';
				temp = temp + '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp = temp + '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
				
		temp = temp + getPaymentOptions(this.payment_groups_id);
		temp = temp + '</select>';
		temp = 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 = 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({            href: thumbnails[imageID].fnGalleryLink(gallery_id),            title: galleries[gallery_id].title          });
        }
							}
										}
}

/***************************************************************************
* 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 + ' | ';
				}
				temp = temp + '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
			}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

