window.thumbnails = {};
															thumbnails[2993045] = clik.newPhoto({"id":2993045,"src":"el duende_thumb.jpg","galleries_id":184623,"server_id":5,"link":"photo_2993045.html","width":130,"caption":"El Duende III","height":173});
															thumbnails[2996119] = clik.newPhoto({"id":2996119,"src":"drømmeverden 013_thumb.JPG","galleries_id":184625,"server_id":5,"link":"photo_2996119.html","width":130,"caption":"\"Storbydrømme\"<br>\r\n<br>\r\n","height":173});
															thumbnails[2996121] = clik.newPhoto({"id":2996121,"src":"The Rise and Fall 0333_thumb.jpg","galleries_id":184620,"server_id":5,"link":"photo_2996121.html","width":130,"caption":"\"Girl with Dog\"<br>\r\n","height":173});
															thumbnails[2997308] = clik.newPhoto({"id":2997308,"src":"Untitled 8_thumb.jpg","galleries_id":184621,"server_id":5,"link":"photo_2997308.html","width":130,"caption":"\"Landskab\"<br>\r\n<br>\r\n","height":98});
															thumbnails[2997310] = clik.newPhoto({"id":2997310,"src":"Untitled 9_thumb.jpg","galleries_id":184621,"server_id":5,"link":"photo_2997310.html","width":130,"caption":"\"Landskab\"<br>\r\n","height":98});
															thumbnails[2997316] = clik.newPhoto({"id":2997316,"src":"Untitled 4_thumb.jpg","galleries_id":184621,"server_id":5,"link":"photo_2997316.html","width":130,"caption":"\"Abstrakt opstilling\"<br>\r\n","height":98});
															thumbnails[2997318] = clik.newPhoto({"id":2997318,"src":"Untitled 5_thumb.jpg","galleries_id":184621,"server_id":5,"link":"photo_2997318.html","width":130,"caption":"\"abstrakt opstilling\"<br>\r\n","height":98});
															thumbnails[2997399] = clik.newPhoto({"id":2997399,"src":"silkeborg2007 0577_thumb.jpg","galleries_id":232097,"server_id":5,"link":"photo_2997399.html","width":130,"caption":"Inspiration","height":98});
															thumbnails[2997552] = clik.newPhoto({"id":2997552,"src":"Untitled 7_thumb.jpg","galleries_id":184621,"server_id":5,"link":"photo_2997552.html","width":130,"caption":"opstilliing","height":173});
															thumbnails[2997554] = clik.newPhoto({"id":2997554,"src":"Untitled 10_thumb.jpg","galleries_id":184621,"server_id":5,"link":"photo_2997554.html","width":130,"caption":"New York","height":173});
															thumbnails[2997646] = clik.newPhoto({"id":2997646,"src":"Untitled 12_thumb.jpg","galleries_id":184624,"server_id":5,"link":"photo_2997646.html","width":130,"caption":"Interiør med mønster II","height":173});
															thumbnails[2997651] = clik.newPhoto({"id":2997651,"src":"Untitled 13_thumb.jpg","galleries_id":184624,"server_id":5,"link":"photo_2997651.html","width":130,"caption":"Interiør med hund","height":173});
															thumbnails[2997653] = clik.newPhoto({"id":2997653,"src":"Untitled 14_thumb.jpg","galleries_id":184624,"server_id":5,"link":"photo_2997653.html","width":130,"caption":"Interiør med hund II","height":98});
															thumbnails[2997674] = clik.newPhoto({"id":2997674,"src":"Untitled 17_thumb.jpg","galleries_id":184621,"server_id":5,"link":"photo_2997674.html","width":130,"caption":"Landskab <br>\r\n<br>\r\n","height":98});
															thumbnails[2997680] = clik.newPhoto({"id":2997680,"src":"Untitled 19_thumb.jpg","galleries_id":184621,"server_id":5,"link":"photo_2997680.html","width":130,"caption":"Færøerne","height":98});
															thumbnails[2997685] = clik.newPhoto({"id":2997685,"src":"Untitled 21_thumb.jpg","galleries_id":184621,"server_id":5,"link":"photo_2997685.html","width":130,"caption":"Færøerne","height":98});
															thumbnails[2997703] = clik.newPhoto({"id":2997703,"src":"Untitled 23_thumb.jpg","galleries_id":184623,"server_id":5,"link":"photo_2997703.html","width":130,"caption":"Drømme","height":98});
															thumbnails[2997707] = clik.newPhoto({"id":2997707,"src":"Untitled 24_thumb.jpg","galleries_id":184623,"server_id":5,"link":"photo_2997707.html","width":130,"caption":"El Duende I","height":173});
															thumbnails[2997710] = clik.newPhoto({"id":2997710,"src":"Untitled 25_thumb.jpg","galleries_id":184623,"server_id":5,"link":"photo_2997710.html","width":130,"caption":"El Duende II","height":173});
															thumbnails[2997732] = clik.newPhoto({"id":2997732,"src":"Untitled 26_thumb.jpg","galleries_id":184618,"server_id":5,"link":"photo_2997732.html","width":130,"caption":"Citröen 2cv","height":98});
															thumbnails[2997997] = clik.newPhoto({"id":2997997,"src":"Untitled 36_thumb.jpg","galleries_id":184618,"server_id":5,"link":"photo_2997997.html","width":130,"caption":"2cv","height":173});
															thumbnails[2998005] = clik.newPhoto({"id":2998005,"src":"Untitled 40_thumb.jpg","galleries_id":184619,"server_id":5,"link":"photo_2998005.html","width":130,"caption":"My home tonight","height":98});
															thumbnails[2998011] = clik.newPhoto({"id":2998011,"src":"Untitled 41_thumb.jpg","galleries_id":184619,"server_id":5,"link":"photo_2998011.html","width":130,"caption":"Playground","height":98});
															thumbnails[2998012] = clik.newPhoto({"id":2998012,"src":"Untitled 42_thumb.jpg","galleries_id":184619,"server_id":5,"link":"photo_2998012.html","width":130,"caption":"Girl","height":98});
															thumbnails[2998019] = clik.newPhoto({"id":2998019,"src":"Untitled 43_thumb.jpg","galleries_id":184619,"server_id":5,"link":"photo_2998019.html","width":130,"caption":"Girl lying","height":98});
															thumbnails[2998021] = clik.newPhoto({"id":2998021,"src":"Untitled 38_thumb.jpg","galleries_id":184620,"server_id":5,"link":"photo_2998021.html","width":130,"caption":"Girl","height":173});
															thumbnails[2998022] = clik.newPhoto({"id":2998022,"src":"Untitled 47_thumb.jpg","galleries_id":184620,"server_id":5,"link":"photo_2998022.html","width":130,"caption":"Man and Dog","height":173});
															thumbnails[2998024] = clik.newPhoto({"id":2998024,"src":"Untitled 49_thumb.jpg","galleries_id":184620,"server_id":5,"link":"photo_2998024.html","width":130,"caption":"Girl with Fish","height":173});
															thumbnails[2998344] = clik.newPhoto({"id":2998344,"src":"Untitled 51_thumb.jpg","galleries_id":184625,"server_id":5,"link":"photo_2998344.html","width":130,"caption":"Storbyprinsesse","height":173});
															thumbnails[2998351] = clik.newPhoto({"id":2998351,"src":"Untitled 48_thumb.jpg","galleries_id":184620,"server_id":5,"link":"photo_2998351.html","width":130,"caption":"Pige","height":98});
															thumbnails[2998374] = clik.newPhoto({"id":2998374,"src":"Untitled_8_thumb.jpg","galleries_id":184620,"server_id":5,"link":"photo_2998374.html","width":130,"caption":"Pige med fisk, 66x102 cm, Akarel på papir. Antaget på den censurerede udstilling Nordisk Akvarelselskabs Jubilæusudstilling","height":199});
															thumbnails[2998384] = clik.newPhoto({"id":2998384,"src":"Untitled 2_thumb.jpg","galleries_id":184625,"server_id":5,"link":"photo_2998384.html","width":130,"caption":"Jagt","height":173});
															thumbnails[2998385] = clik.newPhoto({"id":2998385,"src":"Untitled 1_thumb.jpg","galleries_id":184620,"server_id":5,"link":"photo_2998385.html","width":130,"caption":"Pige med fisk","height":173});
															thumbnails[3810238] = clik.newPhoto({"id":3810238,"src":"Pigemedfisk_thumb.jpg","galleries_id":184620,"server_id":5,"link":"photo_3810238.html","width":130,"caption":"Pige med fisk","height":98});
															thumbnails[3810254] = clik.newPhoto({"id":3810254,"src":"blomster004_thumb.jpg","galleries_id":184621,"server_id":5,"link":"photo_3810254.html","width":130,"caption":"Blomster 500x70 cm 2008","height":173});
															thumbnails[3810257] = clik.newPhoto({"id":3810257,"src":"norg005_thumb.jpg","galleries_id":184621,"server_id":5,"link":"photo_3810257.html","width":130,"caption":"Norge","height":173});
															thumbnails[3810259] = clik.newPhoto({"id":3810259,"src":"norge_thumb.jpg","galleries_id":184621,"server_id":5,"link":"photo_3810259.html","width":130,"caption":"Norge II","height":98});
															thumbnails[3810260] = clik.newPhoto({"id":3810260,"src":"norge1_thumb.jpg","galleries_id":184621,"server_id":5,"link":"photo_3810260.html","width":130,"caption":"Norge III","height":98});
															thumbnails[3810266] = clik.newPhoto({"id":3810266,"src":"norge007_thumb.jpg","galleries_id":184621,"server_id":5,"link":"photo_3810266.html","width":130,"caption":"Bag fjorden","height":98});
															thumbnails[3810268] = clik.newPhoto({"id":3810268,"src":"norge3_thumb.jpg","galleries_id":184621,"server_id":5,"link":"photo_3810268.html","width":130,"caption":"Blomster II","height":173});
															thumbnails[3810274] = clik.newPhoto({"id":3810274,"src":"stole_thumb.jpg","galleries_id":184619,"server_id":5,"link":"photo_3810274.html","width":130,"caption":"Emty Chairs, akryl på lærred, 100x 100 cm","height":127});
															thumbnails[3810280] = clik.newPhoto({"id":3810280,"src":"002_thumb.jpg","galleries_id":279711,"server_id":5,"link":"photo_3810280.html","width":130,"caption":"Færøerne","height":98});
															thumbnails[3810281] = clik.newPhoto({"id":3810281,"src":"Untitled2_thumb.jpg","galleries_id":279711,"server_id":5,"link":"photo_3810281.html","width":130,"caption":"Færøerne II, 80x80 cm, 2009","height":129});
															thumbnails[3810314] = clik.newPhoto({"id":3810314,"src":"nyborg005_thumb.jpg","galleries_id":232097,"server_id":5,"link":"photo_3810314.html","width":130,"caption":"Mit intermistiske atelier med det sædvanlige rod","height":173});
															thumbnails[3810327] = clik.newPhoto({"id":3810327,"src":"SverigeNAS1_thumb.jpg","galleries_id":232097,"server_id":5,"link":"photo_3810327.html","width":130,"caption":"Mine værker","height":173});
															thumbnails[4909846] = clik.newPhoto({"id":4909846,"src":"Untitled_13_21_thumb.jpg","galleries_id":232095,"server_id":5,"link":"photo_4909846.html","width":130,"caption":"","height":131});
															thumbnails[5406517] = clik.newPhoto({"id":5406517,"src":"Christina_Kynde_14_thumb.JPG","galleries_id":184621,"server_id":5,"link":"photo_5406517.html","width":130,"caption":"Dragør ","height":95});
															thumbnails[5406532] = clik.newPhoto({"id":5406532,"src":"Untitled_1101_thumb.jpg","galleries_id":184620,"server_id":5,"link":"photo_5406532.html","width":130,"caption":"Hjemløs","height":202});
															thumbnails[5406536] = clik.newPhoto({"id":5406536,"src":"Untitled_271_thumb.jpg","galleries_id":184620,"server_id":5,"link":"photo_5406536.html","width":130,"caption":"Dinner","height":200});
															thumbnails[5406539] = clik.newPhoto({"id":5406539,"src":"Untitled_31_thumb.jpg","galleries_id":184621,"server_id":5,"link":"photo_5406539.html","width":130,"caption":"Street","height":188});
															thumbnails[5406545] = clik.newPhoto({"id":5406545,"src":"Untitled_441_thumb.jpg","galleries_id":184621,"server_id":5,"link":"photo_5406545.html","width":130,"caption":"Street II","height":191});
															thumbnails[5406546] = clik.newPhoto({"id":5406546,"src":"Untitled_521_thumb.jpg","galleries_id":232092,"server_id":5,"link":"photo_5406546.html","width":130,"caption":"Citröen","height":89});
															thumbnails[5406614] = clik.newPhoto({"id":5406614,"src":"Untitled_61_thumb.jpg","galleries_id":184621,"server_id":5,"link":"photo_5406614.html","width":130,"caption":"Bag fjorden II","height":177});
															thumbnails[5406615] = clik.newPhoto({"id":5406615,"src":"Untitled_711_thumb.jpg","galleries_id":184621,"server_id":5,"link":"photo_5406615.html","width":130,"caption":"Bag fjorden III","height":102});
															thumbnails[5408857] = clik.newPhoto({"id":5408857,"src":"ck_006_thumb.JPG","galleries_id":184621,"server_id":5,"link":"photo_5408857.html","width":130,"caption":"Landskab med kul I","height":98});
															thumbnails[5408859] = clik.newPhoto({"id":5408859,"src":"ck_007_thumb.JPG","galleries_id":184621,"server_id":5,"link":"photo_5408859.html","width":130,"caption":"Landskab med kul II","height":98});
															thumbnails[5408861] = clik.newPhoto({"id":5408861,"src":"Untitled_9_thumb.jpg","galleries_id":184621,"server_id":5,"link":"photo_5408861.html","width":130,"caption":"Landskab med kul III","height":94});
															thumbnails[5408863] = clik.newPhoto({"id":5408863,"src":"Untitled_10_thumb.jpg","galleries_id":184621,"server_id":5,"link":"photo_5408863.html","width":130,"caption":"Landskab med kul IV","height":99});
															thumbnails[5408866] = clik.newPhoto({"id":5408866,"src":"Untitled_11_thumb.jpg","galleries_id":184621,"server_id":5,"link":"photo_5408866.html","width":130,"caption":"Landskab med kul V","height":95});
															thumbnails[5408869] = clik.newPhoto({"id":5408869,"src":"Untitled_12_thumb.jpg","galleries_id":184621,"server_id":5,"link":"photo_5408869.html","width":130,"caption":"LAndskab med kul VI","height":98});
															thumbnails[5408871] = clik.newPhoto({"id":5408871,"src":"Untitled_13_thumb.jpg","galleries_id":184621,"server_id":5,"link":"photo_5408871.html","width":130,"caption":"Landskab med kul VII","height":94});
															thumbnails[5408884] = clik.newPhoto({"id":5408884,"src":"Untitled_14_thumb.jpg","galleries_id":184621,"server_id":5,"link":"photo_5408884.html","width":130,"caption":"Landskab med kul VIII","height":98});
															thumbnails[5408891] = clik.newPhoto({"id":5408891,"src":"ck_026_thumb.JPG","galleries_id":305590,"server_id":5,"link":"photo_5408891.html","width":130,"caption":"Pige med fisk","height":173});
															thumbnails[5408892] = clik.newPhoto({"id":5408892,"src":"ck_028_thumb.JPG","galleries_id":305590,"server_id":5,"link":"photo_5408892.html","width":130,"caption":"Pige med fisk II","height":98});
															thumbnails[5408895] = clik.newPhoto({"id":5408895,"src":"ck_029_thumb.JPG","galleries_id":305590,"server_id":5,"link":"photo_5408895.html","width":130,"caption":"Emty chair","height":98});
															thumbnails[5408897] = clik.newPhoto({"id":5408897,"src":"Untitled_15_thumb.jpg","galleries_id":232092,"server_id":5,"link":"photo_5408897.html","width":130,"caption":"Parafrase Venus","height":178});
															thumbnails[5408898] = clik.newPhoto({"id":5408898,"src":"Untitled_16_thumb.jpg","galleries_id":232092,"server_id":5,"link":"photo_5408898.html","width":130,"caption":"Parafrase, Velasques","height":176});
															thumbnails[4909774] = clik.newPhoto({"id":4909774,"src":"landskabNAS_thumb.jpg","galleries_id":184621,"server_id":5,"link":"photo_4909774.html","width":130,"caption":"Landskab II. akavrel 55x75 cm","height":97});
															thumbnails[4909853] = clik.newPhoto({"id":4909853,"src":"Untitled_151_thumb.jpg","galleries_id":232095,"server_id":5,"link":"photo_4909853.html","width":130,"caption":"","height":130});
															thumbnails[4909771] = clik.newPhoto({"id":4909771,"src":"Landskab2NAS_thumb.jpg","galleries_id":184621,"server_id":5,"link":"photo_4909771.html","width":130,"caption":"Landskab, akvarel 55x 75 cm","height":97});
															thumbnails[4909843] = clik.newPhoto({"id":4909843,"src":"Untitled_11_2_thumb.jpg","galleries_id":232095,"server_id":5,"link":"photo_4909843.html","width":130,"caption":"Landskab IX, 80x80 cm, 2009","height":130});
															thumbnails[4909824] = clik.newPhoto({"id":4909824,"src":"Untitled_141_thumb.jpg","galleries_id":232092,"server_id":5,"link":"photo_4909824.html","width":130,"caption":"Café, Akvarel på papir. Lisboa, Portugal, 2009.","height":82});
															thumbnails[4909858] = clik.newPhoto({"id":4909858,"src":"Untitled_9_2_thumb.jpg","galleries_id":232095,"server_id":5,"link":"photo_4909858.html","width":130,"caption":"","height":131});
															thumbnails[4909823] = clik.newPhoto({"id":4909823,"src":"Untitled_131_thumb.jpg","galleries_id":232092,"server_id":5,"link":"photo_4909823.html","width":130,"caption":"Bridges II, Lisboe, Portugal, 2009","height":86});
															thumbnails[4909838] = clik.newPhoto({"id":4909838,"src":"Untitled_10_2_thumb.jpg","galleries_id":232095,"server_id":5,"link":"photo_4909838.html","width":130,"caption":"Landskab VII, 80x80 cm, 2009","height":132});
															thumbnails[4909814] = clik.newPhoto({"id":4909814,"src":"Untitled_121_thumb.jpg","galleries_id":232092,"server_id":5,"link":"photo_4909814.html","width":130,"caption":"Bridges. Lisboa, Portugal, 2009","height":84});
															thumbnails[4909839] = clik.newPhoto({"id":4909839,"src":"Untitled_13_2_thumb.jpg","galleries_id":232095,"server_id":5,"link":"photo_4909839.html","width":130,"caption":"Landskab VIII, 60x60 cm, 2009","height":131});
															thumbnails[4909836] = clik.newPhoto({"id":4909836,"src":"Untitled_8_2_thumb.jpg","galleries_id":232095,"server_id":5,"link":"photo_4909836.html","width":130,"caption":"Landskab VI, 60x80 cm, 2009","height":173});
															thumbnails[4909813] = clik.newPhoto({"id":4909813,"src":"Untitled_111_thumb.jpg","galleries_id":232092,"server_id":5,"link":"photo_4909813.html","width":130,"caption":"Torres Vedras,","height":96});
															thumbnails[4909859] = clik.newPhoto({"id":4909859,"src":"Untitled_12_2_thumb.jpg","galleries_id":232095,"server_id":5,"link":"photo_4909859.html","width":130,"caption":"Landskab XII, 60x80 cm, 2009","height":167});
															thumbnails[4909849] = clik.newPhoto({"id":4909849,"src":"Untitled_14_2_thumb.jpg","galleries_id":232095,"server_id":5,"link":"photo_4909849.html","width":130,"caption":"Landskab X, 80x100 cm, 2009","height":103});
															thumbnails[4909807] = clik.newPhoto({"id":4909807,"src":"Untitled_91_thumb.jpg","galleries_id":232092,"server_id":5,"link":"photo_4909807.html","width":130,"caption":"Folklore Portugal, Akvarel, 2009","height":188});
															thumbnails[4909803] = clik.newPhoto({"id":4909803,"src":"Untitled_81_thumb.jpg","galleries_id":232092,"server_id":5,"link":"photo_4909803.html","width":130,"caption":"Rokokko II, Akvarel 2009","height":201});
															thumbnails[4909799] = clik.newPhoto({"id":4909799,"src":"Untitled_71_thumb.jpg","galleries_id":232092,"server_id":5,"link":"photo_4909799.html","width":130,"caption":"Rokokko, akvarel 2009","height":204});
															thumbnails[4909830] = clik.newPhoto({"id":4909830,"src":"Untitled_5_2_thumb.jpg","galleries_id":232095,"server_id":5,"link":"photo_4909830.html","width":130,"caption":"Landskab III, 100x100 cm, 2009","height":129});
															thumbnails[4909810] = clik.newPhoto({"id":4909810,"src":"Untitled_101_thumb.jpg","galleries_id":232092,"server_id":5,"link":"photo_4909810.html","width":130,"caption":"Uendeligt hav. Akvarel 2009","height":102});
															thumbnails[4909828] = clik.newPhoto({"id":4909828,"src":"Untitled_4_2_thumb.jpg","galleries_id":232095,"server_id":5,"link":"photo_4909828.html","width":130,"caption":"Landskab med gult II, Akryl på Lærred 40x40 cm, 2009.","height":132});
															thumbnails[4909795] = clik.newPhoto({"id":4909795,"src":"Untitled_6_thumb.jpg","galleries_id":232092,"server_id":5,"link":"photo_4909795.html","width":130,"caption":"Interiør V. Akvarel med Collage, 2009.","height":91});
															thumbnails[4909794] = clik.newPhoto({"id":4909794,"src":"Untitled_52_thumb.jpg","galleries_id":232092,"server_id":5,"link":"photo_4909794.html","width":130,"caption":"Interiør IV. Akvarel med Collage, 2009.","height":93});
															thumbnails[4909791] = clik.newPhoto({"id":4909791,"src":"Untitled_44_thumb.jpg","galleries_id":232092,"server_id":5,"link":"photo_4909791.html","width":130,"caption":"Interiør III. Akvarel med collage 2009.","height":177});
															thumbnails[4909777] = clik.newPhoto({"id":4909777,"src":"Untitled_1_2_thumb.jpg","galleries_id":232095,"server_id":5,"link":"photo_4909777.html","width":130,"caption":"Chairs, akryl på lærred 2009.","height":132});
															thumbnails[4909787] = clik.newPhoto({"id":4909787,"src":"Untitled_3_thumb.jpg","galleries_id":232092,"server_id":5,"link":"photo_4909787.html","width":130,"caption":"Interiør II. Akvarel med collage, 2009","height":180});
															thumbnails[4909783] = clik.newPhoto({"id":4909783,"src":"Untitled_27_thumb.jpg","galleries_id":232092,"server_id":5,"link":"photo_4909783.html","width":130,"caption":"Interiør, akvarel med collage","height":179});
															thumbnails[4909784] = clik.newPhoto({"id":4909784,"src":"Untitled_2_2_thumb.jpg","galleries_id":232095,"server_id":5,"link":"photo_4909784.html","width":130,"caption":"Chairs II. Akryl på lærred 2009","height":132});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[279711] = clik.newGallery({"parentGallery":184421,"usePopups":false,"title":"Landskaber i Akryl","link":"gallery_279711.html","maxRecords":0.0,"photoIDs":[3810280.0,3810281.0],"skipIndex":0,"section_code":"gallery","featured_images":"3810281,3810280","id":279711,"singleSection":false});				  						galleries[184420] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Akvarel","link":"gallery_184420.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"4909814,4909771,3810266,2998374,2993045","id":184420,"singleSection":false});				  						galleries[232092] = clik.newGallery({"parentGallery":184420,"usePopups":false,"title":"Nye værker i Akvarel","link":"gallery_232092.html","maxRecords":0.0,"photoIDs":[5406546.0,5408897.0,5408898.0,4909824.0,4909823.0,4909814.0,4909813.0,4909807.0,4909803.0,4909799.0,4909810.0,4909795.0,4909794.0,4909791.0,4909787.0,4909783.0],"skipIndex":0,"section_code":"gallery","featured_images":4909814.0,"id":232092,"singleSection":false});				  						galleries[184620] = clik.newGallery({"parentGallery":184420,"usePopups":false,"title":"Mennesker i akvarel","link":"gallery_184620.html","maxRecords":0.0,"photoIDs":[2996121.0,2998021.0,2998022.0,2998024.0,2998351.0,2998374.0,2998385.0,3810238.0,5406532.0,5406536.0],"skipIndex":0,"section_code":"gallery","featured_images":2998374.0,"id":184620,"singleSection":false});				  						galleries[184623] = clik.newGallery({"parentGallery":184420,"usePopups":false,"title":"Flamenco","link":"gallery_184623.html","maxRecords":0.0,"photoIDs":[2993045.0,2997703.0,2997707.0,2997710.0],"skipIndex":0,"section_code":"gallery","featured_images":2993045.0,"id":184623,"singleSection":false});				  						galleries[184621] = clik.newGallery({"parentGallery":184420,"usePopups":false,"title":"Landskaber mm.","link":"gallery_184621.html","maxRecords":0.0,"photoIDs":[2997308.0,2997310.0,2997316.0,2997318.0,2997552.0,2997554.0,2997674.0,2997680.0,2997685.0,3810254.0,3810257.0,3810259.0,3810260.0,3810266.0,3810268.0,5406517.0,5406539.0,5406545.0,5406614.0,5406615.0,5408857.0,5408859.0,5408861.0,5408863.0,5408866.0,5408869.0,5408871.0,5408884.0,4909774.0,4909771.0],"skipIndex":0,"section_code":"gallery","featured_images":"4909771,3810266","id":184621,"singleSection":false});				  						galleries[184625] = clik.newGallery({"parentGallery":184420,"usePopups":false,"title":"Drømmeverden","link":"gallery_184625.html","maxRecords":0.0,"photoIDs":[2996119.0,2998344.0,2998384.0],"skipIndex":0,"section_code":"gallery","featured_images":"2998384,2998344,2996119","id":184625,"singleSection":false});				  						galleries[184624] = clik.newGallery({"parentGallery":184420,"usePopups":false,"title":"Hunde","link":"gallery_184624.html","maxRecords":0.0,"photoIDs":[2997646.0,2997651.0,2997653.0],"skipIndex":0,"section_code":"gallery","featured_images":"2997653,2997651,2997646","id":184624,"singleSection":false});				  						galleries[184421] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Akrylmalerier","link":"gallery_184421.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":3810274.0,"id":184421,"singleSection":false});				  						galleries[232095] = clik.newGallery({"parentGallery":184421,"usePopups":false,"title":"Nye værker i Akryl","link":"gallery_232095.html","maxRecords":0.0,"photoIDs":[4909846.0,4909853.0,4909843.0,4909858.0,4909838.0,4909839.0,4909836.0,4909859.0,4909849.0,4909830.0,4909828.0,4909777.0,4909784.0],"skipIndex":0,"section_code":"gallery","featured_images":"4909859,4909858,4909853,4909849,4909846,4909843,4909839,4909838,4909836,4909830","id":232095,"singleSection":false});				  						galleries[184618] = clik.newGallery({"parentGallery":184421,"usePopups":false,"title":"Biler","link":"gallery_184618.html","maxRecords":0.0,"photoIDs":[2997732.0,2997997.0],"skipIndex":0,"section_code":"gallery","featured_images":"2997997,2997732","id":184618,"singleSection":false});				  						galleries[184619] = clik.newGallery({"parentGallery":184421,"usePopups":false,"title":"Mennesker bl.a","link":"gallery_184619.html","maxRecords":0.0,"photoIDs":[2998005.0,2998011.0,2998012.0,2998019.0,3810274.0],"skipIndex":0,"section_code":"gallery","featured_images":3810274.0,"id":184619,"singleSection":false});				  						galleries[232097] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Fotografier","link":"gallery_232097.html","maxRecords":0.0,"photoIDs":[2997399.0,3810314.0,3810327.0],"skipIndex":0,"section_code":"gallery","featured_images":3810327.0,"id":232097,"singleSection":false});				  						galleries[305590] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Grafik","link":"gallery_305590.html","maxRecords":0.0,"photoIDs":[5408891.0,5408892.0,5408895.0],"skipIndex":0,"section_code":"gallery","featured_images":"5408895,5408892,5408891","id":305590,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '2998374';
imageSets[2] = '3810327,3810274,3810266,2998374,2993045,4909771,4909814';
imageSets[3] = '4909846,3810327,3810314,3810281,3810280,3810274,3810268,3810266,3810260,3810259,2998022,4909853,4909774,4909843,4909771,4909858,4909824,4909838,4909823,4909839,4909814,4909836,4909859,4909813,4909849,4909807,4909803,4909830,4909799,4909828,4909810,4909795,4909794,4909791,4909787,4909777,4909784,4909783';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/hailey/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/hailey/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/hailey/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/hailey/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/hailey/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/hailey/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/hailey/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/hailey/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/hailey/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/hailey/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/hailey/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/hailey/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/hailey/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/hailey/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/hailey/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/hailey/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/hailey/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/hailey/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/hailey/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/hailey/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/hailey/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/hailey/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/hailey/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/hailey/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/hailey/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = backgrounds && backgrounds[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'Christina Kynde: ' + 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.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp += '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
	else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
			temp += '<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;
	}
}

			

