function tf_Tabs(tabPrefix, tabCount)
{
	this.tabPrefix = tabPrefix;
	this.tabCount = tabCount;
	
	this.showTab = function(tabObj, tabsContainer, tabNumber, classSelect, fn)
	{
		var objs = tabsContainer.childNodes;
		for(var len=objs.length, i=len-1; i>=0; i--)
		{
			if(objs[i] && objs[i].className)
			{
				if(tabObj != objs[i])
					objs[i].className = tf_PHP.str_replace(classSelect, ' ', objs[i].className);
				else
					tabObj.className = tabObj.className + ' ' + classSelect;
			}	
		}
		
		for(var i=1; i<=this.tabCount; i++)
			if(i != tabNumber)
				tf_DOM.$(this.tabPrefix + '_' + i).style.display = 'none';
		
		tf_DOM.$(this.tabPrefix + '_' + tabNumber).style.display = 'block';
		
		if(typeof fn == 'function')
			fn();
	}
};
