fns=null;
gns=null;
function rollnews()
{
if(gns) {clearTimeout(gns);}
news.style.visibility='hidden';hclip=0;
news.innerHTML=nmsg[ncurr];

eval('news.style.clip="rect(0px,200px,'+hclip+'px,0px)"');

eval('news.style.top="'+ntop+'"');
eval('news.style.left="'+nleft+'"');

hclip=0;
news.style.visibility='visible';
gns=setTimeout('glidenews()',12);
}


function glidenews()
{
newstop=parseInt(news.style.top.substr(0,news.style.top.length-2));
newstop+=(topnfin-newstop)/16.;

hclip+=(140-hclip)/8.;
if(hclip>136){
  hclip=140;}
eval('news.style.top="'+newstop+'px"');
eval('news.style.clip="rect(0px,'+hclip+'px,200px,0px)"');
if(newstop>(topnfin+1)) {
gns=setTimeout('glidenews()',2);}
else {
fns=setTimeout('fadenews()',6400);
}

}

function fadenews()
{
if(fns) {clearTimeout(fns);}
news.style.visibility='visible';hclip=0;
eval('news.style.clip="rect(0px,200px,'+hclip+'px,0px)"');

hclip=200;

news.style.visibility='visible';
fns=setTimeout('slideupnews()',12);
}


function slideupnews()
{
newstop=parseInt(news.style.top.substr(0,news.style.top.length-2));
newstop+=(topup-newstop)/128.;

hclip+=(0-hclip)/24.;
if(hclip<1){
  hclip=0;}
eval('news.style.top="'+newstop+'px"');
if(eng) {
hclp=200-hclip;
eval('news.style.clip="rect(0px,200px,200px,'+hclp+'px)"');}
else {
eval('news.style.clip="rect(0px,'+hclip+'px,200px,0px)"');}
if(newstop>(topup+2)) {
fns=setTimeout('slideupnews()',2);}
else {
hclp=200-hclip;
eval('news.style.clip="rect(0px,200px,200px,'+hclp+'px)"');
gns=setTimeout('rollnews()',1400);
ncurr+=1;
if(ncurr>nmsgs) {
ncurr=1;}
}
}

function getNewsLocs(logon,nwidth,nheight)
{
 var curr=logon;
    nleft=0;
    ntop=0;
     while(curr.tagName!="BODY"){
      nleft+=curr.offsetLeft;
      ntop+=curr.offsetTop;
      curr=curr.offsetParent;
      }
     topnfin=ntop+236;
     topup=ntop+28;
     ntop+=366;
     nleft-=24;          

}


