//------------------------------------
//	HOME.JS
//	Author: 	Christian Thomas
//				(Bluestone Design)
//------------------------------------

$(function(){

	var shWindowLoaded = false;
	
	$('.content').each(function(){

      var tallest = 0;
      var $t = $(this);
      var $s = $t.find('.column');
      var total = $s.length;
      var i = 0;
      
      if( !shWindowLoaded ){
      
        $(window).load(function(){
        
          shWindowLoaded = true;
        
          setNCheck();
        
        });
      
      }else{
      
        setNCheck();
      
      }
      
      function setNCheck(){
      
        $s.each(function(){
      
          var h = $(this).height();
          
          tallest = h > tallest ? h : tallest;
          
          i++;
          
          if( i == total ){

            $s.css({
              'min-height': tallest
            });
            
          }
        
        });
      
      }
		
	});

/* 	$('.content').sameHeights('.column'); */
	

});
