var checkFlashEnabled = function() { var UNDEF = "undefined"; var OBJECT = "object"; var SHOCKWAVE_FLASH = "Shockwave Flash"; var SHOCKWAVE_FLASH_AX = "ShockwaveFlash.ShockwaveFlash"; var FLASH_MIME_TYPE = "application/x-shockwave-flash"; if (typeof navigator.plugins !== UNDEF && typeof navigator.plugins[SHOCKWAVE_FLASH] === OBJECT) { if ( navigator.plugins[SHOCKWAVE_FLASH].description && (typeof navigator.mimeTypes !== UNDEF && navigator.mimeTypes[FLASH_MIME_TYPE] && navigator.mimeTypes[FLASH_MIME_TYPE].enabledPlugin) ) { return true; } } else if (typeof window.ActiveXObject !== UNDEF) { // IE try { var activeXObject = new ActiveXObject(SHOCKWAVE_FLASH_AX); if(activeXObject) { return true; } } catch(e) { return false; } } return false; }; if (!checkFlashEnabled()) { document.getElementById("top_player_fallbacks").style.display = "block"; document.getElementById("top_player").style.display = "none"; } else { /**/ if (typeof EmbedNicolive == typeof undefined) { EmbedNicolive = new Object; EmbedNicolive.Global = { generated:false, quantity:0, playerQty:0, id_base:"nicolive_external_", id:"", playerId:"" }; if (!EmbedNicolive.Global.generated) { EmbedNicolive.Global.generated = true; EmbedNicolive.Global.id = EmbedNicolive.Global.id_base + EmbedNicolive.Global.quantity; EmbedNicolive.Player = function(swf) { var checkCount = 0; do { EmbedNicolive.Global.id = EmbedNicolive.Global.id_base + EmbedNicolive.Global.quantity; EmbedNicolive.Global.quantity++; checkCount++; if (checkCount > 100) break; } while (document.getElementById(EmbedNicolive.Global.id) == typeof undefined); var flashvars = {}; var options = {}; var html = ""; var src = swf; var createFlashVars = function () { var params = ""; var count = 0; for (var key in flashvars) { if (count==0) { params = key + "=" + flashvars[key]; } params += "&" + key + "=" + flashvars[key]; count++; } return params; }; var createOptions = function(param, value) { var params = ""; var count = 0; for (var key in options) { params += ' ' +key + '="' + options[key] + '" '; } return params; }; var generateEmbed = function(){ html = ''; return html; }; var generateObjectTag = function(){ html = ''; html += ''; html += ''; html += ''; html += ''; html += ''; return html; }; var checkDomain = function(){ var b = true; try { var w = window.parent, self = window.self; while (w && w != self) { if (w.location.host != self.location.host) { b = false; break; } if (w === w.parent) break; w = w.parent; } } catch (e) { b = false; } return b; }; this.addFlashVars = function (param, value){ flashvars[param] = value; }; this.addOptions = function(param, value) { options[param] = value; }; this.create = function(id) { if (!checkDomain()) return; if (navigator.plugins && navigator.mimeTypes && navigator.mimeTypes.length) { if (id === undefined || id == "") { document.write(generateEmbed()); } else if (typeof id == "string") { var el = document.all ? document.all[id] : document.getElementById(id); if (el) el.innerHTML = generateEmbed(); } else if(id){ id.innerHTML = generateEmbed(); } } else{ if (id === undefined || id == "") { document.write(generateObjectTag()); } else if (typeof id == "string") { var el = document.all ? document.all[id] : document.getElementById(id); if (el) el.innerHTML = generateObjectTag(); } else if(id){ id.innerHTML = generateObjectTag(); } } }; }; } } /**/ do{ EmbedNicolive.Global.playerId = "player_" + EmbedNicolive.Global.playerQty; EmbedNicolive.Global.playerQty++; if (EmbedNicolive.Global.playerQty > 1000) break; }while(typeof window[EmbedNicolive.Global.playerId] != typeof undefined) window[EmbedNicolive.Global.playerId] = new EmbedNicolive.Player("http://live.nicovideo.jp/nicoliveplayer.swf?20170627"); window[EmbedNicolive.Global.playerId].addFlashVars("id", "lv312722175"); window[EmbedNicolive.Global.playerId].addFlashVars("idType", "v"); window[EmbedNicolive.Global.playerId].addFlashVars("templateType", "recommend"); window[EmbedNicolive.Global.playerId].addFlashVars("embedsite", "top"); window[EmbedNicolive.Global.playerId].addFlashVars("useComment", "1"); window[EmbedNicolive.Global.playerId].addFlashVars("autoLoad", "1"); window[EmbedNicolive.Global.playerId].addFlashVars("volume", "50"); window[EmbedNicolive.Global.playerId].addFlashVars("isMute", "1"); window[EmbedNicolive.Global.playerId].addFlashVars("autoStart", "1"); window[EmbedNicolive.Global.playerId].addFlashVars("version", "4"); window[EmbedNicolive.Global.playerId].addFlashVars("seat_id", "149316"); window[EmbedNicolive.Global.playerId].addFlashVars("token", "149316:1525041196:792b7bfa08926ed29534f3ca34857d01bdae9456"); window[EmbedNicolive.Global.playerId].addFlashVars("logicRev", "170627162457"); window[EmbedNicolive.Global.playerId].addFlashVars("playerTplRev", "170627162457"); window[EmbedNicolive.Global.playerId].addOptions("width", "286"); window[EmbedNicolive.Global.playerId].addOptions("height", "160"); window[EmbedNicolive.Global.playerId].addOptions("hspace", "0"); window[EmbedNicolive.Global.playerId].create(""); }