well, I tried to follow your directions, but didn't get there... used this
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script type="text/javascript" src="<?php echo $pg_config['path']; ?>/galleries/js/mootools-core.js"></script>
<script type="text/javascript" src="<?php echo $pg_config['path']; ?>/galleries/js/mootools-more.js"></script>
<?php $js_mootools = true; } ?>
<?php if(empty($js_slimbox)) { ?>
<script type="text/javascript" src="<?php echo $pg_config['path']; ?>/galleries/js/slimbox.js"></script>
<?php $js_slimbox = true; } ?>
<script type="text/javascript" src="<?php echo $pg_config['html_prefix']; ?>/galleries/js/gallery.js"></script>
<?php if(!$included) { ?>
but get this
portfolio.php
so I am missing something....
thanks for sharing...