function show_over(atag)
{
	if(atag.name) {
		var i, hdn = document.getElementsByName(atag.name);
		for(i = 0; i < hdn.length; i ++) {
			hdn[i].childNodes[0].style.display = 'inline';
			hdn[i].childNodes[1].style.display = 'none';
		}
	}
	atag.childNodes[0].style.display = 'none';
	atag.childNodes[1].style.display = 'inline';
}

function show_out(atag)
{
	atag.childNodes[0].style.display = 'inline';
	atag.childNodes[1].style.display = 'none';
}

function show_layer(tgt)
{
	var vsb = document.getElementById(tgt);
	var pattern = /^([A-Za-z_]+)[0-9]*$/;
	pattern.test(tgt);
	var hdn, i = 1;
	while((hdn = document.getElementById(RegExp.$1 + i)) != null) {
		hdn.style.display = "none";
		i ++;
	}
	if(vsb != null) {
		vsb.style.display = "inline";
	}
}

function show_class(tgt, orig, targ)
{
	var vsb = document.getElementById(tgt);
	var pattern = /^([A-Za-z_]+)[0-9]*$/;
	pattern.test(tgt);
	var hdn, i = 1;
	while((hdn = document.getElementById(RegExp.$1 + i)) != null) {
		hdn.className = orig;
		i ++;
	}
	if(vsb != null) {
		vsb.className = targ;
	}
}

function bluring()
{
	if(event.srcElement.tagName == "A" || event.srcElement.tagName == "IMG") {
		document.body.focus();
	}
}

document.onfocusin = bluring;
