function array_greatest(array) { var bigshot = -infinity; var bigshotat = -1; var i; for (i=0; i