function shareTo(snsID) {
	var baseURL = "http://www.fila-china.com.cn/";
	var pic = (arguments[1]|| "");
	if(pic!=""){
		pic=baseURL+pic;
	}
	//alert(pic);
	var content=arguments[2]||"";
	var siteURL=baseURL;
	copy=(arguments[2]||copy);
	var shareToSNS = {
		"openWindow": function(url, name, properties) {
			properties = (properties || "");
			if (!window.open(url, name, properties)) {
				window.self.location.href = url;
			}
			return false;
		}
	};

	shareToSNS.sina = function(title, href, content,pic) {
		title = (title || "");
		href = (href || window.self.location.href);
		content = (content || "");
		pic = (pic || "");
		//+"&url="+encodeURIComponent(href)
		var url = "http://v.t.sina.com.cn/share/share.php?title="+encodeURIComponent(title.substring(0,76))+'&url='+encodeURIComponent(href)+"&pic="+encodeURIComponent(pic);

		return shareToSNS.openWindow(url, "Sina");
	};
	shareToSNS.renren = function(title, href, content,pic) {
		title = (title || "");
		href = (href || window.self.location.href);
		content = (content || "");
		pic = (pic || "");
		var url = "http://share.renren.com/share/buttonshare.do?link="+encodeURIComponent(href)+"&title="+encodeURIComponent(title)+"&rcontent="+encodeURIComponent(title);
		return shareToSNS.openWindow(url, "XiaoNei", "toolbar=0, resizable=1, scrollbars=yes, status=1, width=626, height=436");
	};
	shareToSNS.kaixin = function(title, href, content,pic) {
		title = (title || "");
		href = (href || window.self.location.href);
		content = (content || "");
		pic = (pic || "");
		var url = "http://www.kaixin001.com/repaste/share.php?rtitle=" + encodeURIComponent(title) + "&rurl=" + encodeURIComponent(href) + "&rcontent=" + encodeURIComponent(content);
		return shareToSNS.openWindow(url, "KaiXin001");
	};
	shareToSNS.qzone = function(href) {

		href = (href || window.self.location.href);

		var url = "http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=" + encodeURIComponent(href);
		return shareToSNS.openWindow(url, "QZone");
	};
	switch(arguments[0]) {

		case "sina":
			shareToSNS.sina(copy,"","",pic);
			break;
		case "renren":
			shareToSNS.renren(copy,pic,copy,"");
			break;
		case "kaixin":
			shareToSNS.kaixin(copy,"",copy,"");
			break;
		case "qzone":
			shareToSNS.qzone("");
			break;
		default:
			alert(webid);
	}
}
