var objMenuTypes = {a : '1', b : '1'};
function changeTab(id, type)
{
	$('tab-' + type +'-'+ objMenuTypes[type]).setProperty('class', '');
	$('content-' + type +'-'+ objMenuTypes[type]).setStyle('display', 'none');
	objMenuTypes[type] = id;
	$('tab-' + type +'-'+ objMenuTypes[type]).setProperty('class', 'box-head-selected');
	$('content-' + type +'-'+ objMenuTypes[type]).setStyle('display', 'block');
	//$('content-' + type +'-'+ objMenuTypes[type]).tween('opacity', .5, 1); //.fade(1);
}

function setup(name, type)
{
	var tabs = $$(name);
	for(var i=0; i<tabs.length; i++)
	{
		tabs[i].addEvent('click', function(){
										   		var id = this.id;
												id = id.slice(id.lastIndexOf('-')+1, id.length);
												changeTab(id, type);
										   });
	}
}

window.addEvent('domready', function() 
{
	setup('.tab-menu-a', 'a');
	setup('.tab-menu-b', 'b');
	setup('.tab-menu-c', 'c');
	setup('.tab-menu-d', 'd');
	//
	var arr = $$('.comment-meta a').each( function(a)
												   {
													 	a.setText( a.getText().split('t').join('') );
												   });
	
	
});