$(document).ready(function() {

$('#samples').isotope({ layoutMode : 'masonry' });

$(window).resize(function() {
	var mywidth = $(window).width();
	var myheight = $(window).height();
	$("#container-1").css("height", myheight, "width", mywidth);
});

$("#container-1").resize();


$(function () {
    $('#overlay').bind('click', function (event) {

        $('html, body').stop().animate({
            scrollTop: $("#container-2").offset().top
        }, 1500, 'easeInOutExpo');

        event.preventDefault();
    });
});


$('span.project-extra').hover(function(){
        $(this).stop().animate({opacity: 0});
	}, function(){
		$(this).stop().animate({opacity: 1});
});

$("a[href*='http://']:not([href*='"+location.hostname+"']),[href*='https://']:not([href*='"+location.hostname+"'])").attr("target","_blank");


$("#twitter").tweet({
	username: "devkick",
	refresh_interval: 200,
	count: 1,
	loading_text: "searching twitter..."
});





});








