// 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);
}

//samo skrivanje drugih //
function ShowHide2(id1,id2) 
{
	var res = expMenu(id1);
	var res = expMenu2(id2);
}


//-skrij/prikaži
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;
	}
}




//-skrij drugega
function expMenu2(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.style) 
	{
		if (itm.style.display == "")
		{ 
			itm.style.display = "none"; 
			return 1;
		}

	}
}

