// JavaScript Document
function toogleToogle(theFuckingAmazing, startOpened) {	
	//mais info em minha conta - logr automaticamente
	$('#'+theFuckingAmazing+'-header').click(function(){ $('#'+theFuckingAmazing+'-content').slideToggle("slow"); });	
	
	//Switch the "Open" and "Close" state per click
	$('#'+theFuckingAmazing+'-header').toggle(function(){
			toogleClass($(this));
		}, function () {
			toogleClass($(this));
	});
	
	//Hide (Collapse) the toggle containers on load
	if (!startOpened) {
		$('#'+theFuckingAmazing+'-content').hide(); 
		$('#'+theFuckingAmazing+'-header').removeClass("aberto");
	}
	else {
		$('#'+theFuckingAmazing+'-content').show(); 
		$('#'+theFuckingAmazing+'-header').addClass("aberto");
	}
}
function toogleClass(theFuckingAmazing)	 {
	if($(theFuckingAmazing).is('.aberto')) {
		$(theFuckingAmazing).removeClass("aberto");
	}
	else {
		$(theFuckingAmazing).addClass("aberto");
	}
}