// begin netget
var g_arrCollectList = {
	google:[
		'Google',
		'"http://www.google.com/bookmarks/mark?op=add&bkmk="+encodeURIComponent(url)+"&title="+encodeURIComponent(title)+"&annotation="+encodeURIComponent(summary)+""',
		'scrollbars=yes,width=780,height=450,left=5,top=20,status=yes,resizable=yes',
		'Google 书签(google.com)'
	],
	yahoo:[
		'Yahoo+',
		'"http://myweb.cn.yahoo.com/popadd.html?src=iebookmark&title="+encodeURIComponent(title)+"&url="+encodeURIComponent(url)+"&summary="+encodeURIComponent(summary)+""',
		'scrollbars=yes,width=780,height=450,left=5,top=20,status=yes,resizable=yes',
		'雅虎收藏+(yahoo.com)'
	],
	baidu:[
		'百度',
		'"http://cang.baidu.com/do/add?it="+encodeURIComponent(title)+"&iu="+encodeURIComponent(url)+"&dc="+encodeURIComponent(summary)+"&fr=ien#nw=1"',
		'scrollbars=yes,width=780,height=450,left=75,top=20,status=no,resizable=yes',
		'百度搜藏(cang.baidu.com)'
	],
	deli:[
		'Del.icio.us',
		'"http://del.icio.us/post?v=4&noui&jump=close&url="+encodeURIComponent(url)+"&title="+encodeURIComponent(title)+""',
		'width=780,height=450,left=75,top=20,resizable=yes',
		'美味书签(del.icio.us)'
	],
	qq:[
		'QQ',
		'"http://shuqian.qq.com/users/addBookmark/?jumpback=1&title="+encodeURIComponent(title)+"&uri="+encodeURIComponent(url)+"&desc="+encodeURIComponent(summary)+""',
		'width=780,height=450,left=75,top=20,resizable=yes',
		'QQ书签(qq.com)'
	],
	misterwong:[
		'Wong It!',
		'"http://www.mister-wong.cn/index.php?action=addurl&bm_url="+encodeURIComponent(url)+"&bm_description="+encodeURIComponent(title)+""',
		'scrollbars=yes,width=780,height=450,left=0,top=0,status=no,resizable=yes',
		'Mister Wong(www.mister-wong.cn)'
	],
	furl:[
		'FURL',
		'"http://www.furl.net/storeIt.jsp?t="+encodeURIComponent(title)+"&u="+encodeURIComponent(url)+"&c="+encodeURIComponent(summary)+""',
		'width=780,height=450,left=75,top=20,resizable=yes',
		'FURL网摘(www.furl.net)'
	],
	hexun:[
		'和迅', // showname
		'"http://bookmark.hexun.com/post.aspx?title="+escape(title)+"&url="+escape(url)+"&excerpt="+escape(summary)+""', // link url
		'scrollbars=yes,width=780,height=450,left=80,top=80,status=no,resizable=yes', // window style
		'和迅网摘(HeXun.com)' // href title
	],
	'365key':[
		'365key',
		'"http://www.365key.com/storeit.aspx?t="+escape(title)+"&u="+escape(url)+"&c="+escape(summary)+""',
		'scrollbars=yes,width=780,height=450,left=75,top=20,status=no,resizable=yes',
		'天天网摘(365key.com)'
	],
	yesky:[
		'天极',
		'"http://hot.yesky.com/dp.aspx?t="+escape(title)+"&u="+escape(url)+"&c="+escape(summary)+"&st=2"',
		'scrollbars=yes,width=780,height=450,left=75,top=20,status=no,resizable=yes',
		'天极网摘(hot.yesky.com)'
	],
	diglog:[
		'奇客发现', // showname
		'"http://www.diglog.com/submit.aspx?title="+escape(title)+"&url="+escape(url)+"&description="+escape(summary)+""', // link url
		'scrollbars=yes,width=780,height=450,left=80,top=80,status=no,resizable=yes', // window style
		'奇客发现(diglog.com)' // href title
	],
	douban:[
		'豆瓣',
		'"http://www.douban.com/recommend/?title="+encodeURIComponent(title)+"&url="+encodeURIComponent(url)+"&sel="+encodeURIComponent(summary)+"&v=1"',
		'scrollbars=yes,width=780,height=450,left=75,top=20,status=no,resizable=yes',
		'豆瓣网(www.douban.com)'
	],
	fanfou:[
		'饭否',
		'"http://fanfou.com/sharer?t="+encodeURIComponent(title)+"?u="+encodeURIComponent(url)+"?s=bl"',
		'scrollbars=yes,width=780,height=450,left=75,top=20,status=no,resizable=yes',
		'饭否(fanfou.com)'
	]
};
var g_urlToCollect = '';
var g_titleToCollect = '';
var g_summaryToCollect = '';
function getCollHtml(){
	try{
		var ret = '<strong>收藏本页到：</strong>';
		var bfirst = true;
		for(var i in g_arrCollectList){
			//ret += '<span style="padding-left:'+(bfirst?'1':'2')+'px;"><a href="javascript:NetCollect(\''+i+'\')" title="收藏本文到 '+g_arrCollectList[i][3]+'"><img src="/bookmark/'+i+'.gif" border="0" width="12" height="12" style="padding-right:1px;padding-left:2px;" align="absmiddle" />'+g_arrCollectList[i][0]+'</a></span>';
			ret += '<span style="padding-left:'+(bfirst?'1':'2')+'px;"><a href="javascript:NetCollect(\''+i+'\')" title="收藏本文到 '+g_arrCollectList[i][3]+'"><img src="/bookmark/'+i+'.gif" border="0" width="16" height="16" style="padding-left:5px;" align="absmiddle" /></a></span>';
			bfirst = false;
		}
		return '<div style="text-align:center;padding-bottom:3px;">' + ret + '</div>';
	}catch(e){return '';}
}
function NetCollect(netid){
	try{
		if(netid.length <= 0 || ! netid in g_arrCollectList)
			return;
		
		var argv = NetCollect.arguments;
		var argc = NetCollect.arguments.length;
		var openSelf = argc > 1 ? argv[1] : false;

		var pos = 0;
		if(g_urlToCollect == ''){
			g_urlToCollect = location.href;
			pos = g_urlToCollect.indexOf('#');
			if(pos > 0){
				g_urlToCollect = g_urlToCollect.substring(0,pos);
			}
		}
		if(g_titleToCollect == ''){
			g_titleToCollect = document.title;
		}
		if(g_summaryToCollect == ''){
		try{
			g_summaryToCollect = document.getElementById('articleSummary').innerHTML;
		}catch(e){}
			if(g_summaryToCollect == '') g_summaryToCollect = g_titleToCollect;
		}
		var pCurColl = g_arrCollectList[netid];
		
		var summary = g_summaryToCollect;
		var url = g_urlToCollect;
		var title = g_titleToCollect;

		eval('var urlToOpen = ' + pCurColl[1] + ';');
		if(!openSelf){
			var p = window.open(urlToOpen,netid+'_BookmarkWin',pCurColl[2]);
			p.focus();
		}
		else{
			window.location.href = urlToOpen;
		}
	}catch(e){}
}
// end netget
document.writeln(getCollHtml());