
	function Fn(webid){
			
			var pic = (arguments[1]|| "");
			var content=arguments[2]||"";
			var siteURL=baseURL;
			
			copy=(arguments[2]||copy);
			 
			pic=replace(pic);
			copy=replace(copy);
			
			
			
			var SNS = {
					"openWindow": function(url, name, properties) {
						properties = (properties || "");
						if (!window.open(url, name, properties)) {
							window.self.location.href = url;
						}
						return false;
					}
				};
				
			SNS.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 SNS.openWindow(url, "KaiXin001");
			};

			SNS.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);
				return SNS.openWindow(url, "XiaoNei", "toolbar=0, resizable=1, scrollbars=yes, status=1, width=626, height=436");
			};

			SNS.douban = function(title, href, content,pic) {
				title = (title || "");
				href = (href || window.self.location.href);
				content = (content || "");
				pic = (pic || "");
				var url = "http://www.douban.com/recommend/?title=" + encodeURIComponent(title);//"&url=" + encodeURIComponent(href);
				return SNS.openWindow(url, "DouBan", "toolbar=0, resizable=1, scrollbars=yes, status=1, width=450, height=330");
			};

			SNS.tqq = function(title, href, content,pic) {
				title = (title || "");
				href = (href || window.self.location.href);
				content = (content || "");
				pic = (pic || "");
				var url = "http://v.t.qq.com/share/share.php?title="+encodeURIComponent(title)+"&pic="+encodeURIComponent(pic);//+"&url="+encodeURIComponent(href);
				return SNS.openWindow(url, "QQWeibo");
			};

			SNS.sohu = function(title, href, content,pic) {
				title = (title || "");
				href = (href || window.self.location.href);
				content = (content || "");
				pic = (pic || "");
				var url = "http://bai.sohu.com/share/blank/addbutton.do?from=tudou&link=" + href + "&title=" + title;
				return SNS.openWindow(url, "BaiSohu");
			};

			SNS.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?c=spr_web_bd_tudou_weibo&title="+encodeURIComponent(title)+"&pic="+encodeURIComponent(pic);
				 
				return SNS.openWindow(url, "Sina");
			};
			
			SNS.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 SNS.openWindow(url, "QZone");
			};
			
			SNS.taobao = function(title, href, content,pic) {
				title = (title || "");
				href = (href || window.self.location.href);
				content = (content || "");
				pic = (pic || "");	
				var url = "http://share.jianghu.taobao.com/share/addShare.htm?title="+ (title)+"&content="+content+"&pic="+encodeURIComponent(pic)+"&url="+encodeURIComponent(href);
				return SNS.openWindow(url, "taojianghu");
			};
			SNS.wangyi = function(title, href, content,pic) {
				title = (title || "");
				href = (href || window.self.location.href);
				content = (content || "");
				pic = (pic || "");	
				var url = "http://t.163.com/article/user/checkLogin.do?info="+ encodeURIComponent(title)+"&content="+content+"&pic="+encodeURIComponent(pic)+"&source="+encodeURIComponent(href);//&link=;
				return SNS.openWindow(url, "wangyi");
			};

			
			switch(arguments[0]){
				
				case "tsina":				 
					SNS.sina(copy,siteURL,"",pic);
				break;
				case "tqq":
					SNS.tqq(copy,siteURL,"",pic);
				break;
				case "renren":
					SNS.renren(copy,pic,copy,"");
				break;
				case "kaixin":
					SNS.kaixin("",siteURL,copy,"");
				break;
				case "douban":
					SNS.douban(copy,siteURL,"","");	
				break;
				case "qzone":
					SNS.qzone(siteURL);
				break;
				case "taobao":
					SNS.taobao(copy,siteURL,"","");	
				break;
				case "wangyi":
					SNS.wangyi(copy,siteURL,"","");	
				break;
				 
				default:
				 alert(webid);
			}
			
			
				 
			 
		}

	function replace(str){		 
		var r,re;
		var arr;
		re=/{\w+}/g;	
		while((arr = re.exec(str)) !=null){ 
			var varsName=arr.toString().replace("{","").replace("}","");
			str=str.replace("{"+varsName+"}",eval(varsName));
		}
		return str;
	}

