Resource Allocation in Adaptive Parallel Relay Networks