// *****************************************************************************
// *     JavaScript - configuration for jQuery                                 *
// *****************************************************************************


// スムーズスクロール
$(function() {
	$('p.re_pagetop a').click(function() {
		$.scrollTo( $('#pagetop'), { speed: 400 , axis: 'y' , queue: true } );
		return false;
	});
});

// パンくずリスト
$(function() {
	$('#footprint ol li:not(:last)').append('<span class="separator">&gt;</span>');
});

// コンテンツ
$(function() {
	// パディングの微調整
		// マイショップ会員募集中
		$('#container #wrapper .myshop p:first').css('padding-top' , '0.9em');
		// 新着情報リスト
		$('#container #wrapper .news_entry .entry_list p:last-child').css('padding-bottom' , '0.9em');
	// 前後へのナビゲーション
		// 新着情報リスト
		$("#container #wrapper p.news_navigation a:contains('前のページ')")
			.wrap('<span class="prev"></span>');
		$("#container #wrapper p.news_navigation a:contains('次のページ')")
			.wrap('<span class="next"></span>');
		$('#container #wrapper p.news_navigation .separator').append('&nbsp;|&nbsp;');
		$('#container #wrapper .news_entry .entry_list:last').css('background' , 'none');
		// 新着情報詳細
		$("#container #wrapper p.news_navigation a:contains('一つ前の情報')")
			.wrap('<span class="prev"></span>')
			.after('<span class="separator">&nbsp;|&nbsp;</span>');
		$("#container #wrapper p.news_navigation a:contains('一つ後の情報')")
			.wrap('<span class="next"></span>')
			.before('<span class="separator">&nbsp;|&nbsp;</span>')
	// テーブル（価格表）
	$('#container #wrapper table tr.price:even').addClass('even');
	$('#container #wrapper table tr th:last-child,\
	   #wrapper table tr td:last-child[class!="null"]\
	  ').css('border-right' , 'none');
	$('#container #wrapper table td:not(:first-child):contains("-")').css('text-align' , 'center');
});

