Behaviour.register({	
    '.xcapCalHasEvents' : function(e)
    {
    	e.onmouseover = function()
    	{
    		if(!isOpen)
    		{
	    		var id = e.id.substring(1, e.id.length);
	    		
	    		var hoverElement = document.getElementById("hoverElement");
	    		
	    		jQuery.getJSON(contextPath + '/ajax/dayview/shortinfo/index.jsp?date='+monthString + "-" + id,
				function(r) {
					hoverElement.innerHTML = " <a href='/dayview/?date="+monthString + "-" + id + "'>" + r.title +"</a> " + r.theme + " "+ r.date;
				});
				//calendar-page makes a LOT of http requests without this:
				isOpen = true;
			}
    	}
    }
});

