//今日コレを小窓で開く
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()',8000);
	}
	//topicsimgchangnum = 0;

	topicsimgchanghtml = new Array(
		'<a href="http://www2.jfn.co.jp/sien/" target="_blank"><img src="image/banner_top/jfn_logo.jpg" alt="JFNヒューマンコンシャス募金" width="345" height="150" border="0"></a>',
		'<a href="special/present201103/" target="_blank"><img src="image/banner_top/present201103.jpg" 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];
}

