$(document).ready(function(){
	
				$('.social li a').mouseenter(function (){$(this).stop(true, true).animate({backgroundColor: '#80B33E'}, 150);});
				$('.social li a').mouseleave(function (){$(this).stop(true, true).animate({backgroundColor: '#939393'}, 150);});

				$('ul.sub-hero-nav li a').mouseenter(function (){$(this).stop(true, true).animate({backgroundColor: '#73A339'}, 150);});
				$('ul.sub-hero-nav li a').mouseleave(function (){$(this).stop(true, true).animate({backgroundColor: '#3D4346'}, 150);});

	
	/*$('.work-shot').mouseenter(function(){
		$(this).animate({opacity:1},200);
	}).mouseleave(function(){
		$(this).animate({opacity:0.8},200);
	}).animate({opacity:0.8});*/

	$('.work-shot').mouseenter(function(){
		$(this).animate({opacity:0.3}, 150, function(){$(this).animate({opacity:1},200)});
	});

	
	
	$("#mn-nv li:last-child").css({'background': 'none'});
	$(".big-links li:last-child").css({'margin-right': '0'});
	$(".commentlist li:odd").addClass('alt');
	$(".commentlist li:last-child").css({'border': 'none'});
	$(".blog-nv li:last-child").css({'border': 'none'});
	$(".client-list li:nth-child(4n)").css({'border-right': 'none'});
	$(".our-work li:nth-child(3n)").css({'margin-right': '0'});
	$(".services-employed ul li:last-child").css({'background': 'none'});
	
	$("a[title=submit]").click( function(){
		$(this).parents("form").submit();
  	});
  	
	$('ul.nudge li a').hover(function() {
		$(this).stop().animate({ paddingLeft: '22px' }, 400);
	}, function() {
		$(this).stop().animate({ paddingLeft: '16px' }, 400);
	});
	
	// Main Nav
	$('#mn-nv li').hover(function() {
		$(this).find('span').stop(true, true).animate({backgroundColor: "#1D2428", color: "#FFFFFF"});
		$(this).children('ul').fadeIn();
	
	}, function() {
	
		if ($(this).is('.current')) {
			
			$(this).find('span').stop(true, true).animate({backgroundColor: "transparent", color: "#80B33E"});
			
		} else {
		
			$(this).find('span').stop(true, true).animate({backgroundColor: "transparent", color: "#2E3539"});
		}
		
		$(this).children('ul').fadeOut();
	});

	//Fix for Nivo controlls which don't bump down till first transition
	$('.nivo-controlNav a').css('top', '314px');

});

