Hmmm, you could write the code directly to your template beneath your <% require ... %> ...
or you could create a javascript file called "shadowbox_setup.js" in /mysite/javascript, write Shadowbox.init(); to it, and require this file in your template :
<% require javascript(mysite/javascript/shadowbox-3.0.3/shadowbox.js) %>
<% require javascript(mysite/javascript/shadowbox_setup.js) %>
...
or you delete these <% require ...%> thingies from the template and add this to the init() method of the Controller class of the Page type:
function init() {
parent::init();
Requirements::javascript('mysite/javascript/shadowbox-3.0.3/shadowbox.js');
Requirements::customScript('<script type="text/javascript">Shadowbox.init();</script>');
}
^^Hope this is somewhat understandable, cause we have a nice party going on and i allready had some beer :-)
Cheers