//-------------------------------------------------------------
// FUNCIONES DE PESTAŅAS

function cambiar_clase(id, newClass)
{
	identity=document.getElementById(id);
	identity.className=newClass;
}

function cambiar_clase2(id, todos, newClass, oldClass)
{
	var capas = todos.split('#');
	for (var i = 0; i < capas.length; i++)
	{
		identity=document.getElementById(capas[i]);
		identity.className=oldClass;
	}
	identity=document.getElementById(id);
	identity.className=newClass;
}

function NewWindow(mypage, myname, w, h, scroller)
{
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroller+',resizable=0';
	win = window.open(mypage, myname, winprops);
	if (parseInt(navigator.appVersion) >= 4)
		win.window.focus();
}

function visibilidadTag(tag_seleccionado)
{
	if(document.getElementById(tag_seleccionado).style.display == "")
		document.getElementById(tag_seleccionado).style.display = "none";
	else
		document.getElementById(tag_seleccionado).style.display = "";
}

function visibilidadTag2(tag_seleccionado,todos)
{
	var capas = todos.split('#');
	for (var i = 0; i < capas.length; i++)
	{
		document.getElementById(capas[i]).style.display = "none";
	}	
	document.getElementById(tag_seleccionado).style.display = "";
}

