var Slogan = {
    lines: [
      'We really do care!',
'Placement with good employers.', 
'Payment for hours worked.', 
'Furnished accommodation for overseas placements.',
'Pre-employment training & orientation with free food and accommodation ',
'Pick up and drop off on farm ready to go.',
'Farm visits to see how it is going and set goals.',
'Training and social days.',
'Get off to the right start!'

    ],

	current: 0,

    timeout: function(func, millis) {
      window.setTimeout(func, millis);
    },

    delayedAppear: function() {
      window.setTimeout(Slogan.appear, 200);
    },

    appear: function() {
      $('main-rotate_text').innerHTML = Slogan.lines[Slogan.current % Slogan.lines.length];
      Slogan.current += 1;
      new Effect.Appear('main-rotate_between', { afterFinish: Slogan.delayedFade });
    },

    delayedFade: function() {
     
        window.setTimeout(Slogan.fade, 3500);
     },

    fade: function() {
      new Effect.Fade('main-rotate_between', { afterFinish: Slogan.delayedAppear });
    },

    start: function() {
      Slogan.delayedAppear();
    }
  }