cleaned up some code, added shadowbox option