	// Mouse Hover
	$(function() {
		$(".post").mouseover(function(){
				$(this).css({ border:"0px solid #DDD", background:"#FFFFFF"});	//鼠标移上去背景色 阿米酷 2010-02-07 16:11:19
				$("h2 a:first",this).css({ display:"block", color:"#FF9431"});
			}).mouseout(function(){
				$(this).css({ border:"0px solid #E6E6E6", background:"#FFFFFF"});
				$("h2 a:first",this).css({ color:"#FF9431"});
				});

		});

	// Delay Image
	$(function() {
    	$(".post img").lazyload({
        	placeholder : "/c/images/grey.gif",
            effect : "fadeIn"
          });
    	});

	//Slide to any anchor
	$(document).ready(function() {
	$("a.anchorLink").anchorAnimate()
	});

	jQuery.fn.anchorAnimate = function(settings) {

		settings = jQuery.extend({
			speed : 1100
		}, settings);

		return this.each(function(){
			var caller = this
			$(caller).click(function (event) {
				event.preventDefault()
				var locationHref = window.location.href
				var elementClick = $(caller).attr("href")

				var destination = $(elementClick).offset().top;
				$("html:not(:animated),body:not(:animated)").animate({ scrollTop: destination}, settings.speed, function() {
					window.location.hash = elementClick
				});
				return false;
			})
		})
	}

function killErrors() {
	return true;
}
window.onerror = killErrors;
document.body.oncopy = function () {
	setTimeout( function () {
	  var text = clipboardData.getData("text");
	  if (text) {
	   text = text + "\r\n本文来自: 阿米酷(http://amiku.cn) 原文链接参考："+location.href; clipboardData.setData("text", text);
	  }
	 }, 100 )
}