function reloadPage(init) {
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.pgW=innerWidth; document.pgH=innerHeight; onresize=reloadPage; }}
else if (innerWidth!=document.pgW || innerHeight!=document.pgH) location.reload();
}
reloadPage(true);
function checkBrowser(){
this.ver=navigator.appVersion;
this.dom=document.getElementById?1:0;
this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
this.ie4=(document.all && !this.dom)?1:0;
this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
this.ns4=(document.layers && !this.dom)?1:0;
this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5);
return this;
}
bw=new checkBrowser()
lstart=150;
loop=true;
speed=100;
pr_step=3;
ticker = 0;
function FIND(item) {
if( window.mmIsOpera ) return(document.getElementById(item));
if (document.all) return(document.all[item]);
if (document.getElementById) return(document.getElementById(item));
return(false);
}
function moveXbySlicePos (x, img) {
if (!document.layers) {
var onWindows = navigator.platform ? navigator.platform == "Win32" : false;
var par = img;
var lastOffset = 0;
while(par){
if( par.leftMargin && ! onWindows ) x += parseInt(par.leftMargin);
if( (par.offsetLeft != lastOffset) && par.offsetLeft ) x += parseInt(par.offsetLeft);
if( par.offsetLeft != 0 ) lastOffset = par.offsetLeft;
par = par.offsetParent;
}
} else if (img.x) x += img.x;
return x;
}
function moveYbySlicePos (y, img) {
if(!document.layers) {
var onWindows = navigator.platform ? navigator.platform == "Win32" : false;
var par = img;
var lastOffset = 0;
while(par){
if( par.topMargin && !onWindows ) y += parseInt(par.topMargin);
if( (par.offsetTop != lastOffset) && par.offsetTop ) y += parseInt(par.offsetTop);
if( par.offsetTop != 0 ) lastOffset = par.offsetTop;
par = par.offsetParent;
}
} else if (img.y >= 0) y += img.y;
return y;
}
function makeObj(obj,nest){
nest=(!nest) ? '':'document.'+nest+'.';
this.el=bw.dom?document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?eval(nest+'document.'+obj):0;
this.css=bw.dom?document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?eval(nest+'document.'+obj):0;
this.scrollHeight=bw.ns4?this.css.document.height:this.el.offsetHeight;
this.newsScroll=newsScroll;
this.moveIt=b_moveIt; this.x; this.y;
this.obj = obj + "Object";
eval(this.obj + "=this");
return this;
}
function b_moveIt(x,y){
this.x=x;this.y=y;
this.css.left=this.x;
this.css.top=this.y;
}
var top_position = lstart;
var scrollTimer;
var oNewsScroll;
function newsScroll(sp){
window.clearTimeout(scrollTimer);
if(top_position>-this.scrollHeight-50) {
top_position = top_position - pr_step;
this.moveIt(0,top_position);
scrollTimer = window.setTimeout(this.obj+".newsScroll("+speed+")",sp);
} else if(loop) {
top_position = lstart;
this.moveIt(0,lstart);
eval(this.obj+".newsScroll("+speed+")");
}
}
function newsScrollInit(){
oNewsCont=new makeObj('divNewsCont');
oNewsScroll=new makeObj('divNewsText','divNewsCont');
oNewsScroll.moveIt(0,lstart);
oNewsCont.css.visibility='visible';
oNewsScroll.newsScroll(speed);
}
function makeScroller(imgname, xoff, yoff, h, w) {
var obj = FIND(imgname) || document.images[imgname] || document.links[imgname] || document.anchors[imgname];
x = moveXbySlicePos (xoff, obj);
y = moveYbySlicePos (yoff, obj);
document.write('');
// document.write('
Featured Rates
');
document.write('| ');
document.write('');
document.write(' |
');
// document.write('*Annual Percentage Yield
');
document.write('Mouseover to stop scroll
');
}
makeScroller('board', 1, 1, 130, 370);
setTimeout('newsScrollInit();', 2000);