document.onkeydown=fkp;
function Init(){
var sd;
gm = 'V';
gafg = true;
sd = fgusd();
fdsd(sd);
fwh();
famf();
}
function fwh(){
document.write('<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0"><TR VALIGN="top">');
if (gfvn !=0){
document.write('<TD>');
document.write('<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="1">');
document.write('<TR VALIGN="top">');
if (gfvn == 3) fwie(1);
document.write('<TD>');
fwo();
document.write('</TD>');
if (gfvn == 2) fwie(1);
document.write('</TR>');
document.write('<TR VALIGN="top">');
if (gfvn == 3){
document.write('<TD>');
fwn();
document.write('</TD>');
};
document.write('<TD>');
fwf(gsf);
document.write('</TD>');
if (gfvn == 2){
document.write('<TD>');
fwn();
document.write('</TD>');
};
document.write('</TR>');
if (gmvn >= 2){
document.write('<TR VALIGN="top">');
if (gfvn == 3) fwie(1);
document.write('<TD>');
fws();
document.write('</TD>');
if (gfvn == 2) fwie(1);
document.write('</TR>');
};
if (gmvn >= 3){
document.write('<TR VALIGN="top">');
if (gfvn == 3) fwie(1);
document.write('<TD>');
fwy();
document.write('</TD>');
if (gfvn == 2) fwie(1);
document.write('</TR>');
};
if (gmvn >= 3){
document.write('<TR VALIGN="top">');
if (gfvn == 3) fwie(1);
document.write('<TD>');
fwu();
document.write('</TD>');
if (gfvn == 2) fwie(1);
document.write('</TR>');
};
document.write('</TABLE>');
document.write('</TD>');
};
if (govn != 0 || gmvn != 0){
document.write('<TD>');
document.write('<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0">');
if (gmvn >= 1){
document.write('<TR ALIGN="center" VALIGN="top"><TD>');
fwm();
document.write('</TD></TR>');
};
if (govn >= 1){
document.write('<TR VALIGN="top"><TD>');
if (govn == 1){
} else {
fwol(gol);
};
document.write('</TD></TR>');
};
document.write('</TABLE>');
document.write('</TD>');
};
document.write('</TR></TABLE>');
}
function fwm(){
document.write('<TABLE WIDTH="128" HEIGHT="48" CELLPADDING="0" CELLSPACING="0"><TR><TD ALIGN="center" VALIGN="middle">');
document.write('<INPUT TYPE="button" VALUE="最初" style="width:40px;" onClick="famf()">');
document.write('<INPUT TYPE="button" VALUE="戻る" style="width:40px;" onClick="famp()">');
document.write('<INPUT TYPE="button" VALUE="進む" style="width:40px;" onClick="famn()"><BR>');
document.write('<INPUT TYPE="button" VALUE=" || " style="width:24px;" onClick="ftse()">');
document.write('<INPUT TYPE="button" VALUE=" > " style="width:24px;" onClick="fts(500)">');
document.write('<INPUT TYPE="button" VALUE=">>" style="width:32px;" onClick="fts(250)">');
document.write('<INPUT TYPE="button" VALUE=">>>" style="width:40px;" onClick="fts(125)"><BR>');
document.write('</TD></TR></TABLE>' + "\n");
}
function fkp(e){
var n = navigator.appName + ' ';
var kc;
switch (n.charAt(0)){
 case 'M': kc = event.keyCode; break;
 default: kc = e.which; break;
};
fvkp(kc);
}
function fvkp(kc){
switch (kc){
case 48: case 96: fte(); break;
case 49: case 97: fts(500); break;
case 50: case 98: fts(250); break;
case 51: case 99: fts(166); break;
case 52: case 100:fts(125); break;
case 53: case 101:fts(100); break;
case 54: case 102:fts( 83); break;
case 55: case 103:famf(); break;
case 72: famp(); break;
case 56: case 104:famp(); break;
case 78: famn(); break;
case 57: case 105:famn(); break;
default: break;
};
}
