function rt(){ return true; }
onerror=rt;
function rf(a){ return false; }
function mdproc(e){if(e.which==1){window.captureEvents(Event.MOUSEMOVE);window.onmousemove=rf;}}
function muproc(e){if(e.which==1){window.releaseEvents(Event.MOUSEMOVE);window.onmousemove=null;}}
function bpproc(){for(i=0;i<document.all.length;i++){if(document.all[i].style.visibility!="hidden"){document.all[i].style.visibility="hidden";document.all[i].id="elmid";}}};
function approc(){for(i=0;i<document.all.length;i++){if(document.all[i].id=="elmid"){document.all[i].style.visibility="";}}};
if(navigator.appName.indexOf('Internet Explorer')==-1||navigator.userAgent.indexOf('MSIE')!=-1){if(document.all){document.onselectstart=rf;}if(document.layers){window.captureEvents(Event.MOUSEUP|Event.MOUSEDOWN);window.onmousedown=mdproc;window.onmouseup=muproc;}if(document.getElementById&&!document.all){document.onmousedown=rf;}}
window.onbeforeprint = bpproc;
window.onafterprint = approc;
document.oncontextmenu = rf;


var sspeed  = 200;
var sm1 = 'めだかＬＯＶＥへようこそ！';
var sm2 = 'めだかの生態や飼育のことなど';
var sm3 = 'めだかについてのいろんな情報を掲載しています。';
var sm4 = 'ぜひご覧下さい。';
var sm5 = 'それではお楽しみくださいね。　　　　　';
var smsg = sm1 + sm2 + sm3 + sm4 + sm5;
smsg = smsg + smsg;
function statusMsg(){
    setTimeout("statusMsg()",sspeed);
    smsg = smsg.substring(2,smsg.length) + smsg.substring(0,2);
    window.status = smsg;
}
statusMsg();

function notes(eve){
    if(document.all){
        if(event.button == 2){
            alert("右クリックはつかわないでね");
            return false;
        }
    }
    if(document.layers){
        if(eve.which == 3){
            alert("右クリックはつかわないでね");
            return false;
        }
    }
}
if(document.layers)document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=notes;
