//ページアップ
function pageup(e) {
	UAGENT = navigator.userAgent.toUpperCase();
	if (UAGENT.indexOf("MSIE") >=0) { posi = event.y; }
	else { posi = e.pageY; }
	moveObje(posi);
}
function moveObje(position) {
	move = position / 10;
	point = parseInt(position - move);
	scrollTo(0,point);
	if (point > 0) { setTimeout("moveObje(point)",10); }
}
//ページスクロール
$(function(){
	$("a[href^=#]").click(function(){
		var Hash = $(this.hash);
		var HashOffset = $(Hash).offset().top;
		$("html,body").animate({
			scrollTop: HashOffset
		}, 800);
		return false;
	});
});
//アコーディオン
$(document).ready(function() {

for (var i=1; i<3; i++){

	$("p.tit0"+i).hover(function(){
		$(this).css("cursor","pointer"); 
	},function(){
		$(this).css("cursor","default"); 
		});
	$("ul.entrylist01").css("display","none");
	$("p.tit0"+i).click(function(){
		$(this).next().slideToggle("fast");
		//$(this).next().css("display","block");
    });
	
}

});


$(document).ready(function(){
$('#tabs div').hide();
$('#tabs div:first').show();
$('#tabs :first').addClass('active');

$('#tabs a.on').click(function(){
$('#tabs').removeClass('active');
$(this).parent().addClass('active');
var currentTab = $(this).attr('href');
$('#tabs div').hide();
$(currentTab).show();
return false;
});

});

$(function() {
	var nav = $('.overimg');
	nav.hover(
		function(){
			$(this).fadeTo(10,0.5);
		},
		function () {
			$(this).fadeTo(300,1);
		}
	);
});



