/**
* message ticker
* Copyright (C) 2011 www.gopiplus.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
var mt_current=0
var mt_clipwidth=0
function mt_changeticker(){
mt_crosstick.style.clip="rect(0px 0px auto 0px)"
mt_crosstick.innerHTML=mt_contents[mt_current]
mt_highlight()
}
function mt_highlight(){
var mt_msgwidth=mt_crosstick.offsetWidth
if (mt_clipwidth0)
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()
}