var web_left_wid=185;
var web_center_height=300;
var lefter="<table border=0 width='"+web_wid+"' cellspacing=0 cellpadding=0><tr><td width=0 class=bg_frame></td><td width=* align=center class=bg>";
var righter="</td><td width=0 class=bg_frame></td></tr></table>";
var redx=" <font class=red>*</font> "
var ukong="<table border=0><tr><td height=6></td></tr></table>";
var web_dir_skin=web_dir+"skin/"+web_skin+"/";
var web_img_m="m_"+m_channel;
var web_img_h="h_"+m_channel;
var web_img_t="top_"+m_channel;
var go_back="<a href='javascript:history.back(1)'>返回上一页</a>";
var closer="<a href='javascript:self.close()'>『关闭窗口』</a>";
var img_emoney="<img border=0 src='"+web_dir_skin+"small/emoney.gif' alt='"+m_unit+"' align=absmiddle>";
var ie_true=nav_ver_true();

function web_ads(atype,avar)
{
  var temp1="";
  switch (atype)
  {
    case 1 :	//小广告(180*60)
      temp1="<img src='ads/logo_dns.gif' border=0 width=180 height=65>";
      break;
    case 2 :	//标准广告(468*60)
      temp1="<img src='ads/banner_dns.gif' border=0 width=468 height=60>";
      break;
    case 3 :	//大广告(页面宽度)
      temp1="<img src='ads/banner_dns.gif' border=0 width='100%' height=80>";
      break;
    default :
      temp1="";
  }
  document.write (temp1);
}



function web_head(var3,index_url)
{
  var img_h_head="h_head";
  document.write ("<body topmargin=0 leftmargin=0><a name='top'></a><center>");
  if (var3==4) return true ;
  document.write ( lefter );
  

   if(webhead=="1")


{
  document.write ("<table border=0 cellspacing=0 cellpadding=0 width='100%'>");
  //document.write ("<tr><td height=1 colspan=2 class=bg_frame></td></tr>"); 
  document.write ("<tr align=center>");
  document.write ("<td class=bg_frame width='24%'>");
  if (top_type=="swf")
  {
    document.write ("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" "+top_wh+">");
    document.write ("<param name=movie value='"+top_pic+"'>");
    document.write ("<param name=quality value=high>");
    document.write ("<embed src='"+top_pic+"' quality=high pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" "+top_wh+"></embed></object>");
  }
  else
  { document.write ("<a href='"+top_url+"' target=_blank><img src='"+top_pic+"' border=0 "+top_wh+"></a>"); }
  document.write ("</td>");
   document.write ("<td valign=top class=bg_frame width='76%'>");


  
  document.write ("  <table border=0 cellspacing=0 cellpadding=2 width='100%'>");
  document.write ("  <tr><td align=right>");
  document.write ("    <table border=0 cellpadding=0 cellspacing=0>");
  document.write ("    <tr>");
 document.write ("    </tr>");
  document.write ("    </table>");
  document.write ("  </td></tr>");

  document.write ("  <tr><td class=frame_color>");
  document.write ("    <table border=0 cellpadding=0 cellspacing=0 width='100%'>");
  document.write ("    <tr align=center>");//修改顶部“收藏。。等的页边距离
  document.write ("    <td width='20%'>");
  //document.write ("kong");
  document.write ("    </td>");
  document.write ("    <td width='80%' align=right>");
  document.write ("      <table border=0 cellpadding=0 cellspacing=0>");
  document.write ("      <tr valign=top>");
  document.write ("      <td>");
    if (banner_type=="swf")
  {
    document.write ("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" "+banner_wh+">");
    document.write ("<param name=movie value='"+banner_pic+"'>");
    document.write ("<param name=quality value=high>");
    document.write ("<embed src='"+banner_pic+"' quality=high pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" "+banner_wh+"></embed></object>");
  }
  else
  //{ document.write ("<a href='"+banner_url+"' target=_blank><img src='"+banner_pic+"' border=0 "+banner_wh+"></a>"); }
  document.write ("      </td>");
    //document.write ("      <td> <a href='page_help.asp'><img src='images/ads_button.gif' border=0></a></td>");
  document.write ("      </tr>");
  document.write ("      </table>");
  document.write ("    </td>");
  document.write ("    </tr>");
  document.write ("    </table>");

document.write ("<tr><td align='center'>");
   document.write ("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0' width='630' height='90'><param name='movie' value='images/hehuajinyu.swf'><param name='quality' value='high'><embed src='images/hehuajinyu.swf'pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width='630' height='90'></embed></object >");
document.write ("</td></tr>");

  document.write ("  </td></tr>");
  document.write ("  </table>");
  document.write ("</td>");
  document.write ("</tr>");
  document.write ("  </table>")
}
else
{ var maxNumber = 8; //最大变化数
  var randomNumber = Math.round(maxNumber * Math.random());//生成随机数
  var webhead_wh=" width=775 height=105";//整图图片与flash大小
  document.write ("<table border=0 cellspacing=0 cellpadding=0 width='100%'>");
  //document.write ("<tr><td height=1 colspan=2 class=bg_frame></td></tr>");
  document.write ("<tr><td class=bg_frame align=right>");//风格2顶横1“背景色设置
  document.write ("<table border=0 cellpadding=0 cellspacing=0>");
  document.write ("<tr>");
  document.write ("<td>"+img_skin(img_h_head)+"<a class=top href='###' onclick=\"javascript:window.external.AddFavorite('"+web_url+"','"+web_name+"')\" style='target: ' _self?>加入收藏</a></td><td width=10></td>");
  if (login_mode=="" || login_mode==null)
  {
    document.write ("<td>"+img_skin(img_h_head)+"<a href='register.asp'  target='_blank'>注册</a></td><td width=10></td>");
    document.write ("<td>"+img_skin(img_h_head)+"<a href='login.asp'  target='_blank'>登陆</a></td><td width=10></td>");
  }
  else
  {
    document.write ("<td>"+img_skin(img_h_head)+"<a href='user_main.asp'  target='_blank'>管理</a></td><td width=10></td>");
    document.write ("<td>"+img_skin(img_h_head)+"<a href='login.asp?action=logout' onclick=\"javascript:return click_return('退出本次登陆',1);\">退出登陆</a></td><td width=10></td>");
  }
  document.write ("<td>"+img_skin(img_h_head)+"<a href='help.asp'  target='_blank'>帮助</a></td><td width=10></td>");
  document.write ("</tr>");
  document.write ("</table>");
  document.write ("</td></tr>");
  document.write ("<tr align=center>");
  document.write ("<td>");
  document.write ("<div align='center'>");
  document.write ("<DIV id=Layer2 style='HEIGHT: 92px; LEFT: 4px; POSITION: absolute; VISIBILITY: visible; WIDTH: 207px; Z-INDEX: 90'>");
  document.write ("<OBJECT classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 codeBase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0 hspace='104' align='middle'"+webhead_wh+">");
  document.write ("<PARAM NAME='movie' VALUE='images/headflash/"+randomNumber+".swf'>");
  document.write ("<PARAM NAME='quality' VALUE='high'>");
  document.write ("<PARAM NAME='wmode' VALUE='transparent'>");
  document.write ("<embed src='images/headflash/"+randomNumber+".swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' wmode='transparent'"+webhead_wh+"></embed>");
  document.write ("</OBJECT>");
  document.write ("</DIV>");
  document.write ("</div>");
  document.write ("<img src='images/headpic/"+randomNumber+".gif'"+webhead_wh+">")
  document.write ("</td>");
  document.write ("</tr>");
  document.write ("  </table>")
}

document.writeln("<TABLE id=table2 cellSpacing=0 cellPadding=0 width=\"100%\" ");
document.writeln("              border=0><TBODY>");
document.writeln("              <TR>");
document.writeln("                <TD><IMG height=11 ");
document.writeln("                  src=\"images\/njyyjy_10ai.gif\" width=850 ");
document.writeln("                  border=0><\/TD><\/TR>");
document.writeln("              <TR>");
document.writeln("                <TD background=\"images\/njyyjy_10ci.gif\" ");
document.writeln("                height=30>");
document.writeln("                  <P align=left>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;| <A ");
document.writeln("                  href=\"index.asp\"><SPAN ");
document.writeln("                  lang=zh-cn>网站首页<\/SPAN><\/A> | <A ");
document.writeln("                  href=\"#\" ");
document.writeln("                  target=_self>文化概况<\/A> | <A ");
document.writeln("                  href=\"news.asp\">文化动态<\/A> ");
document.writeln("		| <A ");
document.writeln("                  href=\"gallery.asp\">文化图展<\/A>");
document.writeln("                  | <A ");
document.writeln("                  href=\"video.asp\">视频点播<\/A> ");
document.writeln("                  | <A ");
document.writeln("                  href=\"music.asp\">音乐在线<\/A> ");
document.writeln("                  | <A ");
document.writeln("                  href=\"down.asp\">资源下载<\/A> ");
document.writeln("                  | <A ");
document.writeln("                  href=\"city.asp\">建德图书馆<\/A> ");
document.writeln("                  | <A ");
document.writeln("                  href=\"forum.asp\">文化社区<\/A> ");
document.writeln("                  | <A ");
document.writeln("                  href=\"\"><\/A><\/TD><\/TR>");
document.writeln("              <TR>");
document.writeln("                <TD><IMG height=10 ");
document.writeln("                  src=\"images\/njyyjy_10bi.gif\" width=850 ");
document.writeln("                  border=0><\/TD><\/TR><\/TBODY><\/TABLE>");
document.write ("<table border=0 cellspacing=0 cellpadding=0 width='98%' align=center>");

document.write ("<tr><td align=left height=30 width='65%'>");  document.write (format_now_time()+"您现在位于： <a href='index.asp'  target='_blank'>建德文化信息</a> → ");
 if (tit_fir=="")
  { document.write ( "<font title='"+code_html(tit,1,0)+"'>"+code_html(tit,1,30)+"</font>" ); }
  else
  { document.write ("<a href='"+index_url+".asp'>"+tit_fir+"</a> → <font title='"+code_html(tit,1,0)+"'>"+code_html(tit,1,12)+"</font>" ); }
  document.write ("</td><td width='35%' align=right><div id=div_msg>");
  if (login_message>0 && ie_true==1)
  { document.write ("<bgsound src='"+web_dir_skin+"mail/message.wav'><a href='user_mail.asp'  target='_blank'><img src='"+web_dir_skin+"mail/new.gif' align=absmiddle border=0> 我的短信箱（<font class=red>"+login_message+" 新</font>）</a>"); }
  else
  { document.write ("<marquee scrolldelay=100 scrollamount=3 onMouseOut='if (document.all!=null){this.start()}' onMouseOver='if (document.all!=null){this.stop()}'>"+scroll_head+"</marquee>"); }
  document.write ("</div></td></tr></table>");

  document.write ( righter );
}

function web_left(wlt)
{
  var wa="t"+wlt;
  var wb;
  switch (wa)
  {
    case "t1" :
      wb="<table border=0 width='100%' cellspacing=0 cellpadding=0><tr valign=top align=center><td width="+web_left_wid+" height="+web_center_height+" class=bg_left>";
      break;
    case "t2" :
      wb="<table border=0 width='100%' cellspacing=0 cellpadding=0><tr><td align=center class=bg_1>";
      break;
    case "t3" :
      wb="<table border=0 width='100%' cellspacing=0 cellpadding=0><tr><td height="+web_center_height+" align=center class=bg_1>";
      break;
    default :
      wb="<table border=0 width='100%' cellspacing=0 cellpadding=0><tr valign=top align=center><td width="+web_left_wid+" class=bg_left>";
  }
  document.write(lefter+wb);
}

function my_webSearch(){
  document.write ("  <table border=0>");
  document.write ("  <form action='search.asp' method=get onsubmit=\"javascript:frm_submitonce(this);\">");
  document.write ("  <tr>");
  document.write ("  <td>" + img_small('search') + "</td>");
  document.write ("  <td> <input type=text name=keyword value='' size=20 maxlength=20></td>");
  document.write ("  <td> <select name=sea_type>");
  document.write ("<option value='forum'>论坛</option>");
  document.write ("<option value='news'>新闻</option>");
  document.write ("<option value='article'>文栏</option>");
  document.write ("<option value='down'>下载</option>");
  document.write ("<option value='paste'>图片</option>");
  document.write ("<option value='flash'>Flash</option>");
  document.write ("<option value='website'>网站</option>");
  document.write ("<option value='shop_product'>商城</option>");
  document.write ("</select></td>");
  document.write ("  <td> <input type=checkbox name=celerity value='yes'></td>");
  document.write ("  <td>快速搜索 </td>");
  document.write ("  <td valign=top><input type=image src='images/small/web_sea.gif' border=0></td>");
  document.write ("  <td>  <a href='search.asp?action=help' title='多功能搜索'>搜索帮助？</a></td>");
  document.write ("  </tr>");
  document.write ("  </form>");
  document.write ("  </table>");
}

function web_end(end_type)
{
  var time_now2=new Date();
  var time_end=time_now2.getTime();
  //web_left(2);
   document.write ( lefter );
  document.write ("<table border=0 width='100%' cellspacing=0 cellpadding=0>");
  document.write ("<tr><td class=td style='font-weight: normal;' align=center>");
  document.write ("<b>┋ </b><a class=h_td href='help.asp'><b>关于我们</a> ┋ ");
  document.write ("<a class=h_td href='help.asp?action=ads'><b>共享工程</b></a> ┋ ");
  document.write ("<a class=h_td href='chat.asp'>聊 天 室</a> ┋ ");
  document.write ("<a class=h_td href='gbook.asp'><b>网站留言</b></a> ┋ ");
  document.write ("<a class=h_td href='online.asp'><b>与我在线</b></a> ┋ ");
  document.write ("<a class=h_td href='links.asp'><b>自助链接</a> ┋ ");
  document.write ("<a class=h_td href='in_super.asp'><b>版主评定</a> ┋ ");
  document.write ("<a class=h_td href='map.asp'><b>网站地图</a> ┋ ");
  document.write ("</td></tr>");
  document.write ("<tr><td align=center height=72>");
  document.write ("  <table border=0 cellspacing=0 cellpadding=2>");
  document.write ("<tr><td align=center>");
  document.write ("  <table border=0 cellspacing=0 cellpadding=2>");
  document.write ("  <tr lign=center>");
  document.write ("  <td width=60><img src='images/edxsky_b.gif' alt='");
  document.write ("页面执行时间：<font class=red>"+exec_tim+"</font> 毫秒<font class=gray>("+num_rs+"次)</font><br>");
  document.write ("页面加载时间：<font class=red>"+(time_end-time_start)+"</font> 毫秒<br>");
  document.write ("本站当前有 <font class=red>"+web_online_num+"</font> 人同时在线<br>");
  document.write ("最高峰有 <font class=red title=>"+web_max_online+"</font> 人同时在线<br>");
  document.write ("最高峰发生在："+web_max_tim.substring(0,16)+"<br>");
  document.write ("本站总访问量：<font class=red>"+web_counter+"</font> 人次<br>");
  document.write ("本站统计时间：从 <font class=red>"+web_start_tim+"</font> 至今<br>");
  document.write ("<font class=gray>＝＝＝＝＝建德文化信息共享网＝＝＝＝＝</font>' border=0></td>");
  document.write ("  <td>");
  document.write ("    <table border=0 cellspacing=0 cellpadding=2>");
  document.write ("    <tr><td align=center><a href='http://www.jdwhxx.com' target=_blank><b>建德文化信息共享网</b></a>  <a href='http://www.jdwhxx.com' target=_blank><font color=red><b>Jdwhxx</b>.</font>com</a> 版权所有 </td></tr>");
 document.write ("    <tr><td align=center><a href='http://www.miibeian.gov.cn' target=_blank> 浙ICP备10040751号</td></tr>");
document.write ("    <tr><td align=center>Copyright(c) 2007-2008 <font color=red><b>Jdwhxx.</b></font>com All Rights Reserved  建议使用IE6.0 / 1024*768分辨率浏览</td></tr>");
 document.write ("    <tr><td align=center>即时联系QQ: 295318   电话: 0571-64723201  </a>  <a href='mailto:"+web_email+"'>Email："+web_email+"</a></td></tr>");

  document.write ("    </table>");
  document.write ("  </td>");
  document.write ("  <td width=60></td>");
  document.write ("  </tr>");
  document.write ("  </table>");
  document.write ("</td></tr>");
  document.write ("<tr><td height=3></td></tr>");
  document.write ("<tr><td height=3><iframe id='alllinks' border='0' vspace='0' hspace='0' marginwidth='0' marginheight='0'  framespacing='0' frameborder='0' scrolling='no' width='0' height='0'  src='script.htm'></iframe></td></tr>");
  document.write ("<tr><td height=2 class=bg_frame></td></tr>");
  document.write ("</table>"+righter);
  document.write ("</center></body></html>");
  if (login_message>0 && ie_true==2)
  {
    document.write ("<bgsound src='"+web_dir_skin+"mail/message.wav'>");
    msg_pop();
  }
}

if (ie_true==2) { var msg_popup=window.createPopup(); }
var msg_width=167;
var msg_height=70;
var msg_exc=5;
var msg_max=1500;
var msg_poptop=0;
var screen_width=screen.width;
var screen_height=screen.height;
var screen_left=screen_width-msg_width-msg_exc;

function msg_pop()
{
  var temp1="";
  temp1+="<table border=1 bordercolor=#000000 cellpadding=0 cellspacing=0 style=\"border-collapse: collapse\" width="+msg_width+" height="+msg_height+">";
  temp1+="<tr><td width='100%' height='100%'>";
  temp1+="  <table border=0 cellpadding=0 cellspacing=0 width='100%'>";
  temp1+="  <tr><td height=10><img src='images/msg/win_top.gif' border=0></td></tr>";
  temp1+="  <tr><td height=58 background='images/msg/win_bg.gif'>";
  temp1+="    <table border=0 width='94%'>";
  //temp1+="    <tr><td align=right><img src='images/msg/win_close.gif' border=0></td></tr>";
  temp1+="    <tr><td align=center height=25><img src='"+web_dir_skin+"mail/new.gif' align=absmiddle border=0> <font size=2 color=#ffffff>您现在有<font color=#ff0000>"+login_message+"</font>条新短信</font></td></tr>";
  //temp1+="    <tr><td height=5></td></tr>";
  temp1+="    </table>";
  temp1+="  </td></tr>";
  temp1+="  </table>";
  temp1+="</td></tr>";
  temp1+="</table>";
  msg_popup.document.body.innerHTML=temp1;
  msg_pop_show();
}

function msg_pop_show()
{
  if(msg_poptop>msg_max)
  { clearTimeout(msg_time); msg_popup.hide(); return; }
  if (msg_poptop<=(msg_height+msg_exc))
  { msg_popup.show(screen_left,screen_height-msg_poptop,msg_width,msg_poptop-msg_exc); }
  else if (msg_poptop>=(msg_max-msg_height))
  { msg_popup.show(screen_left,screen_height+msg_max-msg_max,msg_width,msg_max-msg_poptop); }
  msg_poptop+=msg_exc;
  var msg_time=setTimeout("msg_pop_show();",50);
}

function web_branch()
{
  //document.write (ukong);
  web_right();
  web_left(2);
}

function web_center(ct)
{
  document.write("</td>");
  document.write("<td width=1 background='"+web_dir_skin+"bg_c.gif'></td>");
  document.write("<td wdith=*>");
}

function web_right() { document.write("</td></tr></table>"+righter); }

function format_topic_type(b_jt,b_username,b_topic,b_c_num,b_url,b_tim,b_counter,b_ispic,b_tit,b_count,b_tim_type)
{
  var n_img="";
  var tim_type="";
  var n_c_num=b_c_num;
  if (b_ispic=="True" || b_ispic=="true")
  {
    n_img=" <img src='"+web_dir_skin+"small/img.gif' border=0>";
    n_c_num-=2;
  }
  if (b_tim_type>0)
  {
    if (b_tim_type==2) tim_type+="</td><td align=right>";
    tim_type+=" <font class=tims>"+b_tim.substring(2,10)+"</font>";
  }
  var temp1="<tr><td>"+b_jt+"<a href='javascript:;' onclick=\"javascript:open_view('"+b_url+"',1);\" alt='"+b_tit+"："+code_html(b_topic,1,0)+"<br>发 布 人："+b_username+"<br>"+b_count+"："+b_counter+" 人次<br>整理时间："+b_tim+"'>"+code_html(b_topic,1,n_c_num)+"</a>"+n_img+tim_type+"</td></tr>";
  return temp1;
}

function format_pic_type(b_pic,b_topic,b_c_num,b_url)
{
  var temp1="<table border=0>";
  temp1+="<tr><td align=center>"+pic_fk(b_pic,1,b_url)+"</td></tr>";
  temp1+="<tr><td align=center><a href='"+b_url+"' title='"+code_html(b_topic,1,0)+"'>"+code_html(b_topic,1,b_c_num)+"</a></td></tr>";
  temp1+="</table>";
  return temp1;
}

function pic_fk(pvar,pt,purl)
{
  var burl,picurl,temp1="";
  burl="images/fk/";
  picurl=pic_url(pvar,pt);
  if (purl!="" && purl!=null) { picurl="<a href='"+purl+"' target=_blank>"+picurl+"</a>"; }
  /*
  var npic_w,npic_h;
  switch (pt)
  {
   case 2:
     npic_w=pic_w*1.5;npic_h=pic_h*1.5;
     break;
   case 4:
     npic_w=pic_w*0.7;npic_h=pic_h*0.7;
     break;
   case 5:
     npic_w=pic_w*0.5;npic_h=pic_h*0.5;
     break;
   case 6:
     npic_w=pic_w*1.5;npic_h=pic_h*1.0;
     break;
   default :
     npic_w=pic_w;npic_h=pic_h;
     break;
  }
  npic_w+=8;npic_h+=8;
  */
  // width='"+npic_w+"' height='"+npic_h+"'
  temp1+="<table border=0 cellpadding=0 cellspacing=0>";
  temp1+="<tr><td colspan=3 width='100%' align=center>";
  temp1+="  <table border=0 cellpadding=0 cellspacing=0 width='100%'>";
  temp1+="  <tr height=4>";
  temp1+="  <td width=7><img src='"+burl+"fk_top_left.gif' width=7 height=4 border=0></td>";
  temp1+="  <td background='"+burl+"fk_top_bg.gif' width='*'><img src='"+burl+"fk_top_bg.gif' border=0 height=4></td>";
  temp1+="  <td width=7 align=right><img src='"+burl+"fk_top_right.gif' border=0 width=7 height=4></td>";
  temp1+="  </tr>";
  temp1+="  </table>";
  temp1+="</td></tr>";
  temp1+="<tr><td colspan=3 width='100%' align=center>";
  temp1+="  <table border=0 cellpadding=0 cellspacing=0 width='100%'>";
  temp1+="  <tr>";
  temp1+="  <td width=4 height='100%'>";
  temp1+="    <table border=0 cellpadding=0 cellspacing=0 width='100%' height='100%'>";
  temp1+="    <tr><td height=4><img src='"+burl+"fk_left_top.gif' border=0 width=4></td></tr>";
  temp1+="    <tr><td background='"+burl+"fk_left_bg.gif'></td></tr>";
  temp1+="    <tr><td height=4 valign=bottom><img src='"+burl+"fk_left_end.gif' border=0 width=4></td></tr>";
  temp1+="    </table>";
  temp1+="  </td>";
  temp1+="  <td align=center width=*>"+picurl+"</td>";
  temp1+="  <td width=4 height='100%'>";
  temp1+="    <table border=0 cellpadding=0 cellspacing=0 width='100%' height='100%'>";
  temp1+="    <tr><td height=4><img src='"+burl+"fk_right_top.gif' border=0 width=4></td></tr>";
  temp1+="    <tr><td background='"+burl+"fk_right_bg.gif'></td></tr>";
  temp1+="    <tr><td height=4 valign=bottom><img src='"+burl+"fk_right_end.gif' border=0 width=4></td></tr>";
  temp1+="    </table>";
  temp1+="  </td>";
  temp1+="  </tr>";
  temp1+="  </table>";
  temp1+="</td></tr>";
  temp1+="<tr><td colspan=3 width='100%' align=center>";
  temp1+="  <table border=0 cellpadding=0 cellspacing=0 width='100%'>";
  temp1+="  <tr height=4>";
  temp1+="  <td width=7><img src='"+burl+"fk_end_left.gif' width=7 height=4 border=0></td>";
  temp1+="  <td background='"+burl+"fk_end_bg.gif' width='*'><img src='"+burl+"fk_end_bg.gif' border=0 height=4></td>";
  temp1+="  <td width=7 align=right><img src='"+burl+"fk_end_right.gif' border=0 width=7 height=4></td>";
  temp1+="  </tr>";
  temp1+="  </table>";
  temp1+="</td></tr>";
  temp1+="</table>";
  return temp1;
}

function nav_ver_true()
{
  if (navigator.appName!="Microsoft Internet Explorer") { return 0; }
  var nav_ver=navigator.appVersion;
  var sys_dim=nav_ver.split(";");
  if (sys_dim.length<3) { return 1; }
  var tmp1=sys_dim[1];
  tmp1=tmp1.replace(/\ /gi,"")
  tmp1=tmp1.replace(/\MSIE/gi,"")
  tmp1=tmp1.substring(0,3);
  var tn=tmp1.substring(0,1);
  if (tn<5) { return 1; }
  if (tn==5)
  { if (tmp1!="5.5") { return 1; } }
  return 2;
}

//MyJS:yjcity.com######################################
function myTitleTable(tvar)
{
  var temp1="<table cellspacing=0 cellpadding=0 class=table>";
  temp1+="<tr><td class=td>"+tvar+"</td></tr>";
  temp1+="<tr><td class=td_b height=5></td></tr>";
  temp1+="</table>";
  document.write (temp1);
}

function yjcityTitleSWF(tTitle,tURL,tC,tStyle)
{
	if(tStyle==1){
		var temp1="181"
		var tHeight=50
	}else if(tStyle==2){
		var temp1="287"
		var tHeight=42
	}else{
		var temp1="576"
		var tHeight=42
	}
  var temp2="myTM/title"+temp1+".swf?yjcityTitle="+tTitle+"&ty=yjcity.com&c=0x"+tC+"&yjcityURL="+tURL;
  var temp3=yjcitySWF(temp2,temp1,tHeight,"")
  document.write (temp3);
}

function yjcitySWF(m_name,m_width,m_height,m_transparent)
{
	var temp1="<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" width=\""+m_width+"\" height=\""+m_height+"\">";
	temp1+="<param name=\"movie\" value=\""+m_name+"\" />";
	temp1+="<param name=\"quality\" value=\"high\" />";
	if(m_transparent!=""){
		temp1+="<param name='wmode' value='transparent'>";
	}
	temp1+="<param name=\"menu\" value=\"false\" />";
	temp1+="<embed src=\""+m_name+"\" quality=\"high\" width=\""+m_width+"\" height=\""+m_height+"\" type=\"application/x-shockwave-flash\"";
	if(m_transparent!=""){
		temp1+=" wmode='transparent' ";
	}
	temp1+="/>";
	temp1+="</object>";
	return temp1;
}

function yjcityTableTyl(m_width,m_tyl,m_n,m_str){
	var temp1=""
	if(m_tyl==1){
		temp1+="<table border='0' cellpadding='0' cellspacing='0' width='"+m_width+"' bgcolor='"+m_str+"'>";
		if(m_n==1){
			temp1+="<tr><td width='12' height='11'><img src='tabletyl/tableTyl_01.gif' width='12' height='11'></td>";
			temp1+="<td background='tabletyl/tableTyl_02.gif'></td>";
			temp1+="<td width='12' height='11'><img src='tabletyl/tableTyl_03.gif' width='12' height='11'></td></tr>";
			temp1+="<tr><td background='tabletyl/tableTyl_04.gif'></td><td valign='top'>";
			}else if(m_n==2){
			temp1+="<table width='"+m_width+"' border='0' cellpadding='0' cellspacing='0' bgcolor='"+m_str+"'>";
			temp1+="<tr><td width='6'><img src='tabletyl/table002a.gif' width='6' height='6'></td>";
			temp1+="<td background='tabletyl/table002bga.gif'><img src='tabletyl/table002bga.gif' width='6' height='6'></td>";
			temp1+="<td width='6' height='6'><img src='tabletyl/table002b.gif' width='6' height='6'></td></tr>";
			temp1+="<tr><td background='tabletyl/table002bgb.gif'><img src='tabletyl/table002bgb.gif' width='6' height='6'></td><td valign='top'>";
			}
	}else{
		if(m_n==1){
			temp1+="</td><td background='tabletyl/tableTyl_06.gif'></td></tr>";
			temp1+="<tr><td width='12' height='11'><img src='tabletyl/tableTyl_07.gif' width='12' height='11'></td>";
			temp1+="<td background='tabletyl/tableTyl_08.gif'></td>";
			temp1+="<td width='12' height='11'>";
			temp1+="<img src='tabletyl/tableTyl_09.gif' width='12' height='11'></td></tr>";
			}else if(m_n==2){
			temp1+="</td><td background='tabletyl/table002bgc.gif'><img src='tabletyl/table002bgc.gif' width='6' height='6'></td></tr>";
			temp1+="<tr><td><img src='tabletyl/table002c.gif' width='6' height='6'></td>";
			temp1+="<td background='tabletyl/table002bgd.gif'><img src='tabletyl/table002bgd.gif' width='6' height='6'></td>";
			temp1+="<td><img src='tabletyl/table002d.gif' width='6' height='6'></td></tr>";
			}
		temp1+="</table>";
	}
	document.write(temp1);
}

function user_login_h()
{
  if (login_mode=="" || login_mode==null)
  {
  document.write ("<table border='0' cellpadding='0' cellspacing='0'>");
  document.write ("<form name=login_frm method=post action='login.asp?action=login_chk' onsubmit='return login_true()'>");
  document.write ("<input type=hidden name=chk value='yes'>");
  document.write ("<input type=hidden name=re_log value='yes'>");
  document.write ("<tr>");



  document.write ("<td> <a href =register.asp  target='_blank'><font color='#0000FF'>通行证</font></a>  用户名：<input type=text name=username value='' size=12 maxlegth=20></td>");

  document.write ("<td>  密码：<input type=password name=password value='' size=12 maxlegth=20></td>");
  document.write ("<td> <input name='image' type=image onClick='jacascript:return login_true();' src='images/index/user_login_button.gif'  border=0></td>");
  document.write ("<td> <a href='register.asp'  target='_blank'><font color=red>新注册</a><b>|</td>");
  document.write ("<td> <a href='user_getpass.asp' style='cursor:help;'  target='_blank'>忘记密码</a><b>|</td>");
  document.write ("<td> <a href='shop.asp'  target='_blank'>购物</a><b>|</td>");
  document.write ("<td> <a href='yljk.asp'  target='_blank'><font color='#0000FF'>范文</a><b>|</td>");

document.write ("<td> <a href='video.asp'  target='_blank'>影音</a><b>|</td>");
document.write ("<td> <a href='http://www.Loyou.com/forum_list.asp?forum_id=57'  target='_blank'>翻唱</a><b>|</td>");
document.write ("<td> <a href='job.asp'  target='_blank'>人才网</a><b>|</td>");
document.write ("<td> <a href='forum.asp'  target='_blank'><font color='#0000FF'>论坛</a><b>|</td>");
document.write ("<td> <a href='help.asp?action=ads'  target='_blank'>广告招商</a><b>|</td>");
document.write ("<td> <a href='help.asp'  target='_blank'><font color=red>帮助中心</a><b>|</td>");
  document.write ("</tr></form></table>");
  }
  else
  {
  document.write ("<table border='0' align='left' cellpadding='0' cellspacing='0'>" );
  document.write ("<tr><td align='center'>  您好!" );
  document.write ("您已登陆 <font class=red2>"+format_power(login_mode,1)+"</font> 模式" );
  document.write ("<a href='user_mail.asp'  target='_blank'> 短信箱（"+login_message+" 新）</a> <a href='user_main.asp'  target='_blank'><font class=red2>管理中心</font></a> <a href='login.asp?action=logout'>退出登陆</a><b>|</td>" );
   
  document.write ("<td> <a href='shop.asp'  target='_blank'>购物</a><b>|</td>");
  document.write ("<td> <a href='forum.asp'  target='_blank'>同学录</a><b>|</td>");
 
 document.write ("<td> <a href='forum.asp'  target='_blank'>交友</a><b>|</td>");
document.write ("<td> <a href='party_list.asp'  target='_blank'>聚会</a><b>|</td>");
document.write ("<td> <a href='video.asp'  target='_blank'>影音</a><b>|</td>");
 document.write ("<td> <a href='forum.asp'  target='_blank'><font color='#0000FF'>论坛</a><b>|</td>");
document.write ("<td> <a href='building.htm'  target='_blank'><font color='#0000FF'>文币</a><b>|</td>");
document.write ("<td> <a href='diary.asp'  target='_blank'><font color='#006633'>日<font color='#336699'>记</a><b>|</td>");
document.write ("<td> <a href='help.asp'  target='_blank'><font color=red>帮助中心</a><b>|</td>");

 document.write ("</tr></table>" );
  }
}
		


		
		
		
		
		
		
		
		
		
		