function shareNews(type, title,content, _pic,id){
	var baseShareUrl	=	window.location.protocol+"//"+window.location.host+"/";

	var url		=	baseShareUrl+"";
	_pic	=	baseShareUrl+_pic;
	countShare(type);
	switch(type){
		case "renren":
			shareRenren(url+"?f=renren#/news/"+id, title, (title+"\n"+content));
		break;
		case "sina":
			sinaWeibo(url+"?f=sina#/news/"+id, title, (title+"\n"+content));
		break;
		case "kaixin":
			kaixin(url+"?f=kaixin#/news/"+id, title, (title+"\n"+content));
		break;
		case "douban":
			douban(url+"?f=douban#/news/"+id, title, (title+"\n"+content));
		break;
		case "qq":
			shareQQWeibo(url+"?f=qq#/news/"+id, title, (title+"\n"+content));
		break;
	}
	
	//人人分享
	function shareRenren (baseShareUrl, _title, _content){
		var _address = baseShareUrl;
		window.open("http://share.renren.com/share/buttonshare/post/1004?url="+encodeURIComponent(_address)+
				"&title="+encodeURIComponent(_title)+"&content="+encodeURIComponent(_content)+
				"&pic="+encodeURIComponent(_pic),"_blank");
	}

	function kaixin (baseShareUrl,_title,_content){
		var _address = baseShareUrl;
		window.open("http://www.kaixin001.com/repaste/bshare.php?rtitle="+encodeURIComponent(_title)+
				"&rcontent="+encodeURIComponent(_content)+"&rurl="+encodeURIComponent(_address),"_blank");
	}

	function douban (baseShareUrl, _title, _content){
		var _address = baseShareUrl;
		window.open("http://www.douban.com/recommend/?url="+encodeURIComponent(_address)+
				"&title="+encodeURIComponent(_title)+"&sel="+encodeURIComponent(_content)+
				"&v=1&n=1","_blank");
	}
	function sinaWeibo (baseShareUrl,_title, _content){
		var _address = baseShareUrl;
		window.open("http://service.t.sina.com.cn/share/share.php?url="+encodeURIComponent(_address)+
			"&appkey="+""+"&title="+encodeURIComponent(_content)+"&pic="+encodeURIComponent(_pic)+
			"&ralateUid="+"", "_blank");
	}

	//腾讯微博
	function shareQQWeibo (baseShareUrl, _title, _content){

		var _address = baseShareUrl;
		window.open("http://v.t.qq.com/share/share.php?url="+encodeURIComponent(_address)+
				"&title="+encodeURIComponent(title)+"&site="+encodeURIComponent(baseShareUrl)+
				"&pic="+encodeURIComponent(_pic),"_blank");
		return	false;
	}
	
	function countShare(value){
		
	}
}
