var wait_to_start = 2000
var scroll_speed = 1
var back_scroll_speed = scroll_speed
var scroll_width=''

function scroll_calendar(){
	if (parseInt(scroll_box.style.top) > (actual_height * (-1) + 10))
		scroll_box.style.top = parseInt(scroll_box.style.top) - scroll_speed + "px"
	else
		scroll_box.style.top = "350px"
}

function initialize_scroll(){
	scroll_box = document.getElementById("scal_h_scroll")
	scroll_box.style.left = 0
	scroll_box.style.top = 0	
	scroll_height = document.getElementById("scal_scroll_container").offsetHeight
	actual_height = scroll_box.offsetHeight
	if (window.opera || navigator.userAgent.indexOf("Netscape/7") != -1) {
		scroll_box.style.top = scroll_width + "px"
		scroll_box.style.overflow = "scroll"
		return
	}
	setTimeout('timeleft = setInterval("scroll_calendar()",30)', wait_to_start)
}

function stop_scroll(){
	scroll_speed = 0;
}

function start_scroll(){
	scroll_speed = back_scroll_speed;
}

