function killErrors(){
	return true;
}
window.onerror = killErrors;

sfHover = function(){
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++){
		sfEls[i].onmouseover = function(){
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout = function(){
			this.className = this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
window.onload = sfHover;

function doZoom(size){
	var zoom = document.all?document.all['Zoom']:document.getElementById('Zoom');
	zoom.style.fontSize = size+'px';
}

function copyurl(){
	ttext = location.href+"?="+"一篇不错的文章！";
	clipboardData.setData("text",ttext);
	alert("地址复制成功！粘贴给好友请按[ CTRL + V ]。\n\n非常感谢您的推荐！");
}
function ReImgSize(){
	for (i=0; i<document.images.length; i++){
		if (document.all){
			if (document.images[i].width>500){
				document.images[i].width = "500"
				document.images[i].outerHTML = '<a href="'+document.images[i].src+'" target="_blank" title="在新窗口打开图片">'+document.images[i].outerHTML+'</a>'
			}
		}else{
			if (document.images[i].width>400){
				document.images[i].title = "在新窗口打开图片"
				document.images[i].style.cursor = "pointer"
				document.images[i].onclick = function(e){window.open(this.src)}
			}
		}
	}
}