
function toie() {

	AddFavorite(document.location.href,document.title)
}
function sharetotieba() {
	var str_url=document.location.href;
	var str_title=document.title;
	
	share('text',str_url,str_title,"");
}
function tobaidu() {
	window.open('http://cang.baidu.com/do/add?it='+encodeURIComponent(document.title.substring(0,76))+'&iu='+encodeURIComponent(location.href)+'&fr=ien#nw=1','_blank','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes'); 
}
function toqq() {
	window.open('http://shuqian.qq.com/post?from=3&title='+encodeURIComponent(document.title)+'&uri='+encodeURIComponent(document.location.href)+'&jumpback=2&noui=1','favit','width=800,height=470,left=50,top=50,toolbar=no,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');
}
function tokaixin() {
		d=document;
		t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');
		kaixin=window.open('http://www.kaixin001.com/~repaste/repaste.php?&amp;rurl='+escape(d.location.href)+'&amp;rtitle='+escape(d.title)+'&amp;rcontent='+escape(d.title),'kaixin');
		kaixin.focus();
}
function tosina() {
	d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(vivi=window.open('http://vivi.sina.com.cn/collect/icollect.php?pid=28&amp;title='+escape(d.title)+'&amp;url='+escape(d.location.href)+'&amp;desc='+escape(t),'vivi','scrollbars=no,width=480,height=480,left=75,top=20,status=no,resizable=yes'));vivi.focus();
}
function togoogle() {
	var a=window,b=document,c=encodeURIComponent;
	var d=a.open('http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk='+c(b.location)+'&amp;title='+c(b.title),'bkmk_popup','left='+((a.screenX||a.screenLeft)+10)+',top='+((a.screenY||a.screenTop)+10)+',height=420px,width=550px,resizable=1,alwaysRaised=1');
	a.setTimeout(function(){d.focus()},300);
}
function toyahoo() {
	d=document;
	w=window;
	mywebya=encodeURIComponent(d.location.href);
	mywebyt=encodeURIComponent(d.title);
	mywebyd=encodeURIComponent(w.getSelection?w.getSelection().toString():d.getSelection?d.getSelection():d.selection.createRange().text);
	window.open('http://myweb.cn.yahoo.com/popadd.html?src=iebookmark&url='+mywebya+'&title='+mywebyt+'&summary='+mywebyd,'Yahoo','modal=1,status=1,scrollbars=1,toolbar=0,resizable=1,width=780,height=455,left='+(screen.width-730)/2+',top='+(screen.height-425)/2);
}

function tozhulong() {
	d=document;
	w=window;
	var mywebya=encodeURIComponent(d.location.href);
	var mywebyt=encodeURIComponent(d.title);
	var mytype='news';
	showfav(cur_url,cur_title,cur_type);
}
function toemail() {
	
	showemail(cur_url,cur_title);
}

function torenren() {
	window.open('http://share.renren.com/share/buttonshare.do?title='+encodeURIComponent(document.title.substring(0,76))+'&link='+encodeURIComponent(location.href)+'&content=','_blank','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes');
	
}

function tosinavblog() {
	window.open('http:\/\/v.t.sina.com.cn\/share\/share.php?title='+encodeURIComponent(document.title.substring(0,76))+'&url='+encodeURIComponent(location.href)+'&rcontent=','_blank','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes');
}

function todouban() {
	var u='http://www.douban.com/recommend/?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title.substring(0,76));
	window.open(u,'douban','toolbar=0,resizable=1,scrollbars=yes,status=1,width=450,height=330');
}

function totaobao() {
	var u='http://share.jianghu.taobao.com/share/addShare.htm?url='+encodeURIComponent(location.href);
	window.open(u,'taobao');
}

function showsc() {
	document.write('<table width=300 cellpadding=5 cellspacing=0 border=0 align=center><tr>');
	document.write('<td width=150 height=30  style="cursor:pointer;font-size:12px"  onClick="javascript:toie();"><div style="float:left;width:20px;"><img src="/images/shoucang/ie.gif"   title="收藏到本地计算机收藏夹" border="0"></div><div style="float:left;width:100px;height:20px;line-height:150%;text-align:left;">&nbsp;收藏夹</div></td>');
	document.write('<td width=150  height=30 style="cursor:pointer;font-size:12px"  onClick="sharetotieba()"><div style="float:left;width:20px;"><img src=/images/itieba.jpg width=22 border=0 style="cursor:pointer;"  /></div><div style="float:left;width:120px;height:20px;line-height:150%;padding-top:3px;text-align:left;">&nbsp;i贴吧</div></td></tr>');
///document.write('<td width=150  height=30 style="cursor:pointer;font-size:12px"  onClick="tofollow5()"><div style="float:left;width:20px;"><img src=/images/shoucang/follow5.gif width=22 border=0 style="cursor:pointer;"  /></div><div style="float:left;width:120px;height:20px;line-height:150%;padding-top:3px;text-align:left;">&nbsp;follow5</div></td></tr>');


	document.write('<tr><td width=150 height=30 style="cursor:pointer;font-size:12px"  onClick="javascript:tokaixin();"><div style="float:left;width:20px;"><img src="/images/shoucang/kx001.jpg" alt="转贴到开心网" border="0"></div><div style="float:left;width:100px;height:20px;line-height:150%;text-align:left;">&nbsp;开心网</div></td>');	
	
	document.write('<td width=150 style="cursor:pointer;font-size:12px"  onClick="javascript:toqq();"><div style="float:left;width:20px;"><img src="/images/shoucang/qqbookmark.gif" border=0></div><div style="float:left;width:100px;height:20px;line-height:150%;text-align:left;">&nbsp;QQ书签</div></td></tr>');
	document.write('<tr>');
	document.write('<td width=150 height=30  style="cursor:pointer;font-size:12px"  onClick="javascript:todouban();"><div style="float:left;width:20px;"><img src="/images/shoucang/douban.png" width=15 height=16  title="分享到豆瓣网" border="0"></div><div style="float:left;width:100px;height:20px;line-height:150%;text-align:left;">&nbsp;豆瓣网</div></td>');
	document.write('<td width=150  height=30 style="cursor:pointer;font-size:12px"  onClick="javascript:torenren()"><div style="float:left;width:20px;"><img src=/images/shoucang/renren.png width=16 height=16 border=0 style="cursor:pointer;"  /></div><div style="float:left;width:120px;height:20px;line-height:150%;padding-top:3px;text-align:left;">&nbsp;人人网</div></td></tr>');
	document.write('<tr><td width=150 height=30 style="cursor:pointer;font-size:12px"  onClick="javascript:tosinavblog();"><div style="float:left;width:20px;"><img src="/images/shoucang/sinavb.png" alt="转贴到新浪微博" border="0"></div><div style="float:left;width:100px;height:20px;line-height:150%;text-align:left;">&nbsp;新浪微博</div></td>');	
	document.write('<td width=150 style="cursor:pointer;font-size:12px"  onClick="javascript:totaobao();"><div style="float:left;width:20px;"><img src="/images/shoucang/taobao.png" width=15 height=16 border=0></div><div style="float:left;width:100px;height:20px;line-height:150%;text-align:left;">&nbsp;淘江湖</div></td></tr>');
	
	document.write('<tr><td width=150  height=30 style="cursor:pointer;font-size:12px"   onClick="javascript:tobaidu();"><div style="float:left;width:20px;"><img src="/images/shoucang/bookmarkbd.gif" border=0></div><div style="float:left;width:100px;height:20px;line-height:150%;text-align:left;">&nbsp;百度收藏</div></td>');
	document.write('<td width=150 style="cursor:pointer;font-size:12px"  onClick="javascript:tosina();"><div style="float:left;width:20px;"><img  title="收藏到新浪ViVi" src="/images/shoucang/sina.gif" alt="Sina ViVi" border="0"></div><div style="float:left;width:100px;height:20px;line-height:150%;text-align:left;">&nbsp;新浪收藏</div></td></tr>');
	document.write('<tr><td width=150  height=30 style="cursor:pointer;font-size:12px"  onClick="javascript:togoogle();"><div style="float:left;width:20px;"><img src="/images/shoucang/google.jpg" alt="Google书签" border="0" height="16" width="16"></div><div style="float:left;width:120px;height:20px;line-height:150%;text-align:left;">&nbsp;Googel书签</div></td>');
	document.write('<td width=150 style="cursor:pointer;font-size:12px"  onClick="javascript:toyahoo();"><div style="float:left;width:20px;"><img src="/images/shoucang/bookmarkyahoo.gif" border=0></div><div style="float:left;width:120px;height:20px;line-height:150%;text-align:left;">&nbsp;Yahoo收藏</div></td></tr>');
	document.write('<tr><td width=150  height=30 style="cursor:pointer;font-size:12px"  onClick="javascript:tozhulong();"><div style="float:left;width:20px;"><img src="/images/shoucang/fav.gif" alt="筑龙收藏夹" border="0" height="16" width="16"></div><div style="float:left;width:120px;height:20px;line-height:150%;text-align:left;">&nbsp;筑龙收藏</div></td>');
	document.write('<td width=150 style="cursor:pointer;font-size:12px"  onClick="javascript:toemail();"><div style="float:left;width:20px;"><img src="/images/shoucang/email.gif" border=0></div><div style="float:left;width:120px;height:20px;line-height:150%;text-align:left;">&nbsp;发到Email</div></td></tr></table>');
}

function tofollow5() {
	 var url=encodeURIComponent(location.href);var title=encodeURIComponent(document.title);hr='http://www.follow5.com/f5/discuz/sharelogin.jsp?url='+url+'&title='+title+'&ak=90179084031189BA6FB6CA4A30754ED8';window.open(hr);
}
