function onAfter(curr, next, opts, fwd) {
	//get the height of the current slide
	var $ht = $(this).height();
	//set the container's height to that of the current slide
	$(this).parent().css('height', $ht);
}

$.fn.calHeights = function(px) {
	$(this).each(function(){
		var currentTallest = 0;
		$(this).children().each(function(i){
			if ($(this).height() > currentTallest) { currentTallest = $(this).height(); }
		});
	});
	return currentTallest;
};


jQuery().ready(function(){
	/*
    $('div.slideshow').cycle({
        fx:     'fade',
        timeout: 4000
        //before: onAfter
      });
	*/
    //var $alt = $('div.slideshow').calHeights();
    //$('.img-admin').css('height', $alt);
	/* I DO IT TWICE TO BE SURE IT'S MASONED AFTER ALL FONTS ARE LOADED */
	window.setTimeout(do_masonry,2000);
	$(window).load(function() {
		do_masonry()
	});
	function do_masonry(){
	    $('#big-content-box').masonry({
	    	  columnWidth: 235,
	    	  itemSelector: '.content-box'
	    });
	};


});
