Hi,
I think there might be a better approach to prevent users from seing the script source.
Put it in a .js file and insert
<script language="Javascript" src="..." />
into your HTML code. If you have the rights to edit the configuration of your webserver you can then configure it to prevent direct requests to .js files. The server would still allow the scripts to be loaded with the code above but you cannot get them by requesting e.g. http://www.theserver.com/scripts/myscripts.js.
If the server is running apache and you don't have access to the configuration because it is a hoster you might get around that by placing a .htaccess into your Document Root that adjusts that settings on the web server.
This would be much more painless than encrypting the whole javascript code.