var globopObject;
var opIndex=0;
var cleared=true;
var direction=8;
function dynOpacity(opObject,stop)
{
	if (stop) {
		clearInterval(window.tm);
		cleared=true;
		opIndex=0;
		return;
	}
	globopObject=opObject;

	//if (opIndex>110) direction=-8;
	if(globopObject.name == "logo") direction=-8;
	if (opIndex>110) return;
	if (opIndex<0) direction=8;

	opIndex+=direction;
	globopObject.style.filter='alpha(opacity:' + opIndex + ')';
	if (cleared)
	{
		window.tm=setInterval("dynOpacity(globopObject,false);",1);
		cleared=false;
	}
	//alert(window.tm);
}
function handleevent()
{
	if (event.type=="mouseover")
  	if(event.srcElement.tagName=="IMG") 
	if (event.srcElement.parentElement.tagName=="A" || event.srcElement.onclick)	
	{
		dynOpacity(event.srcElement,false);
	}
	if (event.type=="mouseout")
	if(event.srcElement.tagName=="IMG") 
	{
		event.srcElement.style.filter="";
		dynOpacity(event.srcElement,true);	
	}
}
function linkcount(a){
	var url="linkout/index.php?url="+a.href;
	if (window.XMLHttpRequest) { // Non-IE browsers
		req = new XMLHttpRequest();
		req.open("GET", url, false);
		req.send(null);
	} else if (window.ActiveXObject) { // IE
		req = new ActiveXObject("Microsoft.XMLHTTP");
		if (req) {
			req.open("GET", url, false);
			req.send();
		}
	}
}
//document.onmouseover=handleevent;
//document.onmouseout=handleevent;
document.write('<body onMouseOut="window.status=\'【4399小游戏】www.4399xyx.com 如果你喜欢本站,别忘了把本站的网址告诉给你QQ上的朋友一起分享哦!\';return true">');
document.write('<div id="header" class="center"><div id="logo"><a hideFocus href="http://www.4399xyx.com/"><img name="logo" src="http://www.4399xyx.com/images/logo.gif" alt="" /></a></div>');
document.write('<div id="toplist"><ul>');
document.write('<li><a href="http://www.4399xyx.com/good.html" target="_blank">最新推荐</a></li>');
document.write('<li><a href="http://www.4399xyx.com/hot.html" target="_blank">热门排行</a></li>');
document.write('<li><a href="http://www.4399xyx.com/new.html" target="_blank">今日更新</a></li>');
document.write('<li><a href="http://cnc.4399xyx.com/" target="_blank">4399网通站</a></li>');
document.write('<li><a href="http://tel.4399xyx.com/" target="_blank">4399电信站</a></li>');
document.write('</ul></div><div class="spacer"></div></div>');
