Core.module("compatibility");

(function(Core,jQuery){
  var ie6 = {
    check: function(){
      return jQuery.browser == 'msie' && jQuery.version == '6.0';
    },

    fix: function(){
      alert('hi');
      jQuery.each(['text','password','checkbox','button'],function(type){
        jQuery('[type='+type+']').addClass(type);
      });
    },

    run: function(){
      if(ie6.check()){
        ie6.fix();
      }
    }
  };

  Core.compatibility = function(){
    jQuery.each(Core.compatibilities,function(element,value){
      value.run();
    });
  };

  Core.compatibilities = {
    ie6: ie6
  };

})(Core,jQuery);
