﻿jQuery.fn.addMethod = function(name,fn) {
    this.each( function(i) {
        this[name] = fn;
    });
    return this;
}

