var mt_current=0;
var mt_clipwidth=0;

function mt_changeticker() {
    try {
    mt_crosstick.style.clip="rect(0px 0px auto 0px)";
    mt_crosstick.innerHTML=mt_contents[mt_current];
    mt_highlight();
    } catch(err) {
        //alert(err + ' 1');
    }
}

function mt_highlight(){
    try {
    var mt_msgwidth=mt_crosstick.offsetWidth;
    if (mt_clipwidth<mt_msgwidth) {
        mt_clipwidth+=mt_speed;
        mt_crosstick.style.clip="rect(0px "+mt_clipwidth+"px auto 0px)";
        mt_begin=setTimeout("mt_highlight()",20);
    } else {
        mt_clipwidth=0;
        if(typeof mt_begin != 'undefined') {
            clearTimeout(mt_begin);
        }
        if (mt_current==mt_contents.length-1) {
            mt_current=0;
        } else { 
            mt_current++;
        }
        setTimeout("mt_changeticker()",mt_delay);
    }
    } catch(err) {
        //alert(err + ' 2');
    }
}

function mt_start(){
    try {
    mt_crosstick=document.getElementById? document.getElementById("mt_spancontant") : document.all.mt_spancontant;
    mt_crosstickParent=mt_crosstick.parentNode? mt_crosstick.parentNode : mt_crosstick.parentElement;
    if (parseInt(mt_crosstick.offsetHeight)>0) {
        mt_crosstickParent.style.height=mt_crosstick.offsetHeight+'px';
    } else {
        setTimeout("mt_crosstickParent.style.height=mt_crosstick.offsetHeight+'px'",100); //delay for Mozilla's sake
    }
    mt_changeticker();
    } catch(err) {
        //alert(err + ' 3');
    }
}