Here is what you guys have to do to get rid of those errors that you have been getting, put an if condition around the script,
Code:
<if condition="THIS_SCRIPT == 'showthread'">
<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="js/lightbox.js"></script>
<link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" /></if>