Help Getting ESC to Work With Arduino

Hi, I have this ESC: http://www.hobbyking.com/hobbyking/store/__18966__Hobby_King_40A_ESC_4A_UBEC.html
and I am trying to run a brushless motor with it through an Arduino.

Using this code I am able to get it to run but I cannot get the motor to run continuously. It always starts up and then stops. I am pretty sure this is a problem with how I am programming the ESC, but I am not sure what I am doing wrong. Here is the data sheet for the ESC: http://www.hobbyking.com/hobbyking/store/uploads/633378252X7478X54.pdf

and here is the code

void setup()
{
  myservo.attach(9);
}


void loop()
{
  int val = myservo.read();
  if(val != 80)
  {
    for(pos = 0; pos < 80; pos += 5)
    {
	myservo.write(pos);
	delay(100);
    }
  }
  else
  {
    delay(100);
    myservo.write(val);
  }
}

I am not really sure how ESC code is supposed to work, so I’m not sure if I should be rewriting the value of the ESC every time or not. It seems as if the code always goes through the first if statement as the motor runs for a little bit, stops, then runs for a little bit, stops, etc.

Also, just in case this matters, I am using this motor:http://www.hobbyking.com/hobbyking/store/__12920__D2826_10_1400kv_Brushless_Motor.html
and this Lipo:http://www.hobbyking.com/hobbyking/store/uh_viewItem.asp?idProduct=9272

Any help I could get would be greatly appreciated.
Thanks

ESCs are generally contrilled just like servos, and may require an arming sequence. Below are previous postings concerning ESCs.

https://www.google.com/search?hl=en&as_q=esc&as_epq=&as_oq=&as_eq=&as_nlo=&as_nhi=&lr=&cr=&as_qdr=all&as_sitesearch=http%3A%2F%2Farduino.cc%2Fforum%2F&as_occt=any&safe=off&tbs=&as_filetype=&as_rights=