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: ["&quot;We have excellent people who efficiently understand our clients' needs&quot;<br/><b>Peter Taaffe&nbsp;&nbsp;&nbsp;</b>",
		 "&quot;Always available when we needed them and flexible and understanding<br/>of our needs throughout&quot; <b>Another Satisfied Client&nbsp;&nbsp;&nbsp;</b>",
		 "&quot;I use BWMacfarlane for their pro-active service and great value for money&quot;<br/><b>Another Satisfied Client&nbsp;&nbsp;&nbsp;</b>",
		"&quot;Once again first class advice on my personal and business tax issues&quot;<br/><b>Another Satisfied Client&nbsp;&nbsp;&nbsp;</b>",
		"&quot;I am happy to leave all correspondence in your more than capable hands&quot;<br/><b>Another Satisfied Client&nbsp;&nbsp;&nbsp;</b>",
		"&quot;Always interested in keeping us up to date through training&quot;<br/><b>Another Satisfied Client&nbsp;&nbsp;&nbsp;</b>",
		"&quot;A special thanks to Debbie who has taken really good care<br/>of us and helped a lot with UK financial rules.&quot;<br/><b>Another Satisfied Client&nbsp;&nbsp;&nbsp;</b>",
		"&quot;I am very satisfied with the work that you have done.&quot;<br/><b>Another Satisfied Client&nbsp;&nbsp;&nbsp;</b>",
		"&quot;The partnership with BWMacfarlane is one that we not only value but enjoy.&quot;<br/><b>Another Satisfied Client&nbsp;&nbsp;&nbsp;</b>"
],
authors: [


],
restaurants: [
"Burger King",
"McDonalds",
"Taco Bell",
"Wendy's"
]
};

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]), 2000);
return;
}
setOpacity(el, v);
setTimeout(bundleFunction(null, unfadeText, [el, tg]), 10);
}

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);
};
}
