// JavaScript Document

function abreGda(){ // carrega o conteudo do html externo
	$("#portaGda").load("pop_gda.html").fadeIn();
};

function openPopup(sFile, sWindowName, iWidth, iHeight, bStatus, bScrollbars){
	iLeft = (screen.width - iWidth) / 2;
	iTop = (screen.height - iHeight) / 2;

	sFeatures  = 'width=' + iWidth;
	sFeatures += ',height=' + iHeight;
	sFeatures += ',top=' + iTop;
	sFeatures += ',left=' + iLeft;
	sFeatures += ',status=' + bStatus;
	sFeatures += ',scrollbars=' + bScrollbars;

	open( sFile, sWindowName, sFeatures );
}

$(document).ready(function(){
	$('#linkColapse').toggle(function(){
		$('#ingredientes').slideDown();
		$('#setaIngredientes').fadeOut();
		$('#linkColapse').css('text-decoration','none')
	}, function() {
		$('#ingredientes').slideUp();
		$('#setaIngredientes').fadeIn();
		$('#linkColapse').css('text-decoration','underline')
	});
	
	$("#portaGda a.fechar").live("click", function(){
		$("#portaGda").fadeOut();
		return false;
	});
	
	$('.textolegal').popupWindow({ 
		height:800, 
		width:500, 
		top:50, 
		left:50,
		scrollbars: 1,
		windowURL:'/wscadastrounico/Politica/wfPolitica.aspx?SgAreaSite=U29sbHlzTG92'
	});
	$('.flashOutHome').hide()
});	
	
function logoHome(){
	$('.flashOutHome').fadeIn()
}

function apagaIntervecao(){
	$('#intervHome').hide();
}