var ap_instances = new Array(); function ap_stopAll(playerID) { for(var i = 0;i