
$(document).ready(function() {
	 equalHeight($(".box_2")); equalHeight($(".box_2 .inner"));
	 equalHeight($(".box_3, .box_4")); equalHeight($(".box_3 .inner, .box_4 .inner"));
	 
	 $(".small_white").click(function() {   
		var y = $('.side_services_scroll').position().top;
		switch (y)
		{
			case 0: $('.side_services_scroll').animate({'top' : "-=243px"});break;
			case -243: $('.side_services_scroll').animate({'top' : "-=162px"});break;
			case -405: $('.side_services_scroll').animate({'top' : "+=405px"});break;
		}
		return false;
	});
});


function equalHeight(group) {
   tallest = 0;
   group.each(function() {
      thisHeight = $(this).height();
      if(thisHeight > tallest) {
         tallest = thisHeight;
      }
   });
   group.height(tallest);
}


