function pop_bgm() {
    window.open('/member/bgm/', 'bgm_window', 'width=500, height=300, menubar=no, toolbar=no, resizable=no, scrollbars=no');
}

var Tooltip = Class.create({
    initialize: function(open_id, close_id, tooltip_id) {
        this.open_id = open_id;
        this.close_id = close_id;
        this.tooltip_id = tooltip_id;
    },

    show: function() {
        $(this.tooltip_id).style.display = 'block';
    },

    hide: function() {
        $(this.tooltip_id).style.display = 'none';
    }
});



function openFavorite(contents_name) {
    switch (contents_name) {
        case 'uranai':
            window.open(
                '/resources/Uranai/Uranai.swf',
                null,
                'scrollbars=yes,fullscreen=yes'
            );
            break;
        case 'jobselect':
            window.open(
                '/resources/JobSelect/JobSelect.swf',
                null,
                'scrollbars=yes,fullscreen=yes'
            );
            break;
    }
}

function openKeitou(type) {
    switch (type) {
        case 'math':
            window.open(
                '/resources/keitou/VS_Keitouzu_Math.swf',
                null,
                'scrollbars=yes,fullscreen=yes'
            );
            break;
        case 'english':
            window.open(
                '/resources/keitou/VS_Keitouzu_English.swf',
                null,
                'scrollbars=yes,fullscreen=yes'
            );
            break;
    }
}
