function changeCategory( el )
{
	window.location = el.value;
}

function startSearch()
{
	var eventState = document.getElementById( "eventState" ).value;
	var keyword = document.getElementById( "eventSearchKeyword" ).value;
	var theLink = eventState + "&kword=" + escape( keyword );
	window.location = theLink;
}

function changeClass( src, newClass ){
	if( !src.contains ) return;
	if( !src.contains( event.fromElement ) ){
		src.style.cursor = "hand";
		src.className = newClass;
	}
	if( !src.contains( event.toElement ) ){
		src.style.cursor = "default";
		src.className = newClass;
	}
}

function clickLink( src ){
	if( !event.srcElement ) return;
	if( event.srcElement.tagName == "TD" ){
	if( src.children && src.children.tags && src.children.tags( "A" ) && src.children.tags( "A" )[0] )
		src.children.tags( "A" )[ 0 ].click();
	}
}


$(document).ready(function(){ 

if ( $('.anevent').length ){
		$('#mycalendar').hide();
		$('#mycontent').hide();
	}
	else {
		$('#mycalendar').show();
		$('#mycontent').show();
	}

});


