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 - 438;
	if (conth > 180){
		var stringcont = String(conth)+"px";
		if (navigator.userAgent.indexOf("MSIE 6") != -1){
			document.getElementById("destaques").style.height = stringcont;
		} else {
			document.getElementById("destaques").style.minHeight = stringcont;
		}
	}
}
function ReposTelaInt(){
	var telah = Tela()[1];
	var conth = telah - 323;
	if (conth > 300){
		var stringcont = String(conth)+"px";
		if (navigator.userAgent.indexOf("MSIE 6") != -1){
			document.getElementById("conteudo").style.height = stringcont;
		} else {
			document.getElementById("conteudo").style.minHeight = stringcont;
		}
	}
}