$(document).ready(function() {
    $.localScroll({
    	hash: true,
    	margin: true,
    	duration: 800,
    	easing: 'swing'
    });
    
    $('a.fancybox').fancybox({
    	'title': $($(this).children()[0]).attr('alt'),
    	'titlePosition': 'inside',
    	'overlayColor': '#000',
    	'overlayOpacity': 0.7
    });
});


// Set equal height
function setEqualHeight(columns) {  
    var tallestcolumn = 0;  
    columns.each(  
    function() {
    	currentHeight = $(this).height();  
    	if(currentHeight > tallestcolumn) {
    		tallestcolumn  = currentHeight;  
    	}
    });
    columns.height(tallestcolumn + 10);
}

$(document).ready(function() {
	$(".container-3column-wrapper").each(function() {
		var this_id = $(this).attr("id");
		setEqualHeight($("#" + this_id + " > div"));
	});
});

// Check empty DIV

$(document).ready(function() {
	
	$(".container-3column-wrapper > div:empty").css('height', '0px');
	
	// $("div:empty").text("Was empty!").css('background', 'rgb(255,220,200)');

});


