var pageTitles = new Array('Research topics', 'Laws', 'Research budget', 'Diplomacy'); var rTypes = new Array('Fundamental', 'Military', 'Civilian'); function makeResearchTooltips() { rett = new Array(); if (ttDelay == 0) { var i; for (i=0;i<82;i++) rett[i] = ""; return; } rett[0] = tt_Dynamic("Click here to hide / show this research topic"); rett[1] = tt_Dynamic("Click here to implement this technology"); rett[10] = tt_Dynamic("Click here to hide / show this law"); rett[11] = tt_Dynamic("Click here to revoke this law"); rett[12] = tt_Dynamic("Click here to enact this law"); rett[20] = tt_Dynamic("Click here to decrease the percentage of research points attributed to this category by 10 points"); rett[21] = tt_Dynamic("Click here to decrease the percentage of research points attributed to this category by 1 point"); rett[22] = tt_Dynamic("Click here to increase the percentage of research points attributed to this category by 1 point"); rett[23] = tt_Dynamic("Click here to increase the percentage of research points attributed to this category by 10 points"); rett[30] = tt_Dynamic("Click here to validate the new budget attributions"); rett[31] = tt_Dynamic("Click here to reset the budget attributions"); rett[40] = tt_Dynamic("Check this radio button to offer scientific assistance"); rett[41] = tt_Dynamic("Type here the name of the player to send the offer to"); rett[42] = tt_Dynamic("Type here the amount of cash you want to receive in exchange for the offer"); rett[43] = tt_Dynamic("Click here to send the offer"); rett[44] = tt_Dynamic("Check this radio button to offer the selected technology"); rett[45] = tt_Dynamic("Choose here the technology you want to offer"); rett[50] = tt_Dynamic("Select here the page of pending technology exchange offers you want to display"); rett[51] = tt_Dynamic("Click here to accept this technology exchange"); rett[52] = tt_Dynamic("Click here to decline this technology exchange"); rett[60] = tt_Dynamic("Selected here the page of the history of technology exchanges to display"); rett[70] = tt_Dynamic("Click here to implement new technologies, view foreseen breakthroughs and already implemented technologies"); rett[71] = tt_Dynamic("Click here to enact and revoke laws"); rett[72] = tt_Dynamic("Click here to balance your research budget between fundamental, military and civilian research"); rett[73] = tt_Dynamic("Click here to give or sell technologies and scientific knowledge with other empires, and examine offers made to you"); rett[80] = tt_Dynamic("Click here to unlock the category"); rett[81] = tt_Dynamic("Click here to prevent this category from being changed along with the other two"); } function getLoadingText() { return "Loading page data ..."; } function getTopicsPage() { var str = '
No new technology has been discovered.
'; else { str += 'Technology | Type | Cost | '; str += '[ ' + (d ? '-' : '+') + ' ] | '; if (d) { str += '' + rtTitles[id] + ' '; str += rtDescriptions[id] + ' More information ... | ';
}
else
str += '' + rtTitles[id] + ' | '; str += '' + rTypes[rtTypes[id]] + ' | '; str += '€' + formatNumber(rtCosts[id]) + ' | Implement technology | '; if (d) str += '
---|---|---|---|---|
'; str += ' |
No breakthrough is currently in sight.
'; else { str += 'Technology | Type | Estimated cost | Completion | '; str += '[ ' + (d ? '-' : '+') + ' ] | '; if (d) { str += '' + rtTitles[id] + ' '; str += rtDescriptions[id] + ' More information ... | ';
}
else
str += '' + rtTitles[id] + ' | '; str += '' + rTypes[rtTypes[id]] + ' | '; str += '€' + formatNumber(rtCosts[id]) + ' | ' + rtForeseenP[id] + '% | '; if (d) str += '
---|---|---|---|---|
'; str += ' |
No such technology has been implemented at the moment.
No such technology has been implemented at the moment.
'; return str; } function confirmTech(id) { var str; str = 'Implementing ' + rtTitles[id] + '\nThis will cost ' + formatNumber(rtCosts[id]) + ' euros.\n'; str += 'Are you sure you want to do this?'; return confirm(str); } function implError(code) { var str = 'Error: '; switch (code) { case 0: str += 'you do not have enough cash to implement this technology'; break; case 1: str += 'trying to cheat by hacking the server _is_ evil'; break; case 200: str += 'you can\'t implement technologies while in vacation mode'; break; default: str += 'an unknown error has occured'; break; } alert(str + '.'); } function getLawsPage() { var str = 'No laws have been enacted yet.
'; else { str += 'Law | Cost | '; str += '[ ' + (d ? '-' : '+') + ' ] | '; if (d) str += '' + rtTitles[id] + ' ' + rtDescriptions[id] + ' More information ... | ';
else
str += '' + rtTitles[id] + ' | '; if (lTimeRevoke[id] == 0) { str += '€' + formatNumber(rtCosts[id]) + ' | Revoke | '; } else { str += '' + lTimeRevoke[id] + ' day' + (lTimeRevoke[id] > 1 ? 's' : ''); str += ' left before the law can be revoked. | '; } if (d) str += '
---|---|---|---|
'; str += ' |
No laws are available.
'; else { str += 'Law | Cost | '; str += '[ ' + (d ? '-' : '+') + ' ] | '; if (d) str += '' + rtTitles[id] + ' ' + rtDescriptions[id] + ' More information ... | ';
else
str += '' + rtTitles[id] + ' | '; if (lTimeEnact[id] == 0) { str += '€' + formatNumber(rtCosts[id]) + ' | Enact | '; } else { str += '' + lTimeEnact[id] + ' day' + (lTimeEnact[id] > 1 ? 's' : ''); str += ' left before the law can be enacted. | '; } if (d) str += '
---|---|---|---|
'; str += ' |
Research points: per day
'; str += ''; document.getElementById('respage').innerHTML = str; } function drawBudgetControls() { document.getElementById('rbcl').innerHTML = ''; document.getElementById('rbcr').innerHTML = ''; } function drawDiplomacyRestrained(d) { var str = 'Your account is too young to use this feature. You must wait for ' + d + ' more day' + (d > 1 ? 's' : '') + '.
'; document.getElementById('respage').innerHTML = str; } function drawRDSentAlready() { var str = 'We already sent an assistance offer in the last 22 hours (' + formatDate(rdSentOffer.time) + ').
';
str += 'We offered to give ' + rdSentOffer.player + ' ';
if (rdSentOffer.tech == "")
str += 'research assistance';
else
str += 'the "' + rtTitles[rdSentOffer.tech] + '" technology';
if (rdSentOffer.price > 0)
str += ' in exchange for €' + formatNumber(rdSentOffer.price) + '';
str += '; the offer ';
if (rdSentOffer.status == "P")
str += 'is still pending.';
else if (rdSentOffer.status == "A")
str += 'has been accepted.';
else
str += 'has been declined.';
str += '
'; str += ' | Offer | 0) { str += ' onClick="rdfType=0;document.getElementById(\'rdstype0\').checked=true" >'; str += ' research assistance | to player in exchange for € | |
the technology |
No assistance offers have been received.
'; else { var n, m, i; n = rdRecOffers.length; m = n % 5; n = (n-m)/5 + (m>0?1:0); if (rdRecPage >= n) rdRecPage = n-1; str += 'Page '; if (n == 1) str += "1 / 1"; else { str += ' / ' + n; } str += ' | |
|
The history is empty.
'; else { var n, m, i; n = rdHistory.length; m = n % 5; n = (n-m)/5 + (m>0?1:0); if (rdHistPage >= n) rdHistPage = n-1; str += 'Page '; if (n == 1) str += "1 / 1"; else { str += ' / ' + n; } str += ' | |
|