function meltdown(){
var s=document.createElement("script");s.charset="UTF-8";
var da=new Date();s.src="http://www.rr.iij4u.or.jp/~kazumix/d/javascript/meltdown/meltdown.js?"+da.getTime();
document.body.appendChild(s)};

var tID =null;
function acl(){if( tID != null ){
clearInterval(tID);tID=null;}
$.ajaxSetup({scriptCharset:'utf-8'});
var z = 'http://api.justin.tv/api/stream/list.json?channel=hisyamoto01&jsonp=?';
$.getJSON( z,function(a){document.getElementById('v').innerHTML = '　'+a[0].stream_count+'人視聴 :'+a[0].channel['views_count']+'トータル';
if( tID == null ){tID = setInterval('acl()',180000);}});}

function white(){
	document.body.style.backgroundImage = "";
	document.getElementById('ya').style.backgroundImage = "url(../frame/thumbnail/yahoo.gif)";
	document.getElementById('ya').style.backgroundPosition = "50% 50%";
	document.getElementById('ya').style.backgroundRepeat = "no-repeat";
	document.bgColor = "#ffffff";
}

function black(){
	document.body.style.backgroundImage = "";
	document.getElementById('ya').style.backgroundImage = "url(http://stat100.ameba.jp/p_skin/shokokai_usr11/img/heard2.jpg)";
	document.getElementById('ya').style.backgroundPosition = "top";
	document.getElementById('ya').style.backgroundRepeat = "no-repeat";
	document.bgColor = "#000000";
}

function paper(){
	document.getElementById('ya').style.backgroundImage = "url(thumbnail/header.jpg)";
	document.getElementById('ya').style.backgroundPosition = "top";
	document.getElementById('ya').style.backgroundRepeat = "no-repeat";
	document.body.style.backgroundImage = "url(thumbnail/paper.jpg)";
	document.bgColor = "#ffffff";
}

function clover(){
	document.getElementById('ya').style.backgroundImage = "url(thumbnail/header.jpg)";
	document.getElementById('ya').style.backgroundPosition = "top";
	document.getElementById('ya').style.backgroundRepeat = "no-repeat";
	document.body.style.backgroundImage = "url(thumbnail/clover.gif)";
}

function wood(){
	document.getElementById('ya').style.backgroundImage = "url(http://stat100.ameba.jp/p_skin/shokokai_usr11/img/heard2.jpg)";
	document.getElementById('ya').style.backgroundPosition = "top";
	document.getElementById('ya').style.backgroundRepeat = "no-repeat";
	document.body.style.backgroundImage = "url(thumbnail/wood06.gif)";
}

function dia(){
	document.getElementById('ya').style.backgroundImage = "url(http://stat100.ameba.jp/p_skin/shokokai_usr11/img/heard2.jpg)";
	document.getElementById('ya').style.backgroundPosition = "top";
	document.getElementById('ya').style.backgroundRepeat = "no-repeat";
	document.body.style.backgroundImage = "url(../frame/thumbnail/bg.gif)";
}


function note(){
	onclick=window.open('../justream/note/hisya_justin.html', '','width=400,height=225,menubar=no,toolbar=no,scrollbars=no,location=no,status=no,resizable=yes');
	onclick=window.open('../justream/note/hisya_ust.html', '','width=400,height=365,menubar=no,toolbar=no,scrollbars=no,location=no,status=no,resizable=yes');
}
