





$(document).ready(function(){
  var images = $(".load img");
  images.parent().addClass("loading");
  images.hide();
//	var count = 2;
  $('.load img').imagesLoaded(function() {
   $(this).each(function() {
//   		$(this).delay(100 * Math.pow(++count,2)).fadeIn(400,function() {
   		$(this).fadeIn(400,function() {
				$(this).parent().removeClass("loading");
			});
	 });
  },true);
});



/*
var all_images=$(".wrapper_main").find("img");
all_images.hide();
all_images.each(function(){
    $(this).load(function(){
        $(this).fadeIn(500);
    });
}); 

// $('.load img').imagesLoaded(function() {

var images = $(".load").find("img");
  images.eq(0).hide();
  images.load(function() {
   $(this).eq(0).fadeIn(1,function() {
      var h = $(this).height();
 			$("body").prepend('<p>Image Height:'+ h +'</p>');
      $(this).parent("div.box").css("height",h);
 //     $(this).fadeIn(500);
    });
//});
});


$('.load img').load(function() {
															

 
 	});
 

 $('.load *').imagesLoaded(function() {

//alert($(this).filter('img').height());


	$("body").append('<p>Image Height:'+ $(this).height() +'</p>');
 
 	},2);



var images = $(".load").find("img");
  images.hide();
  images.bind("load",function() {
   $(this).eq(0).fadeIn(100,function() {
      var h = $(this).height();
 			$("body").prepend('<p>Image Height:'+ h +'</p>');
      $(this).parent("div.box").css("height",h);
			$(this).fadeIn(500);
    });
//});
	});
*/ 







