/*======================================================================*\ || #################################################################### || || # vBulletin 3.8.7 Patch Level 3 || # ---------------------------------------------------------------- # || || # Copyright ©2000-2014 vBulletin Solutions, Inc. All Rights Reserved. || || # This file may not be redistributed in whole or significant part. # || || # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # || || # http://www.vbulletin.com | http://www.vbulletin.com/license.html # || || #################################################################### || \*======================================================================*/ var vB_TabCtrls=new Array();vBulletin.events.systemInit.subscribe(function(){if(vBulletin.elements.vB_TabCtrl){var B,A;for(B=0;BH){I++}else{YAHOO.util.Dom.setStyle(this.tabs[D],"display","none")}A=this.tabs[D].getAttribute("tab_id");if(A==this.selected_tab_id&&YAHOO.util.Dom.getStyle(this.tabs[D],"display")=="none"){console.info("vB_TabCtrl :: Moving selected tab... Found the selected tab: %d, %s",D,A);B=this.tabs[D];for(C=D;C>=0;C--){if(YAHOO.util.Dom.getStyle(this.tabs[C],"display")!="none"){console.log("vB_TabCtrl :: Replace tab %d (%s) with %d (%s)",C,this.tabs[C].getAttribute("tab_id"),D,A);E=this.tabs[C];G=this.tab_element.insertBefore(B.cloneNode(true),E);YAHOO.util.Event.removeListener(B,"click",this.click_tab,this,true);YAHOO.util.Event.removeListener(B.firstChild,"click",this.click_tab,this,true);B.parentNode.removeChild(B);YAHOO.util.Dom.setStyle(G,"display","block");this.init_tab(G,false);return this.resize()}}}}this.display_tab_count=I;J=new Array();for(D=this.display_tab_count;DI?"block":"none"));for(D=0;D