var nc = (document.layers) ? true:false
var ie =  (document.all) ? true:false
var n6 = (document.getElementById) ? true:false

function muestracapa(id)
{
	if(ie)
	{
		document.all['azul_desplegado'].style.display="none";
		document.all[id].style.display="block";
	}
	else if(nc)
	{
		document.layers['azul_desplegado'].display = "none";
		document.layers[id].display = "block";
	}
	else if(n6)
	{
		document.getElementById('azul_desplegado').style.display="none";
		document.getElementById(id).style.display="block";
	}
}
function ocultacapa(id)
{
	if(ie)
	{
		document.all['azul_desplegado'].style.display="none";
		document.all[id].style.display="none";
	}
	else if(nc)
	{
		document.layers['azul_desplegado'].display = "none";
		document.layers[id].display = "none";
	}
	else if(n6)
	{
		document.getElementById('azul_desplegado').style.display="none";
		document.getElementById(id).style.display="none";
	}
}
function ocultarcapa(id)
{
	cerrar=1;
	clearTimeout();
	setTimeout("ocultacapa('azul_desplegado')",5000);
}
function cargar()
{
	if(ie)
	{
		document.all['azul_desplegado'].style.display="none";
	}
	else if(nc)
	{
		document.layers['azul_desplegado'].display = "none";
	}
	else if(n6)
	{
		document.getElementById('azul_desplegado').style.display="none";
	}
}


function flash(archivo, w, h, id)
{
	document.write ('<object id="' + id +'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="' +w + '" height="' + h + '">');
	document.write ('<param name="movie" value="');
	document.write (archivo);
	document.write ('">');
	document.write ('<param name="quality" value="high">');
	document.write ('<embed src="');
	document.write (archivo);
	document.write ('" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' +w + '" height="' + h + '"></embed>');
	document.write ('</object>');
}

function obrir(url, name, x, y, barras) {
    nombre = window.open(url, name, 'scrollbars=' + barras + ', resizable=no, width=' + x + ',height=' + y);
    return nombre;
}