window.onresize=re;
function re(){
if(document.layers){
location.reload();}
}
num = 0;

function chbnr() {



num++;
num %= 18;

tmr=setInterval('chbnr()',8000);

	if(document.layers){
	document.layers["co"].document.comm.src = "img/"+num+".gif";
	clearInterval(tmr);


	}
	else if(document.getElementById) {
	document.comm.src = "img/"+num+".gif";
	clearInterval(tmr);


	}

	 else if(document.all){
	document.comm.src = "img/"+num+".gif";
	clearInterval(tmr);


	}
}


function win() {
if(document.layers){
        w=window.open("contents/index.html","godard","width="+screen.availWidth+",height="+screen.availHeight+",top=0,left=0,toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=0,resizable=0");        

        w.focus();
        }else{
        w=window.open("contents/index.html","godard","toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=0,resizable=0");
        w.focus();
        w.moveTo(0,0);
        w.resizeTo(screen.width-15,screen.height-50);
        }
}

function infowin() {
i=window.open("info.html","info","width=310,height=400,toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=0");
i.focus();
}

function winbbs() {
if(document.layers){
        w=window.open("contents/g_et_m/bbsindex.html","godard","width="+screen.availWidth+",height="+screen.availHeight+",top=0,left=0,toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=0,resizable=0");        

        w.focus();
        }else{
        w=window.open("contents/g_et_m/bbsindex.html","godard","toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=0,resizable=0");
        w.focus();
        w.moveTo(0,0);
        w.resizeTo(screen.width-15,screen.height-50);
        }
}


