﻿Type.registerNamespace("Res.Commerce.Web.Composants");
Res.Commerce.Web.Composants.Carrousel = function (element) {
    Res.Commerce.Web.Composants.Carrousel.initializeBase(this, [element]);

    this._nombreElements = null;
};

Res.Commerce.Web.Composants.Carrousel.prototype =
{
    initialize: function () {
        Res.Commerce.Web.Composants.Carrousel.callBaseMethod(this, "initialize");

        $('#' + this._element.id).jcarousel({ visible: this._nombreElements, scroll: this._nombreElements }); 

    },
    dispose: function () {
        Res.Commerce.Web.Composants.Carrousel.callBaseMethod(this, "dispose");
    },
    saveClientState: function () {
        return null;
    },
    get_NombreElements: function () {
        return this._nombreElements;
    },
    set_NombreElements: function (value) {
        this._nombreElements = value;
    }
};

Res.Commerce.Web.Composants.Carrousel.registerClass("Res.Commerce.Web.Composants.Carrousel", Res.Commerce.Web.Composants.ScriptControlBase);
if (typeof (Sys) !== "undefined") Sys.Application.notifyScriptLoaded(); 
