/*
    Behaviours for the Index (Home) Page 
*/

Site.Pages.Index_Gold = Class.create
(
    Site.Page,
    {

        windowOnLoad: function($super, event)
        {
            $super(event);
                  
            // Additions for Home Page "Belt" (12 Jun 2008)

            var beltPanelWidth = $$('#belt-scroller-panel>div').inject(0, function(acc, el) { return acc + el.offsetWidth + 20 }) - 20;

            this.beltScroller = new Site.Widgets.Scroller
            (
                $('belt-scroller-container'),
                {
                    direction: "horizontal",
                    increment: 235,
                    method: "click",
                    scrollDuration: 0.3,
                    panelWidth: beltPanelWidth
                }
            );
            
        },
            
        destroy: function($super)
        {
            
            this.beltScroller.destroy();
         
            
            $super();
        }
        
       
        
        
    }
);