$(function(){
	var c = {
		durationp:300,
		op:1.0,
		oa:0.2
	};
	$('#banner a img, .btn').each(function(){
		$(this)	.css({
			opacity: c.op,
			filter: "alpha(opacity="+c.op*100+")"
		}).hover(function(){
		$(this).css({
			opacity: c.oa,
			filter: "alpha(opacity="+c.oa*100+")"
		});
		$(this).fadeTo(c.durationp,c.op);
		},function(){
			$(this).css({
				opacity: c.op,
				filter: "alpha(opacity="+c.op*100+")"
			});
		})
	});
	
	$('a[href*=#]').click(function() {
		if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') &&　location.hostname == this.hostname) {
			var target = $(this.hash);
			target = target.length && target;
			if (target.length) {
				var sclpos = 30;
				var scldurat = 1200;
				var targetOffset = target.offset().top - sclpos;
				$('html,body')
					.animate({scrollTop: targetOffset});
				return false;
			}
		}
	});
});
