
function rotateQuotes() {
  var q = rotateQuotes.quotes;
  q = q[Math.floor(Math.random() * q.length)];
  var tr = document.getElementById("textrotator_large");
  var uf = unfade(tr, 10, 1, 0);
  tr.innerHTML = q;
  new TimeoutChainer({
    callback: function() {
      var f = fade(tr, 10, 1);
      new TimeoutChainer({
        callback: rotateQuotes,
        runAfter: f
      });
    },
    delay: 5000,
    runAfter: uf
  });
}

rotateQuotes.quotes = [

  	"<img src='/images/rotators/large/1.jpg' width='450' height='275'>",
  	"<img src='/images/rotators/large/2.jpg' width='450' height='275'>",
  	"<img src='/images/rotators/large/3.jpg' width='450' height='275'>",
  	"<img src='/images/rotators/large/4.jpg' width='450' height='275'>",
  	"<img src='/images/rotators/large/5.jpg' width='450' height='275'>",
	"<img src='/images/rotators/large/6.jpg' width='450' height='275'>",
	"<img src='/images/rotators/large/7.jpg' width='450' height='275'>",
	"<img src='/images/rotators/large/8.jpg' width='450' height='275'>",
	"<img src='/images/rotators/large/9.jpg' width='450' height='275'>",
	"<img src='/images/rotators/large/10.jpg' width='450' height='275'>",
	"<img src='/images/rotators/large/11.jpg' width='450' height='275'>"
  
];

rotateQuotes();

