var MethodMsgsElm;
var MethodMsgsIndex;

function MethodMsgsStart() {
    var id='xmethod';
    if (document.all)  {
        MethodMsgsElm = document.all(id);
    } else if (document.getElementById) {
        MethodMsgsElm = document.getElementById(id);
    } else if (document.layers) {
        MethodMsgsElm = document.layers[id];
    }
    if (MethodMsgsElm) {
        ta2008_timer = window.setInterval(MethodMsgsChange,5000);
    }
}



function MethodMsgsChange() {
    var newpos = Math.round(Math.random()*(MethodMsgs.length-1));
    while (newpos == MethodMsgsIndex) {
            var newpos = Math.round(Math.random()*(MethodMsgs.length-1));
    }
    MethodMsgsIndex = newpos;
    while (MethodMsgsElm.firstChild) {
        MethodMsgsElm.removeChild(MethodMsgsElm.firstChild);
    }
    var text = '&#8222;'+MethodMsgs[MethodMsgsIndex]+'&#8220;';
    /* var text = MethodMsgs[MethodMsgsIndex]; */
	MethodMsgsElm.innerHTML = text;
}

addEvent(window, 'load', MethodMsgsStart);
