leave the code unchanged.
when i look at the source code on your page, the php tags are not correct. In the source code, the php tags show as:
<!--?php
and
?-->
another issue i see is that you have links to load jquery on the page:
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.7/jquery-ui.min.js"></script>
the gallery will also load jquery, those links will cause a conflict which will cause the gallery to fail.