(function () {
    var plugins = {
            pluginAudio: 'SAMSUNG-INFOLINK-AUDIO',
            pluginObjectTVMW: 'SAMSUNG-INFOLINK-TVMW',
            pluginNetwork: 'SAMSUNG-INFOLINK-NETWORK',
            pluginObjectNNavi: 'SAMSUNG-INFOLINK-NNAVI',
            pluginPlayer: 'SAMSUNG-INFOLINK-PLAYER',
            pluginExternal: 'SAMSUNG-INFOLINK-EXTERNALWIDGETINTERFACE'
        },
        libs = [
            '$MANAGER_WIDGET/Common/API/TVKeyValue.js',
            '$MANAGER_WIDGET/Common/API/Plugin.js',
            '$MANAGER_WIDGET/Common/API/Widget.js',
            '$MANAGER_WIDGET/Common/webapi/1.0/webapis.js'
        ],
        html = '';

    for (var i = 0; i < libs.length; i++) {
        html += '<script type="text/javascript" src="' + libs[i] + '"></script>';
    }
    for (var id in plugins) {
        html += '<object id=' + id + ' border=0 classid="clsid:' + plugins[id] + '" class="plugin"></object>';
    }

    document.write(html);
    window.platform = {name: 'samsung'};
})();