$(function () {
	
	var windowY = $(window).height();
	var firstProjectY = $('.article:first').offset().top + parseInt($('.article:first').css('padding-top'), 10);

	// Can't see first project
	if (firstProjectY >= windowY) {
		
		$('body').append('<div id="workbelow"><p>View some of our case studies</p></div>');
		
		var workbelowTimeout = setTimeout(function () {
			$('#workbelow').fadeIn(1000);
		}, 5000);
		
		$(document).scroll(function () {
			$('#workbelow').stop(true, false).fadeOut(500);
			clearTimeout(workbelowTimeout);
		})
	}

});
