function hasSupport(){if(typeof hasSupport.support!="undefined"){return hasSupport.support}var a=/msie 5\.[56789]/i.test(navigator.userAgent);hasSupport.support=(typeof document.implementation!="undefined"&&document.implementation.hasFeature("html","1.0")||a);if(a){document._getElementsByTagName=document.getElementsByTagName;document.getElementsByTagName=function(b){if(b=="*"){return document.all}else{return document._getElementsByTagName(b)}}}return hasSupport.support}function WebFXTabPane(e,b){if(!hasSupport()||e==null){return}this.element=e;this.element.tabPane=this;this.pages=[];this.selectedIndex=null;this.useCookie=b!==null?b:true;this.element.className=this.classNameTag+" "+this.element.className;this.tabRow=document.createElement("div");this.tabRow.className="tab-row";e.insertBefore(this.tabRow,e.firstChild);var a=0;if(this.useCookie){a=Number(WebFXTabPane.getCookie("webfxtab_"+this.element.id));if(isNaN(a)){a=0}}this.selectedIndex=a;var d=e.childNodes;var f;for(var c=0;c=0;d--){b[d].dispose();b[d]=null}}if(typeof window.addEventListener!="undefined"){window.addEventListener("load",setupAllTabs,false)}else{if(typeof window.attachEvent!="undefined"){window.attachEvent("onload",setupAllTabs);window.attachEvent("onunload",disposeAllTabs)}else{if(window.onload!=null){var oldOnload=window.onload;window.onload=function(a){oldOnload(a);setupAllTabs()}}else{window.onload=setupAllTabs}}};