
$(document).ready(function(){
	/* alignMenu(); */
	
	$(".box").hover(function() {
		$(".overlay", this).css({visibility: "visible"});
		$("img", this).css({opacity: 0.35}); },
	function() {
		$(".overlay", this).css({visibility: "hidden"});
		$("img", this).css({opacity: 1.0});
	});
	
	$("#navigation ul li.menu-item").hover(function() {
		$(".line-overlay", this).css({visibility: "visible"}); },
	function() {
		$(".line-overlay", this).css({visibility: "hidden"});
	});
    
    $("#navigation ul li.current-menu-item div.line-overlay").css({visibility: "visible"});
    
    $(".box").css({visibility: "visible"});
/* 	$(".box").animate({opacity: 1.0}, 3000); */
	
	/*
	$(".box").each(function(index) {
		var box_height = $("img", this).height();
		$(this).height(box_height);
    });
	*/
	
	/*
$('#masonry-container').masonry({
    	itemSelector : '.box',
    	fromBottom: 'true'
  	});
*/
});

window.onload = function() {
	/* alignMenu(); */
	
	$(".box").animate({opacity: 1.0}, 3000);
	
	$('#masonry-container').masonry({
    	itemSelector : '.box',
    	fromBottom: 'true'
  	});
};

$(window).load(function(){
	
});

/*
function alignMenu(){
	var menuWidth = 0;
	$("#navigation ul li").each(function() {
    	menuWidth += $(this).outerWidth(true);
    });
    $("#navigation ul div.menu-separator").each(function() {
    	menuWidth += $(this).outerWidth(true);
    });
	/*$("#logo").append(menuWidth);
    $("#navigation").width(menuWidth);
    $("#navigation").css("margin-left", -menuWidth/2);
    $("#navigation").css({visibility: "visible"});
};
*/

/*
$(function(){
	var $container = $('#masonry-container');
	$container.imagesLoaded( function(){
    	$container.masonry({
        	itemSelector : '.box',
        	fromBottom: 'true'
      	});
    });
});
*/

