
			$(function(){
				$('.portfolioImage').fadeTo('fast',0.7);
				$('#profilePhoto').fadeTo('fast',0.7);
				$('#phoneNumber').fadeTo('fast',0);
				$('#social div').mouseover(function(){
					$('div').clearQueue();
					$(this).animate({marginBottom: '3px', marginTop: '-3px'},'fast');
				});
				$('#social div').mouseout(function(){			
					$('div').clearQueue();					
					$(this).animate({marginBottom: '0px', marginTop: '0px'},'fast');
				});
				$('.portfolioImage').mouseover(function(){
					$('div').clearQueue();
					$(this).fadeTo('fast',1);
				});
				$('.portfolioImage').mouseout(function(){
					$('div').clearQueue();
					$(this).fadeTo('fast',0.7);
				});
				$('#about').mouseover(function(){
					$('img').clearQueue();
					$('#profilePhoto').fadeTo('fast',1);
				});
				$('#about').mouseout(function(){
					$('img').clearQueue();
					$('#profilePhoto').fadeTo('fast',0.7);
				});
				$('#sendForm').click(function(){
				  name    = $('#formName').val();
				  email   = $('#formEmail').val();
				  message = $('#formMessage').val();
				  var dataString = 'name='+ name + '&email=' + email + '&message=' + message;
				  if(name == '' || email == '' || message == '' || name == 'John Doe' || email == 'john@doenet.com' || message == 'What\'s on your mind?')
				  {
				  	$('#error').fadeIn();
				  }else{
				  $.ajax({
			    	type: "POST",
				    url: "_lib/email.php",
				    data: dataString,
				    success: function() {
				      $('#contactForm').fadeOut();
				      $('#success').delay(500).fadeIn();
				    }
				  });
				  }
				  return false;
				});
				$('#seePhone').mouseover(function(){
					$('#phoneNumber').animate({
    					opacity: 1,
   						marginLeft: '18px'
  					}, 700);
					$('div').clearQueue();
				});
				$('#seePhone').mouseout(function(){
					$('#phoneNumber').animate({
    					opacity: 0,
   						marginLeft: '-410px'
  					}, 700);
					$('div').clearQueue();
				});
			});

