function Toggle(elem,blockinline){
	if (document.getElementById(elem).style.display=="none"){
		if (blockinline=="inline"){
			document.getElementById(elem).style.display = "inline";
		} else {
			document.getElementById(elem).style.display = "block";
		}
	} else {
		document.getElementById(elem).style.display = "none";
	}
}
function Scroll(elem,increm){
	if (increm=="cima"){
		if (document.getElementById(elem).doScroll) document.getElementById(elem).doScroll("scrollbarUp");
		else document.getElementById(elem).scrollTop -= 10;
	} else {
		if (document.getElementById(elem).doScroll) document.getElementById(elem).doScroll("scrollbarDown");
		else document.getElementById(elem).scrollTop += 10;
	}
}
function Tela(){
	var tw = 0, th = 0;
	if( typeof( window.innerWidth ) == "number" ) { //Nao-IE
		tw = window.innerWidth;
		th = window.innerHeight;
	} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) { //IE 6+ no "standard mode"
		tw = document.documentElement.clientWidth;
		th = document.documentElement.clientHeight;
	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) { //IE 4+ ou compativeis
		tw = document.body.clientWidth;
		th = document.body.clientHeight;
	}
	return [tw,th];
}
function ReposTelaHome(){
	var telah = Tela()[1];
	var conth = telah - 171;
	//if (telah>600) var rodh = telah-52; else rodh = 548;
	document.getElementById("meiohome").style.height = String(conth)+"px";
	//document.getElementById("rodape").style.top = String(rodh)+"px";
}
function ReposTelaInt(){
	var telah = Tela()[1];
	var conth = telah - 441;
	if (navigator.userAgent.indexOf("MSIE 6") != -1){
		document.getElementById("menu").style.height = String(conth-16)+"px";
	} else {
		document.getElementById("menu").style.minHeight = String(conth)+"px";
	}
	//document.getElementById("rodape").style.top = String(rodh)+"px";
}
