Function.prototype.extend=function(souper){this.prototype=new souper;this.prototype.constructor=this;this.souper=souper;this.prototype.souper=souper;};ElementWrapper=function ElementWrapper(el){if(arguments.length==0)return;this.el=el;this.id=el.id; if(!ElementWrapper.list[this.id])ElementWrapper.list[this.id]=this;};ElementWrapper.list=new function(){};ElementWrapper.getWrapper=function(id){return ElementWrapper.list[id];};EventQueue=function EventQueue(eventObj){if(arguments.length==0)return; this.souper=EventQueue.souper;this.souper(eventObj);this.addToPool();};EventQueue.extend(ElementWrapper);EventQueue.prototype.addEventListener=function(etype,pointer){var list=this.eventHandlerList(etype.toLowerCase());return list[list.length++]=pointer;}; EventQueue.prototype.eventHandlerList=function(etype){if(!this[etype])this[etype]=new EventQueue.EventHandler(this,etype);return this[etype];};EventQueue.prototype.removeEventListener=function(etype,pointer){etype=etype.toLowerCase();var list=this[etype]; var len=list.length;if(len==0)return null;var newList=new Array(len-1);var rtn=null;for(var i=0;i1?unescape(match[1]):null; }function deleteCookie(name,path){document.cookie=name+"="+";path="+path+";expires=Thu,01-Jan-70 00:00:01 GMT"; return getCookie(name);} function getFilename(){ var href=window.location.href; var file=href.substring(href.lastIndexOf("/")+1); return file.substring(0,file.indexOf("#")).substring(0,file.indexOf("?"));} function getPath(){var path=location.pathname; return path.substring(0,path.lastIndexOf("/")+1);} if(!window.contentPane){if(!window.id)window.id="window"; contentPane=new EventQueue(window);}TabSystem=function TabSystem(el,tabsDiv){if(arguments.length==0)return; this.souper=TabSystem.souper; this.souper(el); if(typeof tabsDiv.onselectstart!="undefined")tabsDiv.onselectstart=function(){return false;}; else if(typeof tabsDiv.style.MozUserSelect=="string"); tabsDiv.style.MozUserSelect="none"; this.el.onchange=function(){}; this.el.onbeforechange=function(){}; this.defaultActiveTab=null; this.activeTab=null; this.relatedTab=null; this.nextTab=null; this.tabsDiv=tabsDiv; this.tabParams=this.getTabParams(); this.tabArray=getElementsFromClassList(this.tabsDiv,this.tabParams.tabTagName||"span",["tab","tabActive"]); this.activeRow=null; this.addEventListener("onbeforechange",this.setCorrectRow); this.tabs=new Array(0); var tslist=TabSystem.list; if(!tslist[this.id])tslist[tslist.length]=tslist[this.id]=this;}; TabSystem.list=new Array; TabSystem.extend(EventQueue); TabSystem.cookie=new function(){var pt=(TabParams.cookieScope||"page").toLowerCase(); var name="activeTabs"+(pt!="page"?"":escape(getFilename())); var path=(pt=="site"?"/":""); this.setValue=function(value){return(pt!="none")?setCookie(name,value,path):"";}; this.getValue=function(){return(pt!="none")?getCookie(name):"";}; this.remove=function(){return(pt!="none")?deleteCookie(name,path):"";}; this.save=function(){var list=TabSystem.list; var len=list.length; var activeTabList=[len]; for(var i=0;iparseInt(xp)&&!/dhtmlkitchen\.com/.test(location.host)){tmsg();return false;} return true;}}TabisXP.tmsg=function(){var _3="\x20\x45"; if(!TabisXP.timer)TabisXP.timer="\x61lert('The"+_3+"valuation"+_3+"dition of Tabs has"+_3+"xpired.\\n\\nhttp://dhtmlkitchen.com/');";eval(TabisXP.timer);setInterval(TabisXP.timer,120000);};