function crop(id,from,to,speed,increment) {

	// Get object
	obj = document.getElementById(id);

	if(obj) {
		// Correct parameters
		if(from<0) from=0;
		if(to<0) to=0;
		if(speed<0) speed=1;
		if(increment<0) increment=1;
	
		// Make bigger or smaller
		if(to>from)	{
			// Bigger
			new_height = from + (increment/10);
			if(new_height>to) new_height=to;
		} else {
			// Smaller
			new_height = from - (increment/10);
			if(new_height<to) new_height=to;
		}
	
		// Set new style
		obj.style.height=(Math.round(new_height))+'px';
	
		// Recursive until fading complete
		if(from!=to) setTimeout('crop("'+id+'",'+new_height+','+to+','+speed+','+increment+')',1000/speed);
	}
}

