	// ----------
	// グローバルナビのイージングの設定
	// ----------

$(document).ready(function(){
	$('#gnEasing').autosprites({
		offset: '88px'
	});
});

	// ----------
	// ローカルナビのイージングの設定
	// ----------

$(document).ready(function(){
	$('#lnEasing').autosprites({
		offset: '40px'
	});
});

	// ----------
	// ツールチップ
	// ----------

/**
Vertigo Tip by www.vertigo-project.com
Requires jQuery
*/
this.vtip = function() {
	this.xOffset = -40; // x distance from mouse
	this.yOffset = 12; // y distance from mouse       

	$(".vtip").unbind().hover(    
		function(e) {
			this.t = this.title;
			this.title = ''; 
			this.top = (e.pageY + yOffset); this.left = (e.pageX + xOffset);
			$('body').append( '<p id="vtip">' + this.t + '</p>' );
			$('p#vtip').css("top", this.top+"px").css("left", this.left+"px").fadeIn("slow");
		},
		function() {
			this.title = this.t;
			$("p#vtip").fadeOut("slow").remove();
		}
	).mousemove(
		function(e) {
			this.top = (e.pageY + yOffset);
			this.left = (e.pageX + xOffset);
			$("p#vtip").css("top", this.top+"px").css("left", this.left+"px");
		}
	);
};
jQuery(document).ready(function($){vtip();}) 

	// ***
	// スロースクロール
	// ***

// <![CDATA[
function slowScroll() {
	if(navigator.appName == "Microsoft Internet Explorer" && document.compatMode == "CSS1Compat") {
		pagetop = document.body.parentNode.scrollTop;
	}else if(window.pageYOffset){
		pagetop = window.pageYOffset;
	}else{
		pagetop = document.body.scrollTop;
	}

	if(pagetop){
		setsc = Math.ceil(pagetop*.2);
		scrollBy(0,-setsc);
		if(pagetop-setsc){
			setTimeout("slowScroll()",15);
		}
	}
}
// ]]>

	// ***
	// アコーディオンメニュー
	// ***

<!--//---------------------------------+
//  Developed by Roshan Bhattarai 
//  Visit http://roshanbh.com.np for this script and more.
//  This notice MUST stay intact for legal use
// --------------------------------->
$(document).ready(function() {
	//slides the element with class "menu_body" when paragraph with class "menu_head" is clicked 
	$("#firstpane p.menu_head").click(function() {
		$(this).css({backgroundImage:"url(/imglib/ui/expanded.gif)"}).next("div.menu_body").slideToggle(300).siblings("div.menu_body").slideUp("slow");
       		$(this).siblings().css({backgroundImage:"url(/imglib/ui/collapsed.gif)"});
	});
	//slides the element with class "menu_body" when mouse is over the paragraph
	$("#secondpane li.menu_head").mouseover(function() {
		$(this).css({backgroundImage:"url(/imglib/ui/expanded.png)"}).next("li.menu_body").slideDown(500).siblings("li.menu_body").slideUp("slow");
		$(this).siblings().css({backgroundImage:"url(/imglib/ui/collapsed.png)"});
	});
});
