JS Object expected error

I keep getting an object expected error when I try to run the following function:

 function navLinkOver(num) {
var hex=255;
//If color is not grey yet
if(hex>204) {
  hex += 11; // increase color darkness
  document.getElementById(num).style.color="rgb("+hex+","+hex+","+hex+")";
  setTimeout("navLinkOver(" + num + ")",20);
  } else {
          hex=204 //reset hex value
         }

} 

Does anyone have an idea of what the problem is? If you want to see it in action, http://www.vip3r.com . There you can see the error I’m talking about.

Thanks in advance!

Theres noting wrong with the code. Run the function by its self and no errors will be generated. The problem is in one of the .js files. Try running one .js file at a time to narrow it down. I need to look at the code in the .js files, you must have a syntax error there or add an extra <script> reserved word there. Hard to see if the .js code is unavailable.