I just found out that doing this: a href="#" onclick="$('some_div').show(); return false;" on a link, prevents the link from going to that non-existing anchor (#). So, the page doesn’t move! ps: javascript, is not my strong point.
a href="#" onclick="$('some_div').show(); return false;"