

/*	ロールオーバー

-------------------------------------------------------- */

jQuery(function($) {

	var suffix = '_on';

	$('.over').each(function() {

		var img  = $(this);

		var src  = img.attr('src');

		var name = src.substr(0, src.lastIndexOf('.'));

		var ext  = src.substring(src.lastIndexOf('.'));

		if (name.match(suffix + '$')) return;

		var src_on = name + suffix + ext;

		$('<img>').attr('src', src_on);

		img.hover(

			function() { img.attr('src', src_on); },

			function() { img.attr('src', src); }

			);

	});

});





/*	ロールオーバーで半透明

-------------------------------------------------------- */

$(function() {

	$(".fade").hover(function(){ 

		$(this).stop(true).fadeTo(200,0.8); 

	},function() {

		$(this).fadeTo(200,1); 

	});

});





/*	スムーズスクロール

-------------------------------------------------------- */

var span = 1000;

var effect = 'easeOutQuint';



$(function() {

	var ua = $.browser;

	$(".pagetop a").click(function() {

		if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {

			$(this).blur();

			var t = navigator.appName.match(/Opera/) ? "html" : "html,body";

			$(t).queue([]).stop();

			var $targetElement = $(this.hash);

			var scrollTo = $targetElement.offset().top;

			if (window.scrollMaxY) {

				var maxScroll = window.scrollMaxY;

			} else {

				var maxScroll = document.documentElement.scrollHeight - document.documentElement.clientHeight;

			}

			if (scrollTo > maxScroll){

				scrollTo = maxScroll;

			}

			$(t).animate({ scrollTop: scrollTo }, span, effect);

			return false;

		}

	});

});







/*	商品ページの<br clear="all" />タグを削除

-------------------------------------------------------- */

$(function() {

	$("#FS2_itemlayout_IH3 br[clear]").remove(); 

});





/*	商品ページの<br clear="all" />タグを削除

-------------------------------------------------------- */

$(function() {

	$("#monthly-pickup li:nth-child(5n)").addClass("end"); 

});





/*	商品詳細ページ下部のオススメに「」

-------------------------------------------------------- */

$(function() {

	$("#FS2_Recommend_List").addClass("heightLineParent"); 

});








