function action_click(id)
{
	window.location = "index.php?strona=article&id=" + id;
}

function highlight(element, action)
{
	if ((' '+element.className+' ').indexOf("menubutton") != -1)
	{
		if(action)
		{
			element.style.color = "#0033AB";
		}
		else
		{
			element.style.color = "#000000";
		}
	}
	else if ((' '+element.className+' ').indexOf("navibutton") != -1)
	{
		if(action)
		{
			element.style.color = "#0055DD";
		}
		else
		{
			if(element.className == "navibutton")
				element.style.color = "#000000";
			else
				element.style.color = "#0033AB";
		}
	}
	else if ((' '+element.className+' ').indexOf("navibarbutton") != -1)
	{
		if(action)
		{
			element.style.color = "#0033AB";
		}
		else
		{
			element.style.color = "#000000";
		}
	}
}

function colhandler()
{
	var navi_col = document.getElementById("navi_column");
	var navi_bar = document.getElementById("navibar");
	var content_col = document.getElementById("content_column");
	var content_cell = document.getElementById("content_cell");

	if(navi_col.innerHTML == "")
	{
		navi_col.style.display = "none";
		content_cell.style.width = "790px";
		content_col.style.border = "0";
		content_cell.style.border = "0";
	}
	else
	{
		navi_col.style.width = "120px";
		content_col.style.width = "650px";
		content_cell.style.width = "650px";

		if(navi_col.offsetHeight > content_col.offsetHeight) content_col.style.height = navi_col.offsetHeight.toString() + 'px';
	}

	if(navi_bar.innerHTML == "")
	{
		navi_bar.style.display = "none";
		content_cell.style.border = "0";
	}
	else
	{
		navi_bar.style.height = "20px";
		navi_bar.style.width = "650px";
	}
}