﻿var njs;
if (!njs) njs = {};

njs.File = function(filePath) {
    this.Path = filePath;
}

///Creates new File with the Suffix specifed
///     'images/next.png' with the suffix 'Disabled' would become 'images/nextDisabled.png'
njs.File.prototype.WithSuffix = function(suffix) {
    var lastDotIndex = this.Path.lastIndexOf('.')
    return new njs.File(
        this.Path.substring(0, lastDotIndex) + suffix + '.' + 
        this.Path.substring(lastDotIndex + 1, this.Path.length));
}



