var Variant = function(id) {
    this.Id = id;
    this.Color = "";
    this.Price = "$0.00";
    this.ImageUrl = "";
    this.StockMessage = "";
    this.GalleryLink = "";
    this.AddToCartLink = "";
    this.ViewDetailsLink = "";
    this.Attributes = new Array();
}

var Product = function(id) {
    this.Id = id;
    this.Variations = new Array();
}

var Products = function() {
    this.Items = new Array();
}

Products.prototype = {

    Find: function(id)
    {
        for (i = 0; i < this.Items.length; i++)
            if (this.Items[i].Id == id) return this.Items[i];
    }

}