<script type="text/javascript">
<!--
var user_keys = Array('1つ目のメロのキー', '2つ目のメロのキー', '3つ目のメロのキー');
var first_mero = 0;
var first_show = 1;

window.onload = initMeroBarChanger;

function changeMeroBar(mero_no) {
    user_key = user_keys[mero_no];
    var meroBar = document.getElementById('mero-bar');
    if (meroBar) {
        document.body.removeChild(meroBar);
    }
    links = document.getElementsByTagName('link');
    for (i = 0; i < links.length; i++) {
        link_href = links[i].getAttribute('href');
        if (link_href.indexOf('merobar.css') != -1) {
            document.getElementsByTagName('head')[0].removeChild(links[i]);
            break;
        }
    }
    showMeroBar();
}

function initMeroBarChanger() {
    var mero_no;

    if (first_mero == -1) {
        mero_no = Math.floor(Math.random() * user_keys.length);
    }
    else if (first_mero < 0 || first_mero >= user_keys.length) {
        mero_no = 0;
    }
    else {
        mero_no = first_mero;
    }
    changeMeroBar(mero_no);
    if (!first_show) {
        switchMeroBar(0);
    }
}
-->
</script>