function checkBrowser()
{
this.agent=navigator.userAgent;
this.ver=navigator.appVersion;
this.dom=document.getElementById?1:0;
this.win=this.agent.indexOf('Windows')>-1;
this.mac=this.agent.indexOf("Mac")>-1;
this.ie4=(document.all && !this.dom)?1:0;
this.ie5=(this.ver.indexOf('MSIE 5')>-1 && this.dom)?1:0;
this.ie6=(this.ver.indexOf('MSIE 6')>-1 && this.dom)?1:0;
this.ie4mac=(this.ie4 && this.mac);
this.ie5mac=(this.ie5 && this.mac);
this.ns4=(document.layers && !this.dom)?1:0;
this.ns6=(this.dom && parseInt(this.ver) >= 5)?1:0;
this.ie=(this.ie4 || this.ie5 || this.ie6 || this.ie4mac || this.ie5mac);
this.ns=(this.ns4 || this.ns6);
this.w3c=(this.ie5 || this.ie6 || this.ns6 || this.ie5mac);
this.bw=(this.ie4 || this.ie5 || this.ie6 || this.ns4 || this.ns6);
return this;
}
var bw=new checkBrowser();
var scrollstep = 30; // the speed of the timeout between each scroll
var scrollables = 1; // set the number of pages/layers here
var active = 1; // set default page/layer visible onload
var scrolltimer = 0; 
function makeObject(obj)
{
this.css=bw.w3c?document.getElementById(obj).style:bw.ie4?document.all[obj].style:null;
this.oref=bw.w3c?document.getElementById(obj):bw.ie4?document.all[obj]:null;
this.moveIt=f_moveIt; this.x; this.y;
this.showIt=f_showIt;
this.hideIt=f_hideIt;
this.height=f_height;
return this;
}
function f_moveIt(x,y)
{
this.x=x; this.y=y;
this.css.left=this.x;
this.css.top=this.y;
}
function f_showIt() { this.css.visibility='visible'; }
function f_hideIt() { this.css.visibility='hidden'; }
function f_height()
{
if (bw.ie) if (this.css.pixelHeight) return this.css.pixelHeight; else return this.oref.offsetHeight;
else if (bw.ns6) if (this.css.height) return parseInt(this.css.height); else return this.oref.offsetHeight;
}
function vscroll(speed)
{
if (isLoaded)
{
if ((speed>0 && oContent[active].y>-oContent[active].height()+oContainer[active].height()) || (speed<0 && oContent[active].y<0)) oContent[active].moveIt(0,oContent[active].y-speed);
scrolltimer=setTimeout('vscroll('+speed+')',scrollstep);
}
}
function noscroll() { clearTimeout(scrolltimer); }
function swapto(num)
{
oContent[active].hideIt();
oContainer[active].hideIt();
active=num;
oContainer[active].showIt();
oContent[active].moveIt(0,0);
oContent[active].showIt();
if (oContent[active].height() > oContainer[active].height()) { oUp.showIt(); oDown.showIt(); }
else if (oContainer[active].height() > oContent[active].height()) { oUp.hideIt(); oDown.hideIt(); }
}
var isLoaded=false;
function scrollInit()
{
oContent=new Array();
oContainer=new Array();
for (var i=1; i<=scrollables; i++)
{
oContainer[i]=new makeObject('divContainer'+i);
oContent[i]=new makeObject('divContent'+i);
if (bw.ns6) oContent[i].css.position='relative';
oContent[i].moveIt(0,0);
}
oUp=new makeObject('divUp');
oDown=new makeObject('divDown');
swapto(active);
isLoaded=true;
}
onload=scrollInit;