
// Footer Fix
	
$(document).ready(function(){
	$("#footer").footer();
});



// Alpha Rollover

$(document).ready(function() {
    $(".alhover").fadeTo(1,1)
    .hover( 
        function(){// マウスオーバー時
            $(this).fadeTo(200, 0.4);
        },
        function(){// マウスアウト時
            $(this).fadeTo(150, 1);
        }
    );
});

$(document).ready(function() {
    $(".btnhover").fadeTo(1,1)
    .hover( 
        function(){// マウスオーバー時
            $(this).fadeTo(200, 0);
        },
        function(){// マウスアウト時
            $(this).fadeTo(150, 1);
        }
    );
});


// Smooth Scroll

$(document).ready(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;
			}
		}
	});
});


// open Window

function openWindow(){
		sub=window.open("/tour/index.html#img/img_mi_p1.jpg","new","width=740,height=658,toolbar=no,location=no,status=no,menubar=no,directories=no,scrollbars=yes,resizable=yes");
}
