function LTextDisclosureManager ( )
{
    var obj = $L.object(this, new LManager('textDisclosure'));
    
    obj.toggle = function ( ) {
		for ( var i = 0; i < obj._selected.length; ++i ) {
		    var sel = obj._selected[i];
            obj._$toggleMoreBtn(sel);
            if (sel._state == 0) {
                obj._$showDescription(sel);
                obj._$hideEllipsis(sel);
                sel._state = 1;
            } else {
                obj._$hideDescription(sel);
                obj._$showEllipsis(sel);
                sel._state = 0;
            }
        }
    };
    
    obj._$hideEllipsis = function ( sel ) {
        $jq('#' + sel.id + '_ellipsis').fadeOut();
    };

    obj._$showEllipsis = function ( sel ) {
        $jq('#' + sel.id + '_ellipsis').fadeIn();
    };

    obj._$hideDescription = function ( sel ) {
        $jq('#' + sel.id + '_continued')
            .fadeOut('fast');
    };

    obj._$showDescription = function ( sel ) {
        $jq('#' + sel.id + '_continued')
            .css({ display: "inline", opacity: "0" })
            .animate({ opacity: "1" }, 300);
    };

    obj._$toggleMoreBtn = function ( sel ) {
        if (sel._state == 0) {
            $jq('#' + sel.id + '_continuedButtonMore').fadeOut('fast', function() {
                $jq('#' + sel.id + '_continuedButtonLess').fadeIn();
                });
        } else {
            $jq('#' + sel.id + '_continuedButtonLess').fadeOut('fast', function() {
                $jq('#' + sel.id + '_continuedButtonMore').fadeIn();
                });
        }
    };
    
    obj._checkDataBeforeAdd = function( dataStruct ) {
        dataStruct._state = 0;
		return dataStruct;
	};
	
	return obj;
}
$L.addManager('textDisclosureManager', new LTextDisclosureManager());