var height, direction, elem;

function divSlide( whichLayer, indirection )
{
	if( document.getElementById ) // this is the way the standards work
		elem = document.getElementById( whichLayer );
	else if( document.all ) // this is the way old msie versions work
			elem = document.all[whichLayer];
	else if( document.layers ) // this is the way nn4 works
		elem = document.layers[whichLayer];
	
	if(elem) {
		direction = indirection;
		height = elem.clientHeight;
		if(height==0)height = elem.offsetHeight;
		divSlideLoop();
	}
}

function divSlideLoop() {
	height = Number(height) + Number(direction);
	if(height < 0) height = 0;
	elem.style.height = height + 'px';
	
	if(height > 1) {
		setTimeout('divSlideLoop()',10);
	}
	else {
		elem.style.display = 'none';
	}
}

/* window.onload = initShowHideDivs; */

