function sp_captcha_do_login_load_js($footer)
{
    $script = defined('SP_SCRIPTS_DEBUG') && SP_SCRIPTS_DEBUG ? SPCAPSCRIPT . 'jquery.captcha-dev.js' : SPCAPSCRIPT . 'jquery.captcha.js';
    wp_enqueue_script('captcha', $script, array('jquery', 'jquery-ui-core', 'jquery-ui-widget', 'jquery-ui-mouse', 'jquery-ui-draggable', 'jquery-ui-droppable', 'jquery-touch-punch'), false, false);
    if (isset($_GET['action']) && $_GET['action'] == 'register') {
        $css = sp_find_css(SPCAPCSS, 'sp-captcha.css');
        echo "<link rel='stylesheet' type='text/css' href='{$css}' />\n";
    }
}
function sp_admin_bar_do_header()
{
    $css = sp_find_css(SPABCSS, 'sp-admin-bar.css', 'sp-admin-bar.spcss');
    sp_plugin_enqueue_style('sp-admin-bar', $css);
}
function sp_captcha_load_css()
{
    $css = sp_find_css(SPCAPCSS, 'sp-captcha.css', 'sp-captcha.spcss');
    sp_plugin_enqueue_style('sp-captcha', $css);
}