var AdLogoWidth0 =50;//AD的宽度
var AdLogoHeight0 = 15;//AD的高度
var Far_x0 = 5;//AD离左或右边界的距离
var Far_BottomY0 = 10;//AD离下边界的距离

function AdMove0()
{
	if (navigator.appName != "Netscape")
	{	
		//sys.style.top=document.body.scrollTop;//上
		sys.style.top=document.body.scrollTop+document.body.offsetHeight-AdLogoHeight0-Far_BottomY0;//下
		sys.style.left=document.body.scrollLeft+document.body.offsetWidth-AdLogoWidth0-Far_x0+5;//右
		//sys.style.left=document.body.scrollLeft+Far_x0;//左
		setTimeout("AdMove0();",50)
	}
	else
	{
 		document.sys.top=pageYOffset+window.innerHeight-LeftAdLogoHeight0-Far_BottomY0;
 		document.sys.left=pageXOffset+window.innerWidth-AdLogoWidth0-Far_x0;
 		setTimeout("AdMove0();",50)
	}
}


if (navigator.appName != "Netscape")
{
	document.write("<div id='sys' class='pop' style=' top:0; left:0; visibility:visible; z-index: 1; width: 50px; height:20px;'><object classid=clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11 id=min type=application/x-oleobject><param name='Command' value='Minimize'></object><object classid=clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11 id=max type=application/x-oleobject><param name='Command' value='Maximize'></object><a onClick='min.Click()' title='最小化' style='font-size: 12px; text-decoration: none; cursor: hand; border: 1px none #cccccc;  margin: 1px; '><font face=webdings>0</font></a><a style='font-size: 12px; text-decoration: none; cursor: hand; border: 1px none #cccccc; margin: 1px;' onClick='max.Click()' title='最大化或还原'><font face=webdings>2</font></a><a style='font-size: 12px; text-decoration: none; cursor: hand; border: 1px none #cccccc;  margin: 1px;' onClick='window.close();' title='关闭'><font face=webdings>r</font></a></div>");//background: #e6e6e6;
	AdMove0();
}
else
{
	document.write("<layer id='sys' class='pop' top=0 left=0 width=50px><object classid=clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11 id=min type=application/x-oleobject><param name='Command' value='Minimize'></object><object classid=clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11 id=max type=application/x-oleobject><param name='Command' value='Maximize'></object><a onClick='min.Click()' title='最小化' style='font-size: 12px; text-decoration: none; cursor: hand; border: 1px solid #cccccc;  margin: 1px;'><font face=webdings>0</font></a><a style='font-size: 12px; text-decoration: none; cursor: hand; border: 1px solid #cccccc;  margin: 1px;' onClick='max.Click()' title='最大化'><font face=webdings>1</font></a><a style='font-size: 12px; text-decoration: none; cursor: hand; border: 1px solid #cccccc;  margin: 1px;' onClick='window.close();' title='关闭'><font face=webdings>r</font></a></layer>");
	AdMove0();
}
