// JavaScript Document
function menumove() {
	new Effect.MoveBy("team-menubox", -53, 0, {
		duration:1, fps:60, delay:1.5,
		beforeStartInternal: function(effect) {
		},
		afterFinishInternal: function(effect) {

			new Effect.Opacity("team-menubox", {
				from:1.0,
				to:0.85,
				duration:2,
				fps:50,
				delay:0,
				beforeStartInternal: function(effect) {
				},
				afterFinishInternal: function(effect) {
				}
			});

		}
	});
}


/**
 * 指定テーブル行に偶数奇数行の色を設定する。
 * マウスオーバー時の色を設定する。
 * 色はcssで指定。
 * @param {Object} tableID
 */
function alternateTableRow(tableID) {
    $A($(tableID).getElementsByTagName("tr")).each(function(row, index){
        row.className = ((index % 2) ? "odd" : "even");
        Event.observe(row, "mouseover", function(){
            Element.addClassName(this, "mouseover");
        });
        Event.observe(row, "mouseout", function(){
            Element.removeClassName(this, "mouseover");
        });
    });
}

