if (typeof intervalIDsnnGn ==="undefined") { intervalIDsnnGn = setInterval( load_informersnnGn , 300); } function load_informersnnGn() { var block = document.getElementById("MIXADV_4958"); if( block ) { ban_teaser = take_ban_teasersnnGn(); if( ban_teaser === false ) { return; } var host = window.location.hostname; block.innerHTML = "."; clearInterval(intervalIDsnnGn); var script = document.createElement("script"); script.src = "https://m.mixadvert.com/show/load/?id=4958&id_name=snnGn&teaser_name=BKymQzK&block_name=lYptDb&ban_teaser="+ban_teaser+"&r="+Math.random()+"&host="+host; block.parentNode.appendChild(script); } } function load_script_lazy() { var script = document.createElement("script"); script.innerHTML = "$('img').lazyload({skip_invisible:false})"; block.parentNode.appendChild(script); } function take_ban_teasersnnGn() { var ban_teaser=""; informer = document.getElementsByClassName("MIXADVERT_NET"); for(var i=0; i < informer.length; i++) { if( ( informer[i].id != 4958 ) && ( informer[i].innerHTML == "." ) ) { return false; } var link = informer[i].getElementsByTagName("img"); for(var j=0; j < link.length; j++) { prev_link = link[j].name; teaser = getUrlVarssnnGn(prev_link); if( teaser != "" && teaser != "." ) { if( ban_teaser =="") { ban_teaser = teaser; } else { ban_teaser = ban_teaser+","+teaser; } } } } return ban_teaser; } function getUrlVarssnnGn(link) { var hash; var hashes = link.slice(link.indexOf("?") + 1).split("&"); for(var i = 0; i < hashes.length; i++) { hash = hashes[i].split("="); if(hash[0] == "t" ) { return hash[1]; } } return ""; }