var childHeight = 20;var TimeToSlide = 250.0;var TimeToSlideShort = 150.0;var openAccordion = '';function runAccordion(index, countChildRows){		runAccordionTime(index, countChildRows, TimeToSlide);}function runAccordionShort(index, countChildRows){		var nID = "Accordion" + index + "Content";  	var opening = document.getElementById(nID);	var closing = document.getElementById(openAccordion);	if(opening != null)	{		opening.style.display = 'block';		opening.style.height = (countChildRows * childHeight) + 'px';	}		if(closing != null)	{		closing.style.height = '0px';	}		openAccordion = nID;}function runAccordionTime(index, countChildRows, tts){  var nID = "Accordion" + index + "Content";  if(openAccordion == nID)    nID = '';      setTimeout("animate(" + new Date().getTime() + "," + tts + ",'"       + openAccordion + "','" + nID + "', '" + countChildRows + "')", 33);    openAccordion = nID;}function animate(lastTick, timeLeft, closingId, openingId, countChildRows){    var curTick = new Date().getTime();  var elapsedTicks = curTick - lastTick;  var ContentHeight = (childHeight * countChildRows);    var opening = (openingId == '') ? null : document.getElementById(openingId);  var closing = (closingId == '') ? null : document.getElementById(closingId);   if(timeLeft <= elapsedTicks)  {    if(opening != null)      opening.style.height = ContentHeight + 'px';        if(closing != null)    {      closing.style.display = 'none';      closing.style.height = '0px';    }    return;  }   timeLeft -= elapsedTicks;  var newClosedHeight = Math.round((timeLeft/TimeToSlide) * ContentHeight);  if(opening != null)  {    if(opening.style.display != 'block')      opening.style.display = 'block';    opening.style.height = (ContentHeight - newClosedHeight) + 'px';  }    if(closing != null)    closing.style.height = newClosedHeight + 'px';  setTimeout("animate(" + curTick + "," + timeLeft + ",'"       + closingId + "','" + openingId + "', '" + countChildRows + "')", 33);}
