function lsHdClose(){setCookie("hd","1","1");$('livestream').set('html','');$('MMdualleftHD').setStyle('display','none');liveDockBox.$('hdStat').set('html', '<div class="chnlUnSelected"></div>');parent.$('tileBtn').setStyle('background', 'url(/m3/images/viewBtnTileOff.gif) no-repeat');liveDockBox.defHeight =liveDockBox.defHeight - 450var defHeight = liveDockBox.defHeight;//alert(defHeight)sSHeightCtrl(defHeight);}function lsSdClose(){setCookie("sd","1","1");$('justin').set('html','');$('MMdualleftSD').setStyle('display','none');liveDockBox.$('sdStat').set('html', '<div class="chnlUnSelected"></div>');$('dockBtn').setStyle('background', 'url(/m3/images/viewBtnTileOff.gif) no-repeat');liveDockBox.defHeight =liveDockBox.defHeight - 450var defHeight = liveDockBox.defHeight;//alert(defHeight)sSHeightCtrl(defHeight);}function singleDisplayMM(json){var ust_embedTag=json;outputDualhtml += '<div class="chnlNameSect2">'+leftLive+'</div><div class="fixed"></div><div class="MMsingleleft">';outputDualhtml += ust_embedTag;outputDualhtml += '</div>';cndual=document.getElementById("leftCol");cndual.innerHTML = '<div id="MMdualleftHD" style="display:none;"><div id="hdHeadWrap"><div id="chnlNameSectHD">Main Livestream HD</div><div id="dualCloseHD"><a href="javascript:lsHdClose();">close</a></div></div><div  id="livestream"></div></div>';cndual.innerHTML += '<div id="MMdualleftSD" style="display:none;"><div id="sdHeadWrap"><div id="chnlNameSectSD">Main Justin HD</div><div id="dualCloseSD"><a href="javascript:lsSdClose();">close</a></div></div><div  id="justin"></div></div>';cndual.innerHTML += outputDualhtml;outputDualhtml ="";$('mainDispMsg').set('html', '向谷倶楽部');}function dualDisplayMM(json){if(layout == "t"){var iframe1 = document.createElement("iframe");iframe1.width = '100%';iframe1.height = '170';iframe1.scrolling = 'no';iframe1.name = 'liveDockBox';iframe1.style.border = '0px none transparent';iframe1.src = "/sp/m3/liveTileM3/";document.getElementById("livedock").appendChild(iframe1);var defHeight=0;}var ust_embedTag=json;outputDualhtml += '<div class="'+wrapcls+'"><div class="chnlNameSect2" id="channelName0">'+leftLive+'</div><div id="dualCloseOne"></div>';outputDualhtml += ust_embedTag[0].result;outputDualhtml += '</div><div class="'+wrapcls+'"><div class="chnlNameSect2" id="channelName1">'+rightLive+'</div><div id="dualCloseTwo"></div>';outputDualhtml += ust_embedTag[1].result;outputDualhtml+='</div>';cndual=document.getElementById("leftCol");if((layout != "h") && (layout != "t")){cndual.innerHTML = '<div id="MMdualleftHD" style="display:none;"><div id="hdHeadWrap"><div id="chnlNameSectHD">Main Livestream HD</div><div id="dualCloseHD"><a href="javascript:lsHdClose();">close</a></div></div><div  id="livestream"></div></div>';cndual.innerHTML += '<div id="MMdualleftSD" style="display:none;"><div id="sdHeadWrap"><div id="chnlNameSectSD">Main Justin HD</div><div id="dualCloseSD"><a href="javascript:lsSdClose();">close</a></div></div><div  id="justin"></div></div>';cndual.innerHTML += outputDualhtml;}else{cndual.innerHTML = outputDualhtml;}outputDualhtml ="";	 if(layout == "t"){	cndual=document.getElementById("dualCloseOne");	cndual.innerHTML = '<a href="/sp/m3/'+closedualtwo+'">クローズ</a>';	cndual=document.getElementById("dualCloseTwo");	cndual.innerHTML = '<a href="/sp/m3/'+closedualone+'">クローズ</a>';	sSHeightCtrl(defHeight);	}}function multiDisplay(json){var ust_embedTag=json;var embedLen = ust_embedTag.length;if(4 < embedLen){	for(i="0";i<embedLen;i++){		if(i < 4){		outputDualhtml += '<div class="'+wrapcls+'"><div class="chnlNameSect4"  id="channelName'+i+'"></div><div class="dualCloseMulti" id="dualClose'+i+'"></div>';		outputDualhtml += ust_embedTag[i].result;		outputDualhtml += '</div>';		}else{		outputSecLinehtml += '<div class="'+wrapcls+'"><div class="chnlNameSect4"  id="channelName'+i+'"></div><div class="dualCloseMulti" id="dualClose'+i+'"></div>';		outputSecLinehtml += ust_embedTag[i].result;		outputSecLinehtml += '</div>';		}	}}else if(4 == embedLen){outputDualhtml += '<div class="'+wrapcls+'"><div class="chnlNameSect4" id="channelName0"></div><div id="dualCloseOne"></div>';outputDualhtml += ust_embedTag[0].result;outputDualhtml += '</div><div class="'+wrapcls+'"><div class="chnlNameSect4" id="channelName1"></div><div id="dualCloseTwo"></div>';outputDualhtml += ust_embedTag[1].result;outputDualhtml += '</div><div class="'+wrapcls+'"><div class="chnlNameSect4" id="channelName2"></div><div id="dualCloseThree"></div>';outputDualhtml += ust_embedTag[2].result;outputDualhtml += '</div><div class="'+wrapcls+'"><div class="chnlNameSect4"  id="channelName3"></div><div id="dualCloseFour"></div>';outputDualhtml += ust_embedTag[3].result;outputDualhtml += '</div>';}else{outputDualhtml += '<div class="'+wrapcls+'"><div class="chnlNameSect3" id="channelName0"></div><div id="dualCloseOne"></div>';outputDualhtml += ust_embedTag[0].result;outputDualhtml += '</div><div class="'+wrapcls+'"><div class="chnlNameSect3" id="channelName1"></div><div id="dualCloseTwo"></div>';outputDualhtml += ust_embedTag[1].result;outputDualhtml += '</div><div class="'+wrapcls+'"><div class="chnlNameSect3"  id="channelName2"></div><div id="dualCloseThree"></div>';outputDualhtml += ust_embedTag[2].result;outputDualhtml += '</div>';}cndual=document.getElementById("leftCol");cndual.innerHTML = '<div id="MMdualleftHD" style="display:none;"><div id="hdHeadWrap"><div id="chnlNameSectHD">Main Livestream HD</div><div id="dualCloseHD"><a href="javascript:lsHdClose();">close</a></div></div><div  id="livestream"></div></div>';cndual.innerHTML += '<div id="MMdualleftSD" style="display:none;"><div id="sdHeadWrap"><div id="chnlNameSectSD">Main Justin HD</div><div id="dualCloseSD"><a href="javascript:lsSdClose();">close</a></div></div><div  id="justin"></div></div>';cndual.innerHTML += outputDualhtml;outputDualhtml ="";}function dualDisplayMM2(json){var ustinfo=json;var sswidth ="470"var di=0;var ust_fixtitle='';if((cmnd=='sp')&&(thirdLive=='')){var titleOutLen="30";var descOutLen="60";var desc_cls='MMdual_desc';var title_cls='MMdual_desc_title';}else if(fourthLive==''){var titleOutLen="15";var descOutLen="50";var desc_cls='MMmulti_desc';var title_cls='MMmulti_desc_title';}else{var titleOutLen="15";var descOutLen="50";var desc_cls='MMquad_desc';var title_cls='MMquad_desc_title';}var iframe1 = document.createElement("iframe");iframe1.width = '100%';iframe1.height = '170';iframe1.scrolling = 'no';iframe1.name = 'liveDockBox';iframe1.style.border = '0px none transparent';iframe1.src = "/sp/m3/liveTileM3/";document.getElementById("livedock").appendChild(iframe1);var defHeight=0;var duallen=ustinfo.length;if(!duallen){//Single View	if(layout == 'h'){	outputDualTwohtml += '<iframe width="'+width+'" scrolling="no" id="ssbox' +di+ '" height="200" frameborder="0" style="border: 0px none transparent;" src="http://www.ustream.tv/socialstream/'+ustinfo.id+'"></iframe><div class="fixed"></div></div>';	}else{	if(layout != "t"){		if(di == 0){		outputStream += '<div id="ssdispRightWrap"><div id="ssdispRight">'+ustinfo.title+'</div></div>';			if(ssselnum == undefined){			outputStream += '<div id="rightColSS"><iframe width="'+sswidth+'" scrolling="no" id="ssbox' +di+ '" height="200" frameborder="0" style="border: 0px none transparent;" src="http://www.ustream.tv/socialstream/'+ustinfo.id+'"></iframe></div>';			}else{			outputStream += '<div id="loadingSS"><div class="loadingSS"><img src="/images/loading.gif" border="0" alt="ロード中"/><br />ソーシャルストリームを選択中</div></div>';			outputStream += '<div id="rightColSS" style="display:none;><iframe width="'+sswidth+'" scrolling="no" id="ssbox' +di+ '" height="200" frameborder="0" style="border: 0px none transparent;" src="http://www.ustream.tv/socialstream/'+ustinfo.id+'"></iframe></div>';			}		}	}	}}else{while(di<duallen){if(cmnd=='sp'){outputDualTwohtml += '<div class="'+wrapcls+'">';}else if(thirdLive==''){outputDualTwohtml += '<div class="'+wrapcls+'">';}else if(fourthLive == ''){outputDualTwohtml += '<div class="'+wrapcls+'">';}else{outputDualTwohtml += '<div class="'+wrapcls+'">';}if(ustinfo[di].result.title){var ust_title=ustinfo[di].result.title;//$('mainDispMsg').set('html', ust_title+'　読み込み中');}else{var ust_title=ustinfo[di].result.id;}if(di==0){ust_fixtitle=ust_fixtitle+'"'+ust_title+'"';}else{ust_fixtitle=ust_fixtitle+' and '+'"'+ust_title+'"';}unobj=document.getElementById("ust_fixtitle");unobj.innerHTML=ust_fixtitle;if(ustinfo[di].result.description){var desc = ustinfo[di].result.description;desc = desc.replace(/<\!.*\">|<html>|<body>|<p>|<\/html>|<\/body>|<\/p>/g,"");var ust_Leftdescription=desc;ust_Leftdescription=ust_Leftdescription.substr(0,descOutLen);if(ust_Leftdescription.length>--descOutLen){ust_Leftdescription+='...';}}else{ust_Leftdescription="";}if(ustinfo[di].result.user.userName){var ust_userLeftName=ustinfo[di].result.user.userName;}if(ustinfo[di].result.imageUrl){var ust_Leftimage=ustinfo[di].result.imageUrl.small;}else{var ust_Leftimage='/images/noimage.gif';}var ust_id=ustinfo[di].result.id;	if(layout == 'h'){		if(di < 4){			outputDualTwohtml += '<iframe width="'+width+'" scrolling="no" id="ssbox' +di+ '" height="200" frameborder="0" style="border: 0px none transparent;" src="http://www.ustream.tv/socialstream/'+ust_id+'"></iframe><div class="fixed"></div></div>';		}else{		outputSSSecLinehtml += '<div class="'+wrapcls+'"><iframe width="'+width+'" scrolling="no" id="ssbox' +di+ '" height="200" frameborder="0" style="border: 0px none transparent;" src="http://www.ustream.tv/socialstream/'+ust_id+'"></iframe><div class="fixed"></div></div>';			}	}else{		 if(layout != "t"){			if(di == 0){			outputStream += '<div id="ssdispRightWrap"><div id="ssdispRight">'+ustinfo[0].result.title+'のソーシャルストリーム</div></div>';				if(ssselnum == undefined){				outputStream += '<div id="rightColSS"><iframe width="'+sswidth+'" scrolling="no" id="ssbox' +di+ '" height="200" frameborder="0" style="border: 0px none transparent;" src="http://www.ustream.tv/socialstream/'+ust_id+'"></iframe></div>';				}else{				outputStream += '<div id="loadingSS"><div class="loadingSS"><img src="/images/loading.gif" border="0" alt="ロード中"/><br />ソーシャルストリームを選択中</div></div>';				outputStream += '<div id="rightColSS" style="display:none;"><iframe width="'+sswidth+'" scrolling="no" id="ssbox' +di+ '" height="200" frameborder="0" style="border: 0px none transparent;" src="http://www.ustream.tv/socialstream/'+ust_id+'"></iframe></div>';				}			}		}	}if(di == "0"){closedualone =leftLive;}else if(di == "1"){closedualtwo =rightLive;}else if(di == "2"){closemulti =thirdLive;}else if(di == "3"){closefour =fourthLive;}else if(di == "4"){closefive =f5Live;}else if(di == "5"){closesix =f6Live;}else if(di == "6"){closeseven =f7Live;}else if(di == "7"){closeeight =f8Live;}else if(di == "8"){closenine =f9Live;}else if(di == "9"){closeten =f10Live;}di++;}}if(layout=='h' || layout=='t'){outputDualTwohtml += '<div class="fixed"></div>';cndual=document.getElementById("leftCol");cndual.innerHTML += outputDualTwohtml;outputDualTwohtml ="";}if(outputSecLinehtml){if(layout=='h'){outputSecLinehtml += '<div class="fixed"></div>';}cndual=document.getElementById("leftCol");cndual.innerHTML += outputSecLinehtml;}if(outputSSSecLinehtml){outputSSSecLinehtml += '<div class="fixed"></div>';cndual=document.getElementById("leftCol");cndual.innerHTML += outputSSSecLinehtml;}cndual=document.getElementById("rightCol");cndual.innerHTML = outputStream;outputStream="";if(!closedualtwo){//無し}else if(!closemulti){cndual=document.getElementById("dualCloseOne");cndual.innerHTML = '<a href="/sp/m3/'+closedualtwo+'">クローズ</a>';cndual=document.getElementById("dualCloseTwo");cndual.innerHTML = '<a href="/sp/m3/'+closedualone+'">クローズ</a>';cndual=document.getElementById("channelName0");cndual.innerHTML = closedualone;cndual=document.getElementById("channelName1");cndual.innerHTML = closedualtwo;}else if(!closefour){cndual=document.getElementById("dualCloseOne");cndual.innerHTML = '<a href="/sp/m3/'+closedualtwo+'::'+closemulti+'/'+layout+'">クローズ</a>';cndual=document.getElementById("dualCloseTwo");cndual.innerHTML = '<a href="/sp/m3/'+closedualone+'::'+closemulti+'/'+layout+'">クローズ</a>';cndual=document.getElementById("dualCloseThree");cndual.innerHTML = '<a href="/sp/m3/'+closedualone+'::'+closedualtwo+'/'+layout+'">クローズ</a>';cndual=document.getElementById("channelName0");cndual.innerHTML = closedualone;cndual=document.getElementById("channelName1");cndual.innerHTML = closedualtwo;cndual=document.getElementById("channelName2");cndual.innerHTML = closemulti;}else if(!closefive){cndual=document.getElementById("dualCloseOne");cndual.innerHTML = '<a href="/sp/m3/'+closedualtwo+'::'+closemulti+'::'+closefour+'/'+layout+'">クローズ</a>';cndual=document.getElementById("dualCloseTwo");cndual.innerHTML = '<a href="/sp/m3/'+closedualone+'::'+closemulti+'::'+closefour+'/'+layout+'">クローズ</a>';cndual=document.getElementById("dualCloseThree");cndual.innerHTML = '<a href="/sp/m3/'+closedualone+'::'+closemulti+'::'+closefour+'/'+layout+'">クローズ</a>';cndual=document.getElementById("dualCloseFour");cndual.innerHTML = '<a href="/sp/m3/'+closedualone+'::'+closedualtwo+'::'+closemulti+'/'+layout+'">クローズ</a>';cndual=document.getElementById("channelName0");cndual.innerHTML = closedualone;cndual=document.getElementById("channelName1");cndual.innerHTML = closedualtwo;cndual=document.getElementById("channelName2");cndual.innerHTML = closemulti;cndual=document.getElementById("channelName3");cndual.innerHTML = closefour;}else if(!closesix){cndual=document.getElementById("dualClose0");cndual.innerHTML = '<a href="/sp/m3/'+closedualtwo+'::'+closemulti+'::'+closefour+'::'+closefive+'/'+layout+'">クローズ</a>';cndual=document.getElementById("dualClose1");cndual.innerHTML = '<a href="/sp/m3/'+closedualone+'::'+closemulti+'::'+closefour+'::'+closefive+'/'+layout+'">クローズ</a>';cndual=document.getElementById("dualClose2");cndual.innerHTML = '<a href="/sp/m3/'+closedualone+'::'+closedualtwo+'::'+closefour+'::'+closefive+'/'+layout+'">クローズ</a>';cndual=document.getElementById("dualClose3");cndual.innerHTML = '<a href="/sp/m3/'+closedualone+'::'+closedualtwo+'::'+closemulti+'::'+closefive+'/'+layout+'">クローズ</a>';cndual=document.getElementById("dualClose4");cndual.innerHTML = '<a href="/sp/m3/'+closedualone+'::'+closedualtwo+'::'+closemulti+'::'+closefour+'/'+layout+'">クローズ</a>';cndual=document.getElementById("channelName0");cndual.innerHTML = closedualone;cndual=document.getElementById("channelName1");cndual.innerHTML = closedualtwo;cndual=document.getElementById("channelName2");cndual.innerHTML = closemulti;cndual=document.getElementById("channelName3");cndual.innerHTML = closefour;cndual=document.getElementById("channelName4");cndual.innerHTML = closefive;}else if(!closeseven){cndual=document.getElementById("dualClose0");cndual.innerHTML = '<a href="/sp/m3/'+closedualtwo+'::'+closemulti+'::'+closefour+'::'+closefive+'::'+closesix+'/'+layout+'">クローズ</a>';cndual=document.getElementById("dualClose1");cndual.innerHTML = '<a href="/sp/m3/'+closedualone+'::'+closemulti+'::'+closefour+'::'+closefive+'::'+closesix+'/'+layout+'">クローズ</a>';cndual=document.getElementById("dualClose2");cndual.innerHTML = '<a href="/sp/m3/'+closedualone+'::'+closedualtwo+'::'+closefour+'::'+closefive+'::'+closesix+'/'+layout+'">クローズ</a>';cndual=document.getElementById("dualClose3");cndual.innerHTML = '<a href="/sp/m3/'+closedualone+'::'+closedualtwo+'::'+closemulti+'::'+closefive+'::'+closesix+'/'+layout+'">クローズ</a>';cndual=document.getElementById("dualClose4");cndual.innerHTML = '<a href="/sp/m3/'+closedualone+'::'+closedualtwo+'::'+closemulti+'::'+closefour+'::'+closesix+'/'+layout+'">クローズ</a>';cndual=document.getElementById("dualClose5");cndual.innerHTML = '<a href="/sp/m3/'+closedualone+'::'+closedualtwo+'::'+closemulti+'::'+closefour+'::'+closefive+'/'+layout+'">クローズ</a>';cndual=document.getElementById("channelName0");cndual.innerHTML = closedualone;cndual=document.getElementById("channelName1");cndual.innerHTML = closedualtwo;cndual=document.getElementById("channelName2");cndual.innerHTML = closemulti;cndual=document.getElementById("channelName3");cndual.innerHTML = closefour;cndual=document.getElementById("channelName4");cndual.innerHTML = closefive;cndual=document.getElementById("channelName5");cndual.innerHTML = closesix;}else if(!closeeight){cndual=document.getElementById("dualClose0");cndual.innerHTML = '<a href="/sp/m3/'+closedualtwo+'::'+closemulti+'::'+closefour+'::'+closefive+'::'+closesix+'::'+closeseven+'/'+layout+'">クローズ</a>';cndual=document.getElementById("dualClose1");cndual.innerHTML = '<a href="/sp/m3/'+closedualone+'::'+closemulti+'::'+closefour+'::'+closefive+'::'+closesix+'::'+closeseven+'/'+layout+'">クローズ</a>';cndual=document.getElementById("dualClose2");cndual.innerHTML = '<a href="/sp/m3/'+closedualone+'::'+closedualtwo+'::'+closefour+'::'+closefive+'::'+closesix+'::'+closeseven+'/'+layout+'">クローズ</a>';cndual=document.getElementById("dualClose3");cndual.innerHTML = '<a href="/sp/m3/'+closedualone+'::'+closedualtwo+'::'+closemulti+'::'+closefive+'::'+closesix+'::'+closeseven+'/'+layout+'">クローズ</a>';cndual=document.getElementById("dualClose4");cndual.innerHTML = '<a href="/sp/m3/'+closedualone+'::'+closedualtwo+'::'+closemulti+'::'+closefour+'::'+closesix+'::'+closeseven+'/'+layout+'">クローズ</a>';cndual=document.getElementById("dualClose5");cndual.innerHTML = '<a href="/sp/m3/'+closedualone+'::'+closedualtwo+'::'+closemulti+'::'+closefour+'::'+closefive+'::'+closeseven+'/'+layout+'">クローズ</a>';cndual=document.getElementById("dualClose6");cndual.innerHTML = '<a href="/sp/m3/'+closedualone+'::'+closedualtwo+'::'+closemulti+'::'+closefour+'::'+closefive+'::'+closesix+'/'+layout+'">クローズ</a>';cndual=document.getElementById("channelName0");cndual.innerHTML = closedualone;cndual=document.getElementById("channelName1");cndual.innerHTML = closedualtwo;cndual=document.getElementById("channelName2");cndual.innerHTML = closemulti;cndual=document.getElementById("channelName3");cndual.innerHTML = closefour;cndual=document.getElementById("channelName4");cndual.innerHTML = closefive;cndual=document.getElementById("channelName5");cndual.innerHTML = closesix;cndual=document.getElementById("channelName6");cndual.innerHTML = closeseven;}else if(!closenine){cndual=document.getElementById("dualClose0");cndual.innerHTML = '<a href="/sp/m3/'+closedualtwo+'::'+closemulti+'::'+closefour+'::'+closefive+'::'+closesix+'::'+closeseven+'::'+closeeight+'/'+layout+'">クローズ</a>';cndual=document.getElementById("dualClose1");cndual.innerHTML = '<a href="/sp/m3/'+closedualone+'::'+closemulti+'::'+closefour+'::'+closefive+'::'+closesix+'::'+closeseven+'::'+closeeight+'/'+layout+'">クローズ</a>';cndual=document.getElementById("dualClose2");cndual.innerHTML = '<a href="/sp/m3/'+closedualone+'::'+closedualtwo+'::'+closefour+'::'+closefive+'::'+closesix+'::'+closeseven+'::'+closeeight+'/'+layout+'">クローズ</a>';cndual=document.getElementById("dualClose3");cndual.innerHTML = '<a href="/sp/m3/'+closedualone+'::'+closedualtwo+'::'+closemulti+'::'+closefive+'::'+closesix+'::'+closeseven+'::'+closeeight+'/'+layout+'">クローズ</a>';cndual=document.getElementById("dualClose4");cndual.innerHTML = '<a href="/sp/m3/'+closedualone+'::'+closedualtwo+'::'+closemulti+'::'+closefour+'::'+closesix+'::'+closeseven+'::'+closeeight+'/'+layout+'">クローズ</a>';cndual=document.getElementById("dualClose5");cndual.innerHTML = '<a href="/sp/m3/'+closedualone+'::'+closedualtwo+'::'+closemulti+'::'+closefour+'::'+closefive+'::'+closeseven+'::'+closeeight+'/'+layout+'">クローズ</a>';cndual=document.getElementById("dualClose6");cndual.innerHTML = '<a href="/sp/m3/'+closedualone+'::'+closedualtwo+'::'+closemulti+'::'+closefour+'::'+closefive+'::'+closesix+'::'+closeeight+'/'+layout+'">クローズ</a>';cndual=document.getElementById("dualClose7");cndual.innerHTML = '<a href="/sp/m3/'+closedualone+'::'+closedualtwo+'::'+closemulti+'::'+closefour+'::'+closefive+'::'+closesix+'::'+closeseven+'/'+layout+'">クローズ</a>';cndual=document.getElementById("channelName0");cndual.innerHTML = closedualone;cndual=document.getElementById("channelName1");cndual.innerHTML = closedualtwo;cndual=document.getElementById("channelName2");cndual.innerHTML = closemulti;cndual=document.getElementById("channelName3");cndual.innerHTML = closefour;cndual=document.getElementById("channelName4");cndual.innerHTML = closefive;cndual=document.getElementById("channelName5");cndual.innerHTML = closesix;cndual=document.getElementById("channelName6");cndual.innerHTML = closeseven;cndual=document.getElementById("channelName7");cndual.innerHTML = closeeight;}document.title='向谷倶楽部 | '+ust_fixtitle;	if(tcolor != undefined){	tcolors=new Array();	tcolors=tcolor.split(":");	var mmBgClr=tcolors[0];	var mmDispClr=tcolors[1];	var mmTexClr=tcolors[2];	cngTheme(mmBgClr,mmDispClr,mmTexClr);	}	cndual=document.getElementById("retweet");cndual.innerHTML = '<div class="retweetMulti"><a href="javascript:retweetMM();">Twitter</a></div>';sSHeightCtrl(defHeight);}liveid=new Array();dualliveid=new Array();var liveid="";var dualliveid="";var thirdLive="";var fourthLive="";var otherLive="";var outputDualhtml="";var outputSecLinehtml="";var outputSSSecLinehtml ="";var outputStream="";var outputDualTwohtml="";var closedualone ="";var closedualtwo ="";var closemulti ="";var closefour ="";var closefive ="";var closesix ="";var closeseven ="";var closeeight ="";var closenine ="";var closeten ="";var layout = "";var wrapcls = "";var height="288px";var width="352px";var f5Live;var f6Live;var f7Live;var f8Live;var f9Live;var f10Live;var ssselnum;var livestreamUrl;var justinUrl;var str=location.pathname;var liveid=str.split("/");var cmnd=liveid[1];if(liveid[2]){var appname=liveid[2];}if(liveid[3]){var channels=liveid[3];}if(liveid[4]){var opt=liveid[4];}function viewLive(){if(opt){layout=opt;	if(layout == "v3"){	height="188px";width="232px";	wrapcls = "MMdualleftv3";	}else{	rightCol = $('rightCol');	rightCol.setStyle('width', '0px');	leftWrap = $('leftWrap');	leftWrap.setStyle('width', '100%');	}}else{wrapcls = "MMdualleft";}if(channels){liveid=channels;	if(liveid.match("::")){	dualliveid=liveid.split("::");	leftLive=dualliveid[0];	rightLive=dualliveid[1];	}else{	leftLive = liveid;	rightLive="";	}}else{leftLive ='minorumukaiya';rightLive = 'junstv';}if(dualliveid[2]){thirdLive=dualliveid[2];	if(dualliveid[3]){	fourthLive=dualliveid[3];			if(layout == 'h' || layout == 't'){			height="258px";width="290px";			wrapcls = "MMquadleft";			}	}else{	fourthLive='';			if(layout == 'h' || layout == 't'){			height="258px";width="389px";			wrapcls = "MMtripleleft";			}	}}else{thirdLive='';			if(layout == 'h' || layout == 't'){			height="405px";width="588px";			wrapcls = "MMdualleftH";			}}if(leftLive!=""&&rightLive!=""){if((cmnd=='sp')&&(thirdLive=='')){var getDualChannelurl='http://api.ustream.tv/json/channel/'+leftLive+';'+rightLive+'/get'+'Custom'+'EmbedTag?key='+ustapikey+'&params=autoplay:true;mute:true;height:'+height+';width:'+width+'&callback=dualDisplayMM';var script=document.createElement('script');script.type='text/javascript';script.src=getDualChannelurl;document.body.appendChild(script);if(layout != "t"){var getDualStreamUrl='http://api.ustream.tv/json/channel/'+leftLive+';'+rightLive+'/getInfo?key='+ustapikey+'&callback=dualDisplayMM2';var script2=document.createElement('script');script2.type='text/javascript';script2.src=getDualStreamUrl;document.body.appendChild(script2);}else{		outputDualTwohtml += '<div class="fixed"></div>';		cndual=document.getElementById("leftCol");		cndual.innerHTML += outputDualTwohtml;		outputDualTwohtml ="";		cndual=document.getElementById("rightCol");		cndual.innerHTML = "";}}else{	if(!dualliveid[3]){	}else if(dualliveid[3] && !dualliveid[4]){	}if(dualliveid[4]){otherLive="";for(i=4;i<dualliveid.length;i++){if(i < 9){	if(dualliveid[i]){	otherLive += ';';	otherLive += dualliveid[i];	}else{	break;	}}else{break;}}var getDualChannelurl='http://api.ustream.tv/json/channel/'+leftLive+';'+rightLive+';'+thirdLive+';'+fourthLive+otherLive+'/get'+'Custom'+'EmbedTag?key='+ustapikey+'&params=autoplay:false;true:false;height:'+height+';width:'+width+'&callback=multiDisplay';}else if(fourthLive){var getDualChannelurl='http://api.ustream.tv/json/channel/'+leftLive+';'+rightLive+';'+thirdLive+';'+fourthLive+'/get'+'Custom'+'EmbedTag?key='+ustapikey+'&params=autoplay:true;mute:true;height:'+height+';width:'+width+'&callback=multiDisplay';}else{var getDualChannelurl='http://api.ustream.tv/json/channel/'+leftLive+';'+rightLive+';'+thirdLive+'/get'+'Custom'+'EmbedTag?key='+ustapikey+'&params=autoplay:true;mute:true;height:'+height+';width:'+width+'&callback=multiDisplay';}var script=document.createElement('script');script.type='text/javascript';script.src=getDualChannelurl;document.body.appendChild(script);if(!otherLive){		if(fourthLive){		var getDualStreamUrl='http://api.ustream.tv/json/channel/'+leftLive+';'+rightLive+';'+thirdLive+';'+fourthLive+'/getInfo?key='+ustapikey+'&callback=dualDisplayMM2';		var script2=document.createElement('script');script2.type='text/javascript';script2.src=getDualStreamUrl;document.body.appendChild(script2);		}else{		var getDualStreamUrl='http://api.ustream.tv/json/channel/'+leftLive+';'+rightLive+';'+thirdLive+'/getInfo?key='+ustapikey+'&callback=dualDisplayMM2';		var script2=document.createElement('script');script2.type='text/javascript';script2.src=getDualStreamUrl;document.body.appendChild(script2);		}}else{if(dualliveid[4]){f5Live = dualliveid[4];}if(dualliveid[5]){f6Live = dualliveid[5];}if(dualliveid[6]){f7Live = dualliveid[6];}if(dualliveid[7]){f8Live = dualliveid[7];}if(dualliveid[8]){f9Live = dualliveid[8];}if(dualliveid[9]){f10Live = dualliveid[9];}if(dualliveid[10]){f11Live = dualliveid[10];}	var getDualStreamUrl='http://api.ustream.tv/json/channel/'+leftLive+';'+rightLive+';'+thirdLive+';'+fourthLive+otherLive+'/getInfo?key='+ustapikey+'&callback=dualDisplayMM2';	var script2=document.createElement('script');script2.type='text/javascript';script2.src=getDualStreamUrl;document.body.appendChild(script2);}}}else{height="433px";width="712px";var getDualChannelurl='http://api.ustream.tv/json/channel/'+leftLive+'/get'+'Custom'+'EmbedTag?key='+ustapikey+'&params=autoplay:true;mute:true;height:'+height+';width:'+width+'&callback=singleDisplayMM';var script=document.createElement('script');script.type='text/javascript';script.src=getDualChannelurl;document.body.appendChild(script);//document.write('エラー：取得できませんでした');	var getDualStreamUrl='http://api.ustream.tv/json/channel/'+leftLive+'/getInfo?key='+ustapikey+'&callback=dualDisplayMM2';	var script2=document.createElement('script');script2.type='text/javascript';script2.src=getDualStreamUrl;document.body.appendChild(script2);}livestreamUrl ='<object width="712" height="433" id="lsplayer" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"><param name="movie" value="http://cdn.livestream.com/grid/LSPlayer.swf?channel=junstv&amp;autoPlay=true"></param><param name="allowScriptAccess" value="always"></param><param name="allowFullScreen" value="true"></param><embed name="lsplayer" wmode="transparent" src="http://cdn.livestream.com/grid/LSPlayer.swf?channel=junstv&amp;autoPlay=true" width="712" height="433" allowScriptAccess="always" allowFullScreen="true" type="application/x-shockwave-flash"></embed></object>';justinUrl ='<object type="application/x-shockwave-flash" height="433" width="712" id="live_embed_player_flash" data="http://www.justin.tv/widgets/live_embed_player.swf?channel=junstv" bgcolor="#000000"><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><param name="allowNetworking" value="all" /><param name="movie" value="http://www.justin.tv/widgets/live_embed_player.swf" /><param name="flashvars" value="channel=junstv&auto_play=true&start_volume=25" /></object>';}
