// *** NEEDS cli.js MUST ***
// 05/12/12(月)10:48:09 表紙写真を北土居へ変更
// 05/09/15(木) 西photo休業案内を表紙に、フラグで切替
// 05/05/16(月) 表紙写真おおきく別窓を、Exif拝見に替えてみた
// 05/05/09(月) 別窓のサイズ指定の条件判断順を修正
// 05/04/23(土) ブラウザの解像度報告を利用して写真窓最大化
// 05/04/23(土) 表紙写真入れ替え。枠サイズ変更
// 05/02/24(木)15:06:59 special day 追加
// 2004/10/24(日)20:37:46 月を和暦 or フランス語表記に
// 2004/10/24(日)20:37:46 残り日数表示を nobr に
// 2004/10/12(火)09:33:49 平成年、曜日を追加
// 2004/09/11 cli.jsでcookie操作するために cookie関連をcliに移転
// 2004/09/02 なぜか IE6では問題なく mozilla で写真が出ない
// 2004/07/31 なぜだか、IE6 では、120行目あたりとメッセージボックス
// 2004/07/30 次回誕生日までの残日数計算関数への引数を自動取得
// 2004/07/30 次回誕生日までの残日数をグラフ表示
// 2004/07/30 指定年月日まで一年間の経過と残日数をグラフ表示を新設
// 2004/07/02 表紙写真に titleあれば表示 
// HTML4.01では、head部内に 
// meta http-equiv="Content-Script-Type" content="text/javascript" を推奨
// 江戸時代の時刻
//      http://homepage3.nifty.com/ponpoko-y/joho/toki.htm

var doc=document;
var photo_holiday = 0;  // 2でわくもなし 1で以下のメッセージ
var photo_holiday_msg = "写真サーバは、ただいま陸の孤島状態...<br>スタンド・アローンなサーバー機...";

// 来訪回数.日時から該当メッセージ出力
function check( ln){
    c = getCookie("WelcomeTimes");  // 来訪回数
    if( isNaN( c) ){
        c = 0;
    }
    today = new Date();
    {
        m = "0" + (1+today.getMonth());
        m = m.substring(m.length-2, m.length+1);

        d = today.getDate();    // ■ スペース・フィル

        h = "0" + today.getHours();
        h = h.substring(h.length-2, h.length+1);
        n = "0" + today.getMinutes();
        n = n.substring(n.length-2, n.length+1);
        s = "0" + today.getSeconds();
        s = s.substring(s.length-2, s.length+1);
    }
    {
        doc.write( "<font size=4>");
        if( ln == "ja"){
            // 平成表記
            var heisei = today.getFullYear()-1988;
            doc.write( "平成 ", heisei, "年 ");
        }else{
            // 西暦表記
            doc.write( today.getFullYear() + " ");
        }

        // doc.write( m, "/", d, " ");
        // 04/10/24(日)20:37:46 月を和暦 or フランス語表記に
        if( ln == "ja"){
            var month = new Array( "睦月", "如月", "弥生", "卯月", "皐月", "水無月", "文月", "葉月", "長月", "神無月", "霜月", "師走");
        }else{
            var month = new Array( "Janvier", "Fe<sup>'</sup>vrier", "Mars", "Avril", "Mai", "Juin", "Julliet", "Ao<sup>^</sup>ut", "Septembre", "Octobre", "Novembre", "De<sup>'</sup>cembre");
        }
        doc.write( month[ m-1], " ", d);

        if( ln == "ja"){
            doc.write( "日 " );
        }

        doc.write( " </font>");
        

        doc.write( " <br>");    // 曜日前で改行
        
        if( ln == "ja"){
            var week = new Array( "日", "月", "火", "水", "木", "金", "土");
        }else{
            var week = new Array( "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");    // eng
            var week = new Array( "dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi");         // fra

        }


        if( today.getDay() == 0){           // 日曜日
            doc.write( "<font color=#ff2222 size=4>");
        }else if( today.getDay() == 6){     // 土曜日
            doc.write( "<font color=#2222ff size=4>");
        }else{
            doc.write( "<font color=#000000>");
        }

        if( ln == "ja"){
            doc.write( "<big><b>" + week[ today.getDay()] + "曜日</b></big> " );
        }else{
            doc.write( "<big><b>" + week[ today.getDay()] + "</b></big> " );
        }
        doc.write( "</font>");

        if( ln == "ja"){
            doc.write( h, "時", n, "分", s, "秒");
        }else{
            doc.write( h, ":", n, ":", s);
        }


        // 7月以降のみ残日数グラフ表示
        if( 7 <= m ){
            // 本年の残日数をグラフ表示
            nextyyy = today.getFullYear();
            yearsold = today.getFullYear();
            doc.write( "<nobr>") ;
            msg_by_how_many_days_for( ln, "December 31 " + today.getFullYear(), yearsold); // 本年の残り日数
            doc.write( "</nobr>") ;
            doc.write( "<br>") ;

            // 次回の誕生日までの残日数
            nextyyy = today.getFullYear()+1;
            yearsold = today.getFullYear()-1965;
            doc.write( "<nobr>") ;

            // ★ (謎) 誕生日以前なら -1 が必要 ★応急処置
            if( 0){
                nextyyy  -= 1;
                yearsold -= 1;
            }
            msg_by_how_many_days_for( ln, "February 18 " + nextyyy, yearsold);
            doc.write( "</nobr>") ;
            doc.write( "<br>") ;
        }
    

        doc.write( " <br>");    // メッセージ前で改行
        // 種別を秒により分岐
        if( (s%4) == 0){
            // mmdd該当のメッセージ(あれば)
            d = "0" + d;    // dd
            d = d.substring(d.length-2, d.length+1);
            msg = msg_for_today( ln, m+d);
            if( 0==msg.length){
                // 時刻該当のメッセージ
                msg=msg_by_current_hour( ln);
            }
        }else 
        if( (s%2)==0 ){
            // 時刻該当のメッセージ
            msg=msg_by_current_hour( ln);
        }else{
            // 秒該当のメッセージ
            msg=msg_by_current_sec( ln, s);
        }
        if( msg.length){
            msg=msg+"...";
            doc.write( "<a href=http://cvlz.net/cgi-bin/cv.cgi?frms=", my_escape( msg), ">", msg, "</a>");
        }
    }

    // 04/09/30(木)23:47:39 表紙でカウントしないことにした
    // 表紙にはads置かないため,表紙で != 0 になると、他のページで全件表示とならないため
    // ↓
    // 07/02/05(月)12:33:38 表紙の写真が切り替わらないので復活
    c++;
    setCookie("WelcomeTimes", c);
}
function photo( ln){
    c=getCookie("WelcomeTimes");  // 来訪回数
    TopPhoto( ln, c);
}

function my_escape( s){
    // 半角スペースを _ に置換
    s = s.replace(/ /g,"_");
    return s;
}

function makeLimits(n){
  this.length = n;
  i=0;
  this[i++]="October 31, 2004 23:59:59 UTC+0900" ;
  this[i++]="Novenber 30, 2004 23:59:59 UTC+0900" ;
  this[i++]="December 31, 2004 23:59:59 UTC+0900" ;
  this[i++]="January  31, 2005 23:59:59 UTC+0900" ;
  this[i++]="February 28, 2006 23:59:59 UTC+0900" ;
}
var nLimits=5;
var Limits=new makeLimits( nLimits);

// 残日数取得
//---
function how_many_days_for( mdy){
  today = new Date();
  thatday = new Date(mdy);
  msPerDay = 24 * 60 * 60 * 1000 ;
  // 1970年1月1日午前0時からの経過時間で差を求める
  daysLeft = (thatday.getTime() - today.getTime() ) / msPerDay;
  daysLeft = Math.ceil(daysLeft);
    // 残り日数を得るため +1 する ex. 12/25 から 12/31 で 6日 とする (31-25=6)+1
  return daysLeft + 1;
}

// 残り日数に従いメッセージ出力
// 指定日付と現在日付を比較してその差で該当するメッセージを返す
//---
function msg_by_how_many_days_for( ln, mdy, year){
  var msg = " " ;
  progress( year, mdy);
  var hmdf = how_many_days_for( mdy);
  year = year + 1 ;

  doc.write( "<br>");
  if( 0 < hmdf){
    if( ln == "ja"){
      msg = "あと " + hmdf + "回寝ると" + year + "年です" ;
    }else{
      msg = "Last " + hmdf + "days for " + year + "" ;
    }
    doc.write( " <a href=http://cvlz.net/cgi-bin/cv.cgi?frms=", my_escape( msg), ">", msg, "</a>");
    doc.write( "</a>");
  }
  return msg ;
}

// 指定された uri を別窓サイズ指定出力
var WinPop = null;  // openerから別窓を制御するなら必要だが...
function open_new_window_with_width_height( uri, width, height){
var w,h,ie,sw,sh=0;
    w=width; h=height;
    if( navigator.appName != "Netscape"){
        ie = true;
    }
    // 指定無ければ、既定サイズ。hideに合わせて 670*566
    if( w == null || w == "undefined" || w == 0){   w = 670;  }
    if( h == null || h == "undefined" || h == 0){   h = 566;  }

    // ブラウザの報告する画面解像度が有効で
    sw=screen.width; sh=screen.height;
    if( sw != null & sw != "undefined" & sw != 0
      & sw != null & sw != "undefined" & sw != 0){
        // 引数で指定されたサイズが画面より大きな時、最大化を予約
        if( sw < w || sh < h){
            w=sw; h=sh;
            // ★ie6は、窓位置が右にずれてヘンで
            // 始点設定( moveTo )も窓サイズ設定( resizeTo )もエラーになるので
            // 窓幅を小さめにして左を開け中央付近へ配置 仕方なく、高さも小さめに
            if( ie){ w=w-58; h=h-40;}else{  w=w-72; }   // 1024*768
            if( ie){ w=w; h=h-40;}else{ w=w;    }       // 1280*1024
        }
    }else{
        // ブラウザ毎に必要な窓サイズ微調整
        // ff:16,16 IE6:36,28 NC4.5:19,16 IE5:40,40
        if( ie){w=w+36; h=h+30;}else{w=w+16;    h=h+16;}
    }

    str = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=";
    str = str + w;
    str = str + ",height=" + h;

    if( navigator.appVersion.indexOf( "X11") == 5){
        WinPop = window.open( uri, "imgWin", str);
    }else{
        WinPop = window.open( uri, "imgWin", str);
        WinPop.location = uri;
        if( navigator.appVersion.indexOf( '3.0') < 0){
            WinPop = window.open( uri, "imgWin", str);
            WinPop.opener = self;
        }
    }
}


// 表紙に出力する画像リストを作成
function make_list_of_gallery(n){
  this.length=n*2+1;    // リスト件数に注意 → nGallary
  i=0;          
/* ↓削除しないで移動すること
../../back/gallery05.js へ
../../old/photo.js へ
./changese.html
*/

this[i++]="321action"; this[i++]="どっひゃぁ〜(!)"; this[i++]=""; this[i++]=800; this[i++]=600;
this[i++]="noro"; this[i++]="退散..."; this[i++]=""; this[i++]=800; this[i++]=600;
this[i++]="090814asa-pen"; this[i++]="色鉛筆で..."; this[i++]=""; this[i++]=800; this[i++]=600;
this[i++]="";

/*
*/
}
var nGallery=3;
var gallery=new make_list_of_gallery( nGallery);
// 来訪毎に異なる画像を提供 1f2323
function TopPhoto( ln, c){

//  doc.write( "(" + c + ")");

    if( 2 <= photo_holiday){
        return; // 表紙写真休業
    }
  // 来訪回数から画像番号を決定
    if( isNaN( c) ){
        c = 0;
    }
// 07/02/05(月)12:29:25 なぜか false getcookie welcometimes が取れていないのか？
//  if( false == c) ){
//      c = 100;    // 0にしたら枠ごと現れなかったので 適当に 100でも
//  }
  
    i = c % nGallery;
  image_file=gallery[ i * 5 ];
  if( image_file.len == 0 || image_file.len == "undefined"){
    return 0;
  }

  // 題名：言語切替
  if( ln == "ja"){
    image_title=gallery[ i * 5 +1];
  }else{
    image_title=gallery[ i * 5 +2];
  }
    w = gallery[ i * 5 +3] ;
    h = gallery[ i * 5 +4] ;

  image_name="http://cvlz.net/?t=/photo/" + image_file ;

  // not include extension
  // 表組みで画像と題名を出力( .jpg .jpeg 必須 )
  doc.write( "<table border=0 width=90% height=100% align=center valign=center cellpadding=20>");
    doc.write( "<tr><td bgcolor='#3f3f3f'>");
      doc.write( "<table border=2 align='center' valign='center' cellpadding=28>");
        doc.write( "<tr valign=bottom><td bgcolor='#0f0f0f'>");
        if( photo_holiday){
            doc.write( "<font color='yellow'>" + photo_holiday_msg + "</font>");
        }else{
            doc.write( "<a href=javascript:open_new_window_with_width_height('" + image_name + ".jpeg'," + w + "," + h + ")><img src='" + image_name + ".jpg'" + " align=center alt='" + (i+1) + "' border=0></a>");
        }
        doc.write( "</td></tr>");
      doc.write( "</table>");

    if( 0==photo_holiday){
        if( image_title.length ){ // titleあれば表示 
          doc.write( "<p>");
          doc.write( "<table border=0 cellpadding=12  align=center>");  // cellspacing=12
            doc.write( "<tr><td bgcolor='#afafaf'>");

            doc.write( "<a href=http://cvlz.net/cgi-bin/cv.cgi?frms=" + my_escape( image_title) + "_といえば... target=_blank>" + image_title + "</a>");
            doc.write( "<div align=right><a href=/?e=" + image_name + ".jpeg><small>Exif</small></a></div>");
    //doc.write( "写真流通センター　店主.");

            doc.write( "</td></tr>");
          doc.write( "</table>");
        }
    }
    doc.write( "</td></tr>");
  doc.write( "</table>");
}

function makeholiday(n){  // 月日に対応するメッセージを定義する
  this.length = n*2;
  i=0;

  this[i++]="0101"; this[i++]="あけましておめでとうございます";
  this[i++]="0102"; this[i++]="本年もよろしくお願い申し上げます";
  this[i++]="0103"; this[i++]="また今年もお仕事が待ちかまえているのですか？";
  this[i++]="0108"; this[i++]="零時　日替わりの";
  this[i++]="0113"; this[i++]="はは・\"の日";
  this[i++]="0114"; this[i++]="ちち・\"の日";
  this[i++]="0117"; this[i++]="さんじょますいぶ";
  this[i++]="0118"; this[i++]="はっぴびゃすでぃえ";
  this[i++]="0120"; this[i++]="ういますいぶ";
  this[i++]="0121"; this[i++]="ういつばなれ";
  this[i++]="0129"; this[i++]="前田くん(誕生日一日違い)は、本日結婚記念日";
  this[i++]="0211"; this[i++]="建国記念日おめでとうございます";
  this[i++]="0217"; this[i++]="Windows2000 発売は 2000/02/17でした。";
  this[i++]="0218"; this[i++]="生まれる前から　いらないイノチ";
  this[i++]="0219"; this[i++]="前田ぴょん誕生日おめでとう♪";
  this[i++]="0220"; this[i++]="本日は結婚記念日ですか？";
  this[i++]="0224"; this[i++]="文子ちゃん誕生日おめでとう♪";
  this[i++]="0303"; this[i++]="桃の節句です：なぜに祝日でないの";
  this[i++]="0314"; this[i++]="あしたは・ばぁちゃんの誕生日だっ";
  this[i++]="0315"; this[i++]="お・ばぁちゃんの誕生日だっ";
  this[i++]="0320"; this[i++]="春分の日、太陽黄経が0度に";
  this[i++]="0405"; this[i++]="桜の花の下";
  this[i++]="0429"; this[i++]="みどりの日・山々の新緑はどうかな？";
  this[i++]="0430"; this[i++]="<!-- スカートなか -->拝見♪";
  this[i++]="0503"; this[i++]="暗唱できてたっけ？　そのむかし＞日本国憲法";
  this[i++]="0504"; this[i++]="国民の休日・ＧＷまっただなかぁ〜";
  this[i++]="0505"; this[i++]="子供の日・太陽さんさん？";
  this[i++]="0506"; this[i++]="連休も今日でおわっちゃうのねん";
  this[i++]="0513"; this[i++]="はじめて<!-- 0920〜1520-->";
  this[i++]="0523"; this[i++]="祖父・\"の日";
  this[i++]="0604"; this[i++]="じじょますいぶ";
  this[i++]="0605"; this[i++]="ななつのこ";
  this[i++]="0627"; this[i++]="しめしめ・じめじめ( なめくじ )";
  this[i++]="0629"; this[i++]="梅雨明け・ちかし？";
  this[i++]="0710"; this[i++]="ぼーなす・どうなった？";
  this[i++]="0720"; this[i++]="海の日！ 泳ぎにいかなきゃ♪";
  this[i++]="0721"; this[i++]="なつやすみ";
  this[i++]="0722"; this[i++]="ははますいぶ";
  this[i++]="0723"; this[i++]="このははとしを";
  this[i++]="0730"; this[i++]="熱中症にご注意を";
  this[i++]="0805"; this[i++]="あすは空ゆく機影にご注意を";
  this[i++]="0806"; this[i++]="広島　原爆の日";
  this[i++]="0809"; this[i++]="長崎　原爆の日";
  this[i++]="0812"; this[i++]="日本航空123便 18時56分 御巣鷹山墜落の日";
  this[i++]="0815"; this[i++]="終戦記念の日";
  this[i++]="0821"; this[i++]="宿題おわった？";
  this[i++]="0915"; this[i++]="敬老の日_何歳になったんだっけ？";
  this[i++]="0923"; this[i++]="秋分の日_お墓参りは？";
  this[i++]="1010"; this[i++]="体育の日_はりきりましょう";
  this[i++]="1103"; this[i++]="文化の日_紅葉の季節ですね";
  this[i++]="1123"; this[i++]="勤労感謝の日 感謝してますかぁ〜？";
  this[i++]="1215"; this[i++]="年賀状の準備はおはやめに？";
  this[i++]="1220"; this[i++]="大掃除の作戦は？";
  this[i++]="1222"; this[i++]="天皇ます・いぶ_ケーキは？";
  this[i++]="1223"; this[i++]="うれしい・休日_めでたい・誕生日";
  this[i++]="1224"; this[i++]="おおきな笑顔";
  this[i++]="1225"; this[i++]="Merry_Cristmass";
  this[i++]="1231"; this[i++]="来年もよろしくおねがいします";

  this[i++]="";   this[i++]="";


}
var CountOfSpecialDay=59;
var holy=new makeholiday(CountOfSpecialDay);

// 時刻を参照し該当するメッセージを返す
function msg_by_current_hour( ln){
  if( ln != "ja")    return "";
  dt=new Date();
  h = dt.getHours();

       if( h <  1) return( "日替わりなので、そろそろ");
  else if( h <  2) return( "若干、眠くなってきたけれど");
  else if( h <  3) return( "明日は何時起床の予定かというと");
  else if( h <  4) return( "そろそろ朝が来るのだが");
  else if( h <  5) return( "眠いような気もしてたのですが");
  else if( h <  6) return( "お弁当の準備を始めなければ");
  else if( h <  7) return( "おっはようございます。早いですな");
  else if( h <  8) return( "朝ご飯といえば、いつも");
  else if( h <  9) return( "今朝の出かける準備は");
  else if( h < 10) return( "目は覚めたし腹はふくれたし");
  else if( h < 11) return( "えっと、今日の計画は");
  else if( h < 12) return( "そろそろお昼ごはんが気になる時刻ですが");
  else if( h < 13) return( "本日のお昼ごはんは");
  else if( h < 14) return( "おなかが一杯で眠くなる時刻なので");
  else if( h < 15) return( "そろそろ、おやつの時間とか");
  else if( h < 16) return( "なんだったか？今日の計画");
  else if( h < 17) return( "そろそろ片づけ始めないと");
  else if( h < 18) return( "あらあら暗くなってきたので");
  else if( h < 19) return( "おなかも空いてきたし");
  else if( h < 20) return( "今夜のディナーは");
  else if( h < 21) return( "もうすこしで、大人の時間なので");
  else if( h < 22) return( "今夜はやっぱり");
  else if( h < 23) return( "はやめに風呂にでも入って");
  else if( h < 24) return( "たまには零時までに寝たら");

  return "";
}

function str4colmn( s){
    s = "    " + s;
    while( s.length > 4){
        s = s.substr( 1, s.length);
    }
    s = s.replace(/ /g,"&nbsp;");
    return s;
}

// 2004/07/30 指定年月日まで一年間の経過と残日数をグラフ表示
function progress( year, mdy){
    today = new Date();
    yyyy=today.getFullYear();
    last = how_many_days_for( mdy); // 残り日数
    dofy = 365;                     // 閏年未対応★というか無視...
    past = Math.ceil( dofy - last);
    nextyear=year+1;

    // 二段構えで揃える目的で、year, nextyear を固定四桁文字列に
    year     = str4colmn( year);
    nextyear = str4colmn( nextyear);
    
    past = past / 2;
    last = last / 2;

//  per10 = parseInt( dofy / 365 / 20)  ;
//  str = "<br>    " + " <img src=past.jpg width=" + per10 + " height=3>");
//  str .= "<img src=past.jpg width=" + per10 + " height=3>");
//  str .= "<img src=last.jpg width=" + per10 + " height=3>");
//  str .= "<img src=past.jpg width=" + per10 + " height=3>");
//  str .= "<img src=last.jpg width=" + per10 + " height=3>");
//  str .= "<img src=past.jpg width=" + per10 + " height=3>");
//  str .= "<img src=last.jpg width=" + per10 + " height=3>");
//  str .= "<img src=past.jpg width=" + per10 + " height=3>");
//  str .= "<img src=last.jpg width=" + per10 + " height=3>");
//  str .= "<img src=past.jpg width=" + peg10 + " height=3>");
//  doc.write( str);

    str = "<br>" + year + " <img src=past.jpg width=" + past + " height=8><img src=last.jpg width=" + last + " height=8>";
    doc.write( str);

    // alert( str); // for debug
}

function msg_for_today( ln, MonthDay){   // 日時より

  if( ln != "ja")    return " ";

  for( i=0; i<CountOfSpecialDay; i++){
    if( holy[i*2]==MonthDay){
      return holy[i*2+1];
    }else
    if( holy[i*2]==""){ // 一致するメッセージが見つからなかった
      return "";
    }
  }
}
// 時刻を参照し該当するメッセージを返す
function msg_by_current_sec( ln, s){
  if( ln != "ja")    return "";

// 05/01/13(木)18:07:41 呼出側が、現在、秒で月or時else を分岐していている randamで分岐する

    s = Math.floor(Math.random()*30);
       if( s <  1) return( "春が来たと思ったら、あっという間に");
  else if( s <  2) return( "一週間できることと、一ヶ月かかることと");
  else if( s <  3) return( "毎朝、目覚めたときに思うことは");
  else if( s <  4) return( "テレビの音が背中で耳に付くので");
  else if( s <  5) return( "もじょもじょもじょもじょしゃべられると");
  else if( s <  6) return( "SDカードの容量が電池容量を超えているので");
  else if( s <  7) return( "自転車のタイヤを接着しないといけません");
  else if( s <  8) return( "クルマのドアの凹みが気になると思っていたら");
  else if( s <  9) return( "うちのクルマ。タイヤだけは新しいのですが");
  else if( s < 10) return( "朝、顔を洗うまでに");
  else if( s < 11) return( "増えることはあっても、減ることはないのが");
  else if( s < 12) return( "夏休み、冬休み、春休み");
  else if( s < 13) return( "暖かくなりました。途端に");
  else if( s < 14) return( "庭の花が新しく");
  else if( s < 15) return( "マウスの塗装が指のカタチに");
  else if( s < 16) return( "一年ぶりにバイクに火を");
  else if( s < 17) return( "シモネタ続きで恐縮ですが");
  else if( s < 18) return( "コーヒー豆はあるのですが");
  else if( s < 19) return( "短く髪を切ってみたら");
  else if( s < 20) return( "お札が変わったのであちこちで");
  else if( s < 21) return( "田んぼに水が入る季節は");
  else if( s < 22) return( "表紙のレイアウトを変えてみたら");
  else if( s < 23) return( "ひとの思ってるベクトルって");
  else if( s < 24) return( "新緑がまぶしい季節なので");
  else if( s < 25) return( "いま一番、欲しいのは");
  else if( s < 26) return( "こんな季節に汗をかいたら");
  else if( s < 27) return( "ストーブも灯油もそろそろ");
  else if( s < 28) return( "おなかが空いて仕方ないので");
  else if( s < 29) return( "腰回りがどうも気になり");
  else if( s < 30) return( "今週の予定では");
  return ":-P";
}
