	jQuery(document).ready(function(){
		jQuery(".jbgallery").jbgallery({
			menu : "simple", 
			style: "zoom", 
			caption : false
		});
	});

jQuery(document).ready(function(){


jQuery('a.blank').each(function(){
this.target = "_blank";
});

jQuery('').click(function(){
jQuery("#docs, #docs-opacity").toggle();
return false;
		 })
.prependTo("body");
//.trigger("click");
	});



//透明度を増加していきます。
var fade = 0;
var interval = 0;
var obj;


function fade_in(){
if(fade <= 10){
obj = document.getElementById("fadeArea");
obj.style.filter = "alpha(opacity=" + (fade * 10) + ")";
obj.style.MozOpacity = fade / 10 ;
obj.style.opacity = fade / 10 ;
fade++;
setTimeout('fade_in()',interval);
}
}

$(function() {
	$('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}, {duration: scldurat, easing: "easeOutExpo"});
				return false;
			}
		}
	});
});



