// JavaScript Document
var objectholder;
var who;
var theCell;
var i;
var x;

function expand(who)
{
if (who.parentElement){
  var theCell = who.parentElement.parentElement;
}
if (who.parentNode){
  var theCell = who.parentNode.parentNode;
}
if (theCell.className != 'selected'){

		/* hide all other expanded elements identified by anchor with name 'detail' */
		for (i = 0; i < document.anchors.length; i++){
		x = document.anchors[i];
			if (x.name.indexOf('detail') != -1){
				if (x.parentElement){
					x.parentElement.parentElement.className = 'notselected';
				}else if(x.parentNode){
					x.parentNode.parentNode.className = 'notselected';
				}	
			}
		}
	
		who.blur();
		theCell.className = 'selected';
		
}else{
	who.blur();
	theCell.className ='notselected';
	}
}
