function load_calendar (year, month)
{
	var x = (window.ActiveXObject) ? new ActiveXObject ("Microsoft.XMLHTTP") : new XMLHttpRequest();
	if (x)
	{
		x.onreadystatechange = function()
		{
			if ((x.readyState == 4) && (x.status == 200))
			{
				document.getElementById ("event_box").innerHTML = x.responseText;
			}
		}
		x.open ("GET", "/modules/event_box.php?y=" + year + "&m=" + month, true);
		x.send (null);
	}
} // load_calendar()

var actual_height = 0;

function start_scroll()
{
	setTimeout ('scroll_up();', 2000);
	actual_height = document.getElementById ('id_event_actual').offsetHeight;
	document.getElementById ('id_event_actual').style.height = "120px";
	document.getElementById ('id_event_actual').scrollTop = 0;
} // start_scroll()

function scroll_up()
{
	if (document.getElementById ('id_event_actual').scrollTop < actual_height - 125)
	{
		document.getElementById ('id_event_actual').scrollTop += 1;
		var timeout = 110;
	}
	else
	{
		document.getElementById ('id_event_actual').scrollTop = 0;
		var timeout = 2000;
	}
	setTimeout ('scroll_up();', timeout);
}
