window.onerror=function(){return true}
function adj_func(){
	var fix = 20;
	var ad = document.getElementById('top_tl_ad');
	var hei = ad.offsetHeight-fix;
	//alert(hei);
	if (hei < fix) {
		$("#top_tl_ad").parents(".bodyW").hide();
		return ;
		//alert('cc');
	}
	var rel = ad.getAttribute("rel");
	var rel_obj = document.getElementById(rel);

	//alert(rel_obj.lineHeight);
	rel_obj.style.lineHeight =21+"px";
	var space =hei%21;
	var top =Math.floor(space/2);

	rel_obj.style.overflow ="hidden";
	rel_obj.style.height =(hei-space)+"px";

	var rel_par =rel_obj.parentNode;
	rel_par.style.paddingTop =top+"px";
	rel_par.style.paddingBottom =(space-top)+"px";

}
//add favorite
function add_favorite(){
	var title = document.title;
	var url = document.URL;
	if (document.all) window.external.AddFavorite(url,title);
	else if (window.sidebar) window.sidebar.addPanel(title,url,"");
}