// JavaScript Document
function AjustarCapas()
{
	var anchoVentana = 0, altoVentana = 0;
	if( typeof( window.innerWidth ) == 'number' ) {
		//Non-IE
		anchoVentana = window.innerWidth;
		altoVentana = window.innerHeight;
	} 
	else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) 
	{
		//IE 6+ in 'standards compliant mode'
		anchoVentana = document.documentElement.clientWidth;
		altoVentana = document.documentElement.clientHeight;
	} 
	else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) 
	{
		//IE 4 compatible
		anchoVentana = document.body.clientWidth;
		altoVentana = document.body.clientHeight;
	}

	marcoCentral = document.getElementById("marco");

	marcoCentral.style.height = parseInt(altoVentana - 20) + "px";
	marcoCentral.style.width = parseInt(anchoVentana) + "px";

}

function AnimarLogo(opacidad)
{
	logotipo = document.getElementById("Logo");	
	menu1 = document.getElementById("Menu1");	
	menu2 = document.getElementById("Menu2");	
	
	opacidad++;
	if (opacidad < 100)
	{
		if (navigator.appName.indexOf("Netscape")!=-1&&parseInt(navigator.appVersion)>=5)
		{	
			logotipo.style.MozOpacity = opacidad/100;
			menu1.style.MozOpacity = opacidad/100;
			menu2.style.MozOpacity = opacidad/100;			
			setTimeout("AnimarLogo("+opacidad+")",30);
		}
		else if (navigator.appName.indexOf("Microsoft")!=-1&&parseInt(navigator.appVersion)>=4)
		{
			logotipo.filters.alpha.opacity = opacidad;
			setTimeout("AnimarLogo("+opacidad+")",10);
		}
	}
}

function md(e) 
{ 
  try { if (event.button==2||event.button==3) return false; }  
  catch (e) { if (e.which == 3) return false; } 
}

document.oncontextmenu = function() { return false; }
document.ondragstart   = function() { return false; }
document.onmousedown   = md;

AjustarCapas();

marcoCentral = document.getElementById("marco");

marcoCentral.style.visibility = "visible";
