function equalHeight(group) {
   tallest = 0;
   group.each(function() {
      thisHeight = $(this).height();
      if(thisHeight > tallest) {
         tallest = thisHeight;
      }
   });
   group.height(tallest);
}
$(document).ready(function() {
   equalHeight($(".sub-subcategories"));
    equalHeight($(".subcategories"));
	equalHeight($(".category_head"));
	equalHeight($(".sub-category_name"));

	/* vertical center image script starts here */
	 var parent_height = $('.the_image').parent().height();
            var image_height = $('.the_image').height();
            
            var top_margin = (parent_height - image_height)/2;
            
            //center it
            $('.the_image').css( 'margin-top' , top_margin);
			
			/* vertical center image script ends here */
});
