function initLoad() {
    var scriptTag = document.createElement("script");
    scriptTag.src = "/wwidgets/wlibs.js?v=690";
    document.head.appendChild(scriptTag);
    scriptTag.onload = loadWidgetsLib;
}




function loadWidgetsLib() {
    var scriptTag = document.createElement("script");
    scriptTag.src = "/wwidgets/wwidgets.js?v=690";
    document.head.appendChild(scriptTag);
    scriptTag.onload = startWidgets;
}

function startWidgets() {
    var App = require('widgets').App;
    var app = new App(".wwidget", siteLang);
    app.display();
}

function loadCss() {
    var cssTag = document.createElement("link");
    cssTag.rel = 'stylesheet';
    cssTag.type = 'text/css';
    cssTag.href = '/wwidgets/wwidgets.css?v=690';
    document.head.appendChild(cssTag);
}

loadCss();
document.onreadystatechange = function() {
    if (document.readyState == "interactive") {
        initLoad();
    }
}