//アクティブ表示
function showPANEL(pnlNAME) {
	if(document.layers)document.layers[pnlNAME].display='block'
	if(document.getElementById(pnlNAME))document.getElementById(pnlNAME).style.display='block'
}

//非アクティブ表示
function hidePANEL(pnlNAME) {
	if(document.layers)document.layers[pnlNAME].display='none'
	if(document.getElementById(pnlNAME))document.getElementById(pnlNAME).style.display='none'
}

//画像の切替()
function changeImg(idNAME, imgURL) {
	if(document.getElementById(idNAME))document.getElementById(idNAME).style.background="transparent url('"+ imgURL + "') 0 0 no-repeat";
}

//表示コンテンツの切り替え関数(左カテゴリ)
function changeCategory(activeName, imgURL) {
	//カテゴリ
	btnList = new Array('category','collection');

	for ( i=0; i < btnList.length; i++ ) {
		//一致したidを表示、画像をアクティブにする
		if ( btnList[i] == activeName ) {
			changeImg(btnList[i] +"tab",imgURL + "/btn_" + btnList[i] +"_on.png");
			showPANEL(btnList[i] + "Content");
		} else {
			changeImg(btnList[i] +"tab",imgURL + "/btn_" + btnList[i] +".png");
			hidePANEL(btnList[i] + "Content");
		}
	}
}
