/* IE Cleartype fix*/
jQuery.fn.fadeIn = function(speed, callback) {
    return this.animate({opacity: 'show'}, speed, function() {
        if (jQuery.browser.msie) 
            this.style.removeAttribute('filter'); 
        if (jQuery.isFunction(callback))
            callback(); 
    });
};

jQuery.fn.fadeOut = function(speed, callback) {
    return this.animate({opacity: 'hide'}, speed, function() {
        if (jQuery.browser.msie) 
            this.style.removeAttribute('filter'); 
        if (jQuery.isFunction(callback))
            callback(); 
    });
};

jQuery.fn.fadeTo = function(speed,to,callback) {
    return this.animate({opacity: to}, speed, function() {
        if (to == 1 && jQuery.browser.msie) 
            this.style.removeAttribute('filter'); 
        if (jQuery.isFunction(callback))
            callback(); 
    });
};
(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/common/pixel.gif'); 
// ==================================
$(document).ready(function(){
  $('img[src$=.png]').not('.dontfixpng').ifixpng(); /*png fix, ie6*/
  if (jQuery.browser.msie && (jQuery.browser.version < 7)) {
   $('body').addClass('ie6');
  }
});
$(window).ready(function(){
  var maxheight = 0;
  $('div.equalcols').each(function(){
      if ($(this).height() > maxheight) {
        maxheight = $(this).height();
      }
    }).animate({'height': maxheight + 'px'}, 200);
});