<!--//

//レイヤーの幅
var nWidth = 66;
//ずらす場合下記2項目を変更してください
var nXAlpha = 220;
var nYAlpha = 220;

///////////////////////////////////////////////////////////////////////////////////
//他変数
///////////////////////////////////////////////////////////////////////////////////
var nYPos;
var nTimer;
///////////////////////////////////////////////////////////////////////////////////
//レイヤー移動関数
///////////////////////////////////////////////////////////////////////////////////
function SampleStartMove()
{
	var nWinWidth;
	//NNの場合
	if (navigator.appName=="Netscape")
	{
		//真中を計算
		nWinWidth = window.innerWidth/2;
		//画面の位置を取得
		nYPos = window.pageYOffset;
		//NN4
		if(document.layers)
		{
			//レイヤーの幅と高さをマウス座標にセット
			document.layerSample.left = nWinWidth - nWidth/2 + nXAlpha;
			document.layerSample.top = nYPos + nYAlpha;
		}
		//NN6
		else
		{
			document.getElementById("layerSample").style.left = nWinWidth - nWidth/2 + nXAlpha;		
			document.getElementById("layerSample").style.top = nYPos + 175;			
		}
	}
	//IEの場合
	if (document.all)
	{
		//真中を計算
		nWinWidth = window.document.body.clientWidth/2;
		//画面の位置を取得
		nYPos = document.body.scrollTop;
		//レイヤーの幅と高さを座標にセット
		layerSample.style.left = nWinWidth - nWidth/2 + nYAlpha;	
		layerSample.style.top = nYPos + 175;				
	}
	nTimer=setTimeout("SampleStartMove()",100);
}
//-->
