/**
    Add date: 18-06-2009
*/
window.addEvent('domready', function() {
    if ($defined($('cooperative-slide'))) {
        var boxTopSeller = new noobSlide({
        box: $('cooperative-slide'),
            items: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19],
            size: 138,
            autoPlay: true,
            onWalk: function(currentItem, currentHandle) {
                if (this.currentIndex > 10) {
                    this.fx.cancel();
                    this.box.setStyle('left', '0px');
                    this.currentIndex = 0;
                    this.nextIndex = 1;
                    return;
                }
            }
        });

        $('cooperative-slide').addEvents({
            'mouseover': boxTopSeller.stop.bind(boxTopSeller),
            'mouseout': function() {
                boxTopSeller.play(boxTopSeller.interval, 'next', true);
            }
        });
    }
}); 
