// JavaScript Document
$(document).ready(function() {
//	alert("yo");					   
//$(".columns").equalHeights(100,300);
//alert("test");
$("#bloglisting").children().each(function(index) {
//	   if (index%2 == 0)
if (index == 0 || index ==1)
{
var thisheight = $(this).height();										   
var nextheight = $(this).next().height();
var nextnextheight = $(this).next().next().height();
//var $nextobject = $(this).next();
//var nextheight = $nextobject.height()
var thisID = $(this).attr("id");
var nextID = $(this).next().attr("id");
var nextnextID = $(this).next().next().attr("id");


var diff = 0;
if (thisheight > nextheight)
{
	diff = thisheight - nextheight;
	//alert("ID " + thisID + " height " + thisheight);
	//alert("ID " + nextID + " height " + nextheight);
	//alert("ID " + nextnextID + " height " + nextnextheight);

	
	}
else{
	diff = nextheight = thisheight;

    //alert("ID " + thisID + " height " + thisheight);
	//alert("ID " + nextID + " height " + nextheight);
	//alert("ID " + nextnextID + " height " + nextnextheight);

//	alert("First height " + thisheight +" id " + thisID +" diff" + diff);
  //  alert("Next height " + nextheight +" id " + nextID + " nextnext " + nextnextID);
//	alert(thisheight);
//	alert(nextheight);
//	alert("ID " + thisID + " height " + thisheight);
//	alert("ID " + nextID + " height " + nextheight);

}

}
/*

var thisID = $(this).attr("id");
var nextID = $(this).next().attr("id");
var nextnextID = $(this).next().next().attr("id");


if (index == 0) {
	alert("First height " + thisheight +" id " + thisID);
    alert("Next height " + nextheight +" id " + nextID + " nextnext " + nextnextID);
}

   */
});
	
	
});
