function slidePaveFocusMoveNext(){if(!spPaveFocus)return;var idx=spPaveFocus.getContentPanelIndex(spPaveFocus.currentPanel);var maxPanels=spPaveFocus.getContentPanels().length-4;if(maxPanels==idx)spPaveFocus.showFirstPanel();else spPaveFocus.showPanel((spPaveFocus.getContentPanelIndex(spPaveFocus.currentPanel)+4));}function slidePaveFocusMovePrevious(){if(!spPaveFocus)return;var idx=spPaveFocus.getContentPanelIndex(spPaveFocus.currentPanel);if(0==idx)spPaveFocus.showPanel((spPaveFocus.getContentPanelIndex(spPaveFocus.currentPanel)+8));else spPaveFocus.showPanel((spPaveFocus.getContentPanelIndex(spPaveFocus.currentPanel)-4));}function TabbedPanelsCycler(tpPaveFocus1){this.tpPaveFocus1=tpPaveFocus1;this.timerID=10;this.interval=6000;}TabbedPanelsCycler.prototype.start=function(){this.stop();var self=this;this.timerID=setTimeout(function(){self.next();},this.interval);};TabbedPanelsCycler.prototype.stop=function(){if(this.timerID)clearTimeout(this.timerID);this.timerID=0;};TabbedPanelsCycler.prototype.next=function(){var tpPaveFocus1=this.tpPaveFocus1;var curIndex=tpPaveFocus1.getCurrentTabIndex();tpPaveFocus1.showNextPanel();if(curIndex==3){spPaveFocus.showPanel(4);}else if(curIndex==7){spPaveFocus.showPanel(8);}else if(curIndex==11){spPaveFocus.showFirstPanel();}if(this.timerID)this.start();};
