jQuery.noConflict();
var j$ = jQuery;

	j$(function() {
		
		var ani = {
			opacity: 'show',	// fade-in 
			height: 'show'		// slide-down
		}
		
		var params = {
			animation: ani,
			delay: 100,	// the delay in milliseconds that the mouse can remain outside a submenu without it closing 
			speed: 'normal'   // fast, normal(400ms), slow or milliseconds
		}; 

		j$("#globalnavi").superfish(params); 	//プルダウンメニュー　
		
		j$("a[href*=#]").click(function() {	//トップへ戻る　スタート
			if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
				var target = j$(this.hash);
				target = target.length && target;
				if (target.length) {
					var sclpos = 30;
					var scldurat = 1500;	//移動スピードを調節できます。大きい数字ほどゆっくりスクロールします。
					var targetOffset = target.offset().top - sclpos;
					j$("html,body")
						.animate({scrollTop: targetOffset}, {duration: scldurat, easing: "easeOutExpo"});
					return false;
				}
			}
		});
	});
