  	var interval = 10;
	var AddHeight = 10;
	var DelHeight = 20;
	var timerStarID, timerStopID, oldID, AddHeight;
	
function show( divId, maxHeight ) {
	
	var div = document.getElementById( divId );
	if ( null == div || undefined == div ) {
		return false;
	}
	
	if ( parseInt(div.style.height) < maxHeight ) {		
		var height = parseInt(div.style.height);
		//AddHeight = Math.ceil(maxHeight/10) - Math.ceil((maxHeight/10)/3);
		div.style.height = height + AddHeight + 'px';
		timerStarID = setTimeout( 'show( "' + divId + '", ' + maxHeight + ' )', interval );
	} else {
		div.style.height = maxHeight + 'px';
		window.clearTimeout(timerStarID);
	}
} 
 
function slideDownDiv( divId, height ) {
	window.clearTimeout(timerStopID);
	if( divId != null && oldID != null && oldID != divId ) document.getElementById( oldID ).style.height = '0px';
	oldID = divId;	
	timerStarID = setTimeout( 'show( "' + divId + '", ' + height + ' )', interval );
}

function hide( divId, minHeight ) {
	
	var div = document.getElementById( divId );
	if ( null == div || undefined == div ) {
	  return false;
	}
	
	if ( parseInt(div.style.height) > minHeight && parseInt(div.style.height) > DelHeight ) {
		height = parseInt(div.style.height);
		div.style.height = parseInt(height - DelHeight) + 'px';
		timerStopID = setTimeout( 'hide( "' + divId + '", ' + minHeight + ' )', interval );
	} else {
		div.style.height = '0px';
		window.clearTimeout(timerStopID);
	}
}

function slideUpDiv( divId, height ) {
	window.clearTimeout(timerStarID);
	timerStopID = setTimeout( 'hide( "' + divId + '", ' + height + ' )', interval );
}
