// JavaScript Document
function showTabs(obj,index)
{
	if(!obj){return;}
	if(obj.className.indexOf('normal')==-1)	return;
	var themes			= Array('selected','normal');
	obj.className		= themes[0];
	var brothers		= obj.parentNode.getElementsByTagName("li");
	var root			= obj.parentNode.parentNode.parentNode;
	var brotherParents	= root.childNodes;
	var brotherParent;
	for(i=0;i<brotherParents.length;i++)
	{
		if(brotherParents[i].tagName && brotherParents[i].className.indexOf("tab_body")>=0)
		{
			brotherParent=brotherParents[i].childNodes;//getElementsByTagName("div");
			break;
		}
	}
	var right=-1;
	for(i=0;i<brotherParent.length;i++)
	{
		if(brotherParent[i].tagName!='DIV')
			continue;
		else
			right++;
		
		if(typeof(scroller)!='undefined')
			if(brotherParent[i].className=="tab_body_show")
				brotherParent[i].y	= -scroller._y;
		
		if(right==index)
		brotherParent[i].className="tab_body_show";
		else
		brotherParent[i].className="tab_body_hidden";
		
	}
	for(i=0;i<brothers.length;i++)
	{
		if(i==index)
		brothers[i].className=themes[0];
		else
		brothers[i].className=themes[1];
	}
}
