Started porting the portals demo from http://napephys.com/samples.html#swf-Portals (no pun intended)