Selective Obfuscation based on script by growltigernz

I want to be able to hide image and video urls and found a what looks to be a very elegant script solution that can be applied selectively to code http://rajeczy.com/arpad/lib/index.php?p=misc/obfuscate_ajax but the script as it stands will not execute correctly on my server… (Budget: $30-250, Jobs: Javascript, PHP)