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;More than a teacher, more than a coach, Danziger is an alchemist - Relax & Write&#153; helps you discover your unique blend of talent, tenacity, and lo and behold, maybe just a touch of genius.&quot; <br><br>-- Beverly Kopf, writer, The View",

"&quot;After sixteen years of steady work as a screenwriter, with Maia's help I feel that I am at last beginning to listen to a voice within me that has been quiet for too long, and to give that voice a place in my writing.&quot; <br><br>-- Susan Shilliday, Screenwriter, A Wrinkle in Time, Legends of The Fall, I Dreamed of Africa, thirtysomething ",

"&quot;Maia Danziger is a true pioneer. Her Relax & Write&#153; method takes writers down into their bones where the best writing and creativity come from. I've attended her workshops and been blown away by the quality of work -- even from relative novices.&quot; <br><br>-- Anne Taylor Fleming, journalist and novelist",

"&quot;Relax & Write&#153; is miraculous. With Maia's help writing has become a joy. I can write without effort, and with no sense of obligation. Without the warmth and insight of her teaching, I would have remained blocked for years.&quot; <br><br> -- Lindsay Crouse, Acadmey Award&#153; Nominated actress"
]
};

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]), 8000);
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);
};
}