add very basic implementation of opposite-position function

this is implemented in compass as ruby code
Merge pull request #11 from koala-framework/master

add very basic implementation of opposite-position function