
function floatSS(iX,iY,id)
{
	var nn = ( navigator.appName.indexOf("Netscape") != -1 );

	var t;
	var j = 0;
	var dD = document;
	var dH = dD.html;
	var dB = dD.body;
	var px = dD.layers?'':'px';
	var L = dD.getElementById?dD.getElementById(id):dD.all?dD.all[id]:dD.layers[id];		

	this[id+'O'] = L;
	
	if(dD.layers) L.style = L;

	L.nX = L.iX=iX;
	L.nY = L.iY=iY;

	L.P=function(x,y)
	{
		this.style.left=x+px;
		this.style.top=y+px;
	};

	L.Fss = function()
	{
		var pX, pY;	
		pX = ( this.iX >=0 )?0:nn?innerWidth:nn&&dH.clientWidth?dH.clientWidth:dB.clientWidth;	
		pY = nn?pageYOffset:nn&&dH.scrollTop?dH.scrollTop:dB.scrollTop;	
		if ( this.iY < 0 )
		{
			pY += nn?innerHeight:nn&&dH.clientHeight?dH.clientHeight:dB.clientHeight;	
			this.nX += .1*( pX+this.iX-this.nX );
			this.nY += .1*( pY+this.iY-this.nY );
			this.P( this.nX, this.nY );
			setTimeout( this.id + 'O.Fss()', 33 );
		}
	}

	return L;
}

function random_banner()
{
	var banner = new Array(10);
	var now = new Date(); 
	var sec = now.getSeconds();

	var banner_num = 4;

	banner[0] = "http://static.ncjapan.co.jp/common/swf/sidebanner01.swf";
	banner[1] = "http://static.ncjapan.co.jp/common/swf/sidebanner02.swf";

	/* Adding Banner Area */
	banner[2] = "http://static.ncjapan.co.jp/common/swf/sidebanner01.swf";
	banner[3] = "http://static.ncjapan.co.jp/common/swf/sidebanner02.swf";

	document.write( "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0 width=125 height=422>" );
	document.write( "<param name=quality value=high>" );
	document.write( "<param name=movie value=" + banner[(sec%banner_num)]+ ">" );
	document.write( "<embed src=http://static.ncjapan.co.jp/common/swf/sidebanner01.swf quality=high pluginspage=http://www.macromedia.com/go/getflashplayer type=application/x-shockwave-flash width=125 height=422></embed>" );
	document.write( "</object>" );
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function windowOpen() {
	window.open("http://www.ncjapan.co.jp/netcafe/netcafe_main.htm", "ncj", "width=718,height=700,toolbar=no,location=no,menubar=no,top=10,left=50,scrollbars=yes,resizable=no");
}


function popMovie(name){
 var w=window.open("/games/"+name+"","","width=785,height=629")
}
