	var currentpos,timer;
	function initialize()
	{
		timer=setInterval("scrollwindow()",10);
	}
	function sc()
	{
		clearInterval(timer);
	}
	function scrollwindow()
	{
		currentpos=document.body.scrollTop;window.scroll(0,++currentpos);if (currentpos != document.body.scrollTop) sc();
	}
	document.onmousedown=sc
	document.ondblclick=initialize

	//下拉菜单相关代码
	 var h;
	 var w;
	 var l;
	 var t;
	 var topMar = 1;
	 var leftMar = -2;
	 var space = 1;
	 var isvisible;
	 var MENU_SHADOW_COLOR='#999999';//定义下拉菜单阴影色
	 var global = window.document;
	 global.fo_currentMenu = null;
	 global.fo_shadows = new Array;
	 var stylelist = '<a style=font-size:9pt;line-height:12pt; class=dp href="/index.fpl?cmd=bbs">业主论坛</a><br><a style=font-size:9pt;line-height:12pt; class=dp target=_blank href="/index.fpl?cmd=setup">个人设置</a><br><a style=font-size:9pt;line-height:12pt; class=dp target=_blank href="/index.fpl?cmd=changemoney">积分转换</a><br><a style=font-size:9pt;line-height:12pt; class=dp target=_blank href="/index.fpl?cmd=mark">我的收藏</a><br><a style=font-size:9pt;line-height:12pt; class=dp target=_blank href="#" onclick="window.open(\'/index.fpl?cmd=radio&type=1\',\'radio\',\'resizable=no,scrollbars=no,status=no,toolbar=no,location=no,menu=no,width=480,height=300\');return false;">武夷电台</a><br><a style=font-size:9pt;line-height:12pt; class=dp target=_blank href="#" onclick="window.open(\'/UserInfo.asp?action=ModReady\');return false;">账号修改</a><br><a style=font-size:9pt;line-height:12pt; class=dp href="/index.fpl?cmd=logout">退出登陆</a><br>';
	 var youqing = '<a style=font-size:9pt;line-height:12pt; class=dp target=_blank href="http://www.jinyuan.org/">新华联锦园</a><br><a style=font-size:9pt;line-height:12pt; class=dp target=_blank href="http://www.badmintonsports.com/">金羽羽毛球俱乐部</a><br>';
	 var games = '<a style=font-size:9pt;line-height:12pt; class=dp target=_blank href="http://pet.mop.com/?u=27897322">猫游记(Mop)</a><br><a style=font-size:9pt;line-height:12pt; class=dp target=_blank href="pet/petshop.php">宠物乐园</a><br><a style=font-size:9pt;line-height:12pt; class=dp target=_blank href="/index.fpl?cmd=cs">反恐精英(CS1.5)</a><br><a style=font-size:9pt;line-height:12pt; class=dp target=_blank href="index.fpl?cmd=gcenter">武夷棋牌室</a><br><a style=font-size:9pt;line-height:12pt; class=dp target=_blank href="mud/mud.htm">武夷传奇</a><br>';
	 var infos = '<a style=font-size:9pt;line-height:12pt; class=dp target=_blank href="road.htm">路况信息</a><br><a style=font-size:9pt;line-height:12pt; class=dp target=_blank href="index.fpl?cmd=info&action=2">常用信息</a><br><a style=font-size:9pt;line-height:12pt; class=dp target=_blank href="index.fpl?cmd=info&action=3">票务查询</a><br><a style=font-size:9pt;line-height:12pt; class=dp target=_blank href="time.htm">万年历</a><br>';

	function HideMenu()
	{
	 var mX;
	 var mY;
	 var vDiv;
	 var mDiv;
		if (isvisible == true)
	{
			vDiv = document.all("menuDiv");
			mX = window.event.clientX + document.body.scrollLeft;
			mY = window.event.clientY + document.body.scrollTop;
			if ((mX < parseInt(vDiv.style.left)) || (mX > parseInt(vDiv.style.left)+vDiv.offsetWidth) || (mY < parseInt(vDiv.style.top)-h) || (mY > parseInt(vDiv.style.top)+vDiv.offsetHeight)){
				vDiv.style.visibility = "hidden";
				isvisible = false;
			}
	}
	}

	function ShowMenu(vMnuCode,tWidth) {
		vSrc = window.event.srcElement;
		vMnuCode = "<table id='submenu' cellspacing=1 cellpadding=3 style='width:"+tWidth+"' class=tableborder1 onmouseout='HideMenu()'><tr height=23><td nowrap align=left class=tablebody1>" + vMnuCode + "</td></tr></table>";

		h = vSrc.offsetHeight;
		w = vSrc.offsetWidth;
		l = vSrc.offsetLeft + leftMar+4;
		t = vSrc.offsetTop + topMar + h + space ;
		vParent = vSrc.offsetParent;
		while (vParent.tagName.toUpperCase() != "BODY")
		{
			l += vParent.offsetLeft;
			t += vParent.offsetTop;
			vParent = vParent.offsetParent;
		}

		menuDiv.innerHTML = vMnuCode;
		menuDiv.style.top = t;
		menuDiv.style.left = l - 2;
		menuDiv.style.visibility = "visible";
		isvisible = true;
	        //makeRectangularDropShadow(submenu, MENU_SHADOW_COLOR, 4)
	}
	function enable(btn)
	{
		btn.filters.gray.enabled=0;
	}
	function disable(btn)
	{
		btn.filters.gray.enabled=1;
	}
	function sendmsg(target)
	{
		window.open('index.fpl?cmd=sendmsg&user='+ target,'_blank','resizable=1,scrollbars=1,status=no,toolbar=no,location=no,menu=no,width=480,height=270');
		return;
	}
	function bbimg(o)
	{
		var zoom=parseInt(o.style.zoom, 10)||100;zoom+=event.wheelDelta/12;if (zoom>0) o.style.zoom=zoom+'%';
		return false;
	}
	function ignoreError()
	{
		return true;
	}
	window.onerror = ignoreError;
	