function rotateText(el, textGroup) {
setOpacity(el, 0);
var t = rotateText.texts[textGroup];
var t = t[Math.floor(Math.random() * (t.length - 1))];
el.innerHTML = t;
unfadeText(el, textGroup);
}
rotateText.texts = {
quotes: [
"<blockquote>Our re-designed site provides our users with a more professional impression of our business and helps us to greatly improve our conversion of visitors into buyers.</blockquote><p class=\"credit\">Steve Yeomans - Midlands Fly-Fishing</p>",


"<blockquote>These guys do it right, my site not only looks and works great, it\'s also number 1 on Google for my business\'s search terms.</blockquote><p class=\"credit\">Gary Chell - Motion Networks</p>",


"<blockquote>As a retailer I knew the future of trading was Web based, I just didn't expect it to be this good!</blockquote><p class=\"credit\">Tim Riches - Tim\'s Tickers</p>",


"<blockquote>All of the websites look fantastic, you\'ve really managed to present the Motiva brand in a first-class light.</blockquote><p class=\"credit\">Peter Davenport - Motiva Group</p>",

"<blockquote>These guys do it right, my site not only looks and works great, it\'s also number 1 on Google for my business\'s search terms.</blockquote><p class=\"credit\">Gary Chell - Motion Networks</p>",


"<blockquote>As a retailer I knew the future of trading was Web based, I just didn't expect it to be this fruitful!</blockquote><p class=\"credit\">Tim Riches - Tim\'s Tickers</p>",

]
};

function setOpacity(el, value) {
el.style.opacity = value / 100;
el.style.filter = "alpha(opacity=" + value + ")";
}

function unfadeText(el, tg) {
var v = el.style.opacity * 100 + 1;
if(v > 100) {
setOpacity(el, 100);
setTimeout(bundleFunction(null, fadeText, [el, tg]), 9000);
return;
}
setOpacity(el, v);
setTimeout(bundleFunction(null, unfadeText, [el, tg]), 5);
}

function fadeText(el, tg) {
var v = el.style.opacity * 100 - 1;
if(v < 0) {
setOpacity(el, 0);
rotateText(el, tg);
//or... setTimeout(bundleFunction(null, rotateText, [el, tg]), NUMBER);
return;
}
setOpacity(el, v);
setTimeout(bundleFunction(null, fadeText, [el, tg]), 10);
}

function bundleFunction(context, func, args) {
context = context || null;
if(typeof func == "string" && context)
func = context[func];
if(!args)
args = [];
else if(!(args instanceof Array))
args = [args];
return function() {
return func.apply(context, args);
};
}