//今日コレを小窓で開く
function OpenDialog (){
	return self.open('', 'Dialog', 'width=300,height=300,scrollbars=1,resizable=1');
}

//tokuban
function topicsimg(){
	var topicsElm = document.getElementById("tokuban");
	topicsElm.onmouseover = function(){
		clearInterval(topicsImgTimerID);
	}
	topicsElm.onmouseout = function(){
		topicsImgTimerID = setInterval('topicsimgchange()',3000);
	}
	//topicsimgchangnum = 0;

	topicsimgchanghtml = new Array(
		'<a href="special/soccer2010/" target="_blank"><img src="image/banner_top/soccer2010.jpg" alt="第10回FM愛媛カップビーチサッカー〜ehime championship〜出場チーム募集！" width="345" height="150" border="0"></a>',
		'<a href="http://joeufm.exblog.jp/" target="_blank"><img src="image/banner_top/cmonradio.gif" alt="カモン☆あつまれでぃお" width="345" height="150" border="0"></a>'
	);
	topicsimgchangnum = Math.floor(Math.random()*(topicsimgchanghtml.length));
	//topicsimgchange();
	topicsImgTimerID = setInterval('topicsimgchange()',8000);
}
function topicsimgchange(){
	topicsimgchangnum ++;
	var num = topicsimgchangnum % topicsimgchanghtml.length;
	document.getElementById("tokuban").innerHTML = topicsimgchanghtml[num];
}
