public/javascripts/yui/treeview/treeview.js
function(type, el, callback) {
            if (YAHOO.widget[type]) {
                return new YAHOO.widget[type](el, callback);
            } else {
                return null;
            }
        }
function(type, el, callback) {
            if (YAHOO.widget[type]) {
                return new YAHOO.widget[type](el, callback);
            } else {
                return null;
            }
        }
function ( type , el , callback ) { if ( YAHOO . widget [ type ] ) { return new YAHOO . widget [ type ] ( el , callback ) ; } else { return null ; } }
Returns a ygAnim instance of the given type
@method getAnim
@param type {string} the type of animation
@param el {HTMLElement} the element to element (probably the children div)
@param callback {function} function to invoke when the animation is done.
@return {YAHOO.util.Animation} the animation instance
@static
Returns a ygAnim instance of the given type