

// トップページタブ切り替え
$(function(){
	if($.cookie('OpenTab')=="tab-tokyo"){
		$('#tab-osaka').hide();
		$('#tab-sendai').hide();
	}else	if($.cookie('OpenTab')=="tab-osaka"){
		$('#tab-tokyo').hide();
		$('#tab-sendai').hide();
	}else	if($.cookie('OpenTab')=="tab-sendai"){
		$('#tab-tokyo').hide();
		$('#tab-osaka').hide();
	}else{
		$('#tab-osaka').hide();
		$('#tab-sendai').hide();
	}
	$('.changeTab1').click(function(){
		$('#tab-tokyo').show();
		$('#tab-osaka').hide();
		$('#tab-sendai').hide();
		$.cookie("OpenTab","tab-tokyo",{ expires: 30 });
	})
	$('.changeTab2').click(function(){
		$('#tab-osaka').show();
		$('#tab-tokyo').hide();
		$('#tab-sendai').hide();
		$.cookie("OpenTab","tab-osaka",{ expires: 30 });
	})
	$('.changeTab3').click(function(){
		$('#tab-osaka').hide();
		$('#tab-tokyo').hide();
		$('#tab-sendai').show();
		$.cookie("OpenTab","tab-sendai",{ expires: 30 });
	})
});

// グローバルナビ
$(function(){
	$("#seminerBtn").hover(function(){
		var show = 0;
		
		if($("#selectNavi2").height() != 0){
		$("#selectNavi2").stop().animate({
			height:"34px"
			},0 );
			}	else {
		$("#selectNavi2").animate({
			height:"34px"
			},250 );
		}
		},function(){
		$("#selectNavi2").animate({
			height:0
			},250,function(){
			});
		}
	)

	$("#selectNavi2").hover(function(){
		$("#selectNavi2").stop().animate({
			height:"34px"
			},0);
		},function(){
		$("#selectNavi2").animate({
			height:0
			},250,function(){
			});
		}
	)

});

/* ///////////////////
 backToTop 
/////////////////// */

$(function(){
	var easeType = "easeOutQuart";

	$(".pageTop").click(function(){
			$("body,html").animate({scrollTop : 0},500,easeType);		
		}
	);

});

$(function(){
$('.ov a img').rollover();
});



