function rotateText9(el9, textGroup9, cnt9) {
  setOpacity(el9, 0);
  var t9 = rotateText9.texts[textGroup9];
  if (cnt9 == t9.length) {
		cnt9 = 0
  }
  //var t = t[Math.floor(Math.random() * (t.length - 1))];
  var t9 = t9[cnt9];
  cnt9 = cnt9 + 1; 
  
  el9.innerHTML = '' + t9;
  unfadeText(el9, textGroup9, cnt9);
}
rotateText9.texts = {
  FortuneCookieWisdom: [
	"The expedient thing and the right thing are seldom the same thing.",
	"Real courage is moving forward when the outcome is uncertain.",
	"Man's mind is not a container to be filled but rather a fire to be kindled.",
	"Use your head, but live in your heart.",
	"The attitude within is more important than the circumstances without.",
	"The odds of hitting your target go up dramatically when you aim at it.",
	"The most difficult lessons are those with the greatest rewards.",
	"Well-arranged time is the surest sign of a well-arranged mind.",
	"Treasure your good memories and you need not worry about ending a banquet.",
	"Love is like war easy to begin but hard to stop.",
	"In order to capture a city, first capture the heart of the people.",
	"Sharing little joys offers great hope to others.",
	"The mystical is not how the world is, but that it is.",
	"It's always worth taking the trouble to praise people.",
	"Trust yourself you know more than you think.",
	"If at first you don't succeed. Try something harder.",
	"Self confidence is just enthusiasm at work.",
	"Those around you are attracted to you.",
	"If strength were all, tiger would not fear scorpion.",
	"Your future is whatever you make of it, so make it a good one."

	
	
  ]
};

function setOpacity(el9, value9) {
  el9.style.opacity = value9 / 100;
  el9.style.filter = "alpha(opacity=" + value9 + ")";
}

function unfadeText(el9, tg9, cnt9) {
  var v9 = el9.style.opacity * 100 + 1;
  if(v9 > 100) {
    setOpacity(el9, 100);
    setTimeout(bundleFunction(null, fadeText, [el9, tg9, cnt9]), 5000);
    return;
  }
  setOpacity(el9, v9);
  setTimeout(bundleFunction(null, unfadeText, [el9, tg9, cnt9]), 10);
}

function fadeText(el9, tg9, cnt9) {
  var v9 = el9.style.opacity * 100 - 1;
  if(v9 < 0) {
    setOpacity(el9, 0);
    rotateText9(el9, tg9, cnt9);
    //or... setTimeout(bundleFunction(null, rotateText9, [el, tg]), NUMBER);
    return;
  }
  setOpacity(el9, v9);
  setTimeout(bundleFunction(null, fadeText, [el9, tg9, cnt9]), 10);
}

function bundleFunction(context9, func9, args9) {
  context9 = context9 || null;
  if(typeof func9 == "string" && context9)
    func9 = context9[func9];
  if(!args9)
    args9 = [];
  else if(!(args9 instanceof Array))
    args9 = [args9];
  return function() {
    return func9.apply(context9, args9);
  };
}