This below is where I corrected it:
var listatrr = $(this).parent().attr("name");
//alert(listatrr);
$('.marker').attr("href", _href + listatrr);
This will reset the event:
$('.wayfinder a').mouseup(function () {
$('.marker').attr("href", '#');
});
update