var iconUrl="http://static.yyr.cn/images/2010/fav/";
document.writeln("<a name=\"shoucang\" style=\"font-size:12px;color:#000;text-decoration:none;\">收藏本文至：<\/a> <a href=javascript:window.open('http://shuqian.qq.com/post?from=3&title='+encodeURIComponent(document.title)+'&uri='+encodeURIComponent(document.location.href)+'&jumpback=2&noui=1','favit','');void(0)><IMG alt=添加到QQ书签 src="+iconUrl+"qq.gif align=absMiddle border=0></a> <A title=百度收藏 href=\"javascript:u=location.href;t=document.title;c = %22%22 + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text);var url=%22http:\/\/cang.baidu.com\/do\/add?it=%22+encodeURIComponent(t)+%22&iu=%22+encodeURIComponent(u)+%22&dc=%22+encodeURIComponent(c)+%22&fr=ien#nw=1%22;window.open(url,%22_blank%22,%22scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes%22); void 0\"><IMG alt=百度收藏 src="+iconUrl+"baidu.gif border=0><\/A>&nbsp;&nbsp;<a href=\"#\" onclick=\"window.open('http://myweb.cn.yahoo.com/popadd.html?url='+encodeURIComponent(document.location.href)+'&title='+encodeURIComponent(document.title), 'Yahoo','scrollbars=yes,width=780,height=550,left=80,top=80,status=yes,resizable=yes');\"><IMG alt=yahoo src="+iconUrl+"yahoo.gif alt=\"雅虎收藏\" border=0><\/A>&nbsp;&nbsp;<a href=\"http://www.google.com/bookmarks/mark?op=add&bkmk="+encodeURIComponent(location.href)+"&title="+encodeURIComponent(document.title)+"\" target=_blank><img src="+iconUrl+"google.gif alt=\"添加到google\" border=0\/></a>&nbsp;&nbsp;<a href=javascript:window.external.AddFavorite(location.href+'#sc','★'+document.title)><IMG  src="+iconUrl+"ie.gif align=absMiddle border=0></a> <a href=\"javascript:void(0)\" id=\"fxwb\"><img src='"+iconUrl+"sina_wb.jpg' border=0 align=absMiddle>新浪微博<\/a>&nbsp;&nbsp;&nbsp;<a href=\"javascript:window.open('http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url='+encodeURIComponent(location.href)+'&rcontent=','_blank','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes'); void(0)\">分享到QQ空间</a> <input type=\"button\" name=\"Copy\" onClick=\'copyToClipBoard()\' value=\"复制网址\">");
// <a href=\"javascript:void(0)\" id=\"fxitb\"><img src='"+iconUrl+"i_tie_ba.jpg' border=0 align=absMiddle>百度i贴吧<\/a>
//<a target=_blank href=\"http:\/\/www.zhuaxia.com\/add_channel.php?sourceid=102&url=www\.yyr\.cn\" target=\"_blank\"><img src=\""+iconUrl+"zhuaxia.gif\" border=\"0\" alt=\"订阅到抓虾\" \/><\/a>
// <a href=\"javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(wozhai=window.open('http://www.wozhai.com/wozhai/Cento.asp#t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'wozhai','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));wozhai.focus();\"><img src='"+iconUrl+"wozhai.gif' alt='我摘' border='0'></a> <a href=\"javascript:t=document.title;u=location.href;e=document.selection?(document.selection.type!='None'?document.selection.createRange().text:''):(document.getSelection?document.getSelection():'');void(open('http://bookmark.hexun.com/post.aspx?title='+escape(t)+'&url='+escape(u)+'&excerpt='+escape(e),'HexunBookmark','scrollbars=no,width=600,height=450,left=80,top=80,status=no,resizable=yes'));\"><img src='"+iconUrl+"hexun.gif' alt='和讯网摘' border='0'></a>
// <a href=\"http:\/\/www.xianguo.com\/service\/submitfav\/?link="+encodeURIComponent(location.href)+"&title="+encodeURIComponent(document.title)+"\" target=_blank><img src="+iconUrl+"xianguo.gif alt=\"添加到鲜果\" border=0 \/><\/a> <a target=_self href=\"javascript: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=xuxule.net&title='+escape(d.title)+'&url='+escape(d.location.href)+'&desc='+escape(t),'vivi','scrollbars=no,width=480,height=480,left=75,top=20,status=no,resizable=yes'));vivi.focus();\" target=\"_blank\"><img src='"+iconUrl+"vivi.gif' alt='新浪ViVi' border='0'></a> 
 var sendT = {
	getHeader : function(){
		var g_title=document.getElementsByTagName("h1")[0].innerHTML;
		var re = /<[^<>]*?font[^<>]*?>/gi;
		g_title = g_title.replace(re,"");
		return g_title;
	},
	getFirstImgSrc : function(){
		var allPageTags=document.getElementsByTagName("div");
		for (var i=0; i<allPageTags.length;i++) {
			if (allPageTags[i].className=='content') {
				if (allPageTags[i].getElementsByTagName("img")[0] && allPageTags[i].getElementsByTagName("img")[0].width > 100)
				{
					return allPageTags[i].getElementsByTagName("img")[0].src;
				}
				else
				{
					return null;
				}
				
			}
		}
	},
	getContent : function(){
		var allPageTagss=document.getElementsByTagName("div");	
		for (var i=0; i<allPageTagss.length;i++) {
			if (allPageTagss[i].className=='position') {
				return allPageTagss[i].innerHTML;
			}else if(allPageTagss[i].className=='content'){
				return allPageTagss[i].getElementsByTagName("P")[0].innerHTML;
			}		
			
		}
	}
}
 document.getElementById("fxwb").onclick=function(){(function(s,d,e,r,l,p,t,z,c){var f='http://v.t.sina.com.cn/share/share.php?',u=z||d.location,p=['url=',e(u),'&title=',e(sendT.getHeader() + '\r\n摘自<岳阳人社区>'),'&source=',e(r),'&sourceUrl=',e(l),'&content=',c||'gb2312','&pic=',e(p||'')].join('');function a(){if(!window.open([f,p].join(''),'mb',['toolbar=0,status=0,resizable=1,width=440,height=430,left=',(s.width-440)/2,',top=',(s.height-430)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else a();})(screen,document,encodeURIComponent,'岳阳人社区','http://www.yyr.cn/',sendT.getFirstImgSrc(),null,null,null);}

//document.getElementById("fxitb").onclick=function(){var itieba_share = 'http://tieba.baidu.com/i/sys/share?link=' + encodeURIComponent(window.location.href)+'&type=' + encodeURIComponent('text')+'&title=' + encodeURIComponent(sendT.getHeader())+'&content=' + encodeURIComponent(sendT.getContent());if (!window.open(itieba_share, 'itieba', 'toolbar=0,resizable=1,scrollbars=yes,status=1,width=626,height=436')){location.href = itieba_share;}}