//preload das imagens de rollOver do menu
var aFiles = new Array("bt_home_on.gif", "bt_sobre_on.gif", "bt_card_on.gif", "bt_papo_on.gif", "bt_profis_on.gif", "bt_profis_on.gif", "bt_div_on.gif", "bt_sprof_on.gif", "bt_spais_on.gif", "bt_fale_on.gif");
var aImages = new Array();
var i;
for(i=0; i<aFiles.length; i++) {
	aImages[i] = new Image();
	aImages[i].src = "images/src/"+ aFiles[i];
}
//ajusta o tamanho total do site
function layoutAjust() {
	var hSite = 0;
	var hScreen = 0;
	var newContentHeight = 0;
	var ieDiff = 0;
	var contentHeight = 0;
	if (document.getElementById) {
		hSite += document.getElementById("sc-header").offsetHeight;
		hSite += document.getElementById("sc-menu").offsetHeight;
		hSite += document.getElementById("sc-body").offsetHeight;
		hSite += document.getElementById("sc-footer").offsetHeight;
		hScreen = document.documentElement.clientHeight;
		/*opera*/
		if ((navigator.appName.indexOf("Opera") > -1) || (hScreen == 0)) {
			hScreen = self.innerHeight;
		}
		if (hScreen >= hSite) {
			if ((navigator.appName.indexOf("Explorer") > -1) || (hScreen == 0)) {
				ieDiff = 0;
			}
			contentHeight = document.getElementById("sc-body").offsetHeight;
			newContentHeight = contentHeight + (hScreen - hSite) + ieDiff;
			document.getElementById("sc-body").style.height = newContentHeight + "px";
			document.getElementById("sc-columnleft").style.height = newContentHeight + "px";
			document.getElementById("sc-content").style.height = newContentHeight + "px";
		} else {
			if ((navigator.appName.indexOf("Explorer") > -1) || (hScreen == 0)) {
				ieDiff = 0;
			}
			contentHeight = document.getElementById("sc-body").offsetHeight;
			newContentHeight = contentHeight + ieDiff;
			document.getElementById("sc-columnleft").style.height = (newContentHeight + 20) + "px";
			document.getElementById("sc-content").style.height = newContentHeight + "px";
		}
	}
}
//redirect combo profissões
function getProfissao(){
	var lnk = "conteudo.asp?" + document.frm_profis.fld_profis.value;
	location.href = lnk;
}
//abre um pop-up
function openPopUp(url, wp, hp) {
	window.open(url, "_blank", "top=10, left=10, width="+ wp +", height="+ hp +", resizable=no, scrollbars=no, toolbar=no, location=no, directories=no, status=no, menubar=no");
}

