function EmptyFunc() {  }

function ToggleTab(tab)
{
	var CommentDiv   = document.getElementById("CommentContainer");
	var TrackbackDiv = document.getElementById("TrackbackContainer");

	if (tab == 0)
	{
		CommentDiv.style.display   = 'block';
		TrackbackDiv.style.display = 'none';

		ActivateTab0();

		if (CommentDiv.innerHTML == '')
		{
			CommentDiv.innerHTML = "You have to wait before you can post any more comments.".fontcolor('red');
		}
	}
	
	if (tab == 1)
	{
		CommentDiv.style.display   = 'none';
		TrackbackDiv.style.display = 'block';

		ActivateTab1();

	}
}

function ActivateTab0()
{
		obj0 = document.getElementById('tab0');
		obj1 = document.getElementById('tab1');
		obj01 = document.getElementById('tab01');
		obj11 = document.getElementById('tab11');
		obj0.style.backgroundImage = 'url(/img/selected_tab.png)';
		obj1.style.backgroundImage = 'url(/img/normal_tab.png)';
		obj11.style.backgroundImage = 'url(/img/right_corner.png)';
		obj01.style.backgroundImage = 'url(/img/right_corner_sel.png)';
		obj1.style.backgroundPosition = '0px 1px';
		obj0.style.backgroundPosition = '0px 0px';
		obj11.style.backgroundPosition = '0px 1px';
		obj01.style.backgroundPosition = '0px 0px';
}

function ActivateTab1()
{
		obj0 = document.getElementById('tab0');
		obj1 = document.getElementById('tab1');
		obj01 = document.getElementById('tab01');
		obj11 = document.getElementById('tab11');
		obj0.style.backgroundImage = 'url(/img/normal_tab.png)';
		obj1.style.backgroundImage = 'url(/img/selected_tab.png)';
		obj01.style.backgroundImage = 'url(/img/right_corner.png)';
		obj11.style.backgroundImage = 'url(/img/right_corner_sel.png)';
		obj0.style.backgroundPosition = '0px 1px';
		obj1.style.backgroundPosition = '0px 0px';
		obj01.style.backgroundPosition = '0px 1px';
		obj11.style.backgroundPosition = '0px 0px';
}

function show_login()
{
	if ($('login_table').style.display == 'none')
		Effect.SlideDown('login_table');
	else
		Effect.SlideUp('login_table');
}