/**/
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 = '';
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://ext.live.nicovideo.jp/nicoliveplayer.swf?20170627");
window[EmbedNicolive.Global.playerId].addFlashVars("id", "lv120424296");
window[EmbedNicolive.Global.playerId].addFlashVars("idType", "v");
window[EmbedNicolive.Global.playerId].addFlashVars("seat_id", "");
window[EmbedNicolive.Global.playerId].addFlashVars("templateType", "large");
window[EmbedNicolive.Global.playerId].addFlashVars("version", "4");
window[EmbedNicolive.Global.playerId].addFlashVars("autoLoad", "0");
window[EmbedNicolive.Global.playerId].addFlashVars("token", "0:1504053127:c77b37a5ca94409d12056169b5146d1dc5c9afe6");
window[EmbedNicolive.Global.playerId].addFlashVars("logicRev", "170627162457");
window[EmbedNicolive.Global.playerId].addFlashVars("playerTplRev", "170627162457");
window[EmbedNicolive.Global.playerId].addOptions("width", "800");
window[EmbedNicolive.Global.playerId].addOptions("height", "600");
window[EmbedNicolive.Global.playerId].addOptions("hspace", "0");
window[EmbedNicolive.Global.playerId].create("");