Eh, mark you comment js with /* */ not <!-- -->
<script type="text/javascript">
106<!--
107 function switchUl(id){
108 if(document.getElementById){
109 a=document.getElementById(id);
110 a.style.display=(a.style.display!="none")?"none":"block";
111 }
112 }
113 for(i=0;i<$jscript_count;i++) //number of folders HERE
114{
115 switchDIV('f'+i);
116 }
117// -->
118</SCRIPT>
This is pretty weird just in general given that a) $ is the php variable identifier (javascript has none). b) it's improperly commented c) $jscript_count is used in includes.php.
Not sure what's really up here, but I imagine it should just be properly commented and the problem will dissappear.
However while we're here that closing tag is in caps (bad!)
~ Anders