var Slogan = {
    lines: [
      '&ldquo;I am happy to thoroughly recommend the Principals\' Digests to principals and senior managers of schools. It provides inspiration, guidance, sparky ideas, and a great amount of received wisdom, which enable leaders of schools to step out from the crowd and deliver a top quality education for their students.&rdquo;',
      '&ldquo;I would like to take this opportunity to tell you how much I appreciate Principals\' Digests. There is always an article that makes me think or clarifies something I have been thinking about. Of all the professional reading that comes across my desk I look to the Digests first!&rdquo;',
      '&ldquo;You are doing a fantastic job and I frequently circulate a pertinent paper to staff or reprint (with acknowledgement) advice and guidance for parents in our newsletter. Thank you!&rdquo;',
	  '&ldquo;Thanks for another year of excellent articles and economical use of my limited reading time. Keep up the good work.&rdquo;',
	  '&ldquo;I always enjoy the arrival of the Principals\' Digests. I rely on them for new ideas for school occasions, inspiration for staff meetings and new material for the weekly school newsletter.&rdquo;'
    ],

	current: 0,

    timeout: function(func, millis) {
      window.setTimeout(func, millis);
    },

    delayedAppear: function() {
      window.setTimeout(Slogan.appear, 200);
    },

    appear: function() {
      $('splash_text').innerHTML = Slogan.lines[Slogan.current % Slogan.lines.length];
      Slogan.current += 1;
      new Effect.Appear('splash_between', { afterFinish: Slogan.delayedFade });
    },

    delayedFade: function() {
      if (Slogan.current<5)
      {
        window.setTimeout(Slogan.fade, 3500);
      }
	  if (Slogan.current>=5)
      {
        window.setTimeout(Slogan.fade, 3500);
		Slogan.current = 0;
      }
    },

    fade: function() {
      new Effect.Fade('splash_between', { afterFinish: Slogan.delayedAppear });
    },

    start: function() {
      Slogan.delayedAppear();
    }
  }