
// このスクリプトはジョニーが書いた
//『bytefx_OS.js』を利用してフェード効果を実現している
//『bytefx_OS.js』もジョニーがちょいといじった
// 2006年12月7日作成
// 2007年3月23日更新



window.onload = function(){
	logoFade();
	setAction("zennichi");
	setAction("teiji");
};

function setAction(elementId){
	var e = document.getElementById(elementId);
	e.onmouseover = function(){colorFadeOn(elementId);};
	e.onmouseout = function(){colorFadeOut(elementId);};
}

function logoFade(){
	bytefx.fade(document.getElementById("logo"), 100, 10, 7, function(){bytefx.fade(document.getElementById("logo"), 10, 100, 1);});
}

function colorFadeOn(elementId){
	bytefx.color(document.getElementById(elementId), "borderColor", "#ff0000", "#ff9933", 5);
}
function colorFadeOut(elementId){
	bytefx.color(document.getElementById(elementId), "borderColor", "#ff9933", "#000000", 2);
}
