var speed=20;
if(navigator.appName.indexOf("Netscape")>(-1)) {
	var speed=50;
}

function moveUp(id,val) {
	if (document.downVar) clearTimeout(downVar);
	theLayer = document.getElementById(id);			
	if (val>0) {
		val-= speed;
		if (val < speed) val = 0;
		theLayer.style.top = val +'px';
		upVar = setTimeout('moveUp("'+id+'",'+val+')',1) 
	} else {
		clearTimeout(upVar);
	}
}

function moveDown(id,val) {
	if (document.upVar) clearTimeout(upVar);
	theLayer = document.getElementById(id);
	if (val<183) {
		val+= speed;
		if (val > 183-speed) val = 183;
		theLayer.style.top = val +'px';
		downVar = setTimeout('moveDown("'+id+'",'+val+')',1) 
	} else {
		clearTimeout(downVar);
	}
}