function copy_code(text) {
  if (window.clipboardData) {
    window.clipboardData.setData("Text", text)
	alert("已经成功复制到剪贴板！");
  } else {
	var x=prompt('你的浏览器可能不能正常复制\n请你手动进行：',text);
  }
  //return false;
}

$(document).ready(function(){
	 /*var q = $("#byends_say");
    q.click(function() {
        var v = '<span id="sayload"> </span>';
        var s = yinheli.base;
        s += "?action=philna_say";
        var t = function() {
            q.hide("slow");
            setTimeout(function() {
                q.html(v).show("fast")
            },
            500)
        };
        var r = function() {
            q.html(yLang1)
        };
        var u = function(w) {
            setTimeout(function() {
                q.hide();
                q.html(w).slideDown()
            },
            1000)
        };
        yinheli.ajax("GET", s, null, t, r, u)
    });*/
	
	/*$(".post img, #comments img").lazyload({placeholder:"http://www.byends.com/usr/themes/update_default/images/grey.gif",effect:"fadeIn"});*/
	
	$(".myContact").click(function(){var A="i";var B="byends.com";var C=A+"@"+B;$(this).hide();setTimeout(function(){var D=$(".myContact");D.text(C);D.attr("href","mailto:"+C).unbind("click");D.fadeIn(2000)},1)});
	
	$('#sidebar .widget li a:not(".widget_ads a")').hover(function(){$(this).stop().animate({'left':'5px'},'fast')},function(){$(this).stop().animate({'left':'0px'},'fast')});
	
	$(".comment-reply a").click(function(){
		var h = $(this).attr("href");
		var u = h.split("#");
		var d = u[0].split("=");
		$('#comment-'+d[1]).animate({scrollTop:$('#response').offset().top},400,function(){$("#response").focus()});return false;
		});
	
	//$(".comment-reply a, .cancel-comment-reply a").click(function(){$('html,body').animate({scrollTop:$('#response').offset().top},400,function(){$("#response").focus()});return false});
	
	$(".cloudIme").click(function(){javascript:(function(q){!!q?q.toggle():(function(d,j){j=d.createElement('script');j.src='http://ime.qq.com/fcgi-bin/getjs';j.setAttribute('ime-cfg','lt=2');d.getElementsByTagName('head')[0].appendChild(j)})(document)})(window.QQWebIME)}); 

});
