function go(url)
{
	this.location.href=url;
	return true;
}

function setCookie (name, value, expires, path, domain, secure)
{
	document.cookie = name + "=" + escape(value) +
	((expires) ? "; expires=" + expires : "; expires=Mon, 01-Jan-2020 00:00:00 GMT") +
	"; path=" +
	((domain) ? "; domain=" + domain : "") +
	((secure) ? "; secure" : "");
}

function pop(URL, windowName, width, height)
{
	w = window.open(URL, windowName, 'resizable=0,width='+width+',height='+height);
	w.resizeTo(parseInt(width), parseInt(height));
	//w.moveTo(0, 0);
	w.focus();
	return false;
}


function show_nodes(show)
{
	if(document.getElementById)
	{
		if(show) 
		{	
			show_brands(false);
			show_prices(false);
			document.getElementById('nodes-list').style.display = 'block';
			setCookie('section', 'nodes', 0, '/');
		}
		else document.getElementById('nodes-list').style.display = 'none';
	}
	return(false);	
}

function show_brands(show)
{
	if(document.getElementById)
	{
		if(show) 
		{	
			show_nodes(false);
			show_prices(false);
			document.getElementById('brands-list').style.display = 'block';
			setCookie('section', 'brands', 0, '/');
		}
		else document.getElementById('brands-list').style.display = 'none';
		
	}
	return(false);
}

function show_prices(show)
{
	if(document.getElementById)
	{
		if(show) 
		{	
			show_nodes(false);
			show_brands(false);
			document.getElementById('prices-list').style.display = 'block';
			setCookie('section', 'prices', 0, '/');
		}
		else document.getElementById('prices-list').style.display = 'none';
	}
	return(false);
}

function show(id)
{
	if(document.getElementById)
	{
		el = document.getElementById(id);
		if(el.style.display=='block') 
		{
			el.style.display = 'none';
			setCookie(id, 0, 0, '/');
		}
		else 
		{
			el.style.display = 'block';
			setCookie(id, 1, 0, '/');
		}
		return(false);
	}

	return(true);
}
