/* Header link animations */

$(document).ready(function() {
	
	var Yellow = '#EBB312';
	var DarkGrey = '#141616';
	var DarkGreyText = '#7D756C';
	var MidGrey = '#1E2224';
	var LightGrey = '#59544E';
	var LightGreyText = '#B6B1AB';
	var LightMidGrey = '#2A2E32';
	
	
	$('#header_nav a:not(#header_nav li.on a)').hover(function() {
		$(this).stop().animate({color: Yellow},200);
	},function() {
		$(this).stop().animate({color: DarkGreyText},200);
	});
	
	$('#header_nav li.on a').hover(function() {
		$(this).stop().animate({color: Yellow},200);
	},function() {
		$(this).stop().animate({color: LightGreyText},200);
	});
	
	$('#footer a').hover(function() {
		$(this).stop().animate({color: Yellow},200);
	},function() {
		$(this).stop().animate({color: DarkGreyText},200);
	});
	
	$('.news1 a, .news a').hover(function() {
		$(this).stop().animate({color: Yellow},200);
	},function() {
		$(this).stop().animate({color: LightGreyText},200);
	});
	
	$('.sub_nav a:not(.sub_nav li.on a):not(.sub_nav li.last_on a)').hover(function() {
		$(this).stop().animate({color: Yellow},200);
	},function() {
		$(this).stop().animate({color: DarkGreyText},200);
	});
	
	$('.sub_nav li.on a').hover(function() {
		$(this).stop().animate({color: Yellow},200);
	},function() {
		$(this).stop().animate({color: DarkGreyText},200);
	});
	
	$('.sub_nav li.last_on a').hover(function() {
		$(this).stop().animate({color: Yellow},200);
	},function() {
		$(this).stop().animate({color: DarkGreyText},200);
	});
	
	$('#main_menu ul a').hover(function() {
		$(this).stop().animate({color: Yellow},200);
	},function() {
		$(this).stop().animate({color: LightGreyText},200);
	});
	
	$('.press_link').hover(function() {
		$(this).stop().animate({color: MidGrey, backgroundColor: Yellow},200);
	},function() {
		$(this).stop().animate({color: LightGreyText, backgroundColor: LightMidGrey},200);
	});
	
	$('#nm_list li a').hover(function() {
		$(this).stop().animate({color: MidGrey, backgroundColor: Yellow},200);
	},function() {
		if($(this).parent().attr('class') == 'on') {
			$(this).stop().animate({color: MidGrey, backgroundColor: LightGreyText},200);
		} else {
			$(this).stop().animate({color: LightGreyText, backgroundColor: LightMidGrey},200);
		}
	});
	
	$('#proj_vid div.close a').hover(function() {
		$(this).stop().animate({color: Yellow},200);
	},function() {
		$(this).stop().animate({color: LightGreyText},200);
	});
	
	$('div.body p a:not(.press_link)').hover(function() {
		$(this).stop().animate({color: Yellow},200);
	},function() {
		$(this).stop().animate({color: LightGreyText},200);
	});
	
});
