document.writeln("<center><style type=\"text\/css\">");
document.writeln("<!--");
document.writeln(".STYLE1 {color: #FF0000}");
document.writeln("-->");
document.writeln("<\/style>");
document.writeln("<span class=\"STYLE1\">收藏本书到网络收藏夹:<\/span>");
document.writeln("<a 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=www.xsbook.cn&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\')); class=mvlittle>新浪ViVi<\/a>");
document.writeln("<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\',\'width=930,height=470,left=50,top=50,toolbar=no,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes\');void(0)\">到QQ书签<\/a>");
document.writeln("<a ");
document.writeln("href=\'javascript:u=location.href;t=document.title;c%20=%20\"\"%20+%20(window.getSelection%20? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text);var url=\"http:\/\/cang.baidu.com\/do\/add?it=\"+encodeURIComponent(t)+\"&amp;iu=\"+encodeURIComponent(u)+\"&amp;dc=\"+encodeURIComponent(c)+\"&amp;fr=ien#nw=1\";window.open(url,\"_blank\",\"scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes\"); void 0\'> 百度搜藏 <\/a> ");
document.writeln("<a ");
document.writeln("<a href=\'javascript:(function(){var a=window,b=document,c=encodeURIComponent,d=a.open(\"http:\/\/www.google.com\/bookmarks\/mark?op=edit&output=popup&bkmk=\"+c( b.location)+\"&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)})();\'> Google书签 <\/a>")
document.writeln("<a href=javascript:d=document;t=d.selection?(d.selection.type!=\'None\'?d.selection.createRange().text:\'\'):(d.getSelection?d.getSelection():\'\');void(keyit=window.open(\'http:\/\/my.poco.cn\/fav\/storeIt.php?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\')); class=mvlittle>POCO<\/a>");
document.writeln("	<a href=javascript:d=document;t=d.selection?(d.selection.type!=\'None\'?d.selection.createRange().text:\'\'):(d.getSelection?d.getSelection():\'\');void(keyit=window.open(\'http:\/\/bookmark.hexun.com\/post.aspx?title=\'+escape(d.title)+\'&url=\'+escape(d.location.href)+\'&c=\'+escape(t),\'keyit\',\'scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes\')); class=mvlittle>和讯<\/a></center>");

document.body.oncopy = function () { 
	setTimeout( function () { 
		var text = clipboardData.getData("text");
		if (text && text.length > 100) { 
			var novelIndex = location.href;
			var lastPos = novelIndex.lastIndexOf("/");
			if (lastPos > -1) {
				novelIndex = novelIndex.substring(0, lastPos );
				novelIndex=novelIndex.replace('/bookhtml/listbook','/html/contents/')+'.html';

			} else {
			}
			text = text + "\r\n本章节来自最新最全的小说网，零点书屋(www.02345.com) ："+novelIndex; 
			clipboardData.setData("text", text);
		} 
	}, 100 );
};

