Problem is that it is only valid on 18F.

Is there any specific reason why you want to use multiple OSC speed at runtime?