$(function(){

	// footerResize
	$("#footer_outline").footerResize(); //input ID name of your targetNode

	// Rollover
	$('a img').hover(function(){
		$(this).attr('src', $(this).attr('src').replace('_off', '_on'));
			}, function(){
			if (!$(this).hasClass('currentPage')) {
			$(this).attr('src', $(this).attr('src').replace('_on', '_off'));
		}
	});

	// SmoothScroll
	$(".s_scroll a").click(function(){
		$('html,body').animate({ scrollTop: $($(this).attr("href")).offset().top }, 'slow','swing');
		return false;
	});

	// Fancybox
	$("a.fancy").fancybox({
		'padding': 10,
		'opacity': true,
		'hideOnContentClick': true,
		'cyclic': false,
		'titleShow': false,
		'centerOnScroll': true,
		'showCloseButton': false,
		'transitionIn':  'fade',
		'transitionOut': 'fade',
		'speedIn': 200,
		'speedOut': 200,
		'changeSpeed': 200,
		'overlayShow' : true,
		'overlayOpacity' : 0.3,
		'easingIn' : 'easeInOutBack', 
		'easingOut' : 'easeInOutBack',
	});

});


// Google Analytics トラッキング コード
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-15876305-1']);
_gaq.push(['_trackPageview']);

(function() {
	var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
	ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
	var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
