var active = "";
var obj;

function show_divbox(id)
{
	if (active != "" && document.getElementById(active).style.visibility == 'visible' && id == active)
	{
		hide_divbox(active);
		//show_divbox(id);
		show_divbox('header_box_search');
	}
	else
	{
		hide_divbox('header_box_search');
		hide_divbox('header_box_basket');
		hide_divbox('header_box_login');
		
		obj = document.getElementById(id);
	
		obj.style.visibility = "visible";
		obj.style.display = "block";
	}
	
	active = id;
}

function hide_divbox(id)
{
	obj = document.getElementById(id);
	
	obj.style.visibility = "hidden";
	obj.style.display = "none";
}
