// JavaScript Document
function top_movie()
	{
		document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="580" height="200">\n');
		document.write('<param name="movie" value="/tour/swf/top_movie.swf"">\n');
		document.write('<param name="quality" value="high">\n');
		document.write('<embed src="/tour/swf/top_movie.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="580" height="200">\n');
		document.write('</embed>\n');
		document.write('</object>\n');
	}

//ポップアップウィンドウ
function MM_openBrWindow(theURL,winName,features) { 
  window.open(theURL,winName,features);
}

//ナビゲーション
$(document).ready(function(){
	$("dl.information").css("display","none");
	$("h3.information a").click(function(){
		$(this).parent().next().slideDown("300");
			return false;
});
	$("dd.close a")	.click(function(){
		$("dl.information:visible").slideUp("300");
			return false;
	});
});


$(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 = 20;
				var scldurat = 900;
				var targetOffset = target.offset().top - sclpos;
				$('html,body')
					.animate({scrollTop: targetOffset}, {duration: scldurat, easing: "easeOutExpo"});
				return false;
			}
		}
	});
});
