var jieqiUserId = 0;
var jieqiUserName = '';
var jieqiUserPassword = '';
var jieqiUserGroup = 0;
var jieqiNewMessage = 0;

if(document.cookie.indexOf('jieqiUserInfo') >= 0){
	
	var jieqiUserInfo = get_cookie_value('jieqiUserInfo');
	
	start = 0;
	offset = jieqiUserInfo.indexOf(',', start); 
	while(offset > 0){
		tmpval = jieqiUserInfo.substring(start, offset);
		tmpidx = tmpval.indexOf('=');
		if(tmpidx > 0){
           tmpname = tmpval.substring(0, tmpidx);
		   tmpval = tmpval.substring(tmpidx+1, tmpval.length);
		   if(tmpname == 'jieqiUserId') jieqiUserId = tmpval;
		   else if(tmpname == 'jieqiUserName_un') jieqiUserName = tmpval;
		   else if(tmpname == 'jieqiUserPassword') jieqiUserPassword = tmpval;
		   else if(tmpname == 'jieqiUserGroup') jieqiUserGroup = tmpval;
		   else if(tmpname == 'jieqiNewMessage') jieqiNewMessage = tmpval;
		}
		start = offset+1;
		if(offset < jieqiUserInfo.length){
		  offset = jieqiUserInfo.indexOf(',', start); 
		  if(offset == -1) offset =  jieqiUserInfo.length;
		}else{
          offset = -1;
		}
	}
}

function get_cookie_value(Name) { 
  var search = Name + "=";
　var returnvalue = ""; 
　if (document.cookie.length > 0) { 
　  offset = document.cookie.indexOf(search) 
　　if (offset != -1) { 
　　  offset += search.length 
　　  end = document.cookie.indexOf(";", offset); 
　　  if (end == -1) 
　　  end = document.cookie.length; 
　　  returnvalue=unescape(document.cookie.substring(offset, end));
　　} 
　} 
　return returnvalue; 
}
document.writeln('<link rel="stylesheet" href="http://www.188zw.com/themes/188zw/js/coda-slider.css" type="text/css" media="screen" title="no title" charset="gbk">');
document.writeln('<link rel="stylesheet" rev="stylesheet" href="http://www.188zw.com/themes/188zw/style.css"  type="text/css" media="all" />');
document.writeln('<table width="960" border="0" align="center" cellpadding="0" cellspacing="0" style="margin-top:5px;" ID="Table1">');
	document.writeln('<form action="http://www.188zw.com/login.php" method="post" name="framelogin" id="framelogin" />');
	document.writeln('<tr>');
		document.writeln('<td width="250" rowspan="3"><a href="http://www.188zw.com/"><img src="http://www.188zw.com/themes/188zw/logo.gif" width="250" height="55" border="0" /></a></td>');
		document.writeln('<td align="right" height="22">');
									 if(document.cookie.indexOf('jieqiUserInfo') >= 0){
	
										var jieqiUserInfo = get_cookie_value('jieqiUserInfo');
										
										start = 0;
										offset = jieqiUserInfo.indexOf(',', start); 
										while(offset > 0){
											tmpval = jieqiUserInfo.substring(start, offset);
											tmpidx = tmpval.indexOf('=');
											if(tmpidx > 0){
											   tmpname = tmpval.substring(0, tmpidx);
											   tmpval = tmpval.substring(tmpidx+1, tmpval.length);
											   if(tmpname == 'jieqiUserId') jieqiUserId = tmpval;
											   else if(tmpname == 'jieqiUserName_un') jieqiUserName = tmpval;
											   else if(tmpname == 'jieqiUserPassword') jieqiUserPassword = tmpval;
											   else if(tmpname == 'jieqiUserGroup') jieqiUserGroup = tmpval;
											   else if(tmpname == 'jieqiNewMessage') jieqiNewMessage = tmpval;
											}
											start = offset+1;
											if(offset < jieqiUserInfo.length){
											  offset = jieqiUserInfo.indexOf(',', start); 
											  if(offset == -1) offset =  jieqiUserInfo.length;
											}else{
											  offset = -1;
											}
										}
									}

										if(jieqiUserId != 0 && jieqiUserName != '' && (document.cookie.indexOf('PHPSESSID') != -1 || jieqiUserPassword != '')){
										  document.writeln('<table width="100%"  border="0" cellspacing="0" cellpadding="0" align="right" ID="Table6">');
										  document.writeln('<tr>');
										  document.writeln('<td align="right" valign="middle" height="20">&nbsp;欢迎您: '+jieqiUserName+'&nbsp;&nbsp;<a href="/userdetail.php" target="_top">查看资料</a> | <a href="/modules/article/bookcase.php" target="_top">我的书架</a>');
										  if(jieqiNewMessage > 0){
											  document.writeln(' | <a href="/message.php?box=inbox" target="_top" class="mue1">您有短信</a>');
										  }else{
											  document.writeln(' | <a href="/message.php?box=inbox" target="_top">查看短信</a>');
										  }
										  document.writeln(' | <a href="/logout.php" target="_self">退出登陆</a></td>');
										  document.writeln('</tr>');
										  document.writeln('</table>');
										}else{
										  var jumpurl="";
										  if(location.href.indexOf("jumpurl") == -1){
											jumpurl=location.href;
										  }
										  document.writeln('<table width="100%"  border="0" cellspacing="0" cellpadding="0" align="right" ID="Table7">');
										  document.writeln('<form name="framelogin" method="post" action="/login.php" ID="Form2">');
										  document.writeln('<tr>');
										  document.writeln('<td align="right" valign="middle">用户名:');
										  document.writeln('<input name="username" type="text" class="inputLen200" onkeypress="javascript: if (event.keyCode==32) return false;" value="" size="12" maxlength="30" ID="Text1"/>');
										  document.writeln('&nbsp;密码:<input type="password" class="inputLen200" size="12" maxlength="30" name="password" ID="Password1"/>');
										  document.writeln('<input type="hidden" name="action" value="login" ID="Hidden1"/>');
										  document.writeln('<input type="hidden" name="jumpurl" value="'+jumpurl+'" ID="Hidden2"/>');
										  document.writeln('<input type="checkbox" class="checkbox" name="usecookie" value="1" ID="Checkbox1"/>');
										  document.writeln('记录');
										  document.writeln('<input name="image" type="image" src="http://www.188zw.com/themes/188zw/image/butz1.jpg" align="absbottom" ID="Image2"/>');
										  document.writeln('<a target="_top" href="http://www.188zw.com/register.php"><img src="http://www.188zw.com/themes/188zw/image/butz2.jpg" width="55" height="22" border="0" align="absbottom"/></a>&nbsp;<a target="_top" href="http://www.188zw.com/getpass.php"><img src="http://www.188zw.com/themes/188zw/image/butz3.jpg" width="78" height="22" border="0" align="absbottom"/></a>&nbsp;<a href="http://www.188zw.com/modules/article/myarticle.php"><img src="http://www.188zw.com/themes/188zw/image/butz4.jpg" width="78" height="22" border="0" align="absbottom"/></a></td>');
										  document.writeln('</tr>');
										  document.writeln('</form>');
										  document.writeln('</table>');
										}
		document.writeln('</td>');
	document.writeln('</tr>');
	document.writeln('<tr>');
		document.writeln('<td height="1" bgcolor="#E0E0E0"></td>');
	document.writeln('</tr>');
	document.writeln('<tr>');
		document.writeln('<td align="right">');
			document.writeln('</a><img src="http://www.188zw.com/themes/188zw/image/redAcrow.gif" width="3" height="5" />');
			document.writeln('<a onclick="this.style.behavior=\'url(#default#homepage)\';this.setHomePage(\'http://www.188zw.com\');"	href="#">设为首页</a> <img src="http://www.188zw.com/themes/188zw/image/redAcrow.gif" width="3" height="5" />');
			document.writeln('<a href="javascript:window.external.addFavorite(\'http://www.188zw.com\',\'188中文网\')">加入收藏</a></td>');
	document.writeln('</tr>');
	document.writeln('</form>');
document.writeln('</table>');
document.writeln('<table width="100%" height="33" border="0" cellpadding="0" cellspacing="0" background="http://www.188zw.com/themes/188zw/image/blue_bg.jpg"	style="margin-top:5px;" ID="Table3">');
document.writeln('<tr>');
		document.writeln('<td>&nbsp;</td>');
		document.writeln('<td width="960"><table width="960" height="33" border="0" align="center" cellpadding="0" cellspacing="0" ID="Table4">');
				document.writeln('<tr>');
					document.writeln('<td width="3" align="center" background="http://www.188zw.com/themes/188zw/image/blue_bg_s.jpg"	class="HaveUnderLine"></td>');
					document.writeln('<td class="HaveUnderLine" align="center" width="72" background="http://www.188zw.com/themes/188zw/image/blue_bg.jpg" onmouseout="this.background=\'http://www.188zw.com/themes/188zw/image/blue_bg.jpg\'" onmouseover="this.background=\'http://www.188zw.com/themes/188zw/image/blue_bg_light.jpg\';"><a href="/" target="_self" class="HaveUnderLine">首页</a></td>');
					document.writeln('<td width="2" align="center" background="http://www.188zw.com/themes/188zw/image/blue_bg_s.jpg" class="HaveUnderLine"></td>');
					document.writeln('<td class="HaveUnderLine" align="center" width="72" background="http://www.188zw.com/themes/188zw/image/blue_bg.jpg" onmouseout="this.background=\'http://www.188zw.com/themes/188zw/image/blue_bg.jpg\'" onmouseover="this.background=\'http://www.188zw.com/themes/188zw/image/blue_bg_light.jpg\';"><a href="http://www.188zw.com/188zwsort/0/1.htm" target="_self" class="HaveUnderLine">全部文章</a></td>');
					document.writeln('<td width="2" align="center" background="http://www.188zw.com/themes/188zw/image/blue_bg_s.jpg"	class="HaveUnderLine"></td>');
					document.writeln('<td class="HaveUnderLine" align="center" width="72" background="http://www.188zw.com/themes/188zw/image/blue_bg.jpg" onmouseout="this.background=\'http://www.188zw.com/themes/188zw/image/blue_bg.jpg\'" onmouseover="this.background=\'http://www.188zw.com/themes/188zw/image/blue_bg_light.jpg\';"><a href="http://www.188zw.com/188zwsort1/0/1.htm" target="_self" class="HaveUnderLine">玄幻小说</a></td>');
					document.writeln('<td width="2" align="center" background="http://www.188zw.com/themes/188zw/image/blue_bg_s.jpg" class="HaveUnderLine"></td>');																																						  
					document.writeln('<td class="HaveUnderLine" align="center" width="72" background="http://www.188zw.com/themes/188zw/image/blue_bg.jpg" onmouseout="this.background=\'http://www.188zw.com/themes/188zw/image/blue_bg.jpg\'" onmouseover="this.background=\'http://www.188zw.com/themes/188zw/image/blue_bg_light.jpg\';"><a href="http://www.188zw.com/188zwsort2/0/1.htm" target="_self" class="HaveUnderLine">武侠小说</a></td>');
					document.writeln('<td width="2" align="center" background="http://www.188zw.com/themes/188zw/image/blue_bg_s.jpg" class="HaveUnderLine"></td>');																																									  
					//document.writeln('<td class="HaveUnderLine" align="center" width="72" background="http://www.188zw.com/themes/188zw/image/blue_bg.jpg" onmouseout="this.background=\'http://www.188zw.com/themes/188zw/image/blue_bg.jpg\'" onmouseover="this.background=\'http://www.188zw.com/themes/188zw/image/blue_bg_light.jpg\';"><a href="http://www.188zw.com/188zwsort3/0/1.htm" target="_self" class="HaveUnderLine">言情小说</a></td>');
					document.writeln('<td width="2" align="center" background="http://www.188zw.com/themes/188zw/image/blue_bg_s.jpg" class="HaveUnderLine"></td>');																																								  
					document.writeln('<td class="HaveUnderLine" align="center" width="72" background="http://www.188zw.com/themes/188zw/image/blue_bg.jpg" onmouseout="this.background=\'http://www.188zw.com/themes/188zw/image/blue_bg.jpg\'" onmouseover="this.background=\'http://www.188zw.com/themes/188zw/image/blue_bg_light.jpg\';"><a href="http://www.188zw.com/188zwsort4/0/1.htm" target="_self" class="HaveUnderLine">历史军事</a></td>');
					document.writeln('<td width="2" align="center" background="http://www.188zw.com/themes/188zw/image/blue_bg_s.jpg" class="HaveUnderLine"></td>')	;																																									  
					document.writeln('<td class="HaveUnderLine" align="center" width="72" background="http://www.188zw.com/themes/188zw/image/blue_bg.jpg" onmouseout="this.background=\'http://www.188zw.com/themes/188zw/image/blue_bg.jpg\'" onmouseover="this.background=\'http://www.188zw.com/themes/188zw/image/blue_bg_light.jpg\';"><a href="http://www.188zw.com/188zwsort5/0/1.htm" target="_self" class="HaveUnderLine">侦探推理</a></td>');
					document.writeln('<td width="2" align="center" background="http://www.188zw.com/themes/188zw/image/blue_bg_s.jpg" class="HaveUnderLine"></td>');																																										  
					document.writeln('<td class="HaveUnderLine" align="center" width="72" background="http://www.188zw.com/themes/188zw/image/blue_bg.jpg" onmouseout="this.background=\'http://www.188zw.com/themes/188zw/image/blue_bg.jpg\'" onmouseover="this.background=\'http://www.188zw.com/themes/188zw/image/blue_bg_light.jpg\';"><a href="http://www.188zw.com/188zwsort6/0/1.htm" target="_self" class="HaveUnderLine">网游小说</a></td>');
					document.writeln('<td width="2" align="center" background="http://www.188zw.com/themes/188zw/image/blue_bg_s.jpg" class="HaveUnderLine"></td>')	;																																									  
					document.writeln('<td class="HaveUnderLine" align="center" width="72" background="http://www.188zw.com/themes/188zw/image/blue_bg.jpg" onmouseout="this.background=\'http://www.188zw.com/themes/188zw/image/blue_bg.jpg\'" onmouseover="this.background=\'http://www.188zw.com/themes/188zw/image/blue_bg_light.jpg\';"><a href="http://www.188zw.com/188zwsort7/0/1.htm" target="_self" class="HaveUnderLine">科幻小说</a></td>');
					document.writeln('<td width="2" align="center" background="http://www.188zw.com/themes/188zw/image/blue_bg_s.jpg" class="HaveUnderLine"></td>')	;																																									  
					document.writeln('<td class="HaveUnderLine" align="center" width="72" background="http://www.188zw.com/themes/188zw/image/blue_bg.jpg" onmouseout="this.background=\'http://www.188zw.com/themes/188zw/image/blue_bg.jpg\'" onmouseover="this.background=\'http://www.188zw.com/themes/188zw/image/blue_bg_light.jpg\';"><a href="http://www.188zw.com/188zwsort8/0/1.htm" target="_self" class="HaveUnderLine">恐怖灵异</a></td>');
					document.writeln('<td width="2" align="center" background="http://www.188zw.com/themes/188zw/image/blue_bg_s.jpg" class="HaveUnderLine"></td>');																																										  
					document.writeln('<td class="HaveUnderLine" align="center" width="72" background="http://www.188zw.com/themes/188zw/image/blue_bg.jpg" onmouseout="this.background=\'http://www.188zw.com/themes/188zw/image/blue_bg.jpg\'" onmouseover="this.background=\'http://www.188zw.com/themes/188zw/image/blue_bg_light.jpg\';"><a href="http://www.188zw.com/188zwsort10/0/1.htm" target="_self" class="HaveUnderLine">同人小说</a></td>');
					document.writeln('<td width="2" align="center" background="http://www.188zw.com/themes/188zw/image/blue_bg_s.jpg" class="HaveUnderLine"></td>');																																										  
					document.writeln('<td class="HaveUnderLine" align="center" width="72" background="http://www.188zw.com/themes/188zw/image/blue_bg.jpg" onmouseout="this.background=\'http://www.188zw.com/themes/188zw/image/blue_bg.jpg\'" onmouseover="this.background=\'http://www.188zw.com/themes/188zw/image/blue_bg_light.jpg\';"><a href="http://www.188zw.com/188zwsort11/0/1.htm" target="_self" class="HaveUnderLine">其它小说</a></td>');
					document.writeln('<td align="center" width="2" background="http://www.188zw.com/themes/188zw/image/blue_bg_s.jpg" class="HaveUnderLine"></td>');																																														  
					//document.writeln('<td class="HaveUnderLine" align="center" width="72" background="http://www.188zw.com/themes/188zw/image/blue_bg.jpg" onmouseout="this.background=\'http://www.188zw.com/themes/188zw/image/blue_bg.jpg\'" onmouseover="this.background=\'http://www.188zw.com/themes/188zw/image/blue_bg_light.jpg\';"><a href="http://www.188zw.com/188zwsort9/0/1.htm" target="_self" class="HaveUnderLine">女频小说</a></td>');
					document.writeln('<td width="2" align="center" background="http://www.188zw.com/themes/188zw/image/blue_bg_s.jpg" class="HaveUnderLine"></td>');
				document.writeln('</tr>');	
			document.writeln('</table>');	
		document.writeln('</td>');	
		document.writeln('<td>&nbsp;</td>')	;
	document.writeln('</tr>');	
document.writeln('</table>');	
document.writeln('<table width="960" border="0" align="center" cellpadding="2" cellspacing="0" style="margin-top:5px;margin-bottom:5px;" ID="Table5">');
document.writeln('<FORM name="SearchFromB" onsubmit="if(searchkey.value==\'\' || searchkey.value==\'请输入关键字.\'){alert(\'请输入搜索内容!\');return false;}" action="http://www.188zw.com/modules/article/search.php" method="post" target="_blank" 	ID="Form1">');
		document.writeln('<tr>')	;
			document.writeln('<td height="2" background="http://www.188zw.com/themes/188zw/image/article_search_head.gif"></td>');
		document.writeln('</tr>');
		document.writeln('<tr>');
			document.writeln('<td background="http://www.188zw.com/themes/188zw/image/article_search_long.gif" height="30" valign="middle">')
			document.writeln('&nbsp;<b>热门小说</b>: <img src="http://www.188zw.com/themes/188zw/image/hot.gif" align="middle" />&nbsp;<a href="http://www.188zw.com/a/0/77/" target="_blank">盘龙</a> <a href="http://www.188zw.com/a/0/78/" target="_blank">');
					document.writeln('仙墓中走出的强者</a> <a href="http://www.188zw.com/a/0/79/" target="_blank">');
					document.writeln('魔兽剑圣异界纵横</a> <a href="http://www.188zw.com/a/0/80/" target="_blank">');
					document.writeln('一世枭雄</a> <a href="http://www.188zw.com/a/0/81/" target="_blank">');
					document.writeln('琴帝</a> <a href="http://www.188zw.com/a/0/82/" target="_blank">');
					document.writeln('<strong>邻家有女初长成</strong></a> <a href="http://www.188zw.com/a/0/83/" target="_blank">');
					document.writeln('神墓</a> <a href="http://www.188zw.com/a/0/84/" target="_blank"></a>');
				document.writeln('<a href="http://www.188zw.com/a/0/85/" target="_blank"><strong>恶魔法则</strong></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');					 
				document.writeln(' <input name="searchkey" id="searchkey" maxlength="50" onFocus="this.focus();if(this.value==\'请输入关键字.\'){this.value=\'\';}" value="请输入关键字." class="inputLen300" />');
				document.writeln('<select name="searchtype" id="select" class="select">');
					document.writeln('<option value="articlename" selected>书名</option>');
					document.writeln('<option value="author">作者</option>');
				document.writeln('</select>');
				document.writeln('<input name="Submit" type="image" src="http://www.188zw.com/themes/188zw/image/search.jpg" align="absmiddle" ID="Image1" /> </td>');
		document.writeln('</tr>');
		document.writeln('<tr>');
			document.writeln('<td height="2" background="http://www.188zw.com/themes/188zw/image/article_search_bottom.gif"></td>');
		document.writeln('</tr>');
	document.writeln('</FORM>');
document.writeln('</table>');

