$(document).ready(function() {
	// Stuff to do as soon as the DOM is ready;
	
	//window.location = "#welcome";
	
	$('ul.tech-used li acronym').hover(function() {
		$(this).addClass('black');
	}, function() {
		$(this).removeClass('black');
	});
	
	$('.nav ul li a').click(function () {	
		elementClick = $(this).attr("href")
		destination = $(elementClick).offset().top;
		$("html:not(:animated),body:not(:animated)").animate({ scrollTop: destination}, 1100 );
	  	return false;
	});
	
	$('a[rel="external"]').click( function() {
		window.open( $(this).attr('href') );
	    return false;
    });
    
    $('#open-all').click(function() {
    	$('a[rel="external"]').click();
    	return false;
    });

	$('.portfolio-item:odd').addClass("no-margin");
	
});