;(function($){
	function killerrors() { 
		return true; 
	} 
	window.onerror = killerrors;
	var thetitle = document.title.substring(0,60), 
	windowName = '分享到',
	param = getParamsOfShareWindow(600, 360);
	var e = encodeURIComponent;
	$('.footer .shareBtn').live("click",function(){
		var share_title	=	share_config['title'];
		var share_url	=	share_config['url'];
		mn_tsina = 'http://v.t.sina.com.cn/share/share.php?url=' + e(share_url) + '&title=' + e(share_title || thetitle),
		mn_renren = 'http://share.renren.com/share/buttonshare?link=' + e(share_url) + '&title=' +  e(share_title || thetitle),
		mn_kaixin = 'http://www.kaixin001.com/repaste/share.php?rurl=' + e(share_url) + '&rcontent=' + e(share_url) + '&rtitle=' +  e(share_title || thetitle),
		mn_douban = 'http://shuo.douban.com/!service/share?href=' + e(share_url) + '&name=' + e(share_title || thetitle);
		var httpUrl = eval($(this).attr("data-share").substring($(this).attr("data-share").lastIndexOf("mn_")));
		window.open(httpUrl, windowName, param);
	});
	function getParamsOfShareWindow(width, height) {
		return ['toolbar=0,status=0,resizable=1,width=' + width + ',height=' + height + ',left=',(screen.width-width)/2,',top=',(screen.height-height)/2].join('');
	}
})(jQuery);
