function checkAccordion() {
	/*Wordpress marks each page link for the current page with current-menu-item, and if it
	 *is part of a dropdown with current-menu-ancestor on the parent li, so this function uses
	 *this to show the child ul. */
	var menu = document.getElementById('menu')
	var alllis = menu.getElementsByTagName('li');
	var search = /current-menu-item/gi;
	var search2 = /current-menu-ancestor/gi;
	for (var i = 0; i < alllis.length; ++i) {
		if (alllis[i].className.match(search) != null || alllis[i].className.match(search2) != null) {
			var lichildren = alllis[i].childNodes;
			lichildren[2].style.display = 'block';
		}
	}
}
