$(function(){

// ページ内移動制御
$("a[href*='#']").easingScroll({easing:"easeOutCubic", duration:"300"});

$("#changeEasing").change(function(){
	$("a[href*='#']").easingScroll({
	easing: this.value,
	duration: parseInt($("#duration").val())
	});
});
$("#duration").keyup(function(){
	$("a[href*='#']").easingScroll({
		easing: $("#changeEasing").val(),
		duration: parseInt(this.value)
	});
}).blur(function(){
	$("a[href*='#']").easingScroll({
		easing: $("#changeEasing").val(),
		duration: parseInt(this.value)
	});
});

// アンカーの点線消し
$('a').focus(function(){this.blur();});

// グローバルナビプルダウン
/*
$("#gNav li").hover(function() {
    $(this).children('ul').slideDown("2000");
}, function() {
    $(this).children('ul').slideUp("1000");
});
*/

// プリント画面で非表示
$("#printBtn").toggle(function(){
	$("body").addClass("printMode");
	$("#printBtn img").attr("src","/common/img/btn_print_back.gif");
	$("#printBtn img").attr("width","130");
	},function(){
	$("body").removeClass("printMode");
	$("#printBtn img").attr("src","/common/img/btn_print.gif");
	$("#printBtn img").attr("width","100");
});




// 2階層以下を隠す
$("#lNav li ul").addClass("dN");
// .hereの親ulを表示する
$("ul:has(.here)").removeClass("dN");




// 高さを揃える
$(".flatH").flatHeights();
// 高さを揃える（ページ内で複数設定）
$(".flatH1").flatHeights1();
$(".flatH2").flatHeights2();
$(".flatH3").flatHeights3();




}); // jQuery終了

