// JavaScript Document
function ajusta_pantalla(idcapa)
{
	var myWidth = 0, myHeight = 0;
	if( typeof( window.innerWidth ) == 'number' ) {
	//Non-IE
	myWidth = window.innerWidth;
	myHeight = window.innerHeight;
	} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
	//IE 6+ in 'standards compliant mode'
	myWidth = document.documentElement.clientWidth;
	myHeight = document.documentElement.clientHeight;
	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
	//IE 4 compatible
	myWidth = document.body.clientWidth;
	myHeight = document.body.clientHeight;
	}
	document.getElementById(idcapa).style.width=myWidth+"px";
	document.getElementById(idcapa).style.height=myHeight+"px";
	document.getElementById('capa_principal').style.height=(myHeight-140)+"px";
	if(document.getElementById('secciones'))
	{
		document.getElementById('secciones').style.width=(myWidth-190)+"px";
		var regla=(navigator.appName.indexOf("Microsoft")!=-1)?document.styleSheets[0].rules:document.styleSheets[0].cssRules;
		regla[1].style.width=((myWidth-200)/3)+"px";
		regla[2].style.width=((myWidth-200))+"px";
		regla[3].style.width=((myWidth-200)/2)+"px";
	}
}
function menu_in(obj)
{
	obj.style.paddingLeft=15+"px";
}

function menu_out(obj)
{
	obj.style.paddingLeft=0+"px";
}


