function bwcheck(){
	this.ver=navigator.appVersion
	this.agent=navigator.userAgent
	this.dom=document.getElementById?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.ie4=(document.all && !this.dom)?1:0;
	this.ie=this.ie4||this.ie5||this.ie6
	this.mac=this.agent.indexOf("Mac")>-1
	this.opera5=this.agent.indexOf("Opera 5")>-1
	this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0;
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5 || this.dom)
	return this
}
var bw=bwcheck()
if(!bw.bw){
    	alert("I'm sorry some of the scripts on this page may not work with\n" +
    	      "your browser.  Please update your browser and visit again.\n");
}
var speed=50
var loop, timer, loaded
var activeB=0;
var activeC=0;
var activeD=0;
function makeScrollObj(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.clipHeight=bw.ns4?this.css.clip.height:this.el.offsetHeight
	this.upPageB=goUpPageB;this.downPageB=goDownPageB;
	this.upPageC=goUpPageC;this.downPageC=goDownPageC;
	this.upPageD=goUpPageD;this.downPageD=goDownPageD;
	this.hideIt=hideIt;
	this.showIt=showIt;
	this.moveIt=moveIt;
	this.x;this.y;
    	this.obj = obj + "Object"
    	eval(this.obj + "=this")
    return this
}
function moveIt(x,y){
	this.x=x;this.y=y
	this.css.left=this.x
	this.css.top=this.y
}
function showIt(){
	this.css.visibility="visible"
}
function hideIt(){
	this.css.visibility="hidden"
}
function goDownPageB(move){
	if(this.y>-this.scrollHeight+oContPageB.clipHeight){
		this.moveIt(0,this.y-move)
		timer=setTimeout(this.obj+".downPageB("+move+")",speed)
	}
}
function goUpPageB(move){
	if(this.y<0){
		this.moveIt(0,this.y-move)
		timer=setTimeout(this.obj+".upPageB("+move+")",speed)
	}
}
function changeActiveB(num){
	oScrollPageB[activeB].hideIt()
	activeB=num
	oScrollPageB[activeB].moveIt(0,0)
	oScrollPageB[activeB].showIt()
	if(oScrollPageB[activeB].scrollHeight > oContPageB.clipHeight){oUpPageB.showIt(); oDownPageB.showIt()}
	if(oContPageB.clipHeight > oScrollPageB[activeB].scrollHeight){oUpPageB.hideIt(); oDownPageB.hideIt()}
}
function scrollPageB(speed){
	if(loaded){
		loop=true;
		if(speed>0) oScrollPageB[activeB].downPageB(speed)
		else oScrollPageB[activeB].upPageB(speed)
	}
}
function noScrollPageB(){
	loop=false
	if(timer) clearTimeout(timer)
}
function goDownPageC(move){
	if(this.y>-this.scrollHeight+oContPageC.clipHeight){
		this.moveIt(0,this.y-move)
		timer=setTimeout(this.obj+".downPageC("+move+")",speed)
	}
}
function goUpPageC(move){
	if(this.y<0){
		this.moveIt(0,this.y-move)
		timer=setTimeout(this.obj+".upPageC("+move+")",speed)
	}
}
function changeActiveC(num){
	oScrollPageC[activeC].hideIt()
	activeC=num
	oScrollPageC[activeC].moveIt(0,0)
	oScrollPageC[activeC].showIt()
	if(oScrollPageC[activeC].scrollHeight > oContPageC.clipHeight){oUpPageC.showIt(); oDownPageC.showIt()}
	if(oContPageC.clipHeight > oScrollPageC[activeC].scrollHeight){oUpPageC.hideIt(); oDownPageC.hideIt()}
}
function scrollPageC(speed){
	if(loaded){
		loop=true;
		if(speed>0) oScrollPageC[activeC].downPageC(speed)
		else oScrollPageC[activeC].upPageC(speed)
	}
}
function noScrollPageC(){
	loop=false
	if(timer) clearTimeout(timer)
}
function goDownPageD(move){
	if(this.y>-this.scrollHeight+oContPageD.clipHeight){
		this.moveIt(0,this.y-move)
		timer=setTimeout(this.obj+".downPageD("+move+")",speed)
	}
}
function goUpPageD(move){
	if(this.y<0){
		this.moveIt(0,this.y-move)
		timer=setTimeout(this.obj+".upPageD("+move+")",speed)
	}
}
function changeActiveD(num){
	oScrollPageD[activeD].hideIt()
	activeD=num
	oScrollPageD[activeD].moveIt(0,0)
	oScrollPageD[activeD].showIt()
	if(oScrollPageD[activeD].scrollHeight > oContPageD.clipHeight){oUpPageD.showIt(); oDownPageD.showIt()}
	if(oContPageD.clipHeight > oScrollPageD[activeD].scrollHeight){oUpPageD.hideIt(); oDownPageD.hideIt()}
}
function scrollPageD(speed){
	if(loaded){
		loop=true;
		if(speed>0) oScrollPageD[activeD].downPageD(speed)
		else oScrollPageD[activeD].upPageD(speed)
	}
}
function noScrollPageD(){
	loop=false
	if(timer) clearTimeout(timer)
}
function scrollInit(){
	oScrollPageB=new Array()
	oScrollPageB[0]=new makeScrollObj('divScrollPageB1','title')
	oScrollPageB[1]=new makeScrollObj('divScrollPageB2','title')
	oScrollPageB[2]=new makeScrollObj('divScrollPageB3','title')
	oScrollPageB[3]=new makeScrollObj('divScrollPageB4','title')
	oScrollPageB[0].moveIt(0,0)
	oScrollPageB[0].showIt()
	oContPageB=new makeScrollObj('title')
	oContPageB.showIt()
	oUpPageB=new makeScrollObj('divUpPageB')
	oDownPageB=new makeScrollObj('divDownPageB')
	if(oScrollPageB[0].scrollHeight > oContPageB.clipHeight){oUpPageB.showIt(); oDownPageB.showIt()}
	if(oContPageB.clipHeight > oScrollPageB[0].scrollHeight){oUpPageB.hideIt(); oDownPageB.hideIt()}
	oControlB=new makeScrollObj('divControlB')
	oControlB.showIt()
	oScrollPageC=new Array()
	oScrollPageC[0]=new makeScrollObj('divScrollPageC1','image')
	oScrollPageC[1]=new makeScrollObj('divScrollPageC2','image')
	oScrollPageC[2]=new makeScrollObj('divScrollPageC3','image')
	oScrollPageC[3]=new makeScrollObj('divScrollPageC4','image')
	oScrollPageC[0].moveIt(0,0)
	oScrollPageC[0].showIt()
	oContPageC=new makeScrollObj('image')
	oContPageC.showIt()
	oUpPageC=new makeScrollObj('divUpPageC')
	oDownPageC=new makeScrollObj('divDownPageC')
	if(oScrollPageC[0].scrollHeight > oContPageC.clipHeight){oUpPageC.showIt(); oDownPageC.showIt()}
	if(oContPageC.clipHeight > oScrollPageC[0].scrollHeight){oUpPageC.hideIt(); oDownPageC.hideIt()}
	oControlC=new makeScrollObj('divControlC')
	oControlC.showIt()
	oScrollPageD=new Array()
	oScrollPageD[0]=new makeScrollObj('divScrollPageD1','links')
	oScrollPageD[0].moveIt(0,0)
	oScrollPageD[0].showIt()
	oContPageD=new makeScrollObj('links')
	oContPageD.showIt()
	oUpPageD=new makeScrollObj('links_up')
	oDownPageD=new makeScrollObj('links_down')
	if(oScrollPageD[0].scrollHeight > oContPageD.clipHeight){oUpPageD.showIt(); oDownPageD.showIt()}
	if(oContPageD.clipHeight > oScrollPageD[0].scrollHeight){oUpPageD.hideIt(); oDownPageD.hideIt()}
	oControlD=new makeScrollObj('divControlD')
	oControlD.showIt()
loaded=true
}