$(document).ready(function() {
	$('article').hover(function() {
		$div = $(this).children('div').children('div');
		$div.stop().animate({
			top: '100px'
		});
	}, function() {
		$div.stop().animate({
			top: '-40px'
		});
	});

	$('#aboutme ul li#resume a').click(function() {
		if($(this).attr('href') == '#') {
			visibleResume(false);
			return false;
		}
	});

	$('#aboutme ul li#resume ul').bind( "clickoutside", function(event){
		visibleResume(true);
	});

	function visibleResume(isOutside) {
		$this = $('#aboutme ul li#resume a').next('ul');
		if($this.is(':visible')) {
			$this.stop().fadeOut();
		} else {
			if(!isOutside) {
				$this.css('z-index', 10000);
				$this.stop().fadeIn();
			}
		}
	}
});

