/* Author: Brad Waropay

*/

$(document).ready(function() {
	$(".header_nav").click(function() {
		$(".header_nav").removeClass("active");
		$(this).addClass("active");
	});
	$(".anchor_link").click(function(event){		
		event.preventDefault();
		$('html,body').animate({scrollTop:$(this.hash).offset().top}, 1000);
	});
	$("a.contact").toggle(
		function () {
 			$("header").animate({top: "-225px"}, {queue:false, duration: 1600, easing: 'easeOutBounce'})
                },
                function () {
			$("header").animate({top: "-500px"}, {queue:false, duration: 1200, easing: 'easeOutBounce'})
		}
	); 
});


















