/*
	Simple tabs by Maciej Ludwiczak (admin@maciejludwiczak.pl)
*/

function switchTab(id)
    {
		var tab1 = document.getElementById('tab1');
		var tab2 = document.getElementById('tab2');
		var tab3 = document.getElementById('tab3');
		
		var switch1 = document.getElementById('switch1');
		var switch2 = document.getElementById('switch2');
		var switch3 = document.getElementById('switch3');
	
		if (id == 1)
		{
			tab1.style.display = 'block';
			switch1.className = 'activ';
			
			tab2.style.display = 'none';
			switch2.className = 'default';
			
			tab3.style.display = 'none';
			switch3.className = 'default';
		}
		
		if (id == 2)
		{
			tab1.style.display = 'none';
			switch1.className = 'default';
			
			tab2.style.display = 'block';
			switch2.className = 'activ';
			
			tab3.style.display = 'none';
			switch3.className = 'default';
		}
		
		if (id == 3)
		{
			tab1.style.display = 'none';
			switch1.className = 'default';
			
			tab2.style.display = 'none';
			switch2.className = 'default';
			
			tab3.style.display = 'block';
			switch3.className = 'activ';
		}
    }
