//fplogo类定义
function fplogo()
{
	this.Id;
	this.Html;
	this.UpOrDown;
	this.LeftOrRight;
	this.Height;
	this.Width;
	this.Absolute;
	this.show = function ShowFplogo()
	{
		document.write("<div id=\""+ this.Id +"\" style='position: absolute;width:80;top:"+ this.Height +";left:"+ this.Width +";visibility: visible;z-index: 1'>");
		document.write(this.Html);
		document.write("</div>");
	}
	this.move = function MoveFplogo()
	{
		var obj = document.getElementById(this.Id);
		if (this.UpOrDown == "Up")
		{
			obj.style.top=document.body.scrollTop+this.Height;
		}
		else
			obj.style.top=document.body.scrollTop+document.body.offsetHeight-this.Height;
		if (this.Absolute)
		{
			if (this.LeftOrRight == "Right")
			{
				obj.style.left=document.body.scrollLeft+document.body.offsetWidth - this.Width;
			}
			else
				obj.style.left=document.body.scrollLeft+ this.Width;
		}
		setTimeout(this.Id + ".move();",50)
	}
}

var index_fplogo = new fplogo;
index_fplogo.Id = "index_fplogo";	//类名和Id 一样
index_fplogo.Html = "<a href=http://www.cncard.com/lottery/happy8/ target=_blank><img src='/images/act/160x300_happy8_cncard.gif' border='0'></a>";
index_fplogo.UpOrDown = "Up";
index_fplogo.LeftOrRight = "Right";
index_fplogo.Height = 100;
index_fplogo.Width = 800;
index_fplogo.Absolute = false;	//ture:相对 false:绝对
index_fplogo.show();
index_fplogo.move();

