Nav menu classes

<?
/**
 * Menu active classes
 */
function gomo_nav_classes( $classes, $item ) {
	// use this format for removing highlighting
    if((is_singular('events') || is_post_type_archive('events')) && $item->ID == 202) {
		$classes = array();
	}
	// use this format for adding highlighting
	if((is_single() && ! is_singular('events') )  && $item->ID == 224) {
		$classes[] = 'current-menu-item active';
	}
    if((is_singular('events') || is_post_type_archive('events')) && ($item->ID == 449)) {
		$classes[] = 'current-menu-item active';
	}
    return $classes;
}
add_filter( 'nav_menu_css_class', 'gomo_nav_classes', 10, 2 );