
$(document).ready(function(){
  
  	//Caption Sliding (Partially Hidden to Visible)
  	
	$('.project').hover(function(){
		console.log("over");
	    $(".caption", this).stop().animate({top:'200px'},{queue:false,duration:160});
	}, function() {
		console.log("off");
	    $(".caption", this).stop().animate({top:'316px'},{queue:false,duration:160});
	});
	
	console.log('blah');
	
	// Page Scroll
	
    $('a[href*=#]').click(function() {
    if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') 
        && location.hostname == this.hostname) {
            var $target = $(this.hash);
            $target = $target.length && $target || $('[name=' + this.hash.slice(1) +']');
            if ($target.length) {
            	var targetOffset = $target.offset().top - 60;
            	if( this.hash.slice(1) == 'link_top' ) targetOffset = 0;
                $('html,body').animate({scrollTop: targetOffset}, 300);
                return false;
            }
        }
    });

/*
	$.get('index.html', function(data) {
	    alert(data);
	});
*/

});


