In the gallery album view, half a dozen link and script tags are added inside the body of the html. This causes validation problems. As far as I can tell they are for the datepicker in the search view. They should not be added in the album view at all.
In the search view it's added correcly between the head tags, by the way.
Example here: http://templates.unitedknowledge.nl/test-section/photo-gallery/test-gallery/album-1
You can find it just below the body opening tag. It's this bit of code:
<link href="/extras/yui/build/calendar/assets/skins/sam/calendar.css" rel="stylesheet" media="all" type="text/css" /><script src="/extras/yui/build/yahoo/yahoo-min.js" type="text/javascript"></script><script src="/extras/yui/build/dom/dom-min.js" type="text/javascript"></script><script src="/extras/yui/build/event/event-min.js" type="text/javascript"></script><script src="/extras/yui/build/calendar/calendar-min.js" type="text/javascript"></script><script type="text/javascript">window.webguiFirstDayOfWeek = 1</script><script src="/extras/yui-webgui/build/datepicker/datepicker.js" type="text/javascript"></script><script type="text/javascript">window.webguiFirstDayOfWeek = 1</script><script type="text/javascript">window.webguiFirstDayOfWeek = 1</script><script type="text/javascript">window.webguiFirstDayOfWeek = 1</script>