Why give the pins nice friendly names if you're not going to use them?
You attached your servo to pin 2, then you do this:-if (digitalRead(2) == HIGH)Is that really what you intended?
And in this, you forgot a pair of braces for the 'if' statement:-
if (digitalRead(2) == HIGH)
for (pos = 0; pos <= 180; pos += 1)
{
myservo.write(pos);
delay(15);
}
If you had hit Ctrl-T or >Tools >Auto format, this would have been immediately apparent.
Edit: Oh, and in future, please post your code, (in [code]code tags[/code]), rather than attaching it.