function sizeupGuestbook(to){
	dom = document.getElementById("guestbookform");
	old = parseInt(dom.style.height);
	if (old < to){
		dom.style.height = old + 17 + 'px';
		setTimeout("sizeupGuestbook("+to+")",1);
	}
	else{
		fade (document.getElementById("guestbookinside"), 0, 100);
	}
}

function fade (element, from, to, current){
	if(typeof current == 'undefined'){
		element.style.display='block';
		current = from;
	}
	if(typeof element.style.opacity != 'undefined') element.style.opacity = current;
	else if(typeof element.style.filter != 'undefined') element.style.filter = 'progidXImageTransform.Microsoft.Alpha(opacity=' + (current * 100) + ')';
	if(from > to) {
		current -= 0.1;
		current = Math.round(current * 100) / 100;
		if(current >= to) setTimeout(function () { fade(element, from, to, current); }, 35);
	}
	else {
		current += 0.1;
		current = Math.round(current * 100) / 100;
		if(current <= to) setTimeout(function () { fade(element, from, to, current); }, 35);
	}
}
