dding-top:3px;" '+(nss[13]?('" class="'+nss[13]+'"'):'')+'>'+text+'';
thml+='';
}
if (!nss[10]) tab.style.backgroundColor='transparent';
else tab.style.backgroundColor=nss[10];
break;
}
tab.innerHTML=thml;
//Netscape 7.1 fix
tab.style.padding="0px";
tab._lChild=tab.childNodes[tab.childNodes.length-1];
//#4DTabs:23052006{
if (this._vMode)
{
tab.style.height=parseInt(size||this._tabSize)+"px";
tab.style.width=this._height+1+"px";
}
else
//#}
{
tab.style.width=parseInt(size||this._tabSize)+"px";
tab.style.height=this._height+1+"px";
}
tab._offsetSize=parseInt(size||this._tabSize);
return tab;
}
dhtmlXTabBar.prototype.adjustTabSize=function(tab,size){
var nss=this._getTabStyle(tab.idd);
size=size||tab.scrollWidth+(this._TabCloseButton?50:20);
tab.style[this._vMode?"height":"width"]=size+"px";
tab.childNodes[2].style[this._vMode?"height":"width"]=size-nss[8]-nss[7]+"px";
tab._offsetSize=size;
}
/**
* @desc: reinitialize tabbar
* @type: public
* @topic: 0
*/
dhtmlXTabBar.prototype.clearAll = function(){
var z=this._conZone.style.backgroundColor;
this._content=new Array();
this.tabsId=new Array();
this.rows=new Array();
this._lastActive=null;
this._lastHower=null;
this.entBox.innerHTML="";
this._glframe=null;
this._createSelf(this._vMode);
this.setStyle(this._cstyle);
if (z) this._conZone.style.backgroundColor=z;
this.enableContentZone(this._eczF);
}
/**
* @desc: set path to image folder ( not affect already created element until their state changes )
* @param: path - path to image folder
* @type: public
* @topic: 0
*/
dhtmlXTabBar.prototype.setImagePath = function(path){
this._imgPath=path;
}
/**
* @desc: load tabbar from xml string
* @type: public
* @param: xmlString - XML string
* @param: afterCall - function which will be called after xml loading
* @topic: 0
*/
dhtmlXTabBar.prototype.loadXMLString=function(xmlString,afterCall){
this.XMLLoader=new dtmlXMLLoaderObject(this._parseXML,this,true,this.no_cashe);
this.XMLLoader.waitCall=afterCall||0;
this.XMLLoader.loadXMLString(xmlString);
};
/**
* @desc: load tabbar from xml file
* @type: public
* @param: file - link too XML file
* @param: afterCall - function which will be called after xml loading
* @topic: 0
*/
dhtmlXTabBar.prototype.loadXML=function(file,afterCall){
this.XMLLoader=new dtmlXMLLoaderObject(this._parseXML,this,true,this.no_cashe);
this.XMLLoader.waitCall=afterCall||0;
this.XMLLoader.loadXML(file);
}
dhtmlXTabBar.prototype._getXMLContent=function(node){
var text="";
for (var i=0; i