﻿/// <reference name="MicrosoftAjax.js"/>
Type.registerNamespace("TraderMagazine");

TraderMagazine.Products = function() {
    TraderMagazine.Products.initializeBase(this);
}
TraderMagazine.Products.prototype = {
    initialize: function() {
        TraderMagazine.Products.callBaseMethod(this, 'initialize');
        PURCHASE.Order.ProductCategory = 1;
        TradersMag.ShopService.ShopService.CreateProductsPage(this.insertContent, GLOBALS.callError);
    },
    /// <summary>
    /// initialize handlers for this page
    /// </summary>
    initHandler: function() {

    },
    /// <summary>
    /// get page
    /// </summary>
    init: function() {
     
        TradersMag.ShopService.ShopService.CreateProductsPage(this.insertContent, GLOBALS.callError);
    },

    /// <summary>
    /// insert content
    /// </summary>
    insertContent: function(html) {
        $get("Content").innerHTML = html;
        PURCHASE.initHandler();
    },
    dispose: function() {
        //Add custom dispose actions here
        TraderMagazine.Products.callBaseMethod(this, 'dispose');
    }
}
TraderMagazine.Products.registerClass('TraderMagazine.Products', Sys.Component);

if (typeof (Sys) !== 'undefined') Sys.Application.notifyScriptLoaded();
