getElementsByClassName = function(className, parentElement, tagName) {
	var classElements = new Array();
	if ( parentElement == null )
		parentElement = document;
	if ( tagName == null )
		tagName = '*';
	var els = parentElement.getElementsByTagName(tagName);
	var elsLen = els.length;
	var pattern = new RegExp('(^| )'+className+'( |$)');
	for (i = 0, j = 0; i < elsLen; i++) {
		if ( pattern.test(els[i].className) ) {
			classElements[j] = els[i];
			j++;
		}
	}
	return classElements;
}
showOnly = function(className) {
	// Get our elements
	var sfEls = getElementsByClassName('vevent', document, 'div');
	var showAll = document.getElementById('showall');
	// define some RegExp
	var pattern = new RegExp('(^| )'+className+'( |$)');
	var hide = new RegExp('(^| )hide( |$)');
	var show = new RegExp('(^| )show( |$)');
	// show the "show all" action
	if (!show.test(showAll.className)) { showAll.className+="show";	}
	// for each list item in the menu...
	for (var i=0; i < sfEls.length; i++) {
		if (hide.test(sfEls[i].className)) {
			sfEls[i].className=sfEls[i].className.replace(hide, "");
		}
		if (!pattern.test(sfEls[i].className)) {
			if (!hide.test(sfEls[i].className)) {
				sfEls[i].className+=" hide";
			}
		}
	}
}
showAll = function(className) {
	// Get our elements
	var sfEls = getElementsByClassName('vevent', document, 'div');
	var showAll = document.getElementById('showall');
	// define some RegExp
	var pattern = new RegExp('(^| )'+className+'( |$)');
	var hide = new RegExp('(^| )hide( |$)');
	var show = new RegExp('(^| )show( |$)');
	// hide the "show all" action
	if (show.test(showAll.className)) {
		showAll.className=showAll.className.replace(show, ""); }
	// for each list item in the menu...
	for (var i=0; i < sfEls.length; i++) {
		sfEls[i].className=sfEls[i].className.replace(hide, "");
	}
}
dateHover = function() {
	var sfEls = getElementsByClassName('vevent', document, 'div');
	// for each list item in the menu...
	for (var i=0; i < sfEls.length; i++) {
		sfEls[i].onmouseover = function() {
			this.className+=" dateHover";
		}
		
		sfEls[i].onmouseout = function() {
			this.className=this.className.replace(new RegExp(" dateHover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", dateHover);