/**
* Função: showMenuEmpresa()
* Valores de entrada: idMenuVoce | identificador da aba de menu "Para Você"
*  			       idMenuEmpresa | idenficador da aba de menu "Para sua Empresa"
* Valor de retorno: ---
*/
function showMenuEmpresa(idMenuVoce, idMenuEmpresa){

	document.getElementById('menu_ativo').className = 'contemfloat menu_lateral empresa';
	document.getElementById(idMenuVoce).style.display = 'none';
	document.getElementById(idMenuEmpresa).style.display = '';

}

function showMenuProdutosEmpresa(idMenuVoce, idMenuEmpresa){

	document.getElementById('menu_ativo').className = 'contemfloat empresa voce ativo';
	document.getElementById(idMenuVoce).style.display = 'none';
	document.getElementById(idMenuEmpresa).style.display = '';

}

/**
* Função: showMenuVoce()
* Valores de entrada: idMenuVoce | identificador da aba de menu "Para Você"
*  			    idMenuEmpresa | idenficador da aba de menu "Para sua Empresa"
* Valor de retorno: ---
*/
function showMenuVoce(idMenuVoce, idMenuEmpresa){

	document.getElementById('menu_ativo').className = 'contemfloat menu_lateral voce';
	document.getElementById(idMenuVoce).style.display = '';
	document.getElementById(idMenuEmpresa).style.display = 'none';

}

function showMenuProdutosVoce(idMenuVoce, idMenuEmpresa){

	document.getElementById('menu_ativo').className = 'contemfloat voce ativo';
	document.getElementById(idMenuVoce).style.display = '';
	document.getElementById(idMenuEmpresa).style.display = 'none';

}

function getDocHeight(doc) {
  var docHt = 0;
  if (doc.height) docHt = doc.height;
  else if (doc.body) {
		if (doc.body.scrollHeight) docHt = doc.body.scrollHeight;
  }
  return docHt;
}
function setIframeHeight() {
	var iframeName = "framecentral"; 
	var iframeWin = window.frames[iframeName];
	var iframeEl = document.getElementById? document.getElementById(iframeName): document.all? document.all[iframeName]: null;
	if ( iframeEl && iframeWin ) {
		//iframeEl.style.height = "auto";// helps resize (for some) if new doc shorter than previous  
		var docHt = getDocHeight(iframeWin.document);
		// need to add to height to be sure it will all show
		if(docHt < 352){docHt=322;}
		if (docHt){ iframeEl.style.height = docHt + 30 + "px";}
	}
}