﻿$(document).ready(function(){
	(function($){
		var verMais = 'url(wp-content/themes/AMPEB/images/verMaisMenos.png) no-repeat 0 0';
				
		if($('.postCont, .conteinerConv').children().is(':header')){
			$('.postCont, .conteinerConv').children().not(':header').hide(); // oculta todo conteudo dentro do elemento .postCont, menos os cabecalhos.
			$('.postCont h3, .conteinerConv h3')
			.css({background:verMais, cursor:'pointer'})
			.toggle(
				function(){
					$(this).css('backgroundPosition','0 110%').nextUntil(':header').slideDown('slow');		
				},
				function(){
					$(this).css('backgroundPosition','0 0').nextUntil(':header').slideUp('slow');
				}
			).css('paddingLeft', '7%');
		}
	}) (jQuery);
});



$(document).ready(function(){
	(function($){
		var verMais = 'url(wp-content/themes/AMPEB/images/verMaisMenos.png) no-repeat 0 0';

		if($('.TopicosInternos').children().is(':header')){
			$('.TopicosInternos').children().not(':header').hide(); // oculta todo conteudo dentro do elemento .postCont, menos os cabecalhos.
			$('.TopicosInternos h3')
			.css({background:verMais, cursor:'pointer'})
			.toggle(
				function(){
					$(this).css('backgroundPosition','0 110%').nextUntil(':header').slideDown('slow');
				},
				function(){
					$(this).css('backgroundPosition','0 0').nextUntil(':header').slideUp('slow');
				}
			).css('paddingLeft', '7%');
		}
	}) (jQuery);
});

