(function () { 
    YAHOO.namespace('lb.timeline'); 
    
    var timeline = function(id, cfg) { 
    	timeline.superclass.constructor.call(this, id, cfg);
    	timeline.prototype.CONFIG.MAX_PAGER_BUTTONS = 13;
    }
    
    YAHOO.lang.extend(timeline, 
    				  YAHOO.widget.Carousel, 
    				  {
    				  }); 
    
    YAHOO.lb.timeline = timeline;
    
    var Event = YAHOO.util.Event, 
        Dom = YAHOO.util.Dom,
        Select = YAHOO.util.Selector; 
        
    Event.onDOMReady(function (e) { 
        var carousel = new YAHOO.lb.timeline('container',
                                                    {revealAmount:44, 
                                                     animation: {speed: .5}, 
                                                     numVisible: 2
                                   }); 
    
        carousel.on('render',function(e){
        	
        	Dom.setStyle('container','display', 'block');
        	$('.yui-carousel-nav').prepend("<h1>LeBow Timeline</h1>");
        	DD_belatedPNG.fix('.fixpng');
        })
        carousel.render();

      
        carousel.show(); 

    }); 

}())

