I am unclear on how to use the same trigger to toggle an overlay. I have tried using api.isOpened() and every callback, but I can't figure it out. Does anyone have a way to o this. At it's most basic, the current code looks like this:

var api = $("#simple_view a[rel]").overlay({
top: 0,
expose: '#000',
api: true
});