Jquery.ui.menudrop is a project mainly written in JavaScript, it's free.
Simple iPad menu drop
This plugin will function similar to an iPad menu. An arrow pointing to the action item ( button, anchor, etc. ) out of the top or bottom centered unless it would leave the viewable screen.