



x=0; 
m=1;

time=10;

function scrollright(){ m = 1 ; timer=setTimeout('scrollyoko()',time); }
function scrollleft(){ m = -1 ; timer=setTimeout('scrollyoko()',time); }
function scrollstop(){ m = 0; }

function scrollup(){ m = -1 ; timer=setTimeout('scrolltate()',time); }
function scrolldown(){ m = 1 ; timer=setTimeout('scrolltate()',time); }

scroll_width = 0;
sabun = 0.28;
yobun = 280;

function setscrollwidth(haba){
	
scroll_width = haba - screen.width * sabun + yobun;
//scroll_width = 4800;

timer=setTimeout('scrollyoko()',time);
	
}

function scrollyoko(){

scroll ( x = x + m,0  );

if ( x > scroll_width ) m = -1;
if ( x < -1 )  m = 1;

if (m != 0 ) { timer=setTimeout('scrollyoko()',time); }

}

scroll_height=0;
sabun=0.35;

function setscrollheight(takasa){

scroll_height = takasa - screen.width * sabun;
//scroll_height = 4800;

timer=setTimeout('scrolltate()',time);
	
}

function scrolltate(){

scroll ( 0 , x = x + m  );

if ( x > scroll_height ) m = -1;
if ( x < -1 )  m = 1;

if (m != 0 ) { timer=setTimeout('scrolltate()',time); }

}



function ta(moji,gazou,yoko,tate){

yoko2=yoko;
tate2=tate;

yoko+=70;
tate+=200;

e=window.open("","blank","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,left=0,top=0,resizable=yes,width="+yoko+",height="+tate);
e.window.resizeTo(yoko,tate);

e.document.write ('<html><head>');
e.document.write ('<meta http-equiv=\"content-type\" content=\"text/html;charset=x-sjis\">');
e.document.write ('</head>');
e.document.write ('<body onload=\"window.focus()\" bgcolor=\"#990033\"><table align=center cellspacing=10><tr><td align=center><img border="0" src=\"');
e.document.write (gazou);
e.document.write ('\" width=');
e.document.write (yoko2);
e.document.write (' height=');
e.document.write (tate2);
e.document.write ('></td></tr>\n');
e.document.write ('<tr><td align=center>\n');
e.document.write ('<font face=\"Verdana,Arial,Helvetica,sans-serif\" size=\"2\" color=\"white\">');
e.document.write (moji);
e.document.write ('</font>');
e.document.write ('</td></tr><tr><td align=center><form><input type=button onclick=\"window.close()\" value=\"Close\"></form></td></tr></table>\n');
e.document.write ('\n<body></html>');
e.document.close();

}

function ta2(moji,gazou,yoko,tate){

yoko2=yoko;
tate2=tate;

yoko+=70;
tate+=200;

e=window.open("","blank","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,left=0,top=0,resizable=yes,width="+yoko+",height="+tate);
e.window.resizeTo(yoko,tate);

e.document.write ('<html><head>');
e.document.write ('<meta http-equiv=\"content-type\" content=\"text/html;charset=x-sjis\">');
e.document.write ('</head>');
e.document.write ('<body onload=\"window.focus()\" bgcolor=\"#FFFFFF\"><table align=center cellspacing=10><tr><td align=center><img border="0" src=\"');
e.document.write (gazou);
e.document.write ('\" width=');
e.document.write (yoko2);
e.document.write (' height=');
e.document.write (tate2);
e.document.write ('></td></tr>\n');
e.document.write ('<tr><td align=center>\n');
e.document.write ('<font face=\"Verdana,Arial,Helvetica,sans-serif\" size=\"2\" color=\"black\">');
e.document.write (moji);
e.document.write ('</font>');
e.document.write ('</td></tr><tr><td align=center><form><input type=button onclick=\"window.close()\" value=\"Close\"></form></td></tr></table>\n');
e.document.write ('\n<body></html>');
e.document.close();

}

function ta3(moji,gazou,yoko,tate){

yoko2=yoko;
tate2=tate;

yoko+=70;
tate+=200;

e=window.open("","blank","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,left=0,top=0,resizable=yes,width="+yoko+",height="+tate);
// e.window.resizeTo(yoko,tate);

e.document.write ('<html><head>');
e.document.write ('<meta http-equiv=\"content-type\" content=\"text/html;charset=x-sjis\">');
e.document.write ('</head>');
e.document.write ('<body onload=\"window.focus()\" bgcolor=\"#000000\"><table align=center cellspacing=10><tr><td align=center><img border="0" src=\"');
e.document.write (gazou);
e.document.write ('\" width=');
e.document.write (yoko2);
e.document.write (' height=');
e.document.write (tate2);
e.document.write ('></td></tr>\n');
e.document.write ('<tr><td align=center>\n');
e.document.write ('<font face=\"Verdana,Arial,Helvetica,sans-serif\" size=\"2\" color=\"white\">');
e.document.write (moji);
e.document.write ('</font>');
e.document.write ('</td></tr><tr><td align=center><form><input type=button onclick=\"window.close()\" value=\"Close\"></form></td></tr></table>\n');
e.document.write ('\n<body></html>');
e.document.close();

}

function ta4(moji,gazou,yoko,tate){

yoko2=yoko;
tate2=tate;

yoko+=70;
tate+=200;

e=window.open("","blank","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,left=0,top=0,resizable=yes,width="+yoko+",height="+tate);
// e.window.resizeTo(yoko,tate);

e.document.write ('<html><head>');
e.document.write ('<meta http-equiv=\"content-type\" content=\"text/html;charset=x-sjis\">');
e.document.write ('</head>');
e.document.write ('<body onload=\"window.focus()\" bgcolor=\"#005151\"><table align=center cellspacing=10><tr><td align=center><img border="0" src=\"');
e.document.write (gazou);
e.document.write ('\" width=');
e.document.write (yoko2);
e.document.write (' height=');
e.document.write (tate2);
e.document.write ('></td></tr>\n');
e.document.write ('<tr><td align=center>\n');
e.document.write ('<font face=\"Verdana,Arial,Helvetica,sans-serif\" size=\"2\" color=\"white\">');
e.document.write (moji);
e.document.write ('</font>');
e.document.write ('</td></tr><tr><td align=center><form><input type=button onclick=\"window.close()\" value=\"Close\"></form></td></tr></table>\n');
e.document.write ('\n<body></html>');
e.document.close();

}

