document.write('
'); var nk_embedcode_51_9855_element_1 = document.createElement("div"); nk_embedcode_51_9855_element_1.setAttribute("class","nk_embedcode_element"); nk_embedcode_51_9855_element_1.setAttribute("data-open","0"); nk_embedcode_51_9855_element_1.setAttribute("id","nk_embedcode_51_9855_element_1"); document.getElementById("nk_embedcode_51_wrapper").appendChild(nk_embedcode_51_9855_element_1); var nk_embedcode_51_9855_1_picturelink = document.createElement("a"); nk_embedcode_51_9855_1_picturelink.setAttribute("href","http://e-pages.dk/lokalavisennordvest/406/?date=18/10/2017"); nk_embedcode_51_9855_1_picturelink.setAttribute("target","_blank"); nk_embedcode_51_9855_1_picturelink.setAttribute("class","picturelink"); nk_embedcode_51_9855_1_picturelink.setAttribute("id","nk_embedcode_51_9855_1_picturelink"); nk_embedcode_51_9855_element_1.appendChild(nk_embedcode_51_9855_1_picturelink); var nk_embedcode_51_9855_1_picture = document.createElement("img"); nk_embedcode_51_9855_1_picture.setAttribute("src","http://www.e-pages.dk/lokalavisennordvest/406/teasers/small.jpg"); nk_embedcode_51_9855_1_picture.setAttribute("width",150); nk_embedcode_51_9855_1_picture.setAttribute("height",198); nk_embedcode_51_9855_1_picturelink.appendChild(nk_embedcode_51_9855_1_picture); var nk_embedcode_51_9855_1_namelink = document.createElement("a"); nk_embedcode_51_9855_1_namelink.setAttribute("href","http://e-pages.dk/lokalavisennordvest/406/?date=18/10/2017"); nk_embedcode_51_9855_1_namelink.setAttribute("target","_blank"); nk_embedcode_51_9855_1_namelink.setAttribute("class","namelink"); nk_embedcode_51_9855_1_namelink.setAttribute("id","nk_embedcode_51_9855_1_namelink"); nk_embedcode_51_9855_1_namelink.innerHTML = "Lokalavisen Nordvest"; nk_embedcode_51_9855_element_1.appendChild(nk_embedcode_51_9855_1_namelink); var nk_embedcode_51_9855_1_closebutton = document.createElement("div"); nk_embedcode_51_9855_1_closebutton.setAttribute("class","closebutton"); nk_embedcode_51_9855_1_closebutton.innerHTML = "Skjul"; nk_embedcode_51_9855_1_closebutton.setAttribute("id","nk_embedcode_51_9855_1_closebutton"); nk_embedcode_51_9855_1_closebutton.onclick = function() { nk_embedcode_51_close(jQuery(this).parent().attr("id")); } nk_embedcode_51_9855_element_1.appendChild(nk_embedcode_51_9855_1_closebutton); var nk_embedcode_51_9855_1_subholder = document.createElement("div"); nk_embedcode_51_9855_1_subholder.setAttribute("class","nk_embedcode_element_subholder"); nk_embedcode_51_9855_1_subholder.setAttribute("id","nk_embedcode_51_1_subholder"); nk_embedcode_51_9855_element_1.appendChild(nk_embedcode_51_9855_1_subholder); var nk_embedcode_51_6138_element_2 = document.createElement("div"); nk_embedcode_51_6138_element_2.setAttribute("class","nk_embedcode_element"); nk_embedcode_51_6138_element_2.setAttribute("data-open","0"); nk_embedcode_51_6138_element_2.setAttribute("id","nk_embedcode_51_6138_element_2"); document.getElementById("nk_embedcode_51_1_subholder").appendChild(nk_embedcode_51_6138_element_2); var nk_embedcode_51_6138_2_picturelink = document.createElement("a"); nk_embedcode_51_6138_2_picturelink.setAttribute("href","http://e-pages.dk/lokalavisennordvest/390/?date=27/06/2017"); nk_embedcode_51_6138_2_picturelink.setAttribute("target","_blank"); nk_embedcode_51_6138_2_picturelink.setAttribute("class","picturelink"); nk_embedcode_51_6138_2_picturelink.setAttribute("id","nk_embedcode_51_6138_2_picturelink"); nk_embedcode_51_6138_element_2.appendChild(nk_embedcode_51_6138_2_picturelink); var nk_embedcode_51_6138_2_picture = document.createElement("img"); nk_embedcode_51_6138_2_picture.setAttribute("src","http://www.e-pages.dk/lokalavisennordvest/390/teasers/small.jpg"); nk_embedcode_51_6138_2_picture.setAttribute("width",150); nk_embedcode_51_6138_2_picture.setAttribute("height",198); nk_embedcode_51_6138_2_picturelink.appendChild(nk_embedcode_51_6138_2_picture); var nk_embedcode_51_6138_2_namelink = document.createElement("a"); nk_embedcode_51_6138_2_namelink.setAttribute("href","http://e-pages.dk/lokalavisennordvest/390/?date=27/06/2017"); nk_embedcode_51_6138_2_namelink.setAttribute("target","_blank"); nk_embedcode_51_6138_2_namelink.setAttribute("class","namelink"); nk_embedcode_51_6138_2_namelink.setAttribute("id","nk_embedcode_51_6138_2_namelink"); nk_embedcode_51_6138_2_namelink.innerHTML = "LokalAvisen Nordvest Saerudgivelser - 27-06-2017"; nk_embedcode_51_6138_element_2.appendChild(nk_embedcode_51_6138_2_namelink); var nk_embedcode_51_6138_2_closebutton = document.createElement("div"); nk_embedcode_51_6138_2_closebutton.setAttribute("class","closebutton"); nk_embedcode_51_6138_2_closebutton.innerHTML = "Skjul"; nk_embedcode_51_6138_2_closebutton.setAttribute("id","nk_embedcode_51_6138_2_closebutton"); nk_embedcode_51_6138_2_closebutton.onclick = function() { nk_embedcode_51_close(jQuery(this).parent().attr("id")); } nk_embedcode_51_6138_element_2.appendChild(nk_embedcode_51_6138_2_closebutton); var nk_embedcode_51_styling = document.createElement("style"); nk_embedcode_51_styling.setAttribute("type","text/css"); nk_embedcode_51_styling.innerHTML = "div.nk_embedcode_wrapper > div.nk_embedcode_element {display: block; float: left; width: 150px; height: 230px; margin: 0 20px 20px 0; overflow: hidden; position: relative; } div.nk_embedcode_wrapper > div.nk_embedcode_element[data-open='1'] {width: 100%; width: calc(100% - 60px); height: auto; float: none; clear: both; padding: 20px 20px 0 20px; border-style: solid; border-color: #CCC; border-width: 1px; background-color: rgba(0,0,0,0.1); } div.nk_embedcode_wrapper > div.nk_embedcode_element > div.closebutton {display: none; } div.nk_embedcode_wrapper > div.nk_embedcode_element[data-open='1'] > div.closebutton {display: inline-block; background-color: #333; color: #FFF; font-weight: bold; padding: 5px 20px 5px 20px; position: absolute; left: 190px; top: 195px; cursor: pointer; } div.nk_embedcode_wrapper > div.nk_embedcode_element > a.picturelink {display: block; width: 150px; height: 198px; margin: 0 0 2px 0; overflow: hidden; } div.nk_embedcode_wrapper > div.nk_embedcode_element > a.picturelink > img {display: block; width: 150px; height: 198px; border: 0; } div.nk_embedcode_wrapper > div.nk_embedcode_element > a.namelink {display: block; width: 150px; height: 30px; overflow: hidden; text-align: center; color: #000; font-weight: bold; font-size: 12px; line-height: 15px; text-decoration: none; } div.nk_embedcode_wrapper > div.nk_embedcode_element[data-open='1'] > div.nk_embedcode_element_subholder {display: block; width: 100%; height: auto; clear: both; float: none; } div.nk_embedcode_wrapper > div.nk_embedcode_element[data-open='1'] > div.nk_embedcode_element_subholder {overflow: hidden; } div.nk_embedcode_wrapper > div.nk_embedcode_element[data-open='1'] > div.nk_embedcode_element_subholder:empty {display: none; } div.nk_embedcode_wrapper > div.nk_embedcode_element[data-open='1'] > div.nk_embedcode_element_subholder > div.nk_embedcode_element {display: block; width: 80px; height: 138px; overflow: hidden; float: left; margin: 0 20px 20px 0; } div.nk_embedcode_wrapper > div.nk_embedcode_element[data-open='1'] > div.nk_embedcode_element_subholder > div.nk_embedcode_element > a.picturelink {display: block; width: 80px; height: 106px; overflow: hidden; } div.nk_embedcode_wrapper > div.nk_embedcode_element[data-open='1'] > div.nk_embedcode_element_subholder > div.nk_embedcode_element > a.picturelink > img {width: 80px; height: 106px; } div.nk_embedcode_wrapper > div.nk_embedcode_element[data-open='1'] > div.nk_embedcode_element_subholder > div.nk_embedcode_element > a.namelink {display: block; width: 80px; height: 30px; overflow: hidden; text-align: center; color: #000; font-weight: bold; font-size: 10px; line-height: 13px; text-decoration: none; } "; document.body.appendChild(nk_embedcode_51_styling); if(jQuery("#nk_embedcode_51_9855_element_1 div.nk_embedcode_element_subholder div").length == 0) { jQuery("#nk_embedcode_51_9855_element_1").attr("data-open","0"); jQuery("#nk_embedcode_51_9855_element_1").attr("data-subs","0"); } else { jQuery("#nk_embedcode_51_9855_element_1").attr("data-subs",jQuery("#nk_embedcode_51_9855_element_1 div.nk_embedcode_element_subholder div").length); } if(jQuery("#nk_embedcode_51_9855_element_1").attr("data-subs") > 0 && jQuery("#nk_embedcode_51_9855_element_1").attr("data-open") == "0") { var cur_pic_id = jQuery("#nk_embedcode_51_9855_element_1 > a.picturelink").attr("id"); var cur_nam_id = jQuery("#nk_embedcode_51_9855_element_1 > a.namelink").attr("id"); document.getElementById(cur_pic_id).setAttribute("data-cur-id",cur_pic_id); document.getElementById(cur_nam_id).setAttribute("data-cur-id",cur_nam_id); document.getElementById(cur_pic_id).onclick = function() { return nk_embedcode_51_toggle_open(this.getAttribute("data-cur-id")); } document.getElementById(cur_nam_id).onclick = function() { return nk_embedcode_51_toggle_open(this.getAttribute("data-cur-id")); } } else { } function nk_embedcode_51_toggle_open(id) { var curobjid = jQuery("#"+id).parent().attr("id"); if(document.getElementById(curobjid).getAttribute("data-open") == "1") { return true; } else { document.getElementById(curobjid).setAttribute("data-open","1"); return false; } } function nk_embedcode_51_close(id) { document.getElementById(id).setAttribute("data-open","0"); }