document.writeln("<html>");
document.writeln("<head>");
document.writeln("<title>中国画家网 — {PAGETITLE}<\/title>");
document.writeln("<meta http-equiv=\"Content-Type\" content=\"text\/html; charset=utf-8\">");
document.writeln("<link href=\"..\/..\/images\/common.css\" rel=\"stylesheet\" type=\"text\/css\">");
document.writeln("<\/head>");
document.writeln("<body leftmargin=\"0\" topmargin=\"0\">");
document.writeln("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"1000\">");
document.writeln("  <tr>");
document.writeln("    <td colspan=\"3\" background=\"..\/..\/images\/head_1.gif\"><img src=\"..\/..\/images\/head_1.gif\" width=\"6\" height=\"4\"><\/td>");
document.writeln("  <\/tr>");
document.writeln("  <tr>");
document.writeln("    <td width=\"245\" rowspan=\"2\"><a href=\"http:\/\/www.huajia.cc\"><img src=\"..\/..\/images\/huajia_r1_c1.jpg\" width=\"202\" height=\"91\" border=\"0\"\/><\/a><\/td>");
document.writeln("    <td width=\"752\" align=\"right\" valign=\"middle\"> 　&nbsp;<a href=\"#\">在线帮助<\/a> | &nbsp;<a href=\"#\">客服中心<\/a> | &nbsp;<a href=\"#\" class=Bottom onClick=\"this.style.behavior=\'url(#default#homepage)\';this.setHomePage(\'http:\/\/www.huajia.cc\/\');\" >设为首页<\/a> | <\/td>");
document.writeln("    <td width=\"3\" align=\"right\" valign=\"top\"><img src=\"..\/..\/images\/spacer.gif\" width=\"1\" height=\"24\"><\/td>");
document.writeln("  <\/tr>");
document.writeln("  <tr>");
document.writeln("    <td colspan=\"2\" valign=\"bottom\">");
document.writeln("	<form name=\"soform\" action=\"\"  method=\"post\" style=\"margin:0\" target=\"_blank\">");
document.writeln("	 <table width=\"294\" height=\"25\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
document.writeln("      <tr>");
document.writeln("        <td width=\"42\" height=\"22\" align=\"center\" valign=\"middle\" id=hj><a onClick=\"color(\'hj\')\">画家<\/a><\/td>");
document.writeln("        <td width=\"42\" align=\"center\" valign=\"middle\" id=zx><a onClick=\"color(\'zx\')\">资讯<\/a><\/td>");
document.writeln("        <td width=\"42\" align=\"center\" valign=\"middle\" id=zg><a onClick=\"color(\'zg\')\">展馆<\/a><\/td>");
document.writeln("        <td width=\"42\" align=\"center\" valign=\"middle\" id=hz><a onClick=\"color(\'hz\')\">画展<\/a><\/td>");
document.writeln("        <td width=\"42\" align=\"center\" valign=\"middle\" id=hl><a onClick=\"color(\'hl\')\">画廊<\/a><\/td>");
document.writeln("        <td width=\"42\" align=\"center\" valign=\"middle\" id=qz><a onClick=\"color(\'qz\')\">圈子<\/a><\/td>");
document.writeln("        <td width=\"42\" align=\"center\" valign=\"middle\" id=hjb><a onClick=\"color(\'hjb\')\">画家吧<\/a><\/td>");
document.writeln("      <\/tr>");
document.writeln("    <\/table><TABLE width=\"544\" height=\"30\" border=0 cellPadding=0 cellSpacing=0>");
document.writeln("        ");
document.writeln("        <TR>");
document.writeln("          <TD vAlign=top noWrap><INPUT maxLength=100 size=60 name=\'sokey\' style=\"width:400\"> ");
document.writeln("          <INPUT type=\'button\' value=\'　搜索　\' style=\"height:19\" onClick=\"soformsubmit()\">");
document.writeln("          &nbsp;&nbsp;&nbsp;　");
document.writeln("          <input name='nclass' type='hidden' id='nowclass' value=''>");
document.writeln("          <A href=\"#\" target=_blank>帮助<\/A>&nbsp;|&nbsp;<A href=\"#\">高级搜索<\/A><\/TD>");
document.writeln("    <\/TR><\/TBODY><\/TABLE>");
document.writeln("	<\/FORM><\/TD>");
document.writeln("  <\/TR><\/TABLE>");

function textCounter(field, countfield, maxlimit) { 
if (field.value.length > maxlimit) 
field.value = field.value.substring(0, maxlimit); 
else 
countfield.value = maxlimit - field.value.length; 
} 
function doZoom(n){
   document.getElementById("newscontent").style.fontSize=n+"px";
}

color('hj');
function color(s){
  document.getElementById('hj').style.background="";
  document.getElementById('hz').style.background="";
  document.getElementById('zg').style.background="";
  document.getElementById('hl').style.background="";
  document.getElementById('zx').style.background="";
  document.getElementById('qz').style.background="";
  document.getElementById('hjb').style.background="";
  document.getElementById(s).style.backgroundImage="url(../../images/tab.gif)";
  document.getElementById('nowclass').value=s;
}
function soformsubmit(){
  var ac=document.soform.nclass.value
  if (ac=='hj') document.soform.action="http://www.huajia.cc/painter/hjso.php";
  else if (ac=='hz') document.soform.action="http://www.huajia.cc/show/index.php";
  else if (ac=='zg') document.soform.action="http://www.huajia.cc/hall/index.php";
  else if (ac=='hl') document.soform.action="http://www.huajia.cc/sale/index.php";
  else if (ac=='zx') document.soform.action="http://www.huajia.cc/news/sonews.php";
  document.soform.submit();
}