function initPage()
{
	var nav = document.getElementById("nav");
	if (nav)
	{
		var nodes = nav.getElementsByTagName("li");
		for (var i = 0; i < nodes.length; i++)
		{
			nodes[i].onmouseover = function () 
			{
				if (this.className.indexOf("hover") == -1)
				{
					this.className += " hover";
				}
			}
			nodes[i].onmouseout = function ()
			{
				this.className = this.className.replace(" hover", "");
			}
		}
	}
	var _nodes =document.getElementsByTagName("div");
	for (var j = 0; j < _nodes.length; j++){
		if (_nodes[j].className.indexOf("popup") != -1) {
			_nodes[j].onmouseover = function(){
				
				this.className += " p-hover";
			}
			_nodes[j].onmouseout = function(){
				this.className = this.className.replace(" p-hover", "");
			}
		}
	}
}
if (window.attachEvent && !window.opera)
	window.attachEvent("onload", initPage);

function showCal(y,m) {
	$.post('/calendar_month.lasso', 
		{year:y, month:m},
		function(data) {
			$('#FRPOCalendar').html(data);
		});	
}
