$(document).ready(function(){
//Masonry
	$("#wrap").masonry({
		singleMode: true
	});
//Infinite scroll
	$("#wrap").infinitescroll({
		navSelector  : '#olderNewer',    // selector for the paged navigation 
		nextSelector : '#olderNewer a.older',    // selector for the NEXT link (to page 2)
		itemSelector : '.articles',       // selector for all items you'll retrieve
		loadingImg : '/images/ajaxloader.gif',
		donetext  : 'No more pages to load.',
		debug: true,
		animate: false,
		errorCallback: function() { 
			// fade out the error message after 2 seconds
			$('#infscr-loading').animate({opacity: 0.8},2000).fadeOut('normal');     
		}
	},
		// call masonry as a callback
		function() { $("#wrap").masonry({ appendedContent: $(this) }); }
	);
	$('p.pastOrFuture.list').hide();
//Colorbox
	/*
$("#wrap li.articles a:has(img),#article a:has(img)").colorbox({
		rel:'image',
		current:"Image {current} of {total}",
		speed: 800
	});
	$("li.image a").colorbox();
*/
	
// Menu Hover
/*
	$('#nav li').not('#nav li.active').fadeTo("fast", 0.45);
	$('#nav li').hover(
		function() {
			$(this).fadeTo("slow", 1);
		},
		function() {
			$(this).fadeTo("slow", 0.45);
	});
	//$('#wrapper ul.catList li a').fadeTo(0, 0.35);
	$('#wrapper ul.catList').hover(
		function() {
			$(this).stop().animate({ paddingBottom: "20px" }, 300 );
		},
		function() {
			$(this).stop().animate({ paddingBottom: "0px" }, 300 );
		});
	$('#wrapper ul.catList li a').hover(
		function() {
			$(this).parent().siblings().stop().fadeTo("slow", 0.35);
		},
		function() {
			$(this).parent().siblings().stop().fadeTo("slow", 1);
	});
*/
});//doc.ready