
// MJL
MJL.event.add(window, "load", function(event) {

	MJL.enable.flash("flash", {version:8});
	MJL.enable.rollover("roll", {disable:"unroll", active : "active"});
	MJL.enable.tab("tabs");

    MJL.enable.heightEqualizer("equalize");
    MJL.enable.heightEqualizer("equalize2", { groupBy : 2 });
    MJL.enable.heightEqualizer("equalize3", { groupBy : 3 });
    MJL.enable.heightEqualizer("equalize4", { groupBy : 4 });

}, false);

/*カレントページのメニューをアクティブ「_o」
※aタグに「roll」をつける
コメントに「//」を使用した場合日本語は使わない、使う場合は文字コードは「UTF8」。ie6で動作しなくなる*/

jQuery(function(){
	var page_id = jQuery('body').attr('id');
	jQuery('#menu a[href*="' + page_id + '.html"]').addClass('unroll').find('img').each(function(){
		this.src = this.src.replace('.png','_o.png');
	});
});

// Odd Even Set
$(function(){
	$('ul').each(function(){
		$(this).find('li:first').addClass('first');
		$(this).find('li:odd').addClass('odd');
		$(this).find('li:even').addClass('even');
		$(this).find('li:last').addClass('last');
	});
	$('dl').each(function(){
		$(this).find('dt:first').addClass('first');
		$(this).find('dt:odd').addClass('odd');
		$(this).find('dt:even').addClass('even');
		$(this).find('dt:last').addClass('last');
		$(this).find('dd:first').addClass('first');
		$(this).find('dd:odd').addClass('odd');
		$(this).find('dd:even').addClass('even');
		$(this).find('dd:last').addClass('last');

	});
	$('table').each(function(){
		$(this).find('tr:first').addClass('first');
		$(this).find('tr:odd').addClass('odd');
		$(this).find('tr:even').addClass('even');
		$(this).find('tr:last').addClass('last');
	});
});

/* ページTOPスクロール */
jQuery(function(){
		jQuery("#bottom .page_navigation a").click(function(){
		jQuery('html,body').animate({ scrollTop: jQuery(jQuery(this).attr("href")).offset().top }, 'slow','swing');
		return false;
	})
});
