document.write('<ul class="aboutMenu  clearfix">');
document.write('<div class="ttl"><span class="text_out">VICSについて</span></div>');

listArray = new Array();
listArray[1] = "<a class='menu1' href='index.html'><span class='text_out'>VICS（ビックス）とは</span></a>";
listArray[2] = "<a class='menu2' href='history.html'><span class='text_out'>VICSの成り立ち</span></a>";
listArray[3] = "<a class='menu3' href='appeal.html'><span class='text_out'>VICSの魅力</span></a>";
listArray[4] = "<a class='menu4' href='indicate.html'><span class='text_out'>VICSの見方</span></a>";
listArray[5] = "<a class='menu5' href='center.html'><span class='text_out'>VICSセンターの位置づけ</span></a>";
listArray[6] = "<a class='menu6' href='shipment.html'><span class='text_out'>VICS車載機出荷台数</span></a>";

var act = " class='active'";

// パラメータからカテゴリの識別
// パラメータなしの場合は、index.html内定義（var num = ）
if(location.search.length > 1) {
	var myArray = location.search.substr(1).split("=");
	num = myArray[1];
}

// リスト項目の判定、アクティブ化
for (i = 1; i < listArray.length; i++) {
	var cls = "";
	var str = "<li#class#>";
	if (i == eval(num)) {
		cls = act;
	}
	str = str.replace("#class#", cls);
	str += listArray[i];
	str += "</li>";
	document.write(str);
}

document.write('</ul>');


