var CommentConfig = {
	CommentPage: {
		isEnable: true,
		pageUnit: 5,
		firstPage: {
			Class: "commentFirstPage",
			enable: true,
			text: "首页"
		},
		previousPage: {
			Class: "commentPreviousPage",
			enable: true,
			text: "上一页"
		},
		nextPage: {
			Class: "CommentNextPage",
			enable: true,
			text: "下一页"
		},
		lastPage: {
			Class: "CommentLastPage",
			enable: true,
			text: "尾页"
		},
		pageText: {
			leftTag: "[",
			rightTag: "]"
		},
		pageID: ["commentPage1", "commentPage2"],
		isKeyboardEvent: true
	},
	commentTab: {
		isEnable: true,
		tabs: [{
			title: "最新评论",
			info: "",
			type: {
				include_top: 1,
				favor: 2,
				orderby_type: 1
			}
		},
		{
			title: "精华评论",
			info: "",
			type: {
				include_top: 0,
				favor: 1,
				orderby_type: 1
			}
		},
		{
			title: "顺序查看",
			info: "",
			type: {
				include_top: 1,
				favor: 2,
				orderby_type: 0
			}
		}],
		htmlTpl: {
			tab: '<p><span><i title="tabtitle"></i>#{title}<i></i></span><span><i title="tabinfo"></i>#{info}<i></i></span></p>'
		},
		currentTab: 1,
		asideCont: {
			html: ""
		},
		bracket: ["[", "]"],
		containerId: "COMMENT_TAB",
		showNumOfComments: 0
	},
	CommentQuickReply: {
		isEnable: true,
		items: {
			reply: {
				textBefore: "回复"
			},
			back: {
				textBefore: "顶",
				textAfter: "已顶"
			},
			anti: {
				textBefore: "踩",
				textAfter: "已踩"
			}
		},
		htmlTpl: {
			reply: '<a class="reply"><b></b>#{text}<b></b></a>',
			back: '<a class="back"><b></b>#{text}<b></b><span><i></i>#{count}<i></i></span></a>',
			anti: '<a class="anti"><b></b>#{text}<b></b><span><i></i>#{count}<i></i></span></a>'
		},
		quoteTpl: "[_q_][_i_]#{userName}[_/i_][_b_][_/b_][_em_]#{time}[_/em_][_u_]#{area}[_/u_][_br_]#{content}[_/q_]",
		popupTpl: {
			bone: '<div class="CommentQuickReply_Popup">						<div class="CommentQuickReply_Popup_TopBar"><a #{handler1}><img src="http://i.baidu.com/yule/r/yule/comment/img/menu_close.gif" style="margin-top:5px;"></a></div>						<div class="CommentQuickReply_Popup_UserInfo" id="CommentQuickReply_Popup_UserInfo">							#{userInfo}						</div>						<h2>对 #{title} 发表评论</h2>						<p><b>引用：</b><br> #{refered}</p>						<form name="CommentQuickReply_Popup_Content">							#{inputTitle}							<textarea name="content" id="CommentQuickReply_Popup_Text" #{handler2}></textarea>							<input type="hidden" value="#{reply_id}" name="replyId">							<input type="button" class="button" name="submit" value="发表评论[Ctrl+Enter]" #{handler3}>							<span id="CommentQuickReply_Popup_Error"></span>						</form>					</div>',
			userName: "<b>欢迎您，</b><span>#{userName}</span>&nbsp; #{logout}",
			login: "<a href=# #{handler4}>登录</a>【匿名发表】",
			inputTitle: '<input type="text" class="title" name="title" value="请输入标题" #{handler5}><br>'
		},
		sep: "",
		bracket: ["[", "]"],
		timeout: 1000,
		referedMax: 50,
		titleMax: 15,
		defaultCommentType: {
			include_top: 1,
			favor: 2,
			orderby_type: 1
		},
		popupLayerStyle: {
			width: 500,
			height: 370,
			opacity: 0.5,
			filterBg: "#000"
		},
		alertForEmpty: "popup"
	},
	CommentError: {
		closeID: "CommentErrorConfirm",
		errorHtml: '<dl id="COMMENT_POPUP"><dt><a href=javascript:void(0) onclick="CommentPopupController()"><img src="http://i.baidu.com/yule/r/yule/comment/img/menu_close.gif" style="margin-top:2px;float:right;margin-right:5px;" /></a></dt><dd><table><tbody><tr><td width=2 align=center></td><td align=center><font style="font-size:14px;font-weight:bold">#{msg}</font></td></tr><tr><td colspan="2" align=center><input type="button" id="CommentErrorConfirm" onclick="CommentPopupController()" value=" 确 定 "/></td></tr></tbody></table></dd></dl>',
		popup: {
			width: 320,
			height: 150,
			filterBg: "#000",
			opacity: "0.5"
		}
	},
	CommentList: {
		isEnable: true,
		isWarp: true,
		isQuoteContent: true,
		contentLength: 20000,
		contentEllipsis: "......",
		quoteLength: 20000,
		quoteEllipsis: "......",
		CommentDataOnload: function(A) {},
		printData: [{
			id: "COMMENT_TITLE",
			type: "p_textdata"
		},
		{
			id: "COMMENT_TOTAL_COUNT1",
			type: "total_count"
		},
		{
			id: "COMMENT_TOTAL_COUNT2",
			type: "total_count"
		},
		{
			id: "COMMENT_SHOW_COUNT1",
			type: "length"
		},
		{
			id: "COMMENT_SHOW_COUNT2",
			type: "length"
		}],
		panelID: "COMMENT_LIST",
		listHtml: '<dl><dt>#{favor_des} #{cdatetime} #{un} #{area}</dt><dd><p>#{content}</p><div class="btn">#{quickreply}</div></dd></dl>',
		errorHtml: '<div style="height:110px;font-size:14px;text-align:center;line-height:110px"><span style="display:block;margin:auto">抱歉，没有相关新闻的任何评论!</span></div>',
		loadHtml: '<div style="height:110px;font-size:14px;text-align:center;line-height:110px"><span style="display:block;margin:auto">数据正在加载中......</span></div>',
		favor_des: "<font color=red>[精]</font>&nbsp;",
		top_des: "<font color=blue>[置顶]</font>&nbsp;",
		hot_des: "<font color=yellow>[热贴]</font>&nbsp;",
		anonymous: "百度网友",
		date_format: "yy-MM-dd HH:mm:ss",
		hot_score: 10,
		isRefresh: true,
		scroll: {
			isScroll: true,
			x: 0,
			y: 0
		}
	},
	CommentReply: {
		isEnable: true,
		id: {
			panel_id: "COMMENT_REPLY",
			userarea_id: "REPLY_USERAREA",
			textarea_id: "REPLY_TEXTAREA",
			button_id: "REPLY_SUBMIT"
		},
		loginHtml: '欢迎您，#{0}&nbsp;&nbsp;<a href=javascript:void(0) onclick="CommentPassOut();return false;">退出</a>',
		noLoginHtml: '<a href="javascript:void(0)" onclick="CommentPassView();return false;">登录</a>&nbsp;&nbsp;<em style="color:#666;font-style:normal;">【匿名发表】</em>',
		panelHtml: '<table><tr><th colspan=2>发表留言</th></tr><tr><td colspan=2><textarea id="#{textarea_id}"></textarea></td></tr><tr><td nowarp width="600px" height="36px"><span id="#{userarea_id}" style="font-size:14px;"></span></td><td><input type="button" id="#{button_id}"  value="提交留言(Ctrl+Enter)"/></td></tr></table><a name="COMMENT_HASH" style="width:0px;height:0px;margin:0px;padding:0px;">&nbsp;</a>',
		defaultCommentType: {
			include_top: 1,
			favor: 2,
			orderby_type: 1
		},
		isDisabled: false
	},
	pass: {
		passLoginHtml: '<dl style="border:2px solid #ACA899;background:#fff;margin:0;padding:0;"><dt style="height:32px;vertical-align:middle;background:transparent url(http://i.baidu.com/yule/r/yule/comment/img/th_bg.gif) repeat-x scroll 0 0;margin:0;padding:0;"><a style="margin-left:322px;" href=javascript:void(0) onclick="CommentPopupController()"><img src="http://jingjia.baidu.com/r/jingjia/comment/img/menu_close.gif" border=0 style="margin-top:3px;" /></a></dt><dd style="height:300px;margin:0;padding:0;"><iframe width="350px" height="260px" frameborder=0 scrolling=no src=#{0}></iframe</dd></dl>',
		passPopup: {
			width: 355,
			height: 330,
			popupBg: "#fff",
			filterBg: "#000",
			opacity: "0.5",
			popupZindex: 1000,
			filterZindex: 980
		}
	},
	sys: {
		productID: "2",
		threadID: "1",
		privateData: "1",
		error: {
			"0": {
				info: ""
			},
			"-51": {
				info: "对不起，您进行的操作失败了!",
				type: "popup"
			},
			"-52": {
				info: "对不起，系统错误！",
				type: "popup"
			},
			"-53": {
				info: "请输入正确的验证码！",
				type: "popup"
			},
			"-54": {
				info: "您提交的超出2048个字符了！",
				type: "popup"
			},
			"-201": {
				info: "抱歉，没有相关新闻的任何评论！"
			},
			"-700": {
				info: "您不能再打分了，下次吧！",
				type: "popup"
			},
			"-701": {
				info: "您的评论已提交审核！",
				type: "popup"
			},
			"-702": {
				info: "您的评论已提交审核！",
				type: "popup"
			},
			"-703": {
				info: "您发送的内容过少或是水贴！",
				type: "popup"
			},
			"-704": {
				info: "对不起，您发送的数据连接超时了！",
				type: "popup"
			},
			"-705": {
				info: "对不起，系统错误！",
				type: "popup"
			},
			"-706": {
				info: "对不起，系统错误！",
				type: "popup"
			},
			"-707": {
				info: "对不起，您暂时不能发表评论！",
				type: "popup"
			},
			"-708": {
				info: "对不起，您暂时不能发表评论！",
				type: "popup"
			},
			"-709": {
				info: "对不起，您暂时不能发表评论！",
				type: "popup"
			},
			"-2000": {
				info: "对不起，系统错误！",
				type: "popup"
			},
			"-2001": {
				info: "请输入您的用户名或密码!",
				type: "popup"
			},
			"-2003": {
				info: "对不起，请填写评论内容！",
				type: "popup"
			},
			"-2004": {
				info: "您提交的内容不能少于4个字符或超出2048个字符！",
				type: "popup"
			},
			"-2005": {
				info: "对不起，您提交的数据提交失败！",
				type: "popup"
			},
			"-2006": {
				info: "对不起，您提交的数据存有非法标记，请重新输入！",
				type: "popup"
			},
			"-3000": {
				info: "您的用户名或密码输入错误！",
				type: "popup"
			}
		},
		host: {
			getHost: "http://comment.baidu.com/bin/viewthread.php",
			postHost: "http://comment.baidu.com/bin/postreply.php",
			postCallBackHost: "http://yule.baidu.com/comment/callback/index.html",
			passportLoginHost: "https://passport.baidu.com/?login&psp_tt=2&tpl=wk&fu=http://yule.baidu.com/comment/callback/index.html?comment_pass_succeed=ok&u=http://yule.baidu.com/comment/callback/index.html"
		},
		perPageCommentNum: 30,
		minReplyLength: 4,
		maxReplyLength: 2048
	}
};
