OK, figured it out.
What I had to end up doing was manually change each of my affected div's id's to the hashtag plus "-id", but kept the links to just the hashtag sans "-id" so..
<div id="#hash-id"></div>
<a href="#hash">link</a>
then in the code I applied the new class to only #hash-id ... like so...
$(window).hashchange( function(){
var selectid = location.hash;
selectid += '-id';
$(function(){
$('.eventselected').removeClass('eventselected');
$(selectid).addClass('eventselected');
});
});
$(window).trigger( 'hashchange' );