var k;
var link;

function hide(item){
	item.style.display = 'none';
}

function show(item){
	item.style.display = 'block';
}


function linkoff(id){
	if(id_h = document.getElementById(id+"_h")){
		id_h.style.fontWeight = 'bold';
		id_h.style.color = 'black';
	}
}

function linkon(id){
	if(id_h = document.getElementById(id+"_h")){
		id_h.style.fontWeight = '';
		id_h.style.color = '';
	}
}

function setk(id)
{
	k = id;
}

function showhidek(id){
	if(k!=id){
		try{
			var item = document.getElementById(id);
			if(k && (hideitem = document.getElementById(k))){
				
				hide(hideitem);
				linkon(k);
			}
			
			show(item);
			linkoff(id);
			k = id;
		}catch(err){
		}
	}
}