// addLoadEvent
function addLoadEvent(func) {
	var oldonload = window.onload;
	if (typeof window.onload != "function") {
			window.onload = func;
		} else {
			window.onload = function() {
			oldonload();
			func();
		}
	}
}

// Rolling Function
var currentNum = 0;
function rollTxt(id,target) {
	var hotKeywordBox = document.getElementById('hotKeyword');
	var hotKeywordList = hotKeywordBox.getElementsByTagName('tr');
	for (var i = 0; i < hotKeywordList.length; i++) {
		hotKeywordList[i].style.display = 'none';
	}
	hotKeywordList[currentNum].style.display = 'block';
	hotKeywordList[currentNum+1].style.display = 'block';
	//hotKeywordList[currentNum+2].style.display = 'none';
	if (currentNum < (hotKeywordList.length - 2)) {
		currentNum++;
	} else {
		currentNum = 0;
	}
}
addLoadEvent(rollTxt)

// Prepare Rolling Function
function prepareRollTxt() {
	document.getElementById('allwrap').style.display = 'block';
	timer = setInterval('rollTxt()',1500);
	var hotKeywordBox = document.getElementById('hotKeyword');
	var hotKeywordList = hotKeywordBox.getElementsByTagName('tr');

}
addLoadEvent(prepareRollTxt)

function prepareMouseOver() {
	window.clearTimeout(timer);

}

function prepareMouseOut() {
	timer = setInterval('rollTxt()',1500);
}