function tab_action(ptab,pcontent,pclass)
{
	$(ptab).children().mouseover(function(){
		var tab=$(this);
		tab_index=tab.prevAll().length;
		$(ptab).children().removeClass(pclass);
		tab.addClass(pclass);
		
		$(pcontent).children().hide();
		$(pcontent).children().removeClass('highlight');
		$(pcontent).children().eq(tab_index).show();
		$(pcontent).children().eq(tab_index).addClass('highlight');
	});

}
