// Orbit function Orbit_drawFleetSummary() {with(this){ var f = new Array(document.getElementById('fsum1'), document.getElementById('fsum2'), document.getElementById('fsum3'), document.getElementById('fsum4')); var i = 1; if ( fleets[1] == '0' && fleets[2] == '0' && fleets[3] == '0' || fleets[1] == '' && fleets[2] == '' && fleets[3] == '') { f[0].innerHTML = f[1].innerHTML = f[2].innerHTML = f[3].innerHTML = ' '; return; } var ff, ef, ffs, efs; if (fleets[0] == '0') { f[0].innerHTML = 'Local fleets'; ff = 'Defending'; ef = 'Attacking'; ffs = fleets[2]; efs = fleets[3]; } else { ff = 'Friendly'; ef = 'Enemy'; if (fleets[0] == '1') { if (fleets[3] == '0') f[0].innerHTML = 'Fleets standing by'; else f[0].innerHTML = 'Defending the planet'; ffs = fleets[2]; efs = fleets[3]; } else { f[0].innerHTML = 'Attacking the planet'; ffs = fleets[3]; efs = fleets[2]; } } if (fleets[1] != '0') { f[i].innerHTML = 'Own fleet power: ' + formatNumber(fleets[1]) + ''; i++; } if (efs != '0') { f[i].innerHTML = '' + ff + ' fleet power: ' + formatNumber(efs) + ''; i++; } if (ffs != '0') f[i].innerHTML = ''+ef+' fleet power: ' + formatNumber(ffs) + ''; }} // Nebula function Nebula_drawLayout() { var str; document.getElementById('plactions').innerHTML = 'Send Fleets - Centre Map'; document.getElementById('pimg').innerHTML = ''; document.getElementById('plname').innerHTML = 'Nebula ' + this.orbit.name; str = '
Coordinates: ('+this.orbit.drawCoords()+') | '; str += '|||
Opacity: '+this.opacity+' | '; str += '|||
Coordinates: ('+this.orbit.drawCoords()+') | '; str += '|||
Opacity: 1 | '; str += '|||
'; str += ' | Coordinates: ('+this.orbit.drawCoords()+') | '; str += ''; str += ' | '; str += ' | '; str += ' |
'; str += ' | Alliance: | '; str += ''; str += ' | '; str += ' | '; str += ' |
'; str += ' | Population: | '; str += ''; str += ' | '; str += ' | '; str += ' |
'; str += ' | Turrets: | '; str += ''; str += ' | '; str += ' | |
Status: | '; str += ''; str += ' |
No fleets are available.
'; else {with(orbit.spec.sellForm){ var str; str = 'Name | G.A. Ships | ' + 'Fighters | Cruisers | Battle Cruisers | ' + 'Power | ' + fleets[i][6] + ' | ' + formatNumber(fleets[i][1]) + ' | ' + formatNumber(fleets[i][2]) + ' | ' + formatNumber(fleets[i][3]) + ' | ' + formatNumber(fleets[i][4]) + ' | ' + formatNumber(fleets[i][5]) + ' | '; str += '
---|