javascript:var colors = new Array(); /*0 = name of color 1 = territory count 2 = troop count 3 = territory bonus */ colors[0] = new Array(); colors[0][0] = "Green"; colors[0][1] = 0; colors[0][2] = 0; colors[0][3] = 0; colors[1] = new Array(); colors[1][0] = "Blue"; colors[1][1] = 0; colors[1][2] = 0; colors[1][3] = 0; colors[2] = new Array(); colors[2][0] = "Yellow"; colors[2][1] = 0; colors[2][2] = 0; colors[2][3] = 0; colors[3] = new Array(); colors[3][0] = "Brown"; colors[3][1] = 0; colors[3][2] = 0; colors[3][3] = 0; colors[4] = new Array(); colors[4][0] = "Red"; colors[4][1] = 0; colors[4][2] = 0; colors[4][3] = 0; colors[5] = new Array(); colors[5][0] = "Black"; colors[5][1] = 0; colors[5][2] = 0; colors[5][3] = 0; spans=document.getElementsByTagName("span"); next=document.getElementById("next"); for(c = 0; c<=(spans.length-1); c++){ if (spans[c].className == 'gre'){ colors[0][1]++; colors[0][2] += parseInt(spans[c].innerHTML) }else if (spans[c].className == 'blu'){ colors[1][1]++; colors[1][2] += parseInt(spans[c].innerHTML) }else if (spans[c].className == 'yel'){ colors[2][1]++; colors[2][2] += parseInt(spans[c].innerHTML) }else if (spans[c].className == 'bro'){ colors[3][1]++; colors[3][2] += parseInt(spans[c].innerHTML) }else if (spans[c].className == 'red'){ colors[4][1]++; colors[4][2] += parseInt(spans[c].innerHTML) }else if (spans[c].className == 'bla'){ colors[5][1]++; colors[5][2] += parseInt(spans[c].innerHTML) } }; /* North America */ nacolor = document.getElementById('sl01').className; na = true; for(i = '1'; i<=9; i++){ if (nacolor != document.getElementById("sl0"+i).className){ na = false; break; } } if (na == true){ if (nacolor == 'gre'){ colors[0][3] += 5; }else if (nacolor == 'blu'){ colors[1][3] += 5; }else if (nacolor == 'yel'){ colors[2][3] += 5; }else if (nacolor == 'bro'){ colors[3][3] += 5; }else if (nacolor == 'red'){ colors[4][3] += 5; }else if (nacolor == 'bla'){ colors[5][3] += 5; } } /* South America */ sacolor = document.getElementById('sl10').className; sa = true; for(i = '10'; i<=13; i++){ if (sacolor != document.getElementById("sl"+i).className){ sa = false; break; } } if (sa == true){ if (sacolor == 'gre'){ colors[0][3] += 2; }else if (sacolor == 'blu'){ colors[1][3] += 2; }else if (sacolor == 'yel'){ colors[2][3] += 2; }else if (sacolor == 'bro'){ colors[3][3] += 2; }else if (sacolor == 'red'){ colors[4][3] += 2; }else if (sacolor == 'bla'){ colors[5][3] += 2; } } /* Europe */ ecolor = document.getElementById('sl14').className; ea = true; for(i = '14'; i<=20; i++){ if (ecolor != document.getElementById("sl"+i).className){ ea = false; break; } } if (ea == true){ if (ecolor == 'gre'){ colors[0][3] += 5; }else if (ecolor == 'blu'){ colors[1][3] += 5; }else if (ecolor == 'yel'){ colors[2][3] += 5; }else if (ecolor == 'bro'){ colors[3][3] += 5; }else if (ecolor == 'red'){ colors[4][3] += 5; }else if (ecolor == 'bla'){ colors[5][3] += 5; } } /* Africa */ afcolor = document.getElementById('sl21').className; af = true; for(i = '21'; i<=26; i++){ if (afcolor != document.getElementById("sl"+i).className){ af = false; break; } } if (af == true){ if (afcolor == 'gre'){ colors[0][3] += 3; }else if (afcolor == 'blu'){ colors[1][3] += 3; }else if (afcolor == 'yel'){ colors[2][3] += 3; }else if (afcolor == 'bro'){ colors[3][3] += 3; }else if (afcolor == 'red'){ colors[4][3] += 3; }else if (afcolor == 'bla'){ colors[5][3] += 3; } } /* Asia */ ascolor = document.getElementById('sl27').className; asi = true; for(i = '27'; i<=38; i++){ if (ascolor != document.getElementById("sl"+i).className){ asi = false; break; } } if (asi == true){ if (ascolor == 'gre'){ colors[0][3] += 7; }else if (ascolor == 'blu'){ colors[1][3] += 7; }else if (ascolor == 'yel'){ colors[2][3] += 7; }else if (ascolor == 'bro'){ colors[3][3] += 7; }else if (ascolor == 'red'){ colors[4][3] += 7; }else if (ascolor == 'bla'){ colors[5][3] += 7; } } /* Australia */ aucolor = document.getElementById('sl39').className; au = true; for(i = '39'; i<=42; i++){ if (aucolor != document.getElementById("sl"+i).className){ au = false; break; } } if (au == true){ if (aucolor == 'gre'){ colors[0][3] += 2; }else if (aucolor == 'blu'){ colors[1][3] += 2; }else if (aucolor == 'yel'){ colors[2][3] += 2; }else if (aucolor == 'bro'){ colors[3][3] += 2; }else if (aucolor == 'red'){ colors[4][3] += 2; }else if (aucolor == 'bla'){ colors[5][3] += 2; } } var riskinfo=window.open('',"RiskAnalysis - I'm a super.com",'height=400,width=650'); riskinfo.document.write("RiskAnalysis V1.0 - I'm a super.com

RiskAnalysis V1.0

This script will evaluate each nations holdings and provide you statistics as you evaluate your next move.

"); for (x in colors){ if(colors[x][1]>0){ mintroops = Math.floor(colors[x][1] / 3); if (mintroops < 3){ mintroops = 3; }; mintroops += colors[x][3]; if (colors[x][0] == 'Yellow'){mycolor = 'black';}else{mycolor = 'white'}; wtrade = Math.floor(mintroops)+parseInt(next.innerHTML); riskinfo.document.write("" + colors[x][0] + " has " + colors[x][2] + " troops in " + colors[x][1] + " territories, + " + colors[x][3] + " for continents. Next turn: " + mintroops + ". w/ trade: " + wtrade + ""); riskinfo.document.write("
"); }; }; riskinfo.document.write("
# of CardsProbability of having a Risk Set
342.3%
481.7%
5100% - Trade required
"); riskinfo.document.write("
For Updates navigate to I'm a super.com
");