var MainNav = {
	init : function(){
		$('.-e-mainNavItem').each(function(){
			if($(this).data('section') != section)
			{
				$(this).find('.-s-hover').fadeOut(750);
			}			
		});
		MainNav.setListeners();
	},
	setListeners : function(){
		$('.-e-mainNavItem').each(function(){
			if($(this).data('section') != section)
			{
				$(this).hover(function(){
					$(this).find('.-s-hover').fadeIn(450);
				}, function(){
					$(this).find('.-s-hover').fadeOut(300);
				});
			}
		});
	}
}

var SocialMediaNav = {
	init : function(){
		$('.-e-socialMediaItem .-s-hover').fadeOut();
		SocialMediaNav.setListeners();
	},
	setListeners : function(){
		$('.-e-socialMediaItem').each(function(){
			$(this).hover(function(){
				$(this).find('.-s-hover').fadeIn();
			}, function(){
				$(this).find('.-s-hover').fadeOut();
			});
		});
	}
}

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-28107715-1']);
_gaq.push(['_trackPageview']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();


$(document).ready(function(){
	MainNav.init();
	SocialMediaNav.init();
});
