function setVisibility(id, visibility) {
	document.getElementById(id).style.display = visibility;
}


var plant = null; // object

function doGrow() {
	if (parseInt(plant.style.top) < 0) {
		plant.style.top = parseInt(plant.style.top)+1+'px';
		setTimeout(doGrow,10); // call doGrow in 3msec
	}	
}

function init() {
	plant = document.getElementById('plantObject'); // get the "plant" object
	plant.style.top = '-129px'; // set its initial height to -129px
	doGrow(); // start animating
}


window.onload = init;
