var spfldcol_slideSpeed = 20;	// Higher value = fastervar spfldcol_timer = 5;	// Lower value = fastervar objectIdToSlideDown = false;var spfldcol_activeId = false;var spfldcol_slideInProgress = false;function showHideContent(e,inputId){	if(spfldcol_slideInProgress)return;	spfldcol_slideInProgress = true;	if(!inputId)inputId = this.id;	inputId = inputId + '';	var numericId = inputId.replace(/[^0-9]/g,'');	var answerDiv = document.getElementById('spfldcol_a' + numericId);	objectIdToSlideDown = false;		if(!answerDiv.style.display || answerDiv.style.display=='none'){				if(spfldcol_activeId &&  spfldcol_activeId!=numericId){						objectIdToSlideDown = numericId;			slideContent(spfldcol_activeId,(spfldcol_slideSpeed*-1));		}else{						answerDiv.style.display='block';			answerDiv.style.visibility = 'visible';						slideContent(numericId,spfldcol_slideSpeed);		}	}else{		slideContent(numericId,(spfldcol_slideSpeed*-1));		spfldcol_activeId = false;	}	}function slideContent(inputId,direction){		var obj =document.getElementById('spfldcol_a' + inputId);	var contentObj = document.getElementById('spfldcol_ac' + inputId);	height = obj.clientHeight;	if(height==0)height = obj.offsetHeight;	height = height + direction;	rerunFunction = true;	if(height>contentObj.offsetHeight){		height = contentObj.offsetHeight;		rerunFunction = false;	}	if(height<=1){		height = 1;		rerunFunction = false;	}	obj.style.height = height + 'px';	var topPos = height - contentObj.offsetHeight;	if(topPos>0)topPos=0;	contentObj.style.top = topPos + 'px';	if(rerunFunction){		setTimeout('slideContent(' + inputId + ',' + direction + ')',spfldcol_timer);	}else{		if(height<=1){			obj.style.display='none'; 			if(objectIdToSlideDown && objectIdToSlideDown!=inputId){				document.getElementById('spfldcol_a' + objectIdToSlideDown).style.display='block';				document.getElementById('spfldcol_a' + objectIdToSlideDown).style.visibility='visible';				slideContent(objectIdToSlideDown,spfldcol_slideSpeed);							}else{				spfldcol_slideInProgress = false;			}		}else{			spfldcol_activeId = inputId;			spfldcol_slideInProgress = false;		}	}}function initShowHideDivs(){	var divs = document.getElementsByTagName('DIV');	var divCounter = 1;	for(var no=0;no<divs.length;no++){		if(divs[no].className=='spfldcol_question'){			divs[no].onclick = showHideContent;			divs[no].id = 'spfldcol_q'+divCounter;			var answer = divs[no].nextSibling;			while(answer && answer.tagName!='DIV'){				answer = answer.nextSibling;			}			answer.id = 'spfldcol_a'+divCounter;				contentDiv = answer.getElementsByTagName('DIV')[0];			contentDiv.style.top = 0 - contentDiv.offsetHeight + 'px'; 				contentDiv.className='spfldcol_answer_content';			contentDiv.id = 'spfldcol_ac' + divCounter;			answer.style.display='none';			answer.style.height='1px';			divCounter++;		}			}	}window.onload = initShowHideDivs;