function onerror() {
    document.location.href = "javascript:";
}
if (window.focus) {
                       self.focus();
                      };
var doc;
var doctop;
var speed=100;
var movespeed=10;
var topdiv="boxdiv";
var scrolltext="scrolldiv";
var divpos="divpos";
var scrollauto=0;
 var totnews=0;
var n=0;
var timstart;
if (is.ns6) {
doc="";
sty=".style";  }  else {
if (is.ie4 ) {vleft="pixelLeft";
vtop="pixelTop";hgt="pixelHeight";} else {
vtop="top";hgt="height";
sho="visible";
}; };

if(is.ns4) {
    doc = "document.layers['"+topdiv+"'].document.layers['"+scrolltext+"']";
    doctop = "document.layers['"+topdiv+"']";
    sty = "";
  vtop="top";hgt="document.height";

} else if(is.ie4 ) {
doc="document.all['"+scrolltext+"']";
 doctop = "document.all['"+topdiv+"']";
     sty = ".style";
    htm = "";
vtop="pixelTop";
hgt="pixelHeight";

};
 var def=0;
var newtim;
var loaded=0;
var docheight=304;
var ctheight=0;
var dheight=0;
var stopval=0;
var lheight=0;
function deplace(y) {
    var ofset=y*movespeed;
    var clipset=-ofset;
    if (is.ns4 || is.ie4) {
    if ( (y==1 && eval(doc+sty+'.'+vtop)<=0 ) || (y==-1 && eval(doc+sty+'.'+vtop)>lheight ) )
    {eval(doc+sty+'.'+vtop+'+='+ofset);newtim=setTimeout('deplace('+y+')',speed);

    }  else {  stop();};}
    else {  doc=document.getElementById(scrolltext);

    if ( (y==1 && parseInt(doc.style.top)<=0 ) || (y==-1 && parseInt(doc.style.top)>lheight ) )
    {doc.style.top=parseInt(doc.style.top)+ofset; newtim=setTimeout('deplace('+y+')',speed);
   } else {stop();};
    };
}

function start(y)
{if (loaded==1 && stopval==0) {
newtim=setTimeout('deplace('+y+')',speed);stopval=1;};
}

function stop()
{ clearTimeout(newtim);stopval=0;if (scrollauto==1) {timstart=setTimeout('defilauto()',5000); } ;};




 var origWidth;
 var origHeight;
function repost()
{if (is.ns4 ) {if  (innerWidth != origWidth || innerHeight != origHeight) {
               origWidth = innerWidth;
               origHeight = innerHeight;
              location.reload();};} else {if (loaded==1) {inidiv();};};};
if (is.ns6)
{  window.addEventListener=("resize",repost,false);}
else {window.onresize=repost;};


function getinit(topdiv,divscroll)
{


if (is.ns4 ) {vtop="top";
 docscroll = "document.layers['"+topdiv+"'].document.layers['"+divscroll+"']";
  doctop = "document.layers['"+topdiv+"']";

 ctheight=parseInt(eval(docscroll+'.clip.bottom'))-parseInt(eval(docscroll+'.clip.top'));
docheight=parseInt(eval(doctop+'.clip.bottom'))-parseInt(eval(doctop+'.clip.top'));
lheight=docheight-ctheight;
}
else if (is.ie4    ) {inidiv(topdiv,"divpos",0,0);
vtop="pixelTop";
sty1=".style";
docscroll="document.all['"+divscroll+"']";
doctop = "document.all['"+topdiv+"']";
docheight=eval(docscroll+'.offsetHeight');
ctheight=eval(doctop+'.offsetHeight'); lheight=-docheight+ctheight; }
else if (is.ns6 || is.ie5 ) {inidiv(topdiv,"divpos",0,0);
docscroll=document.getElementById(divscroll);
doctop=document.getElementById(topdiv);
docheight=parseInt(docscroll.offsetHeight);
ctheight=parseInt(doctop.offsetHeight);
lheight=-docheight+ctheight; };

fshow(topdiv);
gard="";
if (!is.ns4){
fshow(divscroll);
gard="";    };
}

    function gotop()
 {if (is.ns6 || is.ie5) {doc.style.top=doctop.style.top;} else {
 if (is.ns4) {eval(doc+'.pageY='+doctop+'.clip.top'); } else {eval(doc+sty+'.'+vtop+'='+doctop+sty+'.'+vtop);};inidiv();};
 };