/**
 * ImgAttrFluidlize 1.0 (2011/11/1)
 *
 * Use example (before </head> or </body> element) :
 * <script type="text/javascript">
 * $(function()){
 *  $("img[rel*=fluidimg]").imgattrfluidlize();
 * }
 * </script>
 */

(function(){
  var name_space = 'imgattrfluidlize';
  jQuery.fn[name_space] = function(options){

    // Merge to options
    var options = jQuery.extend({
      change: '100%',
    }, options);

    //var pattern = '[' + options.attr + '*=' + options.value+ ']';
    return this.each(function(){
      jQuery(this).removeAttr('height')
      jQuery(this).removeAttr('width')
      jQuery(this).css('width', options.change)
    });
  };

})(jQuery);

