function makeOverviewTooltips() { ovett = new Array(); if (ttDelay == 0) { var i; for (i=0;i<23;i++) ovett[i] = ""; return; } ovett[0] = tt_Dynamic("Click here to switch to Complete Overview mode"); ovett[1] = tt_Dynamic("Click here to go to your inbox and read your new external message(s)"); ovett[2] = tt_Dynamic("Click here to go to your internal transmissin folder and read your new internal message(s)"); ovett[3] = tt_Dynamic("Click here to go to the compose page and prepare a new message to be sent"); ovett[4] = tt_Dynamic("Click here to go to this general forum main page"); ovett[5] = tt_Dynamic("Click here to go to your alliance forum main page"); ovett[10] = tt_Dynamic("Click here to switch to Short Overview mode"); ovett[11] = tt_Dynamic("Click here to go directly to this folder"); ovett[12] = tt_Dynamic("Click here to go directly to the planets overview page"); ovett[13] = tt_Dynamic("Click here to go directly to the fleets overview page"); ovett[14] = tt_Dynamic("Click here to go directly to the research management page"); ovett[15] = tt_Dynamic("Click here to go directly to the money page"); ovett[16] = tt_Dynamic("Click here to go to the main page for this forum category"); ovett[17] = tt_Dynamic("Click here to go to this forum main page"); ovett[18] = tt_Dynamic("Click here to go to you alliance forums main page"); ovett[19] = tt_Dynamic("Click here to go to the maps page"); ovett[20] = tt_Dynamic("Click here to go to the universe overview page"); ovett[21] = tt_Dynamic("Click here to go to the ticks page"); ovett[22] = tt_Dynamic("Click here to go to the rankings page"); } function makeNextText(name) { return "Next " + name + ": "; } function makeTopicsText(tot, n) { if (tot == 0) return "empty forum"; var str = '' + formatNumber(tot) + ' topic' + (tot > 1 ? 's' : ''); if (n == 0) return str; str += ' (' + formatNumber(n) + ' unread)'; return str; } function drawShortOverview() { var str = ''; str += ''; str += ''; str += '

Empire

Universe

Messages

You have '; if (dFolders[0].nMsg > 0 && dFolders[1].nMsg > 0) { str += ''+formatNumber(dFolders[0].nMsg)+' external'; str += ' and '+formatNumber(dFolders[1].nMsg)+' internal messages'; } else if (dFolders[0].nMsg > 0) { str += ''+formatNumber(dFolders[0].nMsg)+' external message'; if (dFolders[0].nMsg > 1) str += 's'; } else if (dFolders[1].nMsg > 0) { str += ''+formatNumber(dFolders[1].nMsg)+' internal message'; if (dFolders[1].nMsg > 1) str += 's'; } else str += 'no new messages'; str += '.
Compose a message.

'; str += '

Planets

' + (protection == 0 ? '' : ( 'Under protection - ' + protection + ' day' + (protection > 1 ? 's' : '') + ' left (' + 'Break protection)
')) + 'Planets owned: ' + plOverview[0] + '
' + 'Total population: ' + formatNumber(plOverview[2]) + '
' + 'Total factories: ' + formatNumber(plOverview[4]) + '' + '

' str += '

Fleets

Total fleet power: '+formatNumber(flOverview[0])+'

'; str += '

Money

Daily Profit: €'+formatNumber(moOverview[2])+'

Forums

'; var i,j,k,a=new Array(); for (i=0;i1 ? 's' : ''))); a.push(''+name+': ' + j); }} if (aForums.length) { k = 0; for (j=0;j1 ? 's' : ''))); a.push('Alliance forums: ' + j); } str += a.join('
') + '

'; str += '

Planets

'+formatNumber(unOverview[0])+' planets

'; str += '

Next ticks

'; str += '

Rankings

General ranking: #'+formatNumber(rankings[2])+'
'; str += 'Round ranking: ' + (rankings[10] == '' ? 'N/A' : ('#' + formatNumber(rankings[10]))) + '

'; document.getElementById('overview').innerHTML = str; } function drawCompleteOverview() { var str = ''; str += ''; str += ''; str += '

Empire

Universe

Messages

'; var i,dfld = ['Inbox','Internal Transmissions','Outbox'],dcmd=['I','T','O']; for (i=0;i<3;i++) { str += ''+dfld[i]+': ' + formatNumber(dFolders[i].tMsg); str += ' message' + (dFolders[i].tMsg > 1 ? 's' : ''); if (dFolders[i].nMsg > 0) str += ' (' + formatNumber(dFolders[i].nMsg) + ' unread)'; str += '
'; } str += 'Compose a message.

'; str += '

Planets

' + (protection == 0 ? '' : ( 'Under protection - ' + protection + ' day' + (protection > 1 ? 's' : '') + ' left (' + 'Break protection)
')) + 'Planets owned: '+plOverview[0]+''; if (plOverview[0] > 0) { str += '
Average happiness: ' + plOverview[1] + '%
'; str += 'Average corruption: '+formatNumber(plOverview[9])+'%
'; str += 'Total population: '+formatNumber(plOverview[2])+' (avg. ' str += formatNumber(plOverview[3]) + ')
'; str += 'Total factories: '+formatNumber(plOverview[4])+' (avg. ' str += formatNumber(plOverview[5]) + ')
'; str += 'Total turrets: '+formatNumber(plOverview[6])+' (avg. ' str += formatNumber(plOverview[7]) + ')'; } str += '
More details...

'; str += '

Fleets

Total fleet power: '+formatNumber(flOverview[0])+'' if (flOverview[1] > 0) { str += '
' + formatNumber(flOverview[1]) + ' fleet' + (flOverview[1]>1?'s':''); if (flOverview[2] > 0) str += ' (' + formatNumber(flOverview[2]) + ' engaged in battle)'; } str += '
More details...

'; str += '

Research

'; if (nResearch == 0) str += 'Sorry, no new technology has been discovered at this time.'; else str += '' + nResearch + ' new technolog' + (nResearch > 1 ? 'ies have' : 'y has') + ' been discovered.'; str += '
More details...

'; str += '

Money

'; str += 'Income: €'+formatNumber(moOverview[0])+'
'; str += 'Fleet Upkeep: €'+formatNumber(moOverview[1])+'
'; str += 'Daily Profit: €'+formatNumber(moOverview[2])+'
'; str += 'More details...

Forums

'; var j,a=new Array(),s; for (i=0;i (view)'; for (j=0;j' + forums[j].name + ': '; s += makeTopicsText(forums[j].nTopics, forums[j].nUnread); } a.push(s); }} if (aForums.length) { s = 'Alliance Forums (view)'; for (j=0;j' + aForums[j].name + ': '; s += makeTopicsText(aForums[j].nTopics, aForums[j].nUnread); } a.push(s); } str += a.join('

') + '

'; str += '

Universe

'+formatNumber(unOverview[0])+' planets';// ('; str += /*formatNumber(unOverview[2]) + ' at the same prot. level)*/'
'; str += formatNumber(unOverview[1]) + ' systems occupied by nebulas
'; str += 'Maps - More details...

'; str += '

Next ticks

More details...

'; str += '

Rankings

General ranking: #'+formatNumber(rankings[2])+' ('+formatNumber(rankings[1])+' points)
'; str += 'Civilisation ranking: #'+formatNumber(rankings[4])+' ('+formatNumber(rankings[3])+' points)
'; str += 'Military ranking: #'+formatNumber(rankings[8])+' ('+formatNumber(rankings[7])+' points)
'; str += 'Financial ranking: #'+formatNumber(rankings[6])+' ('+formatNumber(rankings[5])+' points)
'; str += 'Inflicted damage ranking: #'+formatNumber(rankings[12])+' ('+formatNumber(rankings[11])+' points)
'; if (rankings[10] == '') str += 'You are too weak to be in the round rankings.'; else str += 'Round ranking: #' + formatNumber(rankings[10]) + ' ('+formatNumber(rankings[9])+' points)' str += '
More details...

'; document.getElementById('overview').innerHTML = str; } function getDaysText(p) { return "day" + (p?'s':''); } function confirmBreakProtection() { return confirm('You are about to break away from Peacekeeper protection.\n' + 'Anyone will be able to attack your planets afterwards.\n' + 'Please confirm.'); }