Ajax JQuery loading in the Same DIV 1 time yes and 1 not. [?
You need the link to be out side the div you are loading your content into.
As the line
"$('#wrapper_of_subpages').load(this.href + " #wrapper_of_subpages");" in your code don't copy the event with the link you need some other way to keep your link event.