// begin netget
var g_arrCollectList = new Array(
	new Array(
		'新浪ViVi', // showname
		'sinaBookmark', // windowname
		'http://vivi.sina.com.cn/collect/icollect.php?pid=www.homoo.cn&title=%title%&url=%url%&desc=%summary%', // link url
		'scrollbars=no,width=480,height=480,left=75,top=20,status=no,resizable=yes', // window style
		'新浪ViVi(sina.com.cn)' // href title
	),
	new Array(
		'和迅网摘', // showname
		'hexunBookmark', // windowname
		'http://bookmark.hexun.com/post.aspx?title=%title%&url=%url%&excerpt=%summary%', // link url
		'scrollbars=no,width=600,height=450,left=80,top=80,status=no,resizable=yes', // window style
		'和迅网摘(HeXun.com)' // href title
	),
	new Array(
		'365key',
		'365keyBookmark',
		'http://www.365key.com/storeit.aspx?t=%title%&u=%url%&c=%summary%',
		'scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes',
		'天天网摘(365key.com)'
	),
	new Array(
		'POCO网摘',
		'pocoBookmark',
		'http://my.poco.cn/fav/storeIt.php?t=%title%&u=%url%&c=%summary%',
		'scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes',
		'POCO网摘(share.poco.cn)'
	),
	new Array(
		'5seek网摘',
		'5seekBookmark',
		'http://www.5seek.com/storeit.asp?title=%title%&url=%url%&memo=%summary%&char=GB2312',
		'scrollbars=no,width=515,height=555,left=75,top=20,status=yes,resizable=yes',
		'5seek网摘(5seek.com)'
	),
	new Array(
		'天极网摘',
		'yeskyBookmark',
		'http://hot.yesky.com/dp.aspx?t=%title%&u=%url%&c=%summary%&st=2',
		'scrollbars=no,width=400,height=480,left=75,top=20,status=no,resizable=yes',
		'天极网摘(hot.yesky.com)'
	),
	new Array(
		'人人网摘',
		'rrwzBookmark',
		'http://rrwz.qihoo.com/User/AddWebSnip.aspx?t=%title%&u=%url%&c=%summary%',
		'scrollbars=no,width=475,height=450,left=280,top=50,status=no,resizable=yes',
		'人人网摘(rrwz.qihoo.com)'
	),
	new Array(
		'博客中国',
		'blogchinaBookmark',
		'http://blogmark.blogchina.com/jsp/key/quickaddkey.jsp?title=%title%&u=%url%&content=%summary%',
		'scrollbars=no,width=500,height=430,status=no,resizable=yes',
		'博客中国博采中心(blogmark.blogchina.com)'
	)
);
var g_urlToCollect = '';
var g_titleToCollect = '';
var g_summaryToCollect = '';
function getCollHtml(){
try{
	var ret = '<strong>收藏本文到:</strong>';
	for(var i=0;i<g_arrCollectList.length;i++){
		ret += '&nbsp;&nbsp;<a href="javascript:NetCollect('+i+')" title="'+g_arrCollectList[i][4]+'" alt="'+g_arrCollectList[i][4]+'">'+g_arrCollectList[i][0]+'</a>';
	}
	return '<div>' + ret + '</div>';
}catch(e){return '';}
}
function NetCollect(netid){
try{
	if(netid < 0 || netid >= g_arrCollectList.length)
		return;

	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;
		pos = g_titleToCollect.indexOf(' | 好木匠');
		if(pos > 0){
			g_titleToCollect = g_titleToCollect.substring(0,pos);
		}
	}
	if(g_summaryToCollect == ''){
	try{
		var pIntro = null;
		try{
			pIntro = document.getElementById('entry_introduce');
		}catch(e){pIntro = null;}
		try{
			if(null == pIntro) pIntro = document.all['entry_introduce'];
		}catch(e){pIntro = null;}
		if(pIntro != null){
			g_summaryToCollect = pIntro.innerText;
			if(g_summaryToCollect == '') g_summaryToCollect = pIntro.innerHTML;
		}
	}catch(e){}
		if(g_summaryToCollect == '') g_summaryToCollect = g_titleToCollect;
	}
	var pCurColl = g_arrCollectList[netid];
	var url = pCurColl[2].replace('%url%',escape(g_urlToCollect));
	url = url.replace('%title%',escape(g_titleToCollect));
	var summary = document.selection?(document.selection.type!='None'?document.selection.createRange().text:g_summaryToCollect):(document.getSelection?document.getSelection():g_summaryToCollect);
	url = url.replace('%summary%',escape(summary));
	var p = window.open(url,pCurColl[1],pCurColl[3]);
	p.focus();
}catch(e){}
}
// end netget
document.writeln(getCollHtml());
