﻿(function () {
    var scripts   = document.getElementsByTagName("script");
    var script    = scripts[scripts.length - 1];
    var scriptSrc = script.src;
    var iframeSrc = scriptSrc.replace(/\/embed/i, "");
    var iframe    = document.createElement("iframe");
    iframe.setAttribute("frameborder", "0");
    iframe.setAttribute("width", "100%");
    iframe.setAttribute("height", "100%");
    iframe.setAttribute("seamless", "seamless");
    iframe.setAttribute("scrolling", "no");
    iframe.setAttribute("style", "border: none; margin: 0; padding: 0;");
    iframe.setAttribute("src", iframeSrc);
    script.parentNode.appendChild(iframe);
})();
