
function snsshare(m,id,bid) {
	var u = "http://www.aee.cn/default.aspx?channel=product&id="+id;
	var pu = "http://www.aee.cn/contents/" + bid + "/product/" + id + "_s.png";
	var t = 'AEE女鞋2011新款，这款不错，分享给大家';
	var c = '点击查看今年所有新款: http://www.aee.cn';
	wshare(m,u,t,c);
	function wshare(m,u,t,c) {
		if (m == 3) rr(screen, document, encodeURIComponent,u,t);
		else if (m == 2) ow('http://www.kaixin001.com/repaste/share.php?rtitle=' + encodeURI(t) + '&rurl=' + encodeURIComponent(u) + '&rcontent=' + encodeURIComponent(c), '鍒嗕韩', 600, 450);
		else if (m == 1) toT(screen, document, encodeURIComponent, c, u, pu, t, u, null);
		else if (m == 4) ow('http://apps.hi.baidu.com/share/?url=' + encodeURIComponent(u) + '&title=' + encodeURI(t) + '&content=' + encodeURI(c), '鍒嗕韩', 800, 550);
	}
	function ow(u, t, w, h ) {
		var s = 'toolbar=no,scrollbars=no,width=' + w + ',height=' + h + ',left=' + (window.screen.width - w) / 2 + ',top=' + (window.screen.height - h) / 2 + ',status=no,resizable=yes';
		window.open(u, t, s);
	}
	function toT(s, d, e, r, l, pic, t, z, c) {
		var f = 'http://v.t.sina.com.cn/share/share.php?', u = z || d, p = ['url=', e(u), '&title=', e(t + r), '&source=', e(r), '&sourceUrl=', e(l), '&content=', c || 'gb2312', '&pic=', e(pic)].join('');
		function a() {
			if (!window.open([f, p].join(''), 'mb', ['toolbar=0,status=0,resizable=1,width=440,height=430,left=', (s.width - 440) / 2, ',top=', (s.height - 430) / 2].join(''))) u.href = [f, p].join('');
			};
		if (/Firefox/.test(navigator.userAgent)) setTimeout(a, 0); else a();
	}
	function rr(s, d, e , url , title) {
		if (/renren\.com/.test(d.location)) return;
		var f = 'http://share.renren.com/share/buttonshare?link=', u = url, l = title, p = [e(u), '&title=', e(l)].join('');
		function a() {
		if (!window.open([f, p].join(''), 'xnshare', ['toolbar=0,status=0,resizable=1,width=626,height=436,left=', (s.width - 626) / 2, ',top=', (s.height - 436) / 2].join(''))) u.href = [f, p].join('');
		};
		if (/Firefox/.test(navigator.userAgent)) setTimeout(a, 0); else a();
	}
}
