jQuery(document).ready(function() {

	// Scroll to top
	$('.top').click(function() {
		$('html, body').animate({ scrollTop: 0 }, 'slow');
	});
	
	// Hover-effect on logo
	$('a.logo').hover(
		function() {
			$(this).animate({ top: "-=5px"}, 300, 'swing' );
		}, function() {
			$(this).animate({ top: "+=5px"}, 300, 'swing' );
	});
	$('.project_thumbnail').hover(function() {
		$(this).animate({top: '-=8px'});
	}, function() {
		$(this).animate({top: '+=8px'});
	});
	
	// Show Twitter-feed on homepage
    $('#twitter_josidaelemans').tweet({
		username: "josidaelemans",	// Twitter-accountname
		join_text: null,
		avatar_size: null,
		count: 4,
		loading_text: "loading tweets...",
		refresh_interval: 20000
	});
    $('#twitter_birdseyedesign').tweet({
		username: "birdseyedesign",	// Twitter-accountname
		join_text: null,
		avatar_size: null,
		count: 4,
		loading_text: "loading tweets...",
		refresh_interval: 20000
	});
	
	// Cleaning op the small details
	$('.skills li:last-child span').css('display', 'none');
	
	// Changing input fields on focus and blur
	$('input[type="text"]').focus(function() {
		this.select();
    });
    
    // Reordering the grid structure on project overview page
    $('.overview_itm:nth-child(even)').addClass('last');
    
}); // End jQuery
