
//equal height box plugin
(function($) { 
$.fn.equalHeight = function(options) {
  var opts = $.extend({}, $.fn.equalHeight.defaults, options);
  var maxHeight = opts.minHeight; 
  this.each(function(){
    var minHeight = $(this).css('min-height');
    maxHeight = (minHeight.match(/px/) && parseInt(minHeight) > maxHeight) ? parseInt(minHeight) : maxHeight;
    maxHeight = $(this).height() > maxHeight ? $(this).height() : maxHeight;
  });   
  return this.each(
  function(){ 
  $(this).height(maxHeight + 'px'); }); };
  $.fn.equalHeight.defaults = {
    minHeight: 0
  };
})(jQuery);

$.ifixpng('/images/pixel.gif');

$(document).ready(function() {
  if (jQuery.browser.msie && (jQuery.browser.version < 7)) {
   $('body').addClass('ie6');
  }
  $('.boxes .box').equalHeight();
  $('img[src$=.png]').not('dontfix').ifixpng();
  if ($('body.ie6').length) {
    $('#splash div.welcome').clone().removeClass('welcome').addClass('welcomeFix').appendTo('#splash');
    $('#splash div.quote').clone().removeClass('quote').addClass('quoteFix').appendTo('#splash');
    $('#splash div.welcome, div.quote').empty().ifixpng();
  }
});
