var time1, time2, divOpen = '';

function openBit(objName, maxHeight) {
	var obj = document.getElementById(objName);
	var tmpHeight;
	if (obj) {
	  if (time1) clearTimeout(time1);
	  divOpen = objName;
	  tmpHeight = parseInt(obj.style.height.replace('px','')) + 35;
	  if (tmpHeight >= maxHeight) {
		obj.style.height = maxHeight + 'px';
	  } else {
		obj.style.height = tmpHeight + 'px';
		time1 = setTimeout('openBit(\'' + objName + '\',' + maxHeight + ')', 55);
	  }
	}
}
function closeBit(objName) {
	var obj = document.getElementById(objName);
	var tmpHeight;
	if (obj) {
	  tmpHeight = parseInt(obj.style.height.replace('px','')) - 45;
	  if (tmpHeight <= 0) {
		obj.style.height = '0px';
	  } else {
		obj.style.height = tmpHeight + 'px';
		time2 = setTimeout('closeBit(\'' + objName + '\');', 45);
	  }
	}
}

