jQuery(document).ready(function($){

	$("#smnlistbox_b .children .children .clist a").each(function(){
		var linktext = $(this).text();
		$(this).text("- " + linktext);
	});
	$("#smnlistbox_r .children .children .clist a").each(function(){
		var linktext = $(this).text();
		$(this).text("- " + linktext);
	});

	/* ブロック要素の高さを揃える */
	/* 左右に並んだテーブルの同じ行内にあるテーブル内の特定の要素の高さを揃える */
	var sets = [], temp = [];
	$(function(){
		/* 特定の要素を組に分けて配列に保存していく */
		sets = [];
		temp = [];
		/* 左テーブルのコメントの要素 */
		$('.category_main .comment').each(function(){
			temp.push(this);	/* 配列に保存 */
		});
		/* 右テーブルのコメントの要素 */
		$('.category_main2 .comment2').each(function(i){
			sets.push(new Array(temp[i],this));	/* 左テーブルの同じ行にある要素と合わせて配列に保存 */
		});
		/* 各組ごとに高さ揃え */
		/* 配列に保存した要素すべてに対し高さを揃える */
		$.each(sets, function(){
			$(this).flatHeights();
		});
	});
	$(function(){
		/* 特定の要素を組に分けて配列に保存していく */
		sets = [];
		temp = [];
		/* 左テーブルの沿線の要素 */
		$('.category_main .way').each(function(){
			temp.push(this);
		});
		/* 右テーブルの沿線の要素 */
		$('.category_main2 .way').each(function(i){
			sets.push(new Array(temp[i],this));	/* 左テーブルの同じ行にある要素と合わせて配列に保存 */
		});
		/* 各組ごとに高さ揃え */
		/* 配列に保存した要素すべてに対し高さを揃える */
		$.each(sets, function(){
			$(this).flatHeights();
		});
	});
});

