function showNavi(el){
	allAs = el.getElementsByTagName("a");
	for (x = 0; x < allAs.length; x++){
		currentA = allAs[x];
		currentA.style.color = "rgb(0,0,0)";
	}
}
function hideNavi(el,exception){
	allAs = el.getElementsByTagName("a");
	for (x = 0; x < allAs.length; x++){
		if (x != exception){
			currentA = allAs[x];
			currentA.style.color = "rgb(255,255,255)";
		}
	}
}

function showAlpha(el){
	allAs = el.getElementsByTagName("a");
	for (x = 0; x < allAs.length; x++){
		currentA = allAs[x];
		currentA.style.color = "rgb(0,0,0)";
		if (x == (allAs.length-1)){
			currentA = allAs[x];
			currentA.setAttribute("class", "pagenavi_sel");
		}
		if (x == (allAs.length-2)){
			currentA = allAs[x];
			currentA.setAttribute("class", "pagenavi");
		}
	}
}

function hideAlpha(el,exception){
	allAs = el.getElementsByTagName("a");
	for (x = 0; x < allAs.length; x++){
		if (x != exception){
			currentA = allAs[x];
			currentA.style.color = "rgb(255,255,255)";
		}
		if (x == (allAs.length-1)){
			currentA = allAs[x];
			currentA.setAttribute("class", "invisible");
		}
		if (x == (allAs.length-2)){
			currentA = allAs[x];
			currentA.setAttribute("class", "invisible");
		}
	}
}

function showByCat(el){
	allAs = el.getElementsByTagName("a");
	for (x = 0; x < allAs.length; x++){
		currentA = allAs[x];
		currentA.style.color = "rgb(0,0,0)";
		if (x == (allAs.length-1)){
			currentA = allAs[x];
			currentA.setAttribute("class", "pagenavi");
		}
		if (x == (allAs.length-2)){
			currentA = allAs[x];
			currentA.setAttribute("class", "pagenavi_sel");
		}
	}
}

function hideByCat(el,exception){
	allAs = el.getElementsByTagName("a");
	for (x = 0; x < allAs.length; x++){
		if (x != exception){
			currentA = allAs[x];
			currentA.style.color = "rgb(255,255,255)";
		}
		if (x == (allAs.length-1)){
			currentA = allAs[x];
			currentA.setAttribute("class", "invisible");
		}
		if (x == (allAs.length-2)){
			currentA = allAs[x];
			currentA.setAttribute("class", "invisible");
		}
	}
}


function showAllNames(){
	$("a[name='name']").show(0);
	$("a[name='img']").hide(0);
}
function hideAllNames(){
	$("a[name='name']").hide(0);
	$("a[name='img']").show(0);
}



function showName(id){
	$('#name_'+id).show(0);
	$('#img_'+id).hide(0);
}
function hideName(id){
	$('#name_'+id).hide(0);
	$('#img_'+id).show(0);
}












