$(document).ready(function() {
						   
	var quesao = $('body').find('#letra-quesao');
	$.each(quesao, function(indice, valor) {
		$(valor).click(function() {
			$('.texto_pricipal_modelo').hide().load('conteudo_oquesao.html', function() {
				$(this).fadeIn();
			});
			$('.texto_pricipal_modelo').css({'overflow' : 'auto', 'margin-left' : '156px'});
		});
	});
	
	var historico = $('body').find('#letra-historico');
	$.each(historico, function(indice, valor) {
		$(valor).click(function() {
			$('.texto_pricipal_modelo').empty();
			$('.texto_pricipal_modelo').hide().load('conteudo_historico.html', function() {
				$(this).fadeIn();
			});
			$('.texto_pricipal_modelo').css({'overflow' : 'auto', 'margin-left' : '156px'});
		});
	});
	
	var csh = $('body').find('#letra-csh');
	$.each(csh, function(indice, valor) {
		$(valor).click(function() {
			$('.texto_pricipal_comites').hide().load('conteudo_csh.html', function() {
				$(this).fadeIn();
			});
			$('.texto_pricipal_comites').css({'overflow' : 'auto', 'margin-left' : '130px'});
		});
	});
	
	var ecosoc = $('body').find('#letra-ecosoc');
	$.each(ecosoc, function(indice, valor) {
		$(valor).click(function() {
			$('.texto_pricipal_comites').hide().load('conteudo_ecosoc.html', function() {
				$(this).fadeIn();
			});
			$('.texto_pricipal_comites').css({'overflow' : 'auto', 'margin-left' : '130px'});
		});
	});
	
	var lea = $('body').find('#letra-lea');
	$.each(lea, function(indice, valor) {
		$(valor).click(function() {
			$('.texto_pricipal_comites').hide().load('conteudo_lea.html', function() {
				$(this).fadeIn();
			});
			$('.texto_pricipal_comites').css({'overflow' : 'auto', 'margin-left' : '130px'});
		});
	});
	
	var pnuma = $('body').find('#letra-pnuma');
	$.each(pnuma, function(indice, valor) {
		$(valor).click(function() {
			$('.texto_pricipal_comites').hide().load('conteudo_pnuma.html', function() {
				$(this).fadeIn();
			});
			$('.texto_pricipal_comites').css({'overflow' : 'auto', 'margin-left' : '130px'});
		});
	});
	
	var tnp = $('body').find('#letra-tnp');
	$.each(tnp, function(indice, valor) {
		$(valor).click(function() {
			$('.texto_pricipal_comites').hide().load('conteudo_tnp.html', function() {
				$(this).fadeIn();
			});
			$('.texto_pricipal_comites').css({'overflow' : 'auto', 'margin-left' : '130px'});
		});
	});
	
	var unsc = $('body').find('#letra-unsc');
	$.each(unsc, function(indice, valor) {
		$(valor).click(function() {
			$('.texto_pricipal_comites').hide().load('conteudo_unsc.html', function() {
				$(this).fadeIn();
			});
			$('.texto_pricipal_comites').css({'overflow' : 'auto', 'margin-left' : '130px'});
		});
	});
	
	var acnurh = $('body').find('#letra-acnurh');
	$.each(acnurh, function(indice, valor) {
		$(valor).click(function() {
			$('.texto_pricipal_comites').hide().load('conteudo_acnurh.html', function() {
				$(this).fadeIn();
			});
			$('.texto_pricipal_comites').css({'overflow' : 'auto', 'margin-left' : '130px'});
		});
	});
	
	var ce = $('body').find('#letra-ce');
	$.each(ce, function(indice, valor) {
		$(valor).click(function() {
			$('.texto_pricipal_comites').hide().load('conteudo_ce.html', function() {
				$(this).fadeIn();
			});
			$('.texto_pricipal_comites').css({'overflow' : 'auto', 'margin-left' : '130px'});
		});
	});
	
	var ong = $('body').find('#letra-ong');
	$.each(ong, function(indice, valor) {
		$(valor).click(function() {
			$('.texto_pricipal_comites').hide().load('conteudo_ong.html', function() {
				$(this).fadeIn();
			});
			$('.texto_pricipal_comites').css({'overflow' : 'auto', 'margin-left' : '130px'});
		});
	});
	
	var cs = $('body').find('#letra-cs');
	$.each(cs, function(indice, valor) {
		$(valor).click(function() {
			$('.texto_pricipal_comites').hide().load('conteudo_cs.html', function() {
				$(this).fadeIn();
			});
			$('.texto_pricipal_comites').css({'overflow' : 'auto', 'margin-left' : '130px'});
		});
	});
	
	var cop = $('body').find('#letra-cop');
	$.each(cop, function(indice, valor) {
		$(valor).click(function() {
			$('.texto_pricipal_comites').hide().load('conteudo_cop15.html', function() {
				$(this).fadeIn();
			});
			$('.texto_pricipal_comites').css({'overflow' : 'auto', 'margin-left' : '130px'});
		});
	});
	
	var omc = $('body').find('#letra-omc');
	$.each(omc, function(indice, valor) {
		$(valor).click(function() {
			$('.texto_pricipal_comites').hide().load('conteudo_omc.html', function() {
				$(this).fadeIn();
			});
			$('.texto_pricipal_comites').css({'overflow' : 'auto', 'margin-left' : '130px'});
		});
	});
	
	var pnud = $('body').find('#letra-pnud');
	$.each(pnud, function(indice, valor) {
		$(valor).click(function() {
			$('.texto_pricipal_comites').hide().load('conteudo_pnud.html', function() {
				$(this).fadeIn();
			});
			$('.texto_pricipal_comites').css({'overflow' : 'auto', 'margin-left' : '130px'});
		});
	});
	
	var unesco = $('body').find('#letra-unesco');
	$.each(unesco, function(indice, valor) {
		$(valor).click(function() {
			$('.texto_pricipal_comites').hide().load('conteudo_unesco.html', function() {
				$(this).fadeIn();
			});
			$('.texto_pricipal_comites').css({'overflow' : 'auto', 'margin-left' : '130px'});
		});
	});
	
	var unhsc = $('body').find('#letra-unhsc');
	$.each(unhsc, function(indice, valor) {
		$(valor).click(function() {
			$('.texto_pricipal_comites').hide().load('conteudo_unhsc.html', function() {
				$(this).fadeIn();
			});
			$('.texto_pricipal_comites').css({'overflow' : 'auto', 'margin-left' : '130px'});
		});
	});
	
	var delegado = $('body').find('#letra-delegado');
	$.each(delegado, function(indice, valor) {
		$(valor).click(function() {
			$('.texto_pricipal_procedimento').hide().load('conteudo_delegado.html', function() {
				$(this).fadeIn();
			});
			$('.texto_pricipal_procedimento').css({'overflow' : 'auto', 'margin-left' : '190px'});
		});
	});
	
	var professor = $('body').find('#letra-professor');
	$.each(professor, function(indice, valor) {
		$(valor).click(function() {
			$('.texto_pricipal_procedimento').hide().load('conteudo_professor.html', function() {
				$(this).fadeIn();
			});
			$('.texto_pricipal_procedimento').css({'overflow' : 'auto', 'margin-left' : '190px'});
		});
	});
	
	var posicao = $('body').find('#letra-posicao');
	$.each(posicao, function(indice, valor) {
		$(valor).click(function() {
			$('.texto_pricipal_procedimento').hide().load('conteudo_posicao.html', function() {
				$(this).fadeIn();
			});
			$('.texto_pricipal_procedimento').css({'overflow' : 'auto', 'margin-left' : '190px'});
		});
	});
	
	var regras = $('body').find('#letra-regras');
	$.each(regras, function(indice, valor) {
		$(valor).click(function() {
			$('.texto_pricipal_procedimento').hide().load('conteudo_g_regras.html', function() {
				$(this).fadeIn();
			});
			$('.texto_pricipal_procedimento').css({'overflow' : 'auto', 'margin-left' : '190px'});
		});
	});
	
/*	var fazer = $('body').find('#f');
	//$.each(fazer, function(indice, valor) {
		$(fazer).click(function() {
			//alert(valor);
			$('.texto_pricipal_procedimento').empty();
			$('.texto_pricipal_procedimento').load('conteudo_fazer.html');
			$('.texto_pricipal_procedimento').css({'overflow' : 'auto', 'margin-left' : '190px'});
		});
	//});*/
	
	var inscricao = $('body').find('#letra-inscricao');
	$.each(inscricao, function(indice, valor) {
		$(valor).click(function() {
			$('.texto_pricipal_procedimento').hide().load('conteudo_inscricoes.html', function() {
				$(this).fadeIn();
			});
			$('.texto_pricipal_procedimento').css({'overflow' : 'auto', 'margin-left' : '190px'});
		});
	});
	
	var festas = $('body').find('#letra-festas');
	$.each(festas, function(indice, valor) {
		$(valor).click(function() {
			$('.texto_pricipal_atividade').hide().load('conteudo_festas.html', function() {
				$(this).fadeIn();
			});
			$('.texto_pricipal_atividade').css({'overflow' : 'auto', 'margin-left' : '165px'});
		});
	});
	
	var gincana = $('body').find('#letra-gincana');
	$.each(gincana, function(indice, valor) {
		$(valor).click(function() {
			$('.texto_pricipal_atividade').hide().load('conteudo_gincana.html', function() {
				$(this).fadeIn();
			});
			$('.texto_pricipal_atividade').css({'overflow' : 'auto', 'margin-left' : '165px'});
		});
	});
	
	var workshop = $('body').find('#letra-workshop');
	$.each(workshop, function(indice, valor) {
		$(valor).click(function() {
			$('.texto_pricipal_atividade').hide().load('conteudo_workshop.html', function() {
				$(this).fadeIn();
			});
			$('.texto_pricipal_atividade').css({'overflow' : 'auto', 'margin-left' : '165px'});
		});
	});
	
	var programacao = $('body').find('#letra-programacao');
	$.each(programacao, function(indice, valor) {
		$(valor).click(function() {
			$('.texto_pricipal_atividade').hide().load('conteudo_programacao.html', function() {
				$(this).fadeIn();
			});
			$('.texto_pricipal_atividade').css({'overflow' : 'auto', 'margin-left' : '165px'});
		});
	});
	
	var faqs = $('body').find('#letra-faqs');
	$.each(faqs, function(indice, valor) {
		$(valor).click(function() {
			$('.texto_pricipal_duvidas').hide().load('conteudo_faqs.html', function() {
				$(this).fadeIn();
			});
			$('.texto_pricipal_duvidas').css({'overflow' : 'auto', 'margin-left' : '190px'});
		});
	});
	
	var links = $('body').find('#letra-links');
	$.each(links, function(indice, valor) {
		$(valor).click(function() {
			$('.texto_pricipal_duvidas').hide().load('conteudo_links.html', function() {
				$(this).fadeIn();
			});
			$('.texto_pricipal_duvidas').css({'overflow' : 'auto', 'margin-left' : '190px'});
		});
	});
	
	var pucrio = $('body').find('#letra-pucrio');
	$.each(pucrio, function(indice, valor) {
		$(valor).click(function() {
			$('.texto_pricipal_local').hide().load('conteudo_pucrio.html', function() {
				$(this).fadeIn();
			});
			$('.texto_pricipal_local').css({'overflow' : 'auto', 'margin-left' : '150px'});
		});
	});
	
	var rj = $('body').find('#letra-rj');
	$.each(rj, function(indice, valor) {
		$(valor).click(function() {
			$('.texto_pricipal_local').hide().load('conteudo_rj.html', function() {
				$(this).fadeIn();
			});
			$('.texto_pricipal_local').css({'overflow' : 'auto', 'margin-left' : '150px'});
		});
	});
	
	var acomodacoes = $('body').find('#letra-acomodacoes');
	$.each(acomodacoes, function(indice, valor) {
		$(valor).click(function() {
			$('.texto_pricipal_local').hide().load('conteudo_acomodacoes.html', function() {
				$(this).fadeIn();
			});
			$('.texto_pricipal_local').css({'overflow' : 'auto', 'margin-left' : '150px'});
		});
	});
});

$(document).ready(function() {
	var enteratve = $('body').find('#letra-enteratve');
	$.each(enteratve, function(indice, valor) {
		$(valor).click(function() {
			$('.texto_pricipal_oquerolando').load('tw_fr.php');
			var refreshId = setInterval(function() {
				  $('.texto_pricipal_oquerolando').fadeOut().load('tw_fr.php', function() {
						$(this).fadeIn();
					});
			   }, 30000);
			$('.texto_pricipal_oquerolando').css({'overflow' : 'auto', 'margin-left' : '150px'});
		});
	});
});