// za odpiranje pop up oken //

var newwindow;
function pop(url,ime,drugo)
{
	newwindow=window.open(url,ime,drugo);
	if (window.focus) {newwindow.focus()}
}




// za skrivanje in prikazovanje layerjev na strani //

function ShowHide(id1) 
{
	var res = expMenu(id1);
	
}
function expMenu(id) 
{	
	var itm = null;
	if (document.getElementById) 
	{
		itm = document.getElementById(id);
	}
	else if (document.all)
	{
		itm = document.all[id];
	} 
	else if (document.layers)
	{
		itm = document.layers[id];
	}
	if (!itm) 
	{
		// do nothing
	}
	else if (itm.style) 
	{
		if (itm.style.display == "none")
		{ 
			itm.style.display = ""; 
			return 1;
		}
		else
		{
			itm.style.display = "none"; 
			return 2;
		}
	}
	else 
	{
		itm.visibility = "show"; 
		return 1;
	}
}
