

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_waveaqua.css\" REL=\"stylesheet\" TYPE=\"text/css\">");
      document.write("<script language=\"javascript\" src=\"/articles_jss/blank.js\"></script>");
      document.write("<script language=\"javascript\" src=\"http://social-lives.at.webry.info/amazon.js\"></script>");

      document.write("<LINK HREF=\"/css/articles.new/layout_leftR.new.css\" REL=\"stylesheet\" TYPE=\"text/css\">");

    if (page == "top" || page == "friend" || page == "circle"){
	}

      document.write("<LINK HREF=\"http://social-lives.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("#albums{  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"){
      document.write("<style type\"text/css\">");
      document.write(".thumnail{  display: none;  }");
      document.write("</style>");
}

if ( (page == "theme") ){
theme_category_disp_num = 50;
      document.write("<style type\"text/css\">");
      document.write(".thumnail{  display: none;  }");
      document.write("</style>");
}

if ( (page == "month") ){
}
if ( page == null ){
}

}

function include_article_css(page){
   component_flg=0;
  if(page == "article"){
    }
    if (component_flg == 1){
      document.write("<LINK HREF=\"/css/articles.new/layout_leftL.new.css\" REL=\"stylesheet\" TYPE=\"text/css\">");
    }else{
      document.write("<LINK HREF=\"/css/articles.new/layout_leftL.css\" REL=\"stylesheet\" TYPE=\"text/css\">");
    }

      
       document.write("<LINK HREF=\"http://social-lives.at.webry.info/customize.css\" REL=\"stylesheet\" TYPE=\"text/css\">");
       document.write("<LINK HREF=\"/css/articles.new/fixed.css\" REL=\"stylesheet\" TYPE=\"text/css\">");



    if (page == "article"){

      document.write("<style type\"text/css\">");
      document.write("#categories{  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("#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("#calendar{  display: none;  }");
      document.write("</style>");
      document.write("<style type\"text/css\">");
      document.write("#albums{  display: none;  }");
      document.write("</style>");
      document.write("<style type\"text/css\">");
      document.write("#webryseal{  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(){
      document.write("<style type\"text/css\">");
      document.write("#freespace{  display: none;  }");
      document.write("</style>");
}

function free_space_disp(){
      document.write("<h2>リンク集</h2>\n");
      document.write("<ul>\n");
      document.write("<li><a href=\"http://blog.goo.ne.jp/synthese01\">Rational Decision</a></li>\n");
      document.write("<li><a href=\"http://synthese.air-nifty.com/\">Rational Decision</a></li>\n");
      document.write("<li><a href=\"http://u-go.to/manchester/\">Live Forever</a></li>\n");
      document.write("<li><a href=\"http://emotionalism.ameblo.jp/\">ショールームダミーズ</a></a>\n");
      document.write("</ul>\n");
      document.write("\n");
      document.write("<br>\n");
      document.write("<h2>検索窓作ってみた</h2>\n");
      document.write("<ur>\n");
      document.write("<form method=\"get\" action=\"http://www.google.com/search\" style=\"text align; center; width;320px; padding:10px;\">\n");
      document.write("<input type=text name=q size=25 maxlength=255 value=\"\">\n");
      document.write("<input type=hidden name=hl value=\"ja\">\n");
      document.write("<input type=hidden name=ie value=Shift_JIS>\n");
      document.write("<input type=submit name=btnG value=\"Google 検索\">\n");
      document.write("<br>\n");
      document.write("<input type=hidden name=domains value=\"social-lives.at.webry.info\">\n");
      document.write("<input type=radio name=sitesearch value=\"\"> WWW を検索\n");
      document.write("<br>\n");
      document.write("<input type=radio name=sitesearch value=\"social-lives.at.webry.info\" checked>\n");
      document.write("当ブログ内を検索\n");
      document.write("</ur>\n");
      document.write("</form>\n");
      document.write("\n");
      document.write("<h2>アマゾン検索はこちら</h2>\n");
      document.write("<form action=\"http://www.amazon.co.jp/exec/obidos/external-search\">\n");
      document.write("<input type=\"hidden\" name=\"tag\" value=\"sociallives-22\" />\n");
      document.write("\n");
      document.write("<input type=\"hidden\" name=\"encoding-string-jp\" value=\"日本語\" />\n");
      document.write("\n");
      document.write("\n");
      document.write("<table class=\"normal\" \n");
      document.write("       border=\"0\" \n");
      document.write("       cellpadding=\"1\" \n");
      document.write("       cellspacing=\"0\" \n");
      document.write("       align=\"default\">\n");
      document.write("  <tr>\n");
      document.write("    <td>\n");
      document.write("      <table border=\"0\" \n");
      document.write("             cellpadding=\"2\" \n");
      document.write("             cellspacing=\"0\" \n");
      document.write("             align=\"center\" \n");
      document.write("             style=\"background-color:#fff; border: 1px solid #000000 !important;\">\n");
      document.write("        <tr border=\"0\">\n");
      document.write("          <td style=\"background-color:#fff\" align=\"right\" valign=\"middle\">\n");
      document.write("            <span style=\"font-family: verdana,arial,helvetica,sans-serif; font-size:10px !important; font-weight:bold !important;\">サーチ:</span><br>\n");
      document.write("          </td>\n");
      document.write("          <td style=\"background-color:#fff\" align=\"left\" valign=\"middle\">\n");
      document.write("\n");
      document.write("            <select name=\"index\">\n");
      document.write("              <option value=\"blended\">全商品</option>\n");
      document.write("\n");
      document.write("<option value=\"dvd-jp\" >DVD</option><option value=\"toys-jp\" >おもちゃ＆ホビー</option><option value=\"electronics-jp\" >エレクトロニクス</option><option value=\"classical-jp\" >クラシックミュージック</option><option value=\"videogames-jp\" >ゲーム</option><option value=\"software-jp\" >ソフトウェア</option><option value=\"vhs-jp\" >ビデオ</option><option value=\"kitchen-jp\" >ホーム＆キッチン</option><option value=\"music-jp\" >ミュージック</option><option value=\"books-jp\" >本</option><option value=\"books-us\" >洋書</option>\n");
      document.write("\n");
      document.write("            </select>\n");
      document.write("\n");
      document.write("          </td>\n");
      document.write("        </tr>\n");
      document.write("        <tr border=\"0\">\n");
      document.write("          <td style=\"background-color:#fff\" align=\"right\" valign=\"middle\">\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><br>\n");
      document.write("          <td style=\"background-color:#fff\" align=\"left\" valign=\"middle\">\n");
      document.write("           <input type=\"text\" name=\"keyword\" size=\"15\" value=\"\" />\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\" valign=\"top\" align=\"center\" style=\"background-color:#000;\">\n");
      document.write("            <a href=\"http://www.amazon.co.jp/exec/obidos/redirect-home/sociallives-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> \n");
      document.write("          </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");
}

function include_free_space2(){
  free_space2_disp();
}

function include_free_space2_news(){
      document.write("<style type\"text/css\">");
      document.write("#freespace2{  display: none;  }");
      document.write("</style>");
}

function free_space2_disp(){
      document.write("<h2>テーマ毎の本</h2>\n");
      document.write("<li>\n");
      document.write("<a href=\"http://www.amazon.co.jp/b?%5Fencoding=UTF8&node=571582&tag=sociallives-22&linkCode=ur2&camp=247&creative=1211\">人文・思想</a><img src=\"http://www.assoc-amazon.jp/e/ir?t=sociallives-22&amp;l=ur2&amp;o=9\" width=\"1\" height=\"1\" border=\"0\" alt=\"\" style=\"border:none !important; margin:0px !important;\" />\n");
      document.write("</li>\n");
      document.write("<li>\n");
      document.write("<a href=\"http://www.amazon.co.jp/b?%5Fencoding=UTF8&node=571584&tag=sociallives-22&linkCode=ur2&camp=247&creative=1211\">社会・政治</a><img src=\"http://www.assoc-amazon.jp/e/ir?t=sociallives-22&amp;l=ur2&amp;o=9\" width=\"1\" height=\"1\" border=\"0\" alt=\"\" style=\"border:none !important; margin:0px !important;\" />\n");
      document.write("</li>\n");
      document.write("<li>\n");
      document.write("<a href=\"http://www.amazon.co.jp/b?%5Fencoding=UTF8&node=466290&tag=sociallives-22&linkCode=ur2&camp=247&creative=1211\">科学・テクノロジー</a><img src=\"http://www.assoc-amazon.jp/e/ir?t=sociallives-22&amp;l=ur2&amp;o=9\" width=\"1\" height=\"1\" border=\"0\" alt=\"\" style=\"border:none !important; margin:0px !important;\" />\n");
      document.write("</li>\n");
}
function include_message(){
      message_disp();
}
function include_message_news(){
      document.write("<style type\"text/css\">");
      document.write("#message{  display: none;  }");
      document.write("</style>");
}
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="social-lives.at.webry.info">' + "\n");
      document.write('</form>' + "\n");
}
function include_news_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("<style type\"text/css\">");
      document.write("#amazonaffiliate{  display: none;  }");
      document.write("</style>");
}
function amazon_affiliate_disp(){
}
function include_qr_code(){
      qrcode_disp();
}
function include_qr_code_news(){
      document.write("<style type\"text/css\">");
      document.write("#qrcode{  display: none;  }");
      document.write("</style>");
}
function qrcode_disp(){
      document.write('<h2>このブログを携帯で読む</h2>' + "\n");
      document.write('<div style="text-align:center">' + "\n");
      document.write('<img src="http://social-lives.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://social-lives.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=\"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();
        break;
      case 8:
        // フリースペース２
        document.write("<div id=\"freespace2\">\n");
        include_free_space2();
        break;
      case 9:
        // プライベートメッセージ
        document.write("<div id=\"message\">\n");
        include_message();
        break;
      case 10:
        // Amazonアフィリエイト
        document.write('<div id="amazonaffiliate" style="text-align:center;">');
        include_amazon_affiliate();
        break;
      case 11:
        // QRコード
        document.write("<div id=\"qrcode\">\n");
        include_qr_code();
        break;
      case 12:
        // 楽天アフィリエイト
        document.write("<div id=\"rakutenaffiliate\" style=\"text-align:center;\">\n");
        include_rakuten_affiliate();
        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:
        // 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;
    }
}