$(function(){for(var a=document.querySelectorAll(".youtube"),b=0;b<a.length;b++){var c="https://img.youtube.com/vi/"+a[b].dataset.embed+"/sddefault.jpg",d=new Image;d.src=c,d.addEventListener("load",function(){a[b].appendChild(d)}());}});window.show_video = function(elem){var a=document.createElement("iframe");a.setAttribute("frameborder","0"),a.setAttribute("allowfullscreen",""),a.setAttribute("src","https://www.youtube.com/embed/"+elem.dataset.embed+"?rel=0&showinfo=0&autoplay=1"),elem.innerHTML="",elem.appendChild(a)}