// JavaScript Document

function chtab(eid) {

	var myarray = document.getElementsByClassName('c_m');
	var clicked = 'ct'+eid;

	for (var i=0;i<myarray.length;i++) {

	var to = document.getElementById(myarray[i].id);

	var ml = document.getElementById('ml'+i);
	var mt = document.getElementById('mt'+i);
	var mc = document.getElementById('mc'+i);

	if (to.id==clicked) {

	 $(to.id).appear({ duration: 1.0 });

	to.className = 'c_m t_on';

	ml.className = 'activetableft';
	mt.className = 'activetab';
	mc.className = 'activetabcontent';

	} else {

	ml.className = 'inactivetableft';
	mt.className = 'inactivetab';
	mc.className = 'inactivetabcontent';

	to.className = 'c_m t_off';
	}

	}

}

