@set @DEBUG = 0

var JPV000  = "溺れる者はわらをも掴む（おぼれるものはわらをもつかむ）";
var JPV001  = "芸術は長し、人生は短し（げいじゅつはながし、じんせいはみじかし）";
var JPV002  = "人生はドアの迷路、あなたの側からしか開かない（じんせいはドアのめいろ、あなたのがわからしかあかない）";
var JPV003  = "負け犬の遠吠え（まけいぬのとおぼえ）";
var JPV004  = "便りのないのは良い知らせ（たよりのないのはよいしらせ）";
var JPV005  = "学問に王道なし（がくもんにおうどうなし）";
var JPV006  = "血は水よりも濃し（ちはみずよりもこし）";
var JPV007  = "安物買いの銭失い（やすものがいのぜにうしない）";
var JPV008  = "触らぬ神に祟りなし（さわらぬかみにたたりなし）";
var JPV009  = "獲らぬ狸の皮算用（とらぬたぬきのかわざんよう）";
var JPV010  = "猫に小判（ねこにこばん）";
var JPV011  = "十人十色（じゅうにんといろ）";
var JPV012  = "光るもの全てが金ではない（ひかるものすべてがきんではない）";
var JPV013  = "光陰矢のごとし（こういんやのごとし）";
var JPV014  = "必要は発明の母（ひつようははつめいのはは）";
var JPV015  = "早起きは三文の徳（はやおきはさんもんのとく）";
var JPV016  = "過ぎたるは及ばざるがごとし（すぎたるはおよばざるがごとし）";
var JPV017  = "脳ある鷹は爪を隠す（のうあるたかはつめをかくす）";
var JPV018  = "情けは人の為ならず（なさけはひとのためならず）";
var JPV019  = "人の振り見て我振り直せ（ひとのふりみてわがふりなおせ）";
var JPV020  = "意志のある所に方法あり（いしのあるところにほうほうあり）";
var JPV021  = "貧乏に追いつく稼ぎなし（びんぼうにおいつくかせぎなし）";
var JPV022  = "覆水盆に帰らず（ふくすいぼんにかえらず）";
var JPV023  = "綺麗な薔薇にはとげかある（きれいなばらにはとげがある）";
var JPV024  = "馬の耳に念仏（うまのみみにねんぶつ）";
var JPV025  = "豚に真珠（ぶたにしんじゅ）";
var JPV026  = "二兎を追う者は一兎も獲ず（にとをおうものはいっともえず）";
var JPV027  = "花より団子（はなよりだんご）";
var JPV028  = "噂をすれば影（うわさをすればかげ）";
var JPV029  = "三人寄れば文殊の知恵（さんにんよればもんじゅのちえ）";
var JPV030  = "鉄は熱いうちに槌て（てつはあたういうちにうて）";
var JPV031  = "良薬は口に苦し（りょうやくはくちににがし）";
var JPV032  = "子供は親の鏡（こどもはおやのかがみ）";

var EPV000  = "A drowing man will catch at a straw.";
var EPV001  = "Art is long, life is short.";
var EPV002  = "Life is a maze of doors, and they all open from the side you're on.";
var EPV003  = "A barking dog seldom bites.";
var EPV004  = "No news is good news";
var EPV005  = "There is no royal road to learning.";
var EPV006  = "Blood is thinker than water.";
var EPV007  = "Cheap bargains are dear.";
var EPV008  = "Don't wake a sleeping dog.";
var EPV009  = "Don't count your chikens beforethey are hatched.";
var EPV010  = "Like casting pearls before swine.";
var EPV011  = "So many men, so many minds.";
var EPV012  = "All is not gold that glitters.";
var EPV013  = "Time flies like an arrow.";
var EPV014  = "Neccessity is the mother of invention.";
var EPV015  = "The early bird catches the worm.";
var EPV016  = "All work and no play makes Jack a dull boy.";
var EPV017  = "A courageous man never wants weapons.";
var EPV018  = "Do to others as you would have others do to you.";
var EPV019  = "The fault of another is a good teacher.";
var EPV020  = "Where there is a will, there is a way.";
var EPV021  = "Money makes the more to go.";
var EPV022  = "It is no use crying over spilt milk.";
var EPV023  = "There is no rose without a thorn.";
var EPV024  = EPV010;
var EPV025  = EPV010;
var EPV026  = "Grasp all, lose all.";
var EPV027  = "Bread is better than the songs of birds.";
var EPV028  = "Talk of the devil, and he is sure to appear.";
var EPV029  = "Two heads are better than one.";
var EPV030  = "Strike the iron while it is hot.";
var EPV031  = "Good medicine tastes bitter to the mouth.";
var EPV032  = "The apple never falls far from the tree. ";

function PPK(a, b){
    this.JPV    = a;
    this.EPV    = b;
}
function makeProVerb(){
    var i = 0;
    this[i++] = new PPK(JPV000, EPV000);
    this[i++] = new PPK(JPV001, EPV001);
    this[i++] = new PPK(JPV002, EPV002);
    this[i++] = new PPK(JPV003, EPV003);
    this[i++] = new PPK(JPV004, EPV004);
    this[i++] = new PPK(JPV005, EPV005);
    this[i++] = new PPK(JPV006, EPV006);
    this[i++] = new PPK(JPV007, EPV007);
    this[i++] = new PPK(JPV008, EPV008);
    this[i++] = new PPK(JPV009, EPV009);
    this[i++] = new PPK(JPV010, EPV010);
    this[i++] = new PPK(JPV011, EPV011);
    this[i++] = new PPK(JPV012, EPV012);
    this[i++] = new PPK(JPV013, EPV013);
    this[i++] = new PPK(JPV014, EPV014);
    this[i++] = new PPK(JPV015, EPV015);
    this[i++] = new PPK(JPV016, EPV016);
    this[i++] = new PPK(JPV017, EPV017);
    this[i++] = new PPK(JPV018, EPV018);
    this[i++] = new PPK(JPV019, EPV019);
    this[i++] = new PPK(JPV020, EPV020);
    this[i++] = new PPK(JPV021, EPV021);
    this[i++] = new PPK(JPV022, EPV022);
    this[i++] = new PPK(JPV023, EPV023);
    this[i++] = new PPK(JPV024, EPV024);
    this[i++] = new PPK(JPV025, EPV025);
    this[i++] = new PPK(JPV026, EPV026);
    this[i++] = new PPK(JPV027, EPV027);
    this[i++] = new PPK(JPV028, EPV028);
    this[i++] = new PPK(JPV029, EPV029);
    this[i++] = new PPK(JPV030, EPV030);
    this[i++] = new PPK(JPV031, EPV031);
    this.length = i;
}

var goProVerb = new makeProVerb();
var giProVLen = goProVerb.length;

function fnGetProVerb(){
    var idx = Math.floor(Math.random() * giProVLen);
    @if (@DEBUG == 1) alert("ProVerb Index= " + idx); @end
    return goProVerb[idx];
}
