function TabsNavigation()
{
	this.groupId    = 0;
	this.tabsCount = 0;
	this.preficsCss = '';
	this.initTabs = function(groupId,tabsCount,prefixCss)
	{
		this.groupId    = groupId;
		this.tabsCount = tabsCount;
	
		document.getElementById('tabHead'+this.groupId+'_0').className = 'tabHeadActive'+this.preficsCss;
		document.getElementById('tabContainer'+this.groupId+'_0').className = 'tabContainerActive';
		for(var i=1;i<this.tabsCount;i++)
		{
			document.getElementById('tabHead'+this.groupId+'_'+i).className = 'tabHeadInactive'+this.preficsCss;
			document.getElementById('tabContainer'+this.groupId+'_'+i).className = 'tabContainerInactive';
		}
	}
	
	this.switchTab = function(n)
	{
		for(var i=0;i<this.tabsCount;i++)
		{
			if(i==n)
			{
				document.getElementById('tabHead'+this.groupId+'_'+i).className = 'tabHeadActive'+this.preficsCss;
				document.getElementById('tabContainer'+this.groupId+'_'+i).className = 'tabContainerActive';
				continue;
			}
			document.getElementById('tabHead'+this.groupId+'_'+i).className = 'tabHeadInactive'+this.preficsCss;
			document.getElementById('tabContainer'+this.groupId+'_'+i).className = 'tabContainerInactive';
		}
	}
}