﻿function hideTips()
{
	if(!window.t){
	
	    t = window.setTimeout('document.getElementById("xcity_div").style.display = "none";t=null;', 500);
      // document.getElementById("xcity_div").className="";
	}	
}
function showTips()
{       document.getElementById("xcity_div").className="";

	document.getElementById("xcity_div").style.display="";
}
function showTips2()
{


showTips();
document.getElementById("xcity_div").className="xcity_div_do";
}
document.onmouseover = function(e){
	if(isChildNode(e, "xcity_div")){
		window.clearTimeout(t);
		t = null;
	}else{
		hideTips();
	}
}
function isChildNode(e, id){
	var e = e || event;
	var target = e.target || e.srcElement;
	if(target.id == "Top_catchword_words") return true;
	while(target){
		if(target.id == id){
			return true;
		}
		if(target.parentNode){
			target = target.parentNode;
		}else{
			return false;
		}
	}
	return false;
}