

//マウスの座標
var nXPos = 0;
var nYPos = 0;
//レイヤーの座標
var nLayerXPos = 0;
var nLayerYPos = 0;
function StartShow(fImg, fTxt, fType)
{
	//レイヤーの座標をセット。好きな値に変更してください。
	//X軸、Y軸を+値、もしくは-値にすれば、好きな場所に固定されます。
	nLayerXPos = nXPos + 0;
	nLayerYPos = nYPos + 20;
	//NNの場合
	if (document.layers)
	{
		if (fType)
		{
			//レイヤーの幅と高さをマウス座標にセット
			document.Image.left = nLayerXPos;
			document.Image.top = nLayerYPos;
			//内容設定変更
			document.Image.document.write("<img src='"+fImg+"'><br>"+fTxt);
			document.Image.document.close();
			//表示
			document.Image.visibility = "show";
		}
		else
		{
			//非表示
			document.Image.visibility = "hide";
		}
	}
	//IEとNC6の場合
	if (document.getElementById)
	{
		if (fType)
		{
			//レイヤーの幅と高さをマウス座標にセット
			document.getElementById("Image").style.left = nLayerXPos;
			document.getElementById("Image").style.top = nLayerYPos;
			//内容設定変更
			document.getElementById("Image").innerHTML = "<img src='"+fImg+"'><br>"+fTxt;
			//表示
			document.getElementById("Image").style.visibility="visible";
		}
		else
		{
			//非表示
			document.getElementById("Image").style.visibility="hidden";
		}
	}

}
//マウスが動くとここにまず入ります。
//Netscapeの場合
if (navigator.appName=="Netscape")
{
	function nMouse(e)
	{
		nXPos = e.pageX;
		nYPos = e.pageY;
	}
	//NN4
	if (document.layers)
	{
		window.captureEvents(Event.MOUSEMOVE);
		window.onMouseMove = nMouse;
	}
	//NC6
	else
	{
		document.onmousemove = nMouse;
	}
}
//IEの場合
else
{
	function iMouse()
	{
		nXPos = event.x+document.body.scrollLeft;
		nYPos = event.y+document.body.scrollTop;
	}
	document.onmousemove = iMouse;
}

function abc(){
newwin=window.open("","new","width=1, height=1");
newwin.location="http://pt.afl.rakuten.co.jp/c/0485dc50.e0ee3bcb/?url=http%3a%2f%2fwww.rakuten.co.jp%2f";
newwin.close();}

