");
$(".toolchip").css({'font-size':'1.2em','font-weight':'bold','width':'210px','display':'none','position':'absolute','z-index':'9999'});
$(".tcparts").css({'width':'100%','padding':'0.3em 0.5em','box-sizing':'border-box'});
$(".toolchip_title").css({'color':'#FFFFFF','background':'#101010','border-radius':'0.5em 0.5em 0em 0em'});
$(".toolchip_text").css({'border-left':'solid thin','border-right':'solid thin','color':'#000000','background':'#FFFFFF','border-radius':'0em 0em 0em 0em','text-align':'left'});
$(".toolchip_foot0").css({'font-size':'0.6em','border-left':'solid thin','border-right':'solid thin','border-bottom':'solid thin','color':'#000000','background':'#F6EEA5','border-radius':'0em 0em 0.5em 0.5em','text-align':'center'});
*/
//メモ機能
$("body form[name='fmMiniForum']").attr("id","text_section0");
$("#text_section0 td:contains('You can leave a message for other players')").text($("#text_section0 td:contains('You can leave a message for other players')").text().replace(/You can leave a message for other players/,"他のプレーヤーにメッセージを残すことができます"));
$("#text_section0 table tbody").append("
自分の戦略用にメモを残すことができます.
");
$("#text_section0 table tbody").append("
メモ1メモ2メモ3
");
$("#save_btn").click(function(){save_memo();});
$("#text_section2 input[name='memo_text']:radio").change(function(){load_memo();});
var a=$(".clTexteFort:contains('Game')").text().replace(/\s+/g,"").split(" ");var b=a[0].split("-");
var storage = localStorage;
load_memo();
function save_memo(){storage.setItem("bruxelles_"+b[0]+$("#text_section2 input[name='memo_text']:checked").val(),$("#miniforumTextarea").val());}
function load_memo(){$("#miniforumTextarea").val(storage.getItem("bruxelles_"+b[0]+$("#text_section2 input[name='memo_text']:checked").val()));}
//ニュースエリア
$("#text_section0 table tbody").append("
");
//Infoエリアのメッセージ日本語化
var infotext_en = [
"Choose a card to play",
"You can move your colonists \\(select a colonist then a destination\\). Moves",
"You can build a new colonist in the starting city",
"Choose a personality card to buy. Purchases",
"Choose a province to produce",
"You can trade 2 types of resources",
"Select the opponent card to use",
"Choose the cities where you want to build houses",
"You can't build any house",
"Please wait your turn",
"No production for opponents",
"Confirm or restart your turn",
"Take the Sestertii or activate a province",
];
var infotext_jp = [
"プレイするカードを選んでください",
"入植者を移動することができます(入植者を選び目的地を選択します). 移動力",
"新たな入植者をスタートの都市に置くことができます",
"購入する人物カードを選んでください. 購入カード",
"生産をする属州を選んでください",
"2種類の品物を売買できます",
"使用する相手のカードを選んでください",
"家を建設する都市を選んでください",
"これ以上、家を建設できません",
"次のターンをお待ちください",
"相手プレーヤーの生産はありません",
"「承諾(Confirm)」または「ターンやり直し(restart your turn)」を選んでください",
"貨幣を獲得するか、または属州を活性化してください",
];
var helptext_en = [
"Build new colonists in your cities, each for",
"Or take 5 Sestertii plus 1 per colonist",
"Move your colonists. Then build in cities adjacent to your colonists",
"Turn over one active province tile to take the production bonus, and then the province produces",
"Or, reactivate all province tiles to take the coins as a cash bonus",
"Use an opponent's top face up personality card in his discard pile",
"Take 3 Sestertii and trade up to 2 types of goods",
"Take 5 Sestertii and trade up to 2 types of goods",
"Purchase up to 2 new personality cards and put them into your hand",
"Purchase 1 new personality card without additional costs and put it into your hand",
"Take back all your personality cards and gain 1 Setertius for each card taken in excess of 3. Include the Tribune in the count",
"In addition you can build 1 colonist in Roma for",
"Produce Tool in all your",
"Produce Food in all your",
"Produce Brick in all your",
"Produce Cloth in all your",
"Produce Wine in all your",
"The value of all goods in your storehouse \\(usual price as depicted\\) is added to the cash money. Then you receive 1 VP per full 10 sestertii, any fractions are ignored",
"For each house inside a non-brick city you receive 1 VP",
"For each province with at least one of your houses you receive 1 VP",
"For each type of goods that you produce with your houses, you receive 2 VP",
"For each of your colonists on the game board you receive 2 VP",
"For each villa in a city that produces the corresponding type of good you receive a certain number of VP as depicted on the specialist\’s card. \\(Brick 3, Food 3, Tool 3, Wine 4, Cloth 5\\)",
"The PM let you collect a double province bonus when using the Prefect to let a province produce \\(no effect on city production\\)",
"After using this card, it is passed to the player before you in the turn order",
"Cost",
];
var helptext_jp = [
"右の資源を1組支払うごとに自分の都市に新たな入植者を配置できる",
"または、入植者1人につき1貨幣、プラス5の貨幣を得る",
"自分の入植者を移動させる。その後自分の入植者に隣接する都市に家を建設する",
"活性化された属州タイル1枚を裏返し、生産ボーナスの品物1つを受け取る。そしてその後、属州の生産を全員が行う",
"または、貨幣の面を向けた属州タイルを活性化状態に戻し、戻した数分の貨幣を得る",
"相手プレーヤーの捨て札の一番上の表向きのカードの効果をコピーして使用する",
"貨幣を3受け取る、そして商品を2種類まで市場で売買する",
"貨幣を5受け取る、そして商品を2種類まで市場で売買する",
"場札を2まで購入し手札にする",
"追加コスト無しで場札から1枚カードを購入し手札に加える",
"自分の捨て札を全て手札に戻し、戻したカードが3枚を超えた後、1枚につき貨幣1を得る。この護民官カードも枚数に数えてよい",
"加えて右記資源を支払うことでローマに入植者を1つ配置できる",
"自分の家がある右の都市1つにつき道具1つ生産する",
"自分の家がある右の都市1つにつき食料1つ生産する",
"自分の家がある右の都市1つにつきレンガ1つ生産する",
"自分の家がある右の都市1つにつき織物1つ生産する",
"自分の家がある右の都市1つにつき葡萄酒1つ生産する",
"全ての手持ち資源を(通常価格で)お金に換算し手持ち資金に加えます。そして貨幣10につき1VPを獲得します(端数切捨て)",
"自分の家を建設している都市(レンガを除く)につき1VPを獲得します",
"最低1つの家がある属州1につき1VPを獲得します",
"自分の家で生産できる品物の種類1つにつき2VPを獲得します",
"ゲームボード上に登場している入植者1人につき2VPを獲得します",
"対応する品物を生産する都市に建設した家1つにつき、専門家カードに描かれている数字のVP(レンガ 3, 食料 3, 道具 3, 葡萄酒 4, 織物 5)を獲得します",
"長官を使用して属州生産を行った時に、追加ボーナス分の品物が2倍になる(都市からの生産物は倍にならない)",
"このカード使用後、ターン順が手前のプレーヤーにカードを手渡す",
"コスト",
];
var helpname_en = [
"Colonist",
"Architect",
"Prefect",
"Diplomat",
"Mercator",
"Senator",
"Tribune",
"Smith",
"Farmer",
"Mason",
"Consul",
"Weaver",
"Vintner",
"PRAEFECTVS MAGNVS",
"Discard pile",
"Hand",
"Gods",
"Card\\(s\\)",
];
var helpname_jp = [
"入植者",
"建築家",
"長官",
"外交官",
"商人",
"元老院議員",
"護民官",
"鍛冶",
"農夫",
"石工",
"執政官",
"織屋",
"酒商",
"大長官",
"捨て札",
"手札",
"神々",
"枚",
];
var btntext_en = [
"Restart my turn",
"",
];
var btntext_jp = [
"ターンをやり直す",
"",
];
var itemname0 = [
["Sestertii","貨幣"],
["Houses","家"],
];
var itemname1 = [
["Land colonist","入植者"],
["Sea colonist","入植船"],
["Food","食料"],
["Tool","道具"],
["Cloth","織物"],
["Wine","葡萄酒"],
["Brick","レンガ"],
];
var log_en = [
"Play the card",
];
var log_jp = [
"カードをプレイ",
];
var chiptitle = [
["",""],
];
$("body").on("mouseenter",".clNoSelect",function(){setTimeout(function(){infotext_update();},100);});
$("body").on("mouseenter",".clCardSelectable",function(){setTimeout(function(){infotext_update();},100);});
$("body").on("mouseenter","#help_gods",function(){setTimeout(function(){infotext_update();},100);});
$("body").on("mouseenter","#praefectusmagnus_0",function(){setTimeout(function(){infotext_update();},100);});
$("body").on("mouseenter","#divgods_0",function(){setTimeout(function(){infotext_update();},100);});
$("body").on("mouseenter","#divmainJ_0",function(){setTimeout(function(){infotext_update();},100);});
$("body").on("mouseenter","#praefectusmagnus_1",function(){setTimeout(function(){infotext_update();},100);});
$("body").on("mouseenter","#divgods_1",function(){setTimeout(function(){infotext_update();},100);});
$("body").on("mouseenter","#divmainJ_1",function(){setTimeout(function(){infotext_update();},100);});
$("body").on("mouseenter","#praefectusmagnus_2",function(){setTimeout(function(){infotext_update();},100);});
$("body").on("mouseenter","#divgods_2",function(){setTimeout(function(){infotext_update();},100);});
$("body").on("mouseenter","#divmainJ_2",function(){setTimeout(function(){infotext_update();},100);});
$("body").on("mouseenter","#praefectusmagnus_3",function(){setTimeout(function(){infotext_update();},100);});
$("body").on("mouseenter","#divgods_3",function(){setTimeout(function(){infotext_update();},100);});
$("body").on("mouseenter","#divmainJ_3",function(){setTimeout(function(){infotext_update();},100);});
$("body").on("mouseenter","#praefectusmagnus_4",function(){setTimeout(function(){infotext_update();},100);});
$("body").on("mouseenter","#divgods_4",function(){setTimeout(function(){infotext_update();},100);});
$("body").on("mouseenter","#divmainJ_4",function(){setTimeout(function(){infotext_update();},100);});
//■■■■■カードのマウスオーバー時の処理
function initLoad()
{
infotext_update();
}
function infotext_update(num)
{
for(j=0;j<100;j++){
for(var i in helptext_en){if($("#qtip-"+j+"-content").length){$("#qtip-"+j+"-content").html($("#qtip-"+j+"-content").html().replace(RegExp(helptext_en[i],"i"),helptext_jp[i]))};}
for(var i in helpname_en){if($("#qtip-"+j+"-title").length){$("#qtip-"+j+"-title").html($("#qtip-"+j+"-title").html().replace(RegExp(helpname_en[i],"i"),helpname_jp[i]))};};
}
for(var i in itemname0){$(".clRessource[title='"+itemname0[i][0]+"']").attr("title",itemname0[i][1]);};
for(var i in itemname1){$(".clRessource img[title='"+itemname1[i][0]+"']").attr("title",itemname1[i][1]);};
var a = $("#message").text().split(" ");
if((a[0]+a[2]+a[3])=="It'sturn!"){$("#message").html(a[1]+" さんのターンです");}
else
{
if((a[0]+a[1]+a[2]+a[3]+a[4]+a[5])=="Chooseagodfortheoffering")
{
// alert("前"+$("#message").html());
// for(var i in infotext_en){$("#message").html($("#message").html().replace(RegExp(infotext_en[i],"i"),infotext_jp[i]));};
// alert("後"+$("#message").html());
}
else{for(var i in infotext_en){$("#message").html($("#message").html().replace(RegExp(infotext_en[i],"i"),infotext_jp[i]));};};
}
}
/*
function disp_toolchip(thisdom,x,y)
{
var a=$(thisdom).attr("src").replace(/img\/cartes\/en\/c/i,"").replace(/.png/i,"");
$(".toolchip_title").html(chiptitle[a][0]);
$(".toolchip_text").html(chiptitle[a][1]);
$(".toolchip_foot0").html(a);
$(".toolchip").css({top:(y),left:(x),display:'block'});
}
*/
})();