﻿Type.registerNamespace("majax");

majax.MutexCheckBox = function() {
    majax.MutexCheckBox.initializeBase(this);
}

majax.MutexCheckBox.prototype = {

    initialize : function() {
        majax.MutexCheckBox.callBaseMethod(this, 'initialize');

        //  attach the plugin
        Sys.UI.Control.prototype.mutexCheckBox = this._mutexCheckBox;
    },


    dispose : function() {

        majax.MutexCheckBox.callBaseMethod(this, 'dispose');
    },

    _mutexCheckBox : function(key) {
        //  create the extender control for each of the checkboxes
        $create(AjaxControlToolkit.MutuallyExclusiveCheckBoxBehavior, {"Key":key}, null, null, this.get_element());
    }
}

//  register the class
majax.MutexCheckBox.registerClass('majax.MutexCheckBox', Sys.Component);

//  create the singleton
$create(majax.MutexCheckBox, null, null, null);

// Since this script is not loaded by System.Web.Handlers.ScriptResourceHandler
// invoke Sys.Application.notifyScriptLoaded to notify ScriptManager 
// that this is the end of the script.
if (typeof(Sys) !== 'undefined') Sys.Application.notifyScriptLoaded();