

function ot_open( tab, content )
{
	var t = document.getElementById( tab );
	var c = document.getElementById( content );
	var tabholder = t.parentNode;
	var contentholder = c.parentNode;
	
	for( i = 0; i < tabholder.childNodes.length; i++ )
		tabholder.childNodes[i].className = "ot_tab";
		
	for( i = 0; i < contentholder.childNodes.length; i++ )
		contentholder.childNodes[i].className = "ot_tab_content";
	
	t.className = "ot_tab_active";
	c.className = "ot_tab_content_active";	
}

function ot_big_open( tab, content )
{
	var t = document.getElementById( tab );
	var c = document.getElementById( content );
	var tabholder = t.parentNode;
	var contentholder = c.parentNode;
	
	for( i = 0; i < tabholder.childNodes.length; i++ )
		tabholder.childNodes[i].className = "ot_tab_big";
		
	for( i = 0; i < contentholder.childNodes.length; i++ )
		contentholder.childNodes[i].className = "ot_tab_big_content";
	
	t.className = "ot_tab_big_active";
	c.className = "ot_tab_big_content_active";	
	
	if ( tab == 'tab_pl') {
		var name = 'full_list_team';
		eval('document.getElementById('+ "'" + name + "'" +').style.display = "none"');
		name = 'full_list_player';
		eval('document.getElementById('+ "'" + name + "'" +').style.display = "block"');
	}
	if ( tab == 'tab_tm') {
		var name = 'full_list_player';
		eval('document.getElementById('+ "'" + name + "'" +').style.display = "none"');
		name = 'full_list_team';
		eval('document.getElementById('+ "'" + name + "'" +').style.display = "block"');
	}
}

function ot_open_obligue( tab, content )
{
	var t = document.getElementById( tab );
	var c = document.getElementById( content );
	var tabholder = t.parentNode;
	var contentholder = c.parentNode;
	
	for( i = 0; i < tabholder.childNodes.length; i++ )
		tabholder.childNodes[i].className = "ot_tab_obligue";
		
	for( i = 0; i < contentholder.childNodes.length; i++ )
		contentholder.childNodes[i].className = "ot_tab_content";
	
	t.className = "ot_tab_obligue_active";
	c.className = "ot_tab_content_active";	
}

function ot_open_small( tab, content )
{
	var t = document.getElementById( tab );
	var c = document.getElementById( content );
	var tabholder = t.parentNode;
	var contentholder = c.parentNode;
	
	for( i = 0; i < tabholder.childNodes.length; i++ )
		tabholder.childNodes[i].className = "ot_tab small";
		
	for( i = 0; i < contentholder.childNodes.length; i++ )
		contentholder.childNodes[i].className = "ot_tab_content";
	
	t.className = "ot_tab_active small";
	c.className = "ot_tab_content_active";	
}