$(document).ready(
	function () {
		$('a.closeEl').bind('click', toggleContent);
		$('.itemHeader').bind('click', toggleContents);
		$('#xpand a').bind('click', toggleContentss);		
	}
);
var voltar = function(){
	history.back(-1);
	setTimeout('toggleContentss()',2000);
	$('div#a3.groupItem').css("display","block");
};
var toggleContent = function(e)
{
	var targetContent = $('div.itemContent', this.parentNode.parentNode);	
	if (targetContent.css('display') == 'none') {
		targetContent.slideDown(300);
		$(this).html('[-]&nbsp;');
	} else {
		targetContent.slideUp(300);
		$(this).html('[+]');
	}
	return false;
};
var toggleContents = function(e)
{
	var targetContent = $('div.itemContent', this.parentNode);
		
	if (targetContent.css('display') == 'none') {
		targetContent.slideDown(300);
		//debugger;
		$(this.firstChild).html('[-]&nbsp;');
	} else {
		targetContent.slideUp(300);
		$(this.firstChild).html('[+]');
	}
	return false;
};
var toggleContentss = function(e)
{
	var targetContent = $('div.itemContent', this.parentNode.parentNode);	
	if (targetContent.css('display') == 'none') {
		//debugger;
		targetContent.slideDown(300);
		$('a.closeEl').html('[-]&nbsp;');
		$(this).html('Fechar todos');
	} else {
		targetContent.slideUp(300);
		$('a.closeEl').html('[+]');
		$(this).html('Abrir todos');
	}
	return false;
};