$(document).ready(function() {
	
$('.campo').focus(function(){$(this).toggleClass('campo_focus');});
$('.campo').blur(function(){$(this).toggleClass('campo_focus');});

$(".back").click(function(){history.go(-1);});

$("#formlogin").submit( function(){
	var email = $("#lemail").val();
	var senha = $("#lsenha").val();
	if (email ==  '' || senha ==  '' || email.length < 3 || senha.length < 6 ) {
		alert("Informe seu e-mail e senha corretamente!");
		return false;
	}	
});

$("#formnews").submit( function(){
	var email = $("#n_email").val();
	var nome  = $("#n_nome").val();
	if (email ==  '' || nome ==  '' || email.length < 3 || nome.length < 6 ) {
		alert("Informe seu nome e e-mail corretamente!");
		return false;
	}	
});

$('#activeNews').click(function(){
	$(this).hide();
	$('#icosbo').hide();
	$('#tplNewsBoxNews').show('slow');
	return false;	
});
$('#fmenos').click(function(){
	$('body').css('font-size', '10px');
});
$('#fnormal').click(function(){
	$('body').css('font-size', '11px');
});
$('#fmais').click(function(){
	$('body').css('font-size', '12px');
});

$('#carrousel').Carousel(
				{
					itemWidth: 300,
					itemHeight: 150,
					itemMinWidth: 130,
					items: 'a',
					reflections: 0.5,
					rotationSpeed: 1.8
				}
			);


});