jQuery.fn.setMinHeight = function(setCount) {
  for(var i = 0; i < this.length; i+=2) {
    var curSet = this.slice(i, i+2), 
        height = 0;
    curSet.each(function() { height = Math.max(height, $(this).height()); })
          .css('min-height', height);
  }
  return this;
};


jQuery(document).ready(function(){

});

jQuery(window).load(function(){
	jQuery('.suppliers-grid').each(function(index) {
		jQuery(this).find('div.supplier').setMinHeight(2);
	});
	jQuery('.suppliers-grid').quickPager({pageSize: 4,usePrevNext: true});
	jQuery('.simplePagerNav li a').click(function() {
		jQuery.scrollTo('.simplePagerContainer',1000,{offset:-50})
	}); 
});
