var CheckBox = Class.create ({
	
	initialize: function (id) {
		this._id = $ (id);
		this._ul = this._id.childElements ();
	},

	_getNewState: function (o) {
		if (o.checked)
			return 1;
		return 0;
	},

	toggle: function (o) {
		var state = this._getNewState (o);
		for (var li in this._ul)
			if (this._ul[li] instanceof HTMLLIElement) {
				this._ul[li].down (0).checked = state;
			}
	}
});
