function load_video(id) {
    $.get('spip.php',
        { page: 'ajax-video', idav: id },
        function(data) {
            $('#div_player').html(data);
        }
    );
}

function load_block(id, page) {
    $.get('spip.php',
        { page: page },
        function(data) {
            $('#'+id).html(data);
        }
    );
}

function abo_news(email) {
    $.get(
        'plugins/bookmarks/ajax_abo_news.php',
        {email: email}/*,
        function(data) {
            text = 'Une erreur est survenue';
            switch(data) {
                case 'BAD_FORMAT':
                    text = 'L\'email que vous avez entr&eacute; n\'est pas valide.';
                    break;
                case 'ABO_EXIST':
                    text = 'Vous &ecirc;tes  d&eacute;j&agrave; abonn&eacute; &agrave; la newsletter.';
                    return true;
                    break;
                case 'OK' :
                    text = 'Vous &ecirc;tes abonn&eacute; &agrave; la newsletter.';
                    return true;
                    break;
            }
            if (retour == false) {
                jQuery.noticeAdd({
                     text: text,
                     stay: false
                });
            }
        }
        */
    );
    //return false;
}

function open_cp() {
    $('#contact').fadeOut("slow",
        function () {
            $('#code_postal').fadeIn("slow");
        }
    );
}

function send_cp() {
    $('#code_postal').fadeOut("slow",
        function () {
            $('#contact').fadeIn("slow");
        }
    );
}