Withdrawal of magnesium causes vasospasm while elevated magnesium produces relaxation of tone in cerebral arteries