I think i have a problem similar to yours, what did you do?
Actually you have two option.
First of all you shoult activate the tivoli access managers java-script support so all files get scanned for URLs to replace.
This option did not work for me.
So secondly you could use the transparent path option of the Access Manager which is new since Webseal 6.1. With this option url rewriting is no longer necessary.