var Slogan = {
    lines: [
      '&ldquo;I had heard good things about Greener Horizons, so decided to give them a go&rdquo;, says 1200 cow Southland dairy farmer John Ellis.',
      '&ldquo;After taking on one of their guys, it worked out so well; we decided to take on 2 more. We’re very happy with the results&rdquo;',
      '&ldquo;We like the way Greener Horizons people help us with everything from performance reviews and staff appraisals – its great having a third party keep us on track. I’m convinced that we are better employers as a result&rdquo;',
	  '&ldquo;We found your placement a very pleasant and capable worker. He has picked up lots of things very quickly much to our advantage. He is a delight to work with and has an amazing happy nature which we all much enjoy as well as his sense of humour.&rdquo;'
    ],

	current: 0,

    timeout: function(func, millis) {
      window.setTimeout(func, millis);
    },

    delayedAppear: function() {
      window.setTimeout(Slogan.appear, 200);
    },

    appear: function() {
      $('employer-rotate_text').innerHTML = Slogan.lines[Slogan.current % Slogan.lines.length];
      Slogan.current += 1;
      new Effect.Appear('employer-rotate_between', { afterFinish: Slogan.delayedFade });
    },

    delayedFade: function() {
      if (Slogan.current<5)
      {
        window.setTimeout(Slogan.fade, 13000);
      }
	  if (Slogan.current>=5)
      {
        window.setTimeout(Slogan.fade, 13000);
		Slogan.current = 0;
      }
    },

    fade: function() {
      new Effect.Fade('employer-rotate_between', { afterFinish: Slogan.delayedAppear });
    },

    start: function() {
      Slogan.delayedAppear();
    }
  }