http://www.stud.ntnu.no/~shane/stasj...div/index.html