Add this code to your page inside script block :
With jquery :
$(document).ready(function () {
clickMenu('gallery');
});
And I don't see your jquery file reference. Please add reference of your jquery file.
Eg :
from local path :
<script src="Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
Or from CDN :
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
If you don't wanna use jqeury then add these codes inside script after clickMenu event :
window.onload = setTimeout(function () { clickMenu('gallery') }, 0);
Good luck.