Spry.Widget.TabbedPanels.prototype.getTabGroup=function()
{if(this.element)
{var children=this.getElementChildren(this.element);if(children.length)
return children[this.tabsAtBottom?1:0];}
return null;};Spry.Widget.TabbedPanels.prototype.getContentPanelGroup=function()
{if(this.element)
{var children=this.getElementChildren(this.element);if(children.length)
return children[this.tabsAtBottom?0:1];}
return null;};Spry.Widget.TabbedPanels.prototype._onTabClick=Spry.Widget.TabbedPanels.prototype.onTabClick;Spry.Widget.TabbedPanels.prototype.onTabClick=function(e,tab)
{this.stop();return this._onTabClick(e,tab);};Spry.Widget.TabbedPanels.prototype.showPreviousPanel=function()
{var curIndex=this.getCurrentTabIndex();this.showPanel(((curIndex<1)?this.getTabbedPanelCount():curIndex)-1);};Spry.Widget.TabbedPanels.prototype.showNextPanel=function()
{this.showPanel((this.getCurrentTabIndex()+1)%this.getTabbedPanelCount());};Spry.Widget.TabbedPanels.prototype.showFirstPanel=function()
{this.showPanel(0);};Spry.Widget.TabbedPanels.prototype.showLastPanel=function()
{var count=this.getTabbedPanelCount();this.showPanel(count>0?count-1:0);};Spry.Widget.TabbedPanels.prototype.start=function()
{this.stop();var self=this;if(!this.interval)
this.interval=2000;this.timerID=setTimeout(function(){self.fadeInNextPanel();},this.interval);};Spry.Widget.TabbedPanels.prototype.stop=function()
{if(this.timerID)
clearTimeout(this.timerID);this.timerID=0;};Spry.Widget.TabbedPanels.prototype.fadeInNextPanel=function()
{if(!Spry.Effect||!Spry.Effect.DoFade)
{this.showNextPanel();if(this.timerID)
this.start();return;}
var curIndex=this.getCurrentTabIndex();var panels=this.getContentPanels();var currentPanel=panels[curIndex];var nextPanel=panels[(curIndex+1)%this.getTabbedPanelCount()];var self=this;Spry.Effect.DoFade(currentPanel,{duration:1000,from:100,to:0,toggle:false,finish:function()
{nextPanel.style.opacity='0';nextPanel.style.filter='alpha(opacity=0)';self.showPanel(nextPanel);currentPanel.style.opacity='';currentPanel.style.filter='';Spry.Effect.DoFade(nextPanel,{duration:1000,from:0,to:100,toggle:false,finish:function()
{if(self.timerID)
self.start();}});}});};