
$(document).ready(function() {
	
	$('.bto-ficha').click(function(){
		if($('.ficha-tecnica').hasClass('ativo')){
			$('.ficha-tecnica').fadeOut(300).removeClass('ativo');
			$(this).removeClass('fecha').addClass('abre');
		}
		else{
			$('.ficha-tecnica').fadeIn(300).addClass('ativo');	
			$(this).removeClass('abre').addClass('fecha');
		}
	});
	
	
	$('.apagar-luz').click(function(){
		$('.escuro').height($(document).height()).width($(document).width()).show();
		$('.ascender-luz').show();
	});
	
	$('.escuro').click(function(){
		$('.escuro').hide();
		$('.ascender-luz').hide();
	});
	
	$('.ascender-luz').click(function(){
		$('.ascender-luz').hide();
		$('.escuro').hide();
	});
	
	
	

/*** botao veja mais portfolio  *****/
	/*
	$('#veja-mais').livequery("click", function(e){
		
		var next =  $(this).find('a').attr('id').replace('more_','');
		$('#load').html('carregando...');
		
		$.post("index.php?metodo=portfolio&ajax=1&show_more_post="+next, {

		}, function(response){
		
			//$('#bottomMoreButton').remove();
			$('#posting_portfolio').append($(response).fadeIn('slow'));
			$('#load').html('ver mais');
		});
	});	
	*/
	
	
});


