var CSS_EVENT_SELECTOR_RULE=new Array(
'A.news_title_home:mousemove:showTip'
,'A.news_title_home:mouseout:hideTip'
,'A.news_detail_home STRONG:mousemove:showTip'
,'A.news_detail_home STRONG:mouseout:hideTip'
,'DIV.news_title_1 STRONG.title:mousemove:showTip'
,'DIV.news_title_1 STRONG.title:mouseout:hideTip'
);
function showTip(evt){
	var cssTip = this.parentNode.nextSibling.nextSibling.style;
	var tip = this.parentNode.nextSibling.nextSibling;
	var _body = document.documentElement;
/*cach lay toa do cua chuot luc xay ra su kien*/
/*@cc_on  @if(1)
	var x=window.event.clientX + _body.scrollLeft - _body.clientLeft;
	var y=window.event.clientY + _body.scrollTop - _body.clientTop;
	if(!this.getAttribute('_first_time')){
		cssTip.visibility='hidden';
		tip.filters.item(0).Apply();
	}
  @else@*/
	var x=evt.pageX;
	var y=evt.pageY;
/*@end@*/
	var top,left;
	if(y + tip.offsetHeight > _body.clientHeight + _body.scrollTop){ // outside of screen
		 top = Math.max(y - tip.offsetHeight + 10,_body.scrollTop + 10);
	}else{
		top = 10 + y;
	}
	if(x + tip.offsetWidth > _body.clientWidth + _body.scrollLeft){
		left = Math.max(x - tip.offsetWidth + 10,_body.scrollLeft + 10);
	}else{
		left = 10 + x;
	}
	if(top < y && y < top + tip.offsetHeight && left < x && x < left + tip.offsetWidth){ //mouse still inside the rectangle
		cssTip.top = y+10+'px';
		cssTip.left = x+10+'px';
	}else{
		cssTip.top = top + 'px';
		cssTip.left = left + 'px';
	}
/*@cc_on
	if(!this.getAttribute('_first_time')){
		cssTip.visibility='visible';
		tip.filters.item(0).Play();
		this.setAttribute('_first_time',1);
	}
 @*/
}
function hideTip(){
	this.parentNode.nextSibling.nextSibling.style.top = '-20000px';
	this.parentNode.nextSibling.nextSibling.style.left = '-20000px';
	this.setAttribute('_first_time',0);
}