﻿Type.registerNamespace("Res.Commerce.Web.Composants.FicheProduit.V01");
Res.Commerce.Web.Composants.FicheProduit.V01.DispoRollover = function (element) {
    Res.Commerce.Web.Composants.FicheProduit.V01.DispoRollover.initializeBase(this, [element]);
    this._elementToEnable = null;
};
Res.Commerce.Web.Composants.FicheProduit.V01.DispoRollover.prototype = {
    initialize: function () {
        Res.Commerce.Web.Composants.FicheProduit.V01.DispoRollover.callBaseMethod(this, "initialize");
        $('#' + this._elementToEnable).mouseenter(Function.createDelegate(this, this.mouseOver));
        $('#' + this._elementToEnable).mouseleave(Function.createDelegate(this, this.mouseOut));
    },
    mouseOver: function () {
        var div = this._element;
        div.style.display = 'block';
        div.style.zIndex = '19000';
    },
    mouseOut: function () {
        var div = this._element;
        div.style.display = 'none';
    },
    get_ElementToEnable: function () {
        return this._elementToEnable;
    },
    set_ElementToEnable: function (value) {
        this._elementToEnable = value;
    },
    saveClientState: function () {
        return null;
    }
};
Res.Commerce.Web.Composants.FicheProduit.V01.DispoRollover.registerClass("Res.Commerce.Web.Composants.FicheProduit.V01.DispoRollover", Res.Commerce.Web.Composants.ScriptControlBase);
if (typeof (Sys) !== "undefined") Sys.Application.notifyScriptLoaded(); 
