$(document).ready(function(){
																											
	//H1 hover effects
	$("header h1 a").hover(function() {
		$(this).animate({color:'#E95252'},500);
	}, function() {
		$(this).animate({color:'#000'},500);
	});
	
	//Nav hover effects
	$("nav a.selected").hover(function() {
		$(this).animate({color:'#E95252'},500);
	}, function() {
		$(this).animate({color:'#000'},500);
	});
	
	$("nav a.unselected").hover(function() {
		$(this).animate({color:'#E95252'},500);
	}, function() {
		$(this).animate({color:'#000'},500);
	});
	
	//Work hover effects
	$("#work article ul li a").hover(function() {
		var currentHref = $(this).attr('href');
		$("#work article ul li a").each(function(){
			if ($(this).attr('href') != currentHref){				
				$(this).stop().animate({  
				opacity: 0.5  
				},500); 
			};
		});
	}, function() {
		$("#work article ul li a").animate({opacity:1},500);
	});
	
	//Tooltips
	$('footer ul li a').qtip({
		style:{
			border:{
				radius:4,
				width:0
			},
			tip:{
				corner:'bottomMiddle',
				size:{
					y:6
				}
			},
			name:'light',
			'text-align':'center',
			'font-size':'0.75em',
			'line-height':'1.25em'
			},
		position:{
			corner: {
				target:'topMiddle',
				tooltip:'bottomMiddle'
			}
		}
	});
		
});
