MJL.event.add(window, "load", function() {
    // MJL に関係するコードはこの中に記述
    MJL.enable.flash("flash");
    MJL.enable.window("window");
    MJL.enable.tab("tabs");
    MJL.enable.styleSwitcher("styleSwitcher");
    MJL.enable.heightEqualizer("equalize");
    MJL.enable.rollover("roll", { disable : "unroll" });
});

// MJL と無関係なコードはこの先に記述

$(document).ready(function () {
							
	//別ウィンドウでのページ遷移モジュール
	$('a[rel="external"]').each(function(i) {
		$(this).attr('target', '_blank');
	});
	
	//お問い合わせフォームポップアップ
	$('a[href="https://ss1.xrea.com/www.kdearth.com/inquiry/"]').each(function(i){
																			   
		$(this).click(function () {
			wx = 660;
			wy = 620;
			
			x = (screen.width - wx) / 2;
			y = (screen.height - wy) / 2;
			
			win = window.open(this.href,'inquiry','width='+wx+',height='+wy+',scrollbars=yes,resizable=yes,left='+x+',top='+y);
			win.focus();
			
			return false;
		});														   															   
	});
	
	//ホバーエフェクト
	$(".nav-animation img").hover(function() {
		$(this).stop().animate({ marginTop: "-7px" }, 200);
		$(this).parent().find("span").stop().animate({ marginTop: "18px", opacity: 0.25 }, 200);
	},function(){
		$(this).stop().animate({ marginTop: "0px" }, 300);
		$(this).parent().find("span").stop().animate({ marginTop: "1px", opacity: 1 }, 300);
	});
});

//現在の年号表示モジュール
function currentYear(){
	cy = new Date() ;
	cy = cy.getFullYear ();
	return document.write(cy);
}

