function ad_001()	{
	document.write("<center>");

	r = escape(document.referrer);
	if ( r.indexOf('?') != -1 || r.indexOf('%') != -1 )	{

		document.write("</center>");
	}


}

// ###################### top template #################
function add_favorite()	{
	window.external.addFavorite("http://sk.cnlu.net/","华网书库：含古典文学，武侠小说，言情小说，科幻小说，网友原创，名家名著等");
}

function ad_top(dir)	{
	dir = "" + dir + "";
	if ( dir == "undefined" )	{
		dir = '..';
	}
document.writeln("<table width=\"760\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">");
document.writeln("<tr>");
document.writeln("<td>");
document.writeln("<\/td>");
document.writeln("<\/tr>");
document.writeln("<\/table>");
document.writeln("<table width=\"760\" align=\"center\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#666666\">");
document.writeln("<tr>");
document.writeln("<td bgcolor=\"#000000\"><img src=\"\/images\/blank.gif\" width=\"1\" height=\"1\"><\/td>");
document.writeln("<\/tr>");
document.writeln("<\/table>");
document.writeln("<table width=\"760\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\" height=\"25\">");
document.writeln("<tr>");
document.writeln("<td bgcolor=\"#000000\" width=\"1\"><img src=\"images\/blank.gif\" width=\"1\" height=\"1\"><\/td>");
document.writeln("<td width=\"193\" bgcolor=\"#eeeeee\">");
document.writeln("<table border=\"0\" width=\"752\" height=\"43\">");
document.writeln("<tr>");
document.writeln("<td width=\"186\" rowspan=\"3\" height=\"70\">");
document.writeln("  <p align=\"center\"><img border=\"0\" src=\"http:\/\/www.cnlu.net\/logo2.gif\" width=\"208\" height=\"118\"><\/p>");
document.writeln("<\/td><form action=\"http:\/\/www.cnlu.net\/login.asp\" method=\"post\">");
document.writeln("<td width=\"538\" height=\"27\">");
document.writeln("  <p align=\"center\">  ");
document.writeln("      用户名:<font class=\"font\" color=\"#000000\"><input name=\"UserName\" size=\"12\">                  ");
document.writeln("      密码: <input type=\"password\" name=\"password\" size=\"12\">                                                                                                                            ");
document.writeln("      <input style=\"BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; COLOR: #000000; BORDER-BOTTOM: medium none; BACKGROUND-COLOR: #eeeeee\" type=\"submit\" value=\"登陆\" name=\"ScrollAction\" double 1>&nbsp;                                                                                 ");
document.writeln("      <a href=\"http:\/\/www.cnlu.net\/register.htm\">注册<\/a>　<a href=\"javascript:winopen(\'http:\/\/www.cnlu.net\/recall.asp\')\">密码找回<\/a>");
document.writeln("<\/p>       ");
document.writeln("      <\/font>    ");
document.writeln("    <\/td><\/form>");
document.writeln("<\/tr>");
document.writeln("<tr>");
document.writeln("<td width=\"538\" height=\"21\">");
document.writeln("  <div align=\"center\">");
document.writeln("    <center>");
document.writeln("    <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"532\">");
document.writeln("      <tr>");
document.writeln("        <td width=\"468\" rowspan=\"3\" height=\"60\">");
document.writeln("<iframe frameborder=0 src=http://sk.cnlu.net/bookad1.htm width=468 height=60 scrolling=no></iframe><\/td>");
document.writeln("        <td width=\"116\">");
document.writeln("          <p align=\"center\"><a class=\"blue\" onclick=\"this.style.behavior=\'url(#default#homepage)\';this.setHomePage(\'http:\/\/www.cnlu.net\');return false;\" href=\"#\">设为首页<\/a><\/td>");
document.writeln("      <\/tr>");
document.writeln("      <tr>");
document.writeln("        <td width=\"116\">");
document.writeln("          <p align=\"center\"><a title=\"在线投稿\" href=\"http:\/\/www.cnlu.net\/homeall.asp\" target=\"_blank\"><font color=green>在线投稿<\/font><\/a><\/td>");
document.writeln("      <\/tr>");
document.writeln("      <tr>");
document.writeln("        <td width=\"116\">");
document.writeln("          <p align=\"center\"><a href=\"http:\/\/www.cnlu.net\/lx.asp\">联系我们<\/a><\/td>");
document.writeln("      <\/tr>");
document.writeln("    <\/table>");
document.writeln("    <\/center>");
document.writeln("  <\/div>");
document.writeln("<\/td>");
document.writeln("<\/tr>");
document.writeln("<tr>");
document.writeln("<td width=\"530\" align=\"center\" height=\"1\">");
document.writeln("  <div align=\"center\">");
document.writeln("    <center>");
document.writeln("    <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"530\">");
document.writeln("      <tr>");
document.writeln("<td width=\"28\" align=\"center\" height=\"3\"><a href=\"http:\/\/www.cnlu.net\">首页<\/a><\/td>");
document.writeln("<td width=\"5\" align=\"center\" height=\"3\"><img border=\"0\" src=\"http://www.cnlu.net/shuxian.gif\" width=\"5\" height=\"18\"><\/td>");
document.writeln("<td width=\"28\" align=\"center\" height=\"3\"><a href=\"http:\/\/www.cnlu.net\/wzmenu.asp?tid=1\">散文<\/a><\/td>");
document.writeln("<td width=\"5\" align=\"center\" height=\"3\"><img border=\"0\" src=\"http://www.cnlu.net/shuxian.gif\" width=\"5\" height=\"18\"><\/td>");
document.writeln("<td width=\"28\" align=\"center\" height=\"3\"><a href=\"http:\/\/www.cnlu.net\/wzmenu.asp?tid=3\">小说<\/a><\/td>");
document.writeln("<td width=\"5\" align=\"center\" height=\"3\"><img border=\"0\" src=\"http://www.cnlu.net/shuxian.gif\" width=\"5\" height=\"18\"><\/td>");
document.writeln("<td width=\"28\" align=\"center\" height=\"3\"><a href=\"http:\/\/www.cnlu.net\/wzmenu.asp?tid=2\">诗歌<\/a><\/td>");
document.writeln("<td width=\"5\" align=\"center\" height=\"3\"><img border=\"0\" src=\"http://www.cnlu.net/shuxian.gif\" width=\"5\" height=\"18\"><\/td>");
document.writeln("<td width=\"28\" align=\"center\" height=\"3\"><a href=\"http:\/\/www.cnlu.net\/wzmenu.asp?tid=6\">古体<\/a><\/td>");
document.writeln("<td width=\"5\" align=\"center\" height=\"3\"><img border=\"0\" src=\"http://www.cnlu.net/shuxian.gif\" width=\"5\" height=\"18\"><\/td>");
document.writeln("<td width=\"28\" align=\"center\" height=\"3\"><a href=\"http:\/\/www.cnlu.net\/wzmenu.asp?tid=4\">杂谈<\/a><\/td>");
document.writeln("<td width=\"5\" align=\"center\" height=\"3\"><img border=\"0\" src=\"http://www.cnlu.net/shuxian.gif\" width=\"5\" height=\"18\"><\/td>");
document.writeln("<td width=\"28\" align=\"center\" height=\"3\"><a href=\"http:\/\/www.cnlu.net\/wzmenu.asp?tid=5\">其它<\/a><\/td>");
document.writeln("<td width=\"5\" align=\"center\" height=\"3\"><img border=\"0\" src=\"http://www.cnlu.net/shuxian.gif\" width=\"5\" height=\"18\"><\/td>");
document.writeln("<td width=\"28\" align=\"center\" height=\"3\"><a href=\"http:\/\/www.cnlu.net\/zjbrow.asp\">文集<\/a><\/td>");
document.writeln("<td width=\"5\" align=\"center\" height=\"3\"><img border=\"0\" src=\"http://www.cnlu.net/shuxian.gif\" width=\"5\" height=\"18\"><\/td>");
document.writeln("<td width=\"28\" align=\"center\" height=\"3\"><a href=\"http:\/\/www.cnlu.net\/listen\/\">听读<\/a><\/td>");
document.writeln("<td width=\"5\" align=\"center\" height=\"3\"><img border=\"0\" src=\"http://www.cnlu.net/shuxian.gif\" width=\"5\" height=\"18\"><\/td>");
document.writeln("<td width=\"28\" align=\"center\" height=\"3\"><a href=\"http:\/\/www.cnlu.net\/hflist.asp\">点评<\/a><\/td>");
document.writeln("<td width=\"5\" align=\"center\" height=\"3\"><img border=\"0\" src=\"http://www.cnlu.net/shuxian.gif\" width=\"5\" height=\"18\"><\/td>");
document.writeln("<td width=\"28\" align=\"center\" height=\"3\"><a href=\"http:\/\/chat.cnlu.net\" target=\"_blank\">聊天<\/a><\/td>");
document.writeln("<td width=\"5\" align=\"center\" height=\"3\"><img border=\"0\" src=\"http://www.cnlu.net/shuxian.gif\" width=\"5\" height=\"18\"><\/td>");
document.writeln("<td width=\"28\" align=\"center\" height=\"3\"><a href=\"http:\/\/music.cnlu.net\" target=\"_blank\">音乐<\/a><\/td>");
document.writeln("<td width=\"5\" align=\"center\" height=\"3\"><img border=\"0\" src=\"http://www.cnlu.net/shuxian.gif\" width=\"5\" height=\"18\"><\/td>");
document.writeln("<td width=\"28\" align=\"center\" height=\"3\"><a href=\"http:\/\/book.cnlu.net\">读书<\/a><\/td>");
document.writeln("<td width=\"5\" align=\"center\" height=\"3\"><img border=\"0\" src=\"http://www.cnlu.net/shuxian.gif\" width=\"5\" height=\"18\"><\/td>");
document.writeln("<td width=\"28\" align=\"center\" height=\"3\"><a href=\"http:\/\/www.cnlu.net\/bbs.asp\">论坛<\/a><\/td>");
document.writeln("<td width=\"5\" align=\"center\" height=\"3\"><img border=\"0\" src=\"http://www.cnlu.net/shuxian.gif\" width=\"5\" height=\"18\"><\/td>");
document.writeln("<td width=\"28\" align=\"center\" height=\"3\"><a href=\"http:\/\/sk.cnlu.net\">书库<\/a><\/td>");
document.writeln("<td width=\"5\" align=\"center\" height=\"3\"><img border=\"0\" src=\"http://www.cnlu.net/shuxian.gif\" width=\"5\" height=\"18\"><\/td>");
document.writeln("<td width=\"28\" align=\"center\" height=\"3\"><a href=\"http:\/\/searchbook.cnlu.net\">追书<\/a><\/td>");
document.writeln("<td width=\"5\" align=\"center\" height=\"3\"><img border=\"0\" src=\"http://www.cnlu.net/shuxian.gif\" width=\"5\" height=\"18\"><\/td>");
document.writeln("<td width=\"28\" align=\"center\" height=\"3\"><a href=\"http:\/\/blog.cnlu.net\">博客<\/a><\/td>");
document.writeln("<\/tr>");
document.writeln("    <\/table>");
document.writeln("    <\/center>");
document.writeln("  <\/div>");
document.writeln("<\/td>");
document.writeln("<\/tr>");
document.writeln("<\/table>");
document.writeln("<\/td>");
document.writeln("<td bgcolor=\"#000000\" width=\"1\"><img src=\"images\/blank.gif\" width=\"1\" height=\"1\"><\/td>");
document.writeln("<\/tr>");
document.writeln("<\/table>");
document.writeln("<table width=\"760\" align=\"center\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#666666\">");
document.writeln("<tr>");
document.writeln("<td bgcolor=\"#000000\"><img src=\"\/images\/blank.gif\" width=\"1\" height=\"1\"><\/td>");
document.writeln("<\/tr>");
document.writeln("<\/table>")
document.writeln("<table width=\"760\" align=center style='BACKGROUND: #A0C0F0; BORDER-BOTTOM: #A0C0F0 1px solid; BORDER-LEFT: #A0C0F0  1px solid; BORDER-RIGHT: #A0C0F0 1px solid; BORDER-TOP: #A0C0F0  1px solid'>");
document.writeln("  <tr ><td align=center> ");
document.write("<a href='http://sk.cnlu.net/'>书库首页</a> | <a href='http://sk.cnlu.net/wxxs/index.html'>武侠小说</a> | <a href='http://sk.cnlu.net/yqxs/index.html'>言情小说</a> | <a href='http://sk.cnlu.net/khxs/index.html'>科幻小说</a> | <a href='http://www.cnlu.net/wzall.asp'>原创文学</a> | <a href='http://sk.cnlu.net/gd/index.html'>古典文学</a> | <a href='http://sk.cnlu.net/wg/index.html'>外国文学</a> | <a href='http://sk.cnlu.net/lsxs/index.html'>历史小说</a> | <a href='http://sk.cnlu.net/lszl/index.html'>历史资料</a> | <a href='http://sk.cnlu.net/js/index.html'>纪实文学</a> | <a href='http://sk.cnlu.net/junshi/index.htm'>军事文学</a><br><A HREF='http://sk.cnlu.net/zongjiao/index.html'>宗教哲学</A> | <A HREF='http://sk.cnlu.net/ertong/index.html'>儿童文学</A> | <a href='http://sk.cnlu.net/diannao/index.html'>电脑硬件</a> | <a href='http://sk.cnlu.net/baike/index.html'>百科丛书</a> | <a href='http://sk.cnlu.net/shenghuo/index.html'>休闲生活</a> | <A HREF='http://sk.cnlu.net/qingsong/index.html'>休闲娱乐</A> | <A HREF='http://sk.cnlu.net/yingwen/index.html'>英文读物</A> | <A HREF='http://sk.cnlu.net/jingji/index.html'>政治经济</A> | <A HREF='http://sk.cnlu.net/sjwz/index.html'>世纪文摘</A> | <A HREF='http://sk.cnlu.net/hhys/index.html'>绘画艺术</A> | <A HREF='http://sk.cnlu.net/lhh/index.html'>连环画册</A>");
document.writeln("<\/td><\/tr><tr ><td align=center><iframe frameborder=0 src=http://sk.cnlu.net/almm.htm width=750 height=95 scrolling=no></iframe>");
document.writeln("<\/td><\/tr><\/table>")
}

function copyright()	{
	document.write('<p><center><table width="760" border=0 cellspacing=0 cellpadding=0 >');
        document.write('<tr align="center"><td>');
        document.write('');
        document.write('</td></tr>');
	document.write('<TR>');
	document.write('	<TD align=center>');
        document.write('<div align="center"><iframe frameborder=0 src=http://sk.cnlu.net/bookad.htm width=760 height=230 scrolling=no></iframe></div>');	
	onLoad = document.write('<br>');
	document.write('<hr>');        
	document.write('Copyright&copy;<a href=http://www.cnlu.net>华文网络文学联盟 2000—2003</a><br>请用IE5.0 800x600 16M色 小字体 以上配置浏览<br>我们做真正的网络文学<br><a href="http://www.miibeian.gov.cn" target=blank><font color=green>辽ICP备05015249号</font></a><script src="http://book.cnlu.net/stat/mystat.asp?siteid=1"></script><SCRIPT language=JavaScript src="http://www.cnlu.net/ad/new.js"></SCRIPT><script src="http://u.1133.cc/showpage.php?pid=101529&show_t=2" language=javascript></script>');
        document.write("<\/td><\/tr><\/table><\/center>");
}

function jump_page()	{
	window.location.href = document.jump_page_form.catname.value + document.jump_page_form.num.value + '.html';
	return false;
}



//################### cookie start ###################

var expDays = 30; // number of days the cookie should last

function GetCookie (name) {  
	var arg = name + "=";  
	var alen = arg.length;  
	var clen = document.cookie.length;  
	var i = 0;  
	while (i < clen) {    
	var j = i + alen;    
	if (document.cookie.substring(i, j) == arg)      
	return getCookieVal (j);    
	i = document.cookie.indexOf(" ", i) + 1;    
	if (i == 0) break;   
	}  
	return null;
}
function SetCookie (name, value) {  
	var argv = SetCookie.arguments;  
	var argc = SetCookie.arguments.length;  
	var expires = (argc > 2) ? argv[2] : null;  
	var path = (argc > 3) ? argv[3] : null;  
	var domain = (argc > 4) ? argv[4] : null;  
	var secure = (argc > 5) ? argv[5] : false;  
	document.cookie = name + "=" + escape (value) + 
	((expires == null) ? "" : ("; expires=" + (expires.toGMTString() + expDays*24*60*60*1000) )) + 
	((path == null) ? "" : ("; path=" + path)) +  
	((domain == null) ? "" : ("; domain=" + domain)) +    
	((secure == true) ? "; secure" : "");
}
function DeleteCookie (name) {  
	var exp = new Date();  
	exp.setTime (exp.getTime() - 1);  
	var cval = GetCookie (name);  
	document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
}

function getCookieVal(offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}
//################### cookie end ###################

function remember_this_page(page_num)	{
	exp1 = new Date(); 
	exp1.setTime(exp1.getTime() + (30*24*60*60*1000));
	title_str = document.title;
	title_ary = title_str.split(":");
	this_page_from_cookie = title_ary[1] + '|' + document.location.href;
	SetCookie("page_"+page_num+"_from_cookie",this_page_from_cookie,exp1,"/");
	alert("您好: \n\n“ " + title_ary[1] + " ” \n\n的页面地址已经记录下来了,您下次访问本站,\n\n只要点击 “ 跳转到记录的页面"+page_num+" ” 就可以直接访问该页面了!!\n\n                    ------ 华网文盟 竭诚奉献");
}

function go_remembered_page(page_num)	{
	
	url_str = GetCookie("page_"+page_num+"_from_cookie");
	
	if (url_str == null || url_str.indexOf("|") == -1)
	{
		alert("你还没有记录任何页面地址，请先点击 记住本页地址！");
	}
	else	{
		//alert(url_str);
		url_ary = url_str.split("|");
		if ( confirm("你确定要打开 “ " + url_ary[0] + " ” 页面吗?") )
		{
			window.open(url_ary[1]);
		}
	}
}


function bookmark_this_page()	{
	title_str = document.title;
	title_ary = title_str.split(":");
	window.external.addFavorite(document.location.href,"华网书库：" + title_ary[1] + "");
}

document.body.background = '/images/mainbg.gif';
//document.write('<base target=_blank>');