	</div>

	<div id="footer">
	</div>

</div>

</body>
</html>

	</div>

	<div id="footer">
	</div>

</div>

<script type="text/javascript">
/* From http://stackoverflow.com/a/2899099 */
{literal}
var links = document.getElementsByTagName('a');
for (var i = 0; i < links.length; i++) {
    links[i].onclick = function() {
        window.location = this.getAttribute('href');
        return false;
    }
}
</script>

{/literal}
</body>
</html>

Use JS to open links by changing window.location
Use JS to open links by changing window.location

As documented here
(http://stackoverflow.com/questions/2898740/iphone-safari-web-app-opens-links-in-new-window)
when you "appify" the website to an icon on the home screen, it sees the
links as external, and thus opens up in Safari. This works around that
by never triggering the "open link" command.
