$(document).ready(function() {
	
	//page scrolling
	
	
	//background color change
	$("#um, .home").click(function(){
			$('html, body').animate({scrollTop: $("#container").offset().top}, 2000);
	});
	
	$("#dois, .conecte").click(function(){
			$('html, body').animate({scrollTop: $("#navConecte").offset().top}, 2000);
	});
	
	$("#tres, .servicos").click(function(){
			$('html, body').animate({scrollTop: $("#servicosSecao").offset().top}, 2000);
	});
	
	$("#quatro, .contato").click(function(){
			$('html, body').animate({scrollTop: $("#contatoSecao").offset().top}, 2000);
	});
	
		//image horizontal scrolling
	$('.boxgrid.slideright').hover(function(){
					$(".cover", this).stop().animate({left:'-300px'},{queue:false,duration:300});
				}, function() {
					$(".cover", this).stop().animate({left:'10px'},{queue:false,duration:300});
				});
				
	//pirobox
	$().piroBox({
			my_speed: 400, //animation speed
			bg_alpha: 0.1, //background opacity
			slideShow : true, // true == slideshow on, false == slideshow off
			slideSpeed : 4, //slideshow duration in seconds(3 to 6 Recommended)
			close_all : '.piro_close,.piro_overlay'// add class .piro_overlay(with comma)if you want overlay click close piroBox

	});
	
	//input and textarea rollover
	
	$("input").addClass("input-main");
					$("input").focus(function(){
						$(this).addClass("input-main-h").removeClass("input-main");
				}).blur(function(){
						$(this).removeClass("input-main-h").addClass("input-main");
	    	});
			
	$("li:last").addClass("forTA");
					$("textarea").focus(function(){
						$("li:last").addClass("forhTA").removeClass("forTA");
				}).blur(function(){
						$("li:last").removeClass("forhTA").addClass("forTA");
	    	}
	);
	
});
