function calendar_change_month(div, url, month, year){
	new Ajax.Updater(div, url, {
		method: 'post',
		parameters: {month: month, year: year},
		evalScripts: true
	});
}

function create_tip(title, element, content){
	new Tip(element, content, {
		title: title,
		style: 'creamy',
		closeButton: true,
		hideOn: { element: 'closeButton', event: 'click'},
		hideOthers: true, 
		stem: 'bottomLeft',
		hook: { target: 'topRight', tip: 'bottomLeft' },
		offset: { x: 0, y: 0 },
		width: 'auto'
	});
}

function create_interior_tip(title, element, content){
	new Tip(element, content, {
		title: title,
		style: 'creamy',
		closeButton: true,
		hideOn: { element: 'closeButton', event: 'click'},
		hideOthers: true, 
		stem: 'bottomLeft',
		hook: { target: 'topRight', tip: 'bottomLeft' },
		offset: { x: 0, y: 6 },
		width: '225px'
	});
}

sfHover = function() {
	var sfEls = document.getElementById("mainNav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);