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 doShow() {
	var i = parseFloat(stamp.style.opacity);
	if (i < 1.0) {
		stamp.style.opacity = i+0.02;
		setTimeout(doShow,20); // call doShow in 20msec
	}
}

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


window.onload = init;
