Just a quick note as to why I was getting strange results with the code I'd posted here...
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=436441#Post436441It's probably not a good idea to declare a var array, then try and manipulate with a function written for int arrays
Sleep-coding... A great way to save money on hair products, as you'll be ripping yours out, trying to figure out why something that you know should work, just isn't