/*
zSofa js
 */
jQuery(document).ready(function($){				//启用 jQ

$('.reply').click(function() { //点击 reply 生成 @用户名 + 链接
	var atid = '"#' + $(this).parent().attr("id") + '"'; 
	var atname = $(this).prevAll().find('cite:first').text();
	$("#comment").attr("value","<a href=" + atid + ">@" + atname + " </a>").focus();
});
$('.cancel-comment-reply a').click(function() { //点击取消回复评论清空评论框的内容
	$("#comment").attr("value",'');
});

})												//结束jQuery
