document.writeln("<div id=\"banner_html_across_one\" style=\"display:none\">");
document.writeln("<div align=\"center\">背景颜色");
document.writeln("    <select name=bcolor id=bcolor onchange=\"javascript:document.bgColor=this.value;\">			 ");
document.writeln("   <option style=\"background-color: #eaf6ea\" value=\"#eaf6ea\">默认<\/option>			  ");
document.writeln("    <option style=\"background-color: #ffffff\" value=\"#ffffff\">白色<\/option>              ");
document.writeln("    <option style=\"background-color: #e4ebf1\" value=\"#e4ebf1\">淡蓝<\/option>			  ");
document.writeln("    <option style=\"background-color: #e6f3ff\" value=\"#e6f3ff\">蓝色<\/option>               ");
document.writeln("    <option style=\"background-color: #f0f0f0\" value=\"#f0f0f0\">淡灰<\/option>              ");
document.writeln("    <option style=\"background-color: #eaeaea\" value=\"#eaeaea\">灰色<\/option>                ");
document.writeln("    <option style=\"background-color: #e4e1d8\" value=\"#e4e1d8\">深灰<\/option>              ");
document.writeln("    <option style=\"background-color: #e6e6e6\" value=\"#e6e6e6\">暗灰<\/option>              ");
document.writeln("    <option style=\"background-color: #eefaee\" value=\"#eefaee\">绿色<\/option>              ");
document.writeln("    <option style=\"background-color: #ffffed\" value=\"#ffffed\">明黄<\/option>");
document.writeln("  <\/select>			  ");
document.writeln("  字体颜色");
document.writeln("  <select name=txtcolor id=txtcolor onchange=\"javascript:content.style.color=this.options[this.selectedIndex].value;\"> 			 ");
document.writeln("    <option value=\"#000000\">黑色<\/option>              ");
document.writeln("    <option value=\"#ff0000\">红色<\/option>              ");
document.writeln("    <option value=\"#006600\">绿色<\/option>              ");
document.writeln("    <option value=\"#0000ff\">蓝色<\/option>              ");
document.writeln("    <option value=\"#660000\">棕色<\/option>");
document.writeln("  <\/select>              ");
document.writeln("  字体大小");
document.writeln("  <select name=fonttype id=fonttype onchange=\"javascript:content.style.cssText=this.options[this.selectedIndex].value+\';line-height: 150%\';content.style.color=txtcolor.options[txtcolor.selectedIndex].value;\"> 			  ");
document.writeln("    <option value={font-size:14px;} >小号<\/option> 			  ");
document.writeln("    <option value={font-size:16px;} >较小<\/option> 			  ");
document.writeln("    <option value={font-size:18px;} >中号<\/option>			  ");
document.writeln("    <option value={font-size:22px;} >较大<\/option>			  ");
document.writeln("    <option value={font-size:26px;} >大号<\/option>");
document.writeln("  <\/select>            ");
document.writeln("  鼠标双击滚屏");
document.writeln("  <input name=scrollspeed id=scrollspeed onchange=\"javascript:setSpeed();\" size=2 value=5>            ");
document.writeln("  (1-10，1最慢，10最快）             ");
document.writeln("  <input name=saveset id=saveset onclick=\"javascript:saveSet();\" type=button value=保存设置>");
document.writeln("  <br \/>");
document.writeln("<\/div>");
document.writeln("<\/div>");

//document.writeln("<div id=\"banner_html_across_two\" style=\"display:none\">");
//document.writeln("<script language=javascript>username=\"cuiweiju\";adsid_f=\"20\";<\/script><script language=javascript src=http:\/\/www.heroclick.cn\/js_tpl\/lx_js\/20.js><\/script> ");
//document.writeln("<center><iframe marginwidth=0 marginheight=0  frameborder=0 scrolling=no width=760 height=90 src=\"\/temp\/sougou.html\"><\/iframe><\/center>");
//document.writeln("<\/div>");

document.writeln("<div id=\"banner_html_across_three\" style=\"display:none\">");
document.writeln("<center><a href=\"\/modules\/pay\/zhifukapay.php\" target=\"_blank\" style=\'font-size: 18px; color: #FF0000;\'>新增游戏点卡冲翠微币，支持51支付卡、QQ点卡、盛大一卡通、征途卡、搜狐卡、久游卡、骏网卡、网易卡、完美卡<\/a><\/center>");
document.writeln("<\/div>");
document.writeln("<div id=\"banner_html_across_four\" style=\"display:none\">");
document.writeln("<center><iframe marginwidth=0 marginheight=0  frameborder=0 scrolling=no width=760 height=225 src=\"\/temp/fenmian.html\"></iframe></center>");
document.writeln("<\/div>");

document.writeln("<div id=\"banner_html_across_five\" style=\"display:none\">");
//document.writeln("<center><iframe marginwidth=0 marginheight=0  frameborder=0 scrolling=no width=760 height=90 src=\"http:\/\/temp.cuiweiju.com\/temp\/itopnetworks.html\"><\/iframe><\/center>");
document.writeln("<\/div>");
document.writeln("<div id=\"banner_html_across_six\" style=\"display:none\">");

document.writeln("<form name=\"articlesearch\" method=\"post\" action=\"\/modules\/article\/search.php\">");
document.writeln(" <table width=\"100%\" height=\"26\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#000000\">");
document.writeln(" <tr>");
document.writeln(" <td align=\"center\" bgcolor=\"#F5F5F5\" style=\"border: 1px solid #CCCCCC\">");
document.writeln(" <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" id=\"search\" style=\"font-size:12px\">");
document.writeln(" <tr>");
document.writeln(" <td width=\"50\">&nbsp;");
document.writeln(" <\/td>");
document.writeln(" <td width=\"55\" align=\"left\" style=\"vertical-align: middle\">");
document.writeln(" <span style=\"font-family:宋体;font-size:12px\"><b>关键字：<\/b><\/span>");
document.writeln(" <\/td>");
document.writeln(" <td width=\"120\" align=\"left\">");
document.writeln(" <input name=\"searchkey\" type=\"text\" class=\"text\" id=\"searchkey\" size=\"20\" maxlength=\"40\">");
document.writeln(" <\/td>");
document.writeln(" <td width=\"70\" align=\"left\">");
document.writeln(" <select name=\"searchtype\" id=\"searchtype\" class=\"select\">");
document.writeln("      <option value=\"articlename\" selected>小说名称<\/option>");
document.writeln("      <option value=\"author\">小说作者<\/option>");
document.writeln("    <\/select>");
document.writeln(" <\/td>");
document.writeln(" <td width=\"70\" align=\"left\">");
document.writeln(" <input type=\"submit\" name=\"Submit\" class=\"mybutton\" value=\"搜 索\">");
document.writeln(" ");
document.writeln(" <\/td>");
document.writeln(" <td align=\"center\" valign=\"middle\">");
document.writeln("<a href=\"\/modules\/article\/search.php?searchkey=名门艳旅\">名门艳旅<\/a>&nbsp;");
document.writeln("<a href=\"\/modules\/article\/search.php?searchkey=红尘都市\">红尘都市<\/a>&nbsp;");
document.writeln("<a href=\"\/modules\/article\/search.php?searchkey=神无限风流\">神无限风流<\/a>&nbsp;");
document.writeln("<a href=\"\/modules\/article\/search.php?searchkey=御心香帅\">御心香帅<\/a>&nbsp;");
document.writeln("<a href=\"\/modules\/article\/search.php?searchkey=寻秦记续之战龙返秦\">寻秦记续之战龙返秦<\/a>&nbsp;");
document.writeln("<a href=\"\/modules\/article\/search.php?searchkey=乡春\">乡春<\/a>&nbsp;");
document.writeln("<a href=\"\/modules\/article\/search.php?searchkey=少龙外传\">少龙外传<\/a>&nbsp;");
document.writeln("<a href=\"\/modules\/article\/search.php?searchkey=纵横秘史\">纵横秘史<\/a>&nbsp;");
document.writeln(" <\/td>");
document.writeln(" <\/tr>");
document.writeln(" <\/table>");
document.writeln(" <\/td>");
document.writeln(" <\/tr>");
document.writeln(" <\/table>");
document.writeln("<\/form>");
document.writeln("<\/div>");
document.writeln("<div id=\"banner_html_across_seven\" style=\"display:none\">");
//document.writeln("<div id=\"CopyRt\"> <div id=\"FtCopy\"> <p><a href=\"http:\/\/www.cuiweiju.com\"><font color=\"#FF6600\">翠微居<\/font><\/a>&nbsp;&nbsp;版权所有 Copyright cuiweiju 2002-2010<\/p>  <div class=\"l\"> <p>&nbsp;<a href=\"http:\/\/www.miibeian.gov.cn\/\" target=\"_blank\">浙ICP备05000345号");
//document.writeln("<\/a> &nbsp;&nbsp;&nbsp&nbsp;<\/p><center><script src=\"http:\/\/s4.cnzz.com\/stat.php?id=2136723&web_id=2136723&show=pic1\" language=\"JavaScript\"><\/script><\/center>请所有作者发布作品时务必遵守国家互联网信息管理办法规定，我们拒绝任何色情小说，一经发现，即作删除！ <br>本站所收录小说作品、书库评论及所做之广告均属其个人行为，与本站立场无关。本站所有小说的版权为原作者所有！<br>如无意中侵犯到您的权益，或是含有非法内容，请及时与<A href=\"mailto:cuiweiju#vip.sina.com\" target=\"_blank\"><B>我们联系<\/B><\/A>，我们将在第一时间做出回应！谢谢！<\/div> <\/div><!--FootCopy--> <\/div><!--CopyRt-->");
document.writeln("<script language=\"javascript\" src=\"\/temp\/yahoop.js\"><\/script>");
document.writeln("<center><script src=\"http:\/\/s4.cnzz.com\/stat.php?id=2136723&web_id=2136723&show=pic1\" language=\"JavaScript\"><\/script><\/center>");

document.writeln("<\/div>");
document.writeln("<script language=\"javascript\" type=\"text\/javascript\">");
document.writeln("  function loadad(name){");
document.writeln("  var placeholder = document.getElementById(\"placeholder_\" + name);");
document.writeln("  var adhtml  = document.getElementById(name);");
document.writeln("  if(adhtml == null) return(false);");
document.writeln("  if(placeholder == null) return(false);");
document.writeln("  placeholder.innerHTML = adhtml.innerHTML;");
document.writeln("  return(true);");
document.writeln("  }");
document.writeln("  loadad(\'banner_html_across_one\');");
//document.writeln("  loadad(\'banner_html_across_two\');");
document.writeln("  loadad(\'banner_html_across_three\');");
document.writeln("  loadad(\'banner_html_across_four\');");
document.writeln("  loadad(\'banner_html_across_five\');");
document.writeln("  loadad(\'banner_html_across_six\');");
document.writeln("  loadad(\'banner_html_across_seven\');")
document.writeln("<\/script>");

var speed = 5;
var currentpos=1;
var timer;
var bcolor=document.getElementById('bcolor');
var txtcolor=document.getElementById('txtcolor');
var fonttype=document.getElementById('fonttype');
var scrollspeed=document.getElementById('scrollspeed');

function setSpeed()
{
	speed = parseInt(scrollspeed.value);
	if (speed < 1 || speed > 10){
	   speed=5;
	   scrollspeed.value=5;
	}
	
}

function stopScroll()
{
    clearInterval(timer);
}

function beginScroll()
{
	timer=setInterval("scrolling()",300/speed);
}

function scrolling()
{
	currentpos=document.body.scrollTop;
    window.scroll(0,++currentpos);
    if(currentpos!=document.body.scrollTop) clearInterval(timer);
}

/* for xhtml
function scrolling()
{
	currentpos=document.documentElement.scrollTop;
    window.scroll(0,++currentpos);
    if(currentpos!=document.documentElement.scrollTop) clearInterval(timer);
}
*/

function setCookies(cookieName,cookieValue, expirehours)
{
  var today = new Date();
  var expire = new Date();
  expire.setTime(today.getTime() + 3600000 * 356 * 24);
  document.cookie = cookieName+'='+escape(cookieValue)+ ';expires='+expire.toGMTString();
}
function ReadCookies(cookieName)
{
	var theCookie=''+document.cookie;
	var ind=theCookie.indexOf(cookieName);
	if (ind==-1 || cookieName=='') return ''; 
	var ind1=theCookie.indexOf(';',ind);
	if (ind1==-1) ind1=theCookie.length;
	return unescape(theCookie.substring(ind+cookieName.length+1,ind1));
}
function saveSet()
{
	setCookies("bcolor",bcolor.options[bcolor.selectedIndex].value);
	setCookies("txtcolor",txtcolor.options[txtcolor.selectedIndex].value);
	setCookies("fonttype",fonttype.options[fonttype.selectedIndex].value);
	setCookies("scrollspeed",scrollspeed.value);
}
function loadSet()
{
	var tmpstr;
	tmpstr = ReadCookies("bcolor");
	bcolor.selectedIndex = 0;
	if (tmpstr != "")
	{
	    for (var i=0;i<bcolor.length;i++)
		{
			if (bcolor.options[i].value == tmpstr)
			{
			    
				bcolor.selectedIndex = i;
				break;
			}
		}
	}
	tmpstr = ReadCookies("txtcolor");
	txtcolor.selectedIndex = 0;
	if (tmpstr != "")
	{
		for (var i=0;i<txtcolor.length;i++)
		{
			if (txtcolor.options[i].value == tmpstr)
			{
				txtcolor.selectedIndex = i;
				break;
			}
		}
	}
	tmpstr = ReadCookies("fonttype");
	fonttype.selectedIndex = 2;
	if (tmpstr != "")
	{
		for (var i=0;i<fonttype.length;i++)
		{
			if (fonttype.options[i].value == tmpstr)
			{
				fonttype.selectedIndex = i;
				break;
			}
		}
	}
	
	tmpstr = ReadCookies("scrollspeed");
	if (tmpstr=='') tmpstr=5;
	scrollspeed.value=tmpstr;
	setSpeed();
	document.bgColor=bcolor.options[bcolor.selectedIndex].value;
	document.getElementById('content').style.cssText=fonttype.options[fonttype.selectedIndex].value+';line-height: 150%';
	document.getElementById('content').style.color=txtcolor.options[txtcolor.selectedIndex].value;
}

document.onmousedown=stopScroll;
document.ondblclick=beginScroll;
loadSet();


