/* Author: 

*/

$(function(){
	    
  var $wall = $('#demo');

  $wall.masonry({
    columnWidth: 10,
    itemSelector: '.box:visible'
  });

  $wall.infinitescroll({
    navSelector  : '#page_nav',  // selector for the paged navigation 
    nextSelector : '#page_nav a',  // selector for the NEXT link (to page 2)
    itemSelector : '.box',     // selector for all items you'll retrieve
    loadingImg : 'images/loader.gif',
    donetext  : 'No more pages to load.',
    
    debug: false,
    errorCallback: function() { 
      // fade out the error message after 2 seconds
      $('#infscr-loading').animate({opacity: .8},2000).fadeOut('normal');   
    }
  },
    // call masonry as a callback.
    function( newElements ) { $(this).masonry({ appendedContent: $(newElements) }); }
  );

});




jQuery(function($){
				
				
	$('.item').mosaic({
		animation	:	'slide',		//fade or slide
		speed : 150,
		 opacity : 1,
	});
	

});
		

		
