﻿var njs;
if (!njs) njs = {}

njs.Extend = function(sub, sup) {
    var proto = function() { }
    proto.prototype = sup.prototype;

    sub.prototype = new proto;
    sub.prototype.constructor = sub;
    sub.base = sup;
}
