//@charset "utf-8";

//////////////////////////////////////////////////////////////////////////
//
// 
//
//////////////////////////////////////////////////////////////////////////

$(function(){
	
	//スムーススクロール	
	$('a[href*="#header"],a[href*="#anchor"],area[href*="#anchor"]').slideScroll();
	
	
	//透過RO
	$("img.transImg").hover(
		function(){
			$(this).css({opacity: 0.7});
		},
		function(){
			$(this).css({opacity: 1});
		}
	);
	
	//#contents 角R
	$("div#main02 div#contents,div#categoryTop,div.borderBlock01,div.freedialBlock03").corner("5px");
});





//////////////////////////////////////////////////////////////////////////
//
// タブメニュー
//
//////////////////////////////////////////////////////////////////////////
//トップページ
/*$(document).ready(function(){
	
	$("div#newsBlock div.tabBlock ul li a").click(function(){
		var showId = $(this).attr("rel");
		//var onSrc = $(this).children().attr("src").replace(".gif","_o.gif");
		
		$("div#newsBlock a.current").removeClass("current");
		$("div#newsBlock div.outer").hide();
		$("#" + showId).fadeIn(500);
		
		
		$(this).addClass("current");
		//$(this).children().attr("src",onSrc);
		return false; 
	})
});*/

//エリアページ/地図
/*$(document).ready(function(){
	
	$("div#roomSearchBlock div.tabBlock ul li a").click(function(){
		var showId = $(this).attr("rel");
		//alert(showId);
		$("div#roomSearchBlock a.current").removeClass("current");
		
		//var onSrc = $(this).children().attr("src").replace(".gif","_o.gif");
		
		$("div#roomSearchBlock div.mapBlock div.tabContentsBlock").hide();
		$("#" + showId).addClass("active").fadeIn(500);
		
		$(this).addClass("current");
		//$(this).children().attr("src",onSrc);
		return false; 
	})
});*/

//エリアページ/対策
/*$(document).ready(function(){
	$("div.anchorBlock div.block a").click(function(){
		var linkUrl = $(this).attr("rel");
		//alert(linkUrl);
		$("div#measuresBlock div.tabBlock ul li a").removeClass("current");
		$("div#measuresBlock div.measureContentBlock").hide();
		$("#" + linkUrl).fadeIn(500);
		//$("div#measuresBlock div.tabBlock ul li a[rel=linkUrl]").addClass("current");
		$("div#measuresBlock div.tabBlock ul li a[rel=" + linkUrl + "]").addClass("current");
	});
	$("div#measuresBlock div.tabBlock ul li a").click(function(){
		var showId = $(this).attr("rel");
		$("div#measuresBlock a.current").removeClass("current");
		$("div#measuresBlock div.measureContentBlock").hide();
		$("#" + showId).fadeIn(500);
		$(this).addClass("current");
	});
});
*/

//////////////////////////////////////////////////////////////////////////
//
// 教室吹き出し
//
//////////////////////////////////////////////////////////////////////////

$(document).ready(function(){
	$("div#trainMap p").hover(
	function(){
		$(this).find("span").fadeIn("slow").css("display","block");
		},
	function(){
		$(this).find("span").fadeOut("slow");
		}
	);
});

//////////////////////////////////////////////////////////////////////////
//
// TOP地図吹き出し
//
//////////////////////////////////////////////////////////////////////////

//関東
$(document).ready(function(){
	$("div#mapBlock ul li.areaDisp").hover(
	function(){
		$(this).find("ol").fadeIn("fast");
		},
	function(){
		$(this).find("ol").fadeOut("fast");
		}
	);
});

//////////////////////////////////////////////////////////////////////////
//
// 小中高グローバルメニュープルダウン
//
//////////////////////////////////////////////////////////////////////////

$(document).ready(function(){
	$("#globalNavi ul li ul").each(function(){
		$('li:even', this).addClass('even');
		$(this).parent('li').hover(
			function(){
				$('ul', this).css({'top':'40px'});
			},function(){
				$('ul', this).css({'top':'-1000px'});
			}
		);
	});
});


//////////////////////////////////////////////////////////////////////////
//
// 右サイドナビアコーディオン処理：各属性目的別学習、初めての方へ
//
// ■使用箇所
//   /area/*.html
//   /map/detail.php
//   /map/teacher.php
//   /map/.php
//
//////////////////////////////////////////////////////////////////////////

$(function(){
	//サイドナビ角R
	$("div#sideGradeBlock").corner("3px");
	$("div#sideFirstBlock").corner("3px");
	
	//
	$("div#sideGradeBlock ul li dl dd ul li:odd").addClass('odd');
	
	//サイドナビ：各属性目的別学習オンマウス処理
	/*$("div#sideGradeBlock ul li dl").hover(
		function(){
			$(this).children("dd").stop(false, true).addClass("active").slideDown();
		},
		function(){
			$(this).children("dd").stop(false, true).removeClass("active").slideUp();
		}
	);*/
	$("div#sideGradeBlock ul li dl").mouseover(
		function(){
			var dlIndex = $("div#sideGradeBlock ul li dl").index(this);
			$("div#sideGradeBlock ul li dl:not(:eq(" + dlIndex + ")) dd.active").slideUp();
			$(this).children("dd").addClass("active").slideDown();
		}
	);
	
	
	//サイドナビ：初めての方へオンマウス処理
	$("div#sideFirstBlock dl dd ul li").hover(
		function(){
			$(this).children("ul").stop(false, true).slideDown();
			//$(this).children("ul").addClass("active").slideDown();
		},
		function(){
			$(this).children("ul").stop(false, true).slideUp();
			//$(this).children("ul").removeClass("active").slideUp();
		}
	);
});

//////////////////////////////////////////////////////////////////////////
//
// 年末FDレイアウト変更　20101228
//
//////////////////////////////////////////////////////////////////////////

/*$(document).ready(function(){
	$("div#headerBottomBlock p:eq(2)").after('<p class="info"><img src="/common/img/txt_header_04.gif" width="378" height="45" alt="年末年始の受付時間・冬期休業のお知らせ 12/29(水)10:00～18:00 12/30(木)～1/3(月)は冬期休業につき受付不可 ※年始は1/4(火)10:00?の受付となります。" /></p>');
	
});*/

