

var news_news_disp_num = 5;
var theme_category_disp_num = 20;
var comment_disp_num = 5;
var trackback_disp_num = 5;

function include_design_css(page){
      document.write("<LINK HREF=\"/css/articles.new/plain_boca.css\" REL=\"stylesheet\" TYPE=\"text/css\">");
      document.write("<script language=\"javascript\" src=\"/articles_jss/blank.js\"></script>");
      document.write("<script language=\"javascript\" src=\"http://s2000plus.at.webry.info/amazon.js\"></script>");

      document.write("<LINK HREF=\"/css/articles.new/layout_center3col.new.css\" REL=\"stylesheet\" TYPE=\"text/css\">");

    if (page == "top" || page == "friend" || page == "circle"){
      document.write("<LINK HREF=\"http://s2000plus.at.webry.info/header_customize.css\" REL=\"stylesheet\" TYPE=\"text/css\">");
	}

      document.write("<LINK HREF=\"http://s2000plus.at.webry.info/customize.css\" REL=\"stylesheet\" TYPE=\"text/css\">");
      document.write("<LINK HREF=\"/css/articles.new/fixed.css\" REL=\"stylesheet\" TYPE=\"text/css\">");

      document.write("<style type\"text/css\">");
      document.write("#newcmt{  display: none;  }");
      document.write("</style>");
      document.write("<style type\"text/css\">");
      document.write("#newtbk{  display: none;  }");
      document.write("</style>");
      document.write("<style type\"text/css\">");
      document.write("#newpost{  display: none;  }");
      document.write("</style>");
      document.write("<style type\"text/css\">");
      document.write(".themetabs{  display: none;  }");
      document.write("</style>");
    if (page == "top" || page == "friend" || page == "circle"){
}

if ( (page == "theme") ){
      document.write("<LINK HREF=\"http://s2000plus.at.webry.info/header_customize.css\" REL=\"stylesheet\" TYPE=\"text/css\">");
theme_category_disp_num = 50;
}

if ( (page == "month") ){
      document.write("<LINK HREF=\"http://s2000plus.at.webry.info/header_customize.css\" REL=\"stylesheet\" TYPE=\"text/css\">");
}
if ( page == null ){
}

}

function include_article_css(page){
   component_flg=0;
  if(page == "article"){
      component_flg=1;
    }
    if (component_flg == 1){
      document.write("<LINK HREF=\"/css/articles.new/layout_centerR.new.css\" REL=\"stylesheet\" TYPE=\"text/css\">");
    }else{
      document.write("<LINK HREF=\"/css/articles.new/layout_centerR.css\" REL=\"stylesheet\" TYPE=\"text/css\">");
    }

      
       document.write("<LINK HREF=\"http://s2000plus.at.webry.info/customize.css\" REL=\"stylesheet\" TYPE=\"text/css\">");
       document.write("<LINK HREF=\"/css/articles.new/fixed.css\" REL=\"stylesheet\" TYPE=\"text/css\">");

      document.write("<script language=\"javascript\" src=\"http://s2000plus.at.webry.info/amazon.js\"></script>");


    if (page == "article"){


      document.write("<style type\"text/css\">");
      document.write("#newcmt{  display: none;  }");
      document.write("</style>");
      document.write("<style type\"text/css\">");
      document.write("#newtbk{  display: none;  }");
      document.write("</style>");
      document.write("<style type\"text/css\">");
      document.write(".themetabs{  display: none;  }");
      document.write("</style>");
}
}

function include_free_space(){
  free_space_disp();
}

function include_free_space_news(){
  free_space_disp();
}

function free_space_disp(){
      document.write("<h2>LINK集</h2>\n");
      document.write("<ul>\n");
      document.write("<li><a href=\"http://www.s2000plus.jp/\">HP S2000PLUS</a></li>\n");
      document.write("<li><a href=\"http://www.spoon.jp/\">SPOON</a></li>\n");
      document.write("<li><a href=\"http://www.typeone.jp/\">TYPE ONE</a></li>\n");
      document.write("<li><a href=\"http://www.so-net.ne.jp/s-taikyu/\">Super Taikyu Net</a></li>\n");
      document.write("<li><a href=\"http://supergt.net/jp/\">Super GT</a></li>\n");
      document.write("<li><a href=\"http://www1.as-web.jp/index.php\">AUTO　SPORTS</a></li>\n");
      document.write("<li><a href=\"http://www.nutec-japan.com/\">nutec</a></li>\n");
      document.write("<li><a href=\"http://www.bestmotoring.jp/\">BEST MOTORING</a></li>\n");
      document.write("<li><a href=\"http://toshi.cside.ne.jp/\">T Love S2000</a></li>\n");
      document.write("<li><a href=\"http://blogs.yahoo.co.jp/app1_open/\">S2000　Life Style</a></li>\n");
      document.write("<li><a href=\"http://cybermax.jp/\">Cybermax</a></li>\n");
      document.write("</ul>\n");
      document.write(" <li><a href=\"http://k-style1831.at.webry.info/\">K-style</a></li>\n");
      document.write("\n");
      document.write("\n");
      document.write("<form action=\"http://www.amazon.co.jp/exec/obidos/external-search\">\n");
      document.write("\n");
      document.write("<input type=\"hidden\" name=\"encoding-string-jp\" value=\"日本語\" />\n");
      document.write("\n");
      document.write("<table class=\"normal\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n");
      document.write("  <tr>\n");
      document.write("    <td style=\"background-color:#fff;\">\n");
      document.write("      <table border=\"0\"\n");
      document.write("             cellpadding=\"0\"\n");
      document.write("             cellspacing=\"0\"\n");
      document.write("             align=\"top\"\n");
      document.write("             height=\"90\"\n");
      document.write("             width=\"120\"\n");
      document.write("             style=\"border: 1px solid #000000 !important;\">\n");
      document.write("        <tr>\n");
      document.write("          <td style=\"background-color:#fff;\"\n");
      document.write("              height=\"20\"\n");
      document.write("              valign=\"bottom\"\n");
      document.write("              align=\"center\">\n");
      document.write("            <span style=\"font-family: verdana,arial,helvetica,sans-serif; font-size:10px !important; font-weight:bold !important;\">サーチする:</span>\n");
      document.write("          </td>\n");
      document.write("          <td style=\"background-color:#fff;\"> </td>\n");
      document.write("        </tr>\n");
      document.write("        <tr>\n");
      document.write("          <td style=\"background-color:#fff;\"\n");
      document.write("              align=\"center\"\n");
      document.write("              height=\"30\"\n");
      document.write("              valign=\"top\">\n");
      document.write("            <input type=\"text\" name=\"keyword\" size=\"10\" value=\"\" />\n");
      document.write("          </td>\n");
      document.write("          <td style=\"background-color:#fff;\"\n");
      document.write("              height=\"20\"\n");
      document.write("              valign=\"top\"\n");
      document.write("              align=\"left\">\n");
      document.write("\n");
      document.write("            <input type=\"hidden\" name=\"mode\" value=\"blended\" /> \n");
      document.write("            <input type=\"hidden\" name=\"tag\" value=\"s2000plus-22\" /> \n");
      document.write("            <input type=\"image\" \n");
      document.write("                   width=\"21\"\n");
      document.write("                   height=\"21\" \n");
      document.write("                   border=\"0\"\n");
      document.write("                   value=\"Go\"\n");
      document.write("                   name=\"Submit\"\n");
      document.write("                   src=\"http://g-images.amazon.com/images/G/09/associates/build-links/ap-search-go-btn.gif\"\n");
      document.write("                   alt=\"[ Go ]\"\n");
      document.write("                   align=\"absmiddle\" /> \n");
      document.write("          </td>\n");
      document.write("        </tr>\n");
      document.write("        <tr>\n");
      document.write("          <td colspan=\"2\"\n");
      document.write("              style=\"background-color:#000;\"\n");
      document.write("              height=\"40\">\n");
      document.write("           <a href=\"http://www.amazon.co.jp/exec/obidos/redirect-home/s2000plus-22\">\n");
      document.write("            <img src=\"http://g-images.amazon.com/images/G/09/associates/build-links/searchbox-logo-126x32.gif\" height=\"36\" border=\"0\" width=\"126\" alt=\"Amazon.co.jp のロゴ\" /></a></td>\n");
      document.write("        </tr>\n");
      document.write("      </table>\n");
      document.write("    </td>\n");
      document.write("  </tr>\n");
      document.write("</table>\n");
      document.write("</form>\n");
      document.write("\n");
      document.write("\n");
      document.write("\n");
      document.write("\n");
      document.write("\n");
      document.write("<iframe src=\"http://rcm-jp.amazon.co.jp/e/cm?t=s2000plus09-22&o=9&p=8&l=as1&asins=B0007LBEE8&fc1=000000&=1&lc1=0000ff&bc1=000000&&#108;&#116;1=_blank&IS2=1&f=ifr&bg1=ffffff&f=ifr\" style=\"width:120px;height:240px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\"></iframe>\n");
      document.write("\n");
      document.write("\n");
      document.write("\n");
      document.write("\n");
      document.write("<iframe src=\"http://rcm-jp.amazon.co.jp/e/cm?t=s2000plus09-22&o=9&p=8&l=as1&asins=4891073446&fc1=000000&=1&lc1=0000ff&bc1=000000&&#108;&#116;1=_blank&IS2=1&f=ifr&bg1=ffffff&f=ifr\" style=\"width:120px;height:240px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\"></iframe>\n");
      document.write("\n");
      document.write("\n");
      document.write("\n");
      document.write("\n");
      document.write("<iframe src=\"http://rcm-jp.amazon.co.jp/e/cm?t=s2000plus09-22&o=9&p=8&l=as1&asins=4891072776&fc1=000000&=1&lc1=0000ff&bc1=000000&&#108;&#116;1=_blank&IS2=1&f=ifr&bg1=ffffff&f=ifr\" style=\"width:120px;height:240px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\"></iframe>\n");
      document.write("\n");
      document.write("\n");
      document.write("\n");
      document.write("\n");
      document.write("<iframe src=\"http://rcm-jp.amazon.co.jp/e/cm?t=s2000plus09-22&o=9&p=8&l=as1&asins=B00006HBIU&fc1=000000&=1&lc1=0000ff&bc1=000000&&#108;&#116;1=_blank&IS2=1&f=ifr&bg1=ffffff&f=ifr\" style=\"width:120px;height:240px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\"></iframe>\n");
      document.write("\n");
      document.write("\n");
      document.write("\n");
      document.write("<iframe src=\"http://rcm-jp.amazon.co.jp/e/cm?t=s2000plus09-22&o=9&p=8&l=as1&asins=B0006L16N8&fc1=000000&=1&lc1=0000ff&bc1=000000&&#108;&#116;1=_blank&IS2=1&f=ifr&bg1=ffffff&f=ifr\" style=\"width:120px;height:240px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\"></iframe>\n");
      document.write("\n");
      document.write("\n");
      document.write("\n");
      document.write("<iframe src=\"http://rcm-jp.amazon.co.jp/e/cm?t=s2000plus09-22&o=9&p=8&l=as1&asins=B000066AC6&fc1=000000&=1&lc1=0000ff&bc1=000000&&#108;&#116;1=_blank&IS2=1&f=ifr&bg1=ffffff&f=ifr\" style=\"width:120px;height:240px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\"></iframe>\n");
}

function include_free_space2(){
      document.write("<style type\"text/css\">");
      document.write("#freespace2{  display: none;  }");
      document.write("</style>");
}

function include_free_space2_news(){
      document.write("<style type\"text/css\">");
      document.write("#freespace2{  display: none;  }");
      document.write("</style>");
}

function free_space2_disp(){
}
function include_message(){
      message_disp();
}
function include_message_news(){
      message_disp();
}
function message_disp(){
      document.write('<h2>メッセージ</h2>' + "\n");
      document.write('<form method="POST" action="https://bblog.sso.biglobe.ne.jp/ap/tool/newmessageeditdisplay.do">' + "\n");
      document.write('<input type="image" src="/images/article/btn_sendmsg.gif" onclick="this.form" />' + "\n");
      document.write('<input type="hidden" name="domain" value="s2000plus.at.webry.info">' + "\n");
      document.write('</form>' + "\n");
}
function include_news_webry_seal(){
  include_webry_seal();
}
function include_amazon_affiliate(){
      document.write('<div style="text-align:left; border:none; padding: 0px;">');
      document.write('<h2>Amazon.co.jp</h2>');
      document.write('<div style="margin:auto; width:120px; text-align:left; border:none; padding: 5px;">');
      amazon_affiliate_disp();
      document.write('</div></div>');
}
function include_amazon_affiliate_news(){
      document.write('<div style="text-align:left; border:none; padding: 0px;">');
      document.write('<h2>Amazon.co.jp</h2>');
      document.write('<div style="margin:auto; width:120px; text-align:left; border:none; padding: 5px;">');
      amazon_affiliate_disp();
      document.write('</div></div>');
}
function amazon_affiliate_disp(){
}
function include_qr_code(){
      qrcode_disp();
}
function include_qr_code_news(){
      qrcode_disp();
}
function qrcode_disp(){
      document.write('<h2>このブログを携帯で読む</h2>' + "\n");
      document.write('<div style="text-align:center">' + "\n");
      document.write('<img src="http://s2000plus.at.webry.info/blogtop_qr.png" width="100" height="100" vspace="3" alt="QRコード" class="border" /><br>' + "\n");
      document.write('<a href="mailto:?subject=mobile webryblog&amp;body=http://s2000plus.at.webry.info/">携帯にメールを送る</a>' + "\n");
      document.write('</div>' + "\n");
}
function include_temiru(){
      document.write("<style type\"text/css\">");
      document.write("#temiru{  display: none;  }");
      document.write("</style>");
}
function include_temiru_news(){
      document.write("<style type\"text/css\">");
      document.write("#temiru{  display: none;  }");
      document.write("</style>");
}
function temiru_back_btn_disp(){
      document.write('<h2>temiru.jp</h2>' + "\n");
      document.write('<scr' + 'ipt type="text/javascript" src="http://www.temiru.jp/blog/index.js"></scr' + 'ipt>');
}
function include_rakuten_affiliate(){
      document.write("<style type\"text/css\">");
      document.write("#rakutenaffiliate{  display: none;  }");
      document.write("</style>");
}
function include_rakuten_affiliate_news(){
      document.write("<style type\"text/css\">");
      document.write("#rakutenaffiliate{  display: none;  }");
      document.write("</style>");
}
function rakuten_affiliate_disp(){

webryblog_rakuten_affiliate_id = "07e783ad.7281cd72.07e783ae.01fd4688";


webryblog_rakuten_affiliate_image_flag = 1;
webryblog_rakuten_affiliate_itemnum = 1;

document.write('<scr' + 'ipt type="text/javascript" src="http://webryblog.biglobe.ne.jp/affiliate/rakuten/js/totalrank.js" charset="UTF-8" ></scr' + 'ipt>');

document.write('<img src="http://go.biglobe.ne.jp/md/vt/002075/rakuten_sidebar/" width=1 height=1>');
}

function include_compo(type) {
    switch (type){
      case 1:
        // カレンダー
        document.write("<div id=\"calendar\">\n");
        include_calendar();
        break;
      case 2:
        // 新着記事
        document.write("<div id=\"newpost\">\n");
        include_news_list(news_news_disp_num);
        break;
      case 3:
        // テーマ
        document.write("<div id=\"categories\">\n");
        include_theme_category(theme_category_disp_num);
        break;
      case 4:
        // 新着トラックバック
        document.write("<div id=\"newtbk\">\n");
        include_trackback_list(trackback_disp_num);
        break;
      case 5:
        // 新着コメント
        document.write("<div id=\"newcmt\">\n");
        include_comment_list(comment_disp_num);
        break;
      case 6:
        // ウェブリアルバム
        document.write("<div id=\"albums\">\n");
        include_album();
        break;
      case 7:
        // フリースペース
        document.write("<div id=\"freespace\">\n");
        include_free_space_news();
        break;
      case 8:
        // フリースペース２
        document.write("<div id=\"freespace2\">\n");
        include_free_space2_news();
        break;
      case 9:
        // プライベートメッセージ
        document.write("<div id=\"message\">\n");
        include_message_news();
        break;
      case 10:
        // Amazonアフィリエイト
        document.write('<div id="amazonaffiliate" style="text-align:center;">');
        include_amazon_affiliate_news();
        break;
      case 11:
        // QRコード
        document.write("<div id=\"qrcode\">\n");
        include_qr_code_news();
        break;
      case 12:
        // 楽天アフィリエイト
        document.write("<div id=\"rakutenaffiliate\" style=\"text-align:center;\">\n");
        include_rakuten_affiliate_news();
        break;
      case 13:
        // reserved
        document.write("<div style=\"display: none;\">\n");
        break;
      case 14:
        // reserved
        document.write("<div style=\"display: none;\">\n");
        break;
      case 15:
        // reserved
        document.write("<div style=\"display: none;\">\n");
        break;
      case 16:
        // reserved
        document.write("<div style=\"display: none;\">\n");
        break;
      case 17:
        // reserved
        document.write("<div style=\"display: none;\">\n");
        break;
      case 18:
        // reserved
        document.write("<div style=\"display: none;\">\n");
        break;
      case 19:
        // reserved
        document.write("<div style=\"display: none;\">\n");
        break;
      case 20:
        // reserved
        document.write("<div style=\"display: none;\">\n");
        break;
    }
}

function include_compo_left(type) {
    switch (type){
      case 1:
        // reserved
        document.write("<div style=\"display: none;\">\n");
        break;
      case 2:
        // reserved
        document.write("<div style=\"display: none;\">\n");
        break;
      case 3:
        // reserved
        document.write("<div style=\"display: none;\">\n");
        break;
      case 4:
        // reserved
        document.write("<div style=\"display: none;\">\n");
        break;
      case 5:
        // reserved
        document.write("<div style=\"display: none;\">\n");
        break;
      case 6:
        // reserved
        document.write("<div style=\"display: none;\">\n");
        break;
      case 7:
        // reserved
        document.write("<div style=\"display: none;\">\n");
        break;
      case 8:
        // reserved
        document.write("<div style=\"display: none;\">\n");
        break;
      case 9:
        // reserved
        document.write("<div style=\"display: none;\">\n");
        break;
      case 10:
        // reserved
        document.write("<div style=\"display: none;\">\n");
        break;
      case 11:
        // reserved
        document.write("<div style=\"display: none;\">\n");
        break;
      case 12:
        // reserved
        document.write("<div style=\"display: none;\">\n");
        break;
      case 13:
        // reserved
        document.write("<div style=\"display: none;\">\n");
        break;
      case 14:
        // reserved
        document.write("<div style=\"display: none;\">\n");
        break;
      case 15:
        // reserved
        document.write("<div style=\"display: none;\">\n");
        break;
      case 16:
        // reserved
        document.write("<div style=\"display: none;\">\n");
        break;
      case 17:
        // reserved
        document.write("<div style=\"display: none;\">\n");
        break;
      case 18:
        // reserved
        document.write("<div style=\"display: none;\">\n");
        break;
      case 19:
        // reserved
        document.write("<div style=\"display: none;\">\n");
        break;
      case 20:
        // reserved
        document.write("<div style=\"display: none;\">\n");
        break;
    }
}

function include_compo_top(type) {
    switch (type){
      case 1:
        // ウェブリアルバム
        document.write("<div id=\"albums\">\n");
        include_album();
        break;
      case 2:
        // フリースペース２
        document.write("<div id=\"freespace2\">\n");
        include_free_space2();
        break;
      case 3:
        // プライベートメッセージ
        document.write("<div id=\"message\">\n");
        include_message();
        break;
      case 4:
        // Amazonアフィリエイト
        document.write('<div id="amazonaffiliate" style="text-align:center;">');
        include_amazon_affiliate();
        break;
      case 5:
        // QRコード
        document.write("<div id=\"qrcode\">\n");
        include_qr_code();
        break;
      case 6:
        // 楽天アフィリエイト
        document.write("<div id=\"rakutenaffiliate\" style=\"text-align:center;\">\n");
        include_rakuten_affiliate();
        break;
      case 7:
        // reserved
        document.write("<div style=\"display: none;\">\n");
        break;
      case 8:
        // reserved
        document.write("<div style=\"display: none;\">\n");
        break;
      case 9:
        // reserved
        document.write("<div style=\"display: none;\">\n");
        break;
      case 10:
        // reserved
        document.write("<div style=\"display: none;\">\n");
        break;
      case 11:
        // reserved
        document.write("<div style=\"display: none;\">\n");
        break;
      case 12:
        // reserved
        document.write("<div style=\"display: none;\">\n");
        break;
      case 13:
        // reserved
        document.write("<div style=\"display: none;\">\n");
        break;
      case 14:
        // reserved
        document.write("<div style=\"display: none;\">\n");
        break;
      case 15:
        // reserved
        document.write("<div style=\"display: none;\">\n");
        break;
      case 16:
        // reserved
        document.write("<div style=\"display: none;\">\n");
        break;
      case 17:
        // reserved
        document.write("<div style=\"display: none;\">\n");
        break;
      case 18:
        // reserved
        document.write("<div style=\"display: none;\">\n");
        break;
      case 19:
        // reserved
        document.write("<div style=\"display: none;\">\n");
        break;
      case 20:
        // reserved
        document.write("<div style=\"display: none;\">\n");
        break;
    }
}

function include_compo_top_left(type) {
    switch (type){
      case 1:
        // カレンダー
        document.write("<div id=\"calendar\">\n");
        include_calendar();
        break;
      case 2:
        // 新着記事
        document.write("<div id=\"newpost\">\n");
        include_news_list(news_news_disp_num);
        break;
      case 3:
        // テーマ
        document.write("<div id=\"categories\">\n");
        include_theme_category(theme_category_disp_num);
        break;
      case 4:
        // 新着トラックバック
        document.write("<div id=\"newtbk\">\n");
        include_trackback_list(trackback_disp_num);
        break;
      case 5:
        // 新着コメント
        document.write("<div id=\"newcmt\">\n");
        include_comment_list(comment_disp_num);
        break;
      case 6:
        // フリースペース
        document.write("<div id=\"freespace\">\n");
        include_free_space();
        break;
      case 7:
        // reserved
        document.write("<div style=\"display: none;\">\n");
        break;
      case 8:
        // reserved
        document.write("<div style=\"display: none;\">\n");
        break;
      case 9:
        // reserved
        document.write("<div style=\"display: none;\">\n");
        break;
      case 10:
        // reserved
        document.write("<div style=\"display: none;\">\n");
        break;
      case 11:
        // reserved
        document.write("<div style=\"display: none;\">\n");
        break;
      case 12:
        // reserved
        document.write("<div style=\"display: none;\">\n");
        break;
      case 13:
        // reserved
        document.write("<div style=\"display: none;\">\n");
        break;
      case 14:
        // reserved
        document.write("<div style=\"display: none;\">\n");
        break;
      case 15:
        // reserved
        document.write("<div style=\"display: none;\">\n");
        break;
      case 16:
        // reserved
        document.write("<div style=\"display: none;\">\n");
        break;
      case 17:
        // reserved
        document.write("<div style=\"display: none;\">\n");
        break;
      case 18:
        // reserved
        document.write("<div style=\"display: none;\">\n");
        break;
      case 19:
        // reserved
        document.write("<div style=\"display: none;\">\n");
        break;
      case 20:
        // reserved
        document.write("<div style=\"display: none;\">\n");
        break;
    }
}