jQuery(document).ready(function()
{
		if (jQuery("#mostVisitedPhotoblogs .content").height() < jQuery("#mostVisitedBlogs .content").height()) {
			jQuery("#mostVisitedPhotoblogs .content").height(jQuery("#mostVisitedBlogs .content").height());
		} else {
			jQuery("#mostVisitedBlogs .content").height(jQuery("#mostVisitedPhotoblogs .content").height());
		}
		
		if (jQuery("#lastUpdatedBlogs .content").height() < jQuery("#favouritesBlogs .content").height()) {
			jQuery("#lastUpdatedBlogs .content").height(jQuery("#favouritesBlogs .content").height());
		} else {
			jQuery("#favouritesBlogs .content").height(jQuery("#lastUpdatedBlogs .content").height());
		}
		
		jQuery("#lastAddedVideoBlogs object").attr("width", 220).attr("height", 160);
		jQuery("#lastAddedVideoBlogs embed").attr("width", 220).attr("height", 160);
		
		jQuery(".blogsBlock .content .element").each(function()
		{
			var blockImage = jQuery(this).children(".image").children("a").children("img");
			var blockImageWidth = blockImage.width();
			var blockImageHeight = blockImage.height();
			if(blockImageWidth <= blockImageHeight) {
				blockImage.attr("width", 100);
			} else {
				blockImage.attr("height", 100);
			}
		});
});
