function randomtop() {
	var x=Math.floor(Math.random()*32);
	if(x < 2) {
		document.write(' GIF IMAGE<BR>');
		document.write('<img src="top.gif" width="500" height="256">');
	} else if(x < 6 ){
		document.write(' MAMONON FLASH<BR>');
		document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="500" height="333">');
		document.write('<param name=movie value="archery_a.swf">');
		document.write('<param name=quality value=high>');
		document.write('<embed src="archery_a.swf" quality=high pluginspage="http://www.macromedia.com/jp/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="500" height="333">');
		document.write('</embed>');
		document.write('</object>');
	} else if(x < 10 ){
		document.write(' OTONOSAMA FLASH<BR>');
		document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="500" height="333">');
		document.write('<param name=movie value="tonosama.swf">');
		document.write('<param name=quality value=high>');
		document.write('<embed src="tonosama.swf" quality=high pluginspage="http://www.macromedia.com/jp/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="500" height="333">');
		document.write('</embed>');
		document.write('</object>');
	} else if(x < 14){
		document.write(' PENGUIN GUN ver.2 FLASH<BR>');
		document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="500" height="333">');
		document.write('<param name=movie value="top1.swf">');
		document.write('<param name=quality value=high>');
		document.write('<embed src="top1.swf" quality=high pluginspage="http://www.macromedia.com/jp/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="500" height="333">');
		document.write('</embed>');
		document.write('</object>');
	} else if(x < 18 ){
		document.write(' PENGUIN GUN ver.1 FLASH<BR>');
		document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="500" height="333">');
		document.write('<param name=movie value="top2.swf">');
		document.write('<param name=quality value=high>');
		document.write('<embed src="top2.swf" quality=high pluginspage="http://www.macromedia.com/jp/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="500" height="333">');
		document.write('</embed>');
		document.write('</object>');
	} else if(x < 22 ){
		document.write(' MAJYO FLASH<BR>');
		document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="500" height="333">');
		document.write('<param name=movie value="top3.swf">');
		document.write('<param name=quality value=high>');
		document.write('<embed src="top3.swf" quality=high pluginspage="http://www.macromedia.com/jp/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="500" height="333">');
		document.write('</embed>');
		document.write('</object>');
	} else if(x < 26 ){
		document.write(' SPY FLASH<BR>');
		document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="500" height="333">');
		document.write('<param name=movie value="spy.swf">');
		document.write('<param name=quality value=high>');
		document.write('<embed src="spy.swf" quality=high pluginspage="http://www.macromedia.com/jp/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="500" height="333">');
		document.write('</embed>');
		document.write('</object>');
	} else {
		document.write('Web3D PENGUIN GOGO!<BR>');
			
		document.write('<OBJECT classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000"');
		document.write(' codebase="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,1,0"');
		document.write(' ID=penguin_gogo WIDTH=500 HEIGHT=250>');
		document.write('<PARAM NAME=src VALUE="penguin_gogo.dcr">');
		document.write('<PARAM NAME=swStretchStyle VALUE=meet>');
		document.write('<PARAM NAME=swRemote VALUE="');
		document.write("swSaveEnabled='false' swVolume='false' swRestart='false' swPausePlay='false' swFastForward='false' swContextMenu='false' ");
		document.write('">\n');
		document.write('<EMBED SRC="penguin_gogo.dcr"');
		document.write(' bgColor=#99CC00 progress=FALSE logo=FALSE swStretchHAlign=Left swStretchVAlign=Top  WIDTH=500 HEIGHT=250 swStretchStyle=meet ');
		document.write('swRemote="');
		document.write("swSaveEnabled='false' swVolume='false' swRestart='false' swPausePlay='false' swFastForward='false' swContextMenu='false' ");
		document.write('"');
		document.write(' TYPE="application/x-director" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveDirector">');
		document.write('</EMBED>');
		document.write('</OBJECT>');

		document.write('Please left-click the screen with the mouse once.');
	}
}

function randomicon() {
	var x=Math.floor(Math.random()*17);
	if( x < 18 ) {
		document.write('<LINK REL="SHORTCUT ICON" HREF="icon/chepes_' + x + '.ico">');
	}
}
function randombg() {
	var x=Math.floor(Math.random()*12);
	if( x < 11 ) {
		document.write('<body background="background/b0' + x + '.gif">');
	}
}
function rnd_gif() {
	var x=Math.floor(Math.random()*3);
	document.write('<img src="rnd_gif/c001_cara' + x + '.gif" width="109" height="52">');
}

