function calendar(year,month) {
	new Ajax.Updater("calendar_view","/calendar?year="+year+"&month="+month,{evalScripts: true});
	return false;
}
function postComment(commentID){
	$('floater').style.display = 'block';
	//$('floater').style.overflow = 'none';
	new Ajax.Updater("comment-form","/comments/form/"+commentID,{evalScripts: true});
}

var openItem = '';
function showMenu(name){
	//console.log('showMenu '+name);
	if ( openItem != '' ) {
		$(openItem).style.display = 'none';
	}
	if ( name != '' ) {
		$(name).style.display = '';
	}
	openItem = name;
}

function search( obj ) {
	if ( obj.value.length > 3 ) {
		new Ajax.Updater('search_results','/search?search='+obj.value,{method:'get'});
	}
	WindowMan.onResize();
}


