/* jLightBox (using jQuery library).
*--------------------------------------------*
*  @author : ukhome ( ukhome@gmail.com | ntkhoa_friends@yahoo.com )
*--------------------------------------------*
*  @released : 24-Mar-2009 : version 1.0
*--------------------------------------------*
*  @revision history : ( latest version : 1.0 )
*--------------------------------------------*
*      + 24-Mar-2009 : version 1.0
*          - released
*--------------------------------------------*
*/

/* package $lightbox.ExternalInterface
*/

/*
* parent = $lightbox object
*/

$lightbox.ExternalInterface = function () {
    $lightbox.openPopup = function (options) {
        var parent = new $lightbox(null, options);
        $lightbox.Global.push(options.id, parent);
        parent.showLightBox();
        return false;
    }

    $lightbox.hidePopup = function (id) {
        $lightbox.Global.getLightBoxObjectById(id).hideLightBox();

        return false;
    }
}(); //excute at import time
