ты увяз в jQuery
new List('#accordian', '.sled_a');
function List( el, a ){
this._items = $(el).find('.txtsutra');
var randIdx = Math.floor(Math.random()*this._items.length));
this.activate( randIdx );
$(a).click( this._onClick.of(this) );
}
List.prototype.activate = function( i ){
if( '_active' in this )
$(this._items[this._active]).hide('fast').removeClass('active');
this._active = i;
$(this._items[this._active]).show('fast').addClass('active');
}
List.prototype._onClick = function(){
var nextIdx = (this._active+1)%this._items.length;
this.activate( nextIdx );
}
Function.prototype.of = function( o ){
var f = this;
return function(){
return f.apply(o, arguments);
};
}