// JavaScript Document



$(document).ready( function() {

//カテゴリの背景をJSで無理矢理茶色にする。

	$("#category").parent("td").css("background-color", "#EBD4C1");

//商品詳細画面の商品画像下の余分な改行と関連商品一覧の見出し行とを非表示にする。

	$("div#relation_item table tr:first").css("display", "none");
	$("div#item_image a br").css("display", "none");



//商品カテゴリ一覧の画像サイズと商品名の文字揃え調整。

	$("div.category table table img:first-child").css("width","140px");
	$("div.category table table tr td:nth-child(odd)").css({"width":"140px","padding":"0 5px"});
	$("div.category table table img:nth-child(even)").css("display","none");

//関連商品の画像サイズと商品名の文字揃え調整。

	$("div#relation_item table td img:first-child").css({"width":"140px","margin-bottom":"3px"});


//代替画像の画像サイズ調整。

	$("div.category table table img[src*=no]:first-child").css({"width":"90px","border":"1px solid #999999"});
	$("div#topsales table table img[src*=no]:first-child").css({"width":"90px","border":"1px solid #999999"});
	$("div#relation_item table table img[src*=no]:first-child").css({"width":"90px","border":"1px solid #999999"});
	$("div#relation_item table br").css("display","none");


//注文履歴画像のテーブルにクラス設定。

	$("b:contains(注文)").parent().parent().parent().parent("table").addClass("orderlist");
	$("b:contains(購入商品名)").parent("td").parent("tr").children("td").addClass("orderlist_header");
	$("span:contains(この注文はキャンセルできません)").parent("td").addClass("ordernum");
	$("input[name=order]").parent().parent().parent().parent("table").addClass("ordersearch");
});

