function share(where,title,href)
{
	var pic = '';
	if(arguments.length == 4)
	{
		pic = arguments[3];
	}
	switch(where){
	    case 'sohu':
			url = 'http://t.sohu.com/third/post.jsp?url='+href+'&title='+title+'&content=utf-8&pic=';
		    window.open(url,'mb','toolbar=0,status=0,resizable=1,width=660,height=470,left='+(window.screen.width-660)/2+',top='+(window.screen.height-470)/2)
			break;
	    case 'qq':
			url = 'http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url='+href;
		    window.open(url);
		    break;
		case 'kaixin':
			url = 'http://www.kaixin001.com/~repaste/repaste.php?rurl='+href+'&rtitle='+title+'&rcontent='+encodeURIComponent(title);
		    window.open(url,'kaixin');
		    break;
		case 'renren':
			url = 'http://share.renren.com/share/buttonshare.do?link='+href+'&title='+title+'&content='+pic;
		    window.open(url,'renren','toolbar=0,status=0,resizable=1,width=626,height=436,left='+(window.screen.width-626)/2+',top='+(window.screen.height-436)/2);
			break;
		case 'sina':
			url = 'http://v.t.sina.com.cn/share/share.php?title='+title+'&url='+href+'&source=bookmark&pic='+pic;
		    window.open(url,'_blank','width=450,height=400');
			break;
		case 'qq_t':
			url = 'http://v.t.qq.com/share/share.php?title='+encodeURI(title)+'&url='+encodeURI(href)+'&source=bookmark&appkey=ee2bd3fec36548cabe384ab35ef235a0&site=&pic='+pic;
		    window.open(url,'_blank','width=450,height=400');
			break;
		case 'douban':
			url = 'http://www.douban.com/recommend/?url='+href+'&title='+title;
		    window.open(url,'douban','toolbar=0,resizable=1,scrollbars=yes,status=1,width=450,height=330');
			break;
		case '163'://163微博接口有问题
			url = 'http://t.163.com/article/user/checkLogin.do?link=http://www.yoka.com/&amp;source='+ encodeURIComponent('网易新闻')+'&amp;info='+title+ ' '+href+'&amp;'+new Date().getTime();
		    window.open(url,'newwindow','height=330,width=550,top='+(window.screen.height-280)/2+',left='+(window.screen.width-550)/2+', toolbar=no, menubar=no, scrollbars=no,resizable=yes,location=no, status=no')
			break;
	}
}


function webqq_share(where,title,href)
{
	var pic = '';
	if(arguments.length == 4)
	{
		pic = arguments[3];
	}
	switch(where){
	    case 'qq':
			url = 'http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url='+href;
			alloy.system.openURL({url:url});
		    break;
		case 'kaixin':
			url = 'http://www.kaixin001.com/~repaste/repaste.php?rurl='+href+'&rtitle='+title+'&rcontent='+encodeURIComponent(title);
		    alloy.system.openURL({url:url});
		    break;
		case 'renren':
			url = 'http://share.renren.com/share/buttonshare.do?link='+href+'&title='+title+'&content='+pic;
		    alloy.system.openURL({url:url});
			break;
		case 'sina':
			url = 'http://v.t.sina.com.cn/share/share.php?title='+title+'&url='+href+'&source=bookmark&pic='+pic;
		    alloy.system.openURL({url:url});
			break;
		case 'qq_t':
			url = 'http://v.t.qq.com/share/share.php?title='+encodeURI(title)+'&url='+encodeURI(href)+'&source=bookmark&appkey=ee2bd3fec36548cabe384ab35ef235a0&site=&pic='+pic;
		    alloy.system.openURL({url:url});
			break;
		case 'douban':
			url = 'http://www.douban.com/recommend/?url='+href+'&title='+title;
		    alloy.system.openURL({url:url});
			break;
	}
}

