function initpracticefeature() {
	var container = MM_findObj('practicefeature');
	var boxes = container.getElementsByTagName('div');
	var i;
	for (i=0; i<boxes.length; i++) {
		if (boxes[i].className == 'staffname') {
			boxes[i].onclick = function () { practicefeatureclick(this) };
			boxes[i].title = 'click to expand';
		}
	}
}

function practicefeatureclick(which, e) {
	var o = MM_findObj('staffbio' + which.id.substr(9,1));
	var b = MM_findObj('practicefeaturebottom');
	if (which.title == 'click to expand') {
		which.title = 'click to contract';
		o.style.visibility = 'visible';
		o.style.display = 'block';
		which.getElementsByTagName('em')[0].innerHTML = '';
		b.style.bottom = '1px';
		b.style.bottom = '0px';
	} else {
		which.title = 'click to expand';
		o.style.visibility = 'hidden';
		o.style.display = 'none';
		which.getElementsByTagName('em')[0].innerHTML = 'more&gt;';
		b.style.bottom = '1px';
		b.style.bottom = '0px';
	}
}

function initcontentboxes() {
	var container = MM_findObj('contentboxes');
	var boxes = container.getElementsByTagName('h3');
	var i;
	for (i=0; i<boxes.length; i++) {
		if (boxes[i].id.substr(0,9) == 'boxteaser') {
			boxes[i].onclick = function () { contentboxclick(this) };
			boxes[i].title = 'click to expand';
		}
	}
}

function contentboxclick(which, e) {
	var o = MM_findObj('boxcontent' + which.id.substr(9,1));
	if (which.className == 'contracted') {
		which.title = 'click to contract';
		which.className = 'expanded';
		o.style.visibility = 'visible';
		o.style.display = 'block';
	} else {
		which.title = 'click to expand';
		which.className = 'contracted';
		o.style.visibility = 'hidden';
		o.style.display = 'none';
	}
}

addLoadEvent(initpracticefeature);
addLoadEvent(initcontentboxes);
