Happy Cog

$(document).on('click', '#nav a', function(){
	$.scrollTo(this.hash,2000,{easing:'easeOutQuint'});
	return false;
});
 
 
if($('body').hasClass('home')){
	var $filter = $('#nav');
	var $filterSpacer = $('<div />', {
		"class": "filter-drop-spacer",
		"height": $filter.outerHeight()
	});
 
 
	if ($filter.size())
	{
		$(window).scroll(function ()
		{     
			if (!$filter.hasClass('fix') && $(window).scrollTop() > $filter.offset().top)
			{
				$filter.before($filterSpacer);
				$filter.addClass("fix");
			}
			else if ($filter.hasClass('fix')  && $(window).scrollTop() < $filterSpacer.offset().top)
			{
				$filter.removeClass("fix");
				$filterSpacer.remove();
			}
		});
	}
}
 
 
(function() {
var transitionDuration = 250;
 
$(function(){
	$('.triggerable').hide();
	$('form .contact .contact-content').hide();
	$('form .contact').hide();
});
 
$(document