/**************************************************
Trivantis (http://www.trivantis.com) 

This JavaScript code uses techniques found at
The Dynamic Duo - http://www.dansteinman.com/dynduo/
**************************************************/

function Scroll(name,x,y,width,height,visible,zorder,bgcolor,frame) {
    this.name=name
    this.x=x
    this.y=y
    this.w=width
    this.h=height
    this.frame=frame
    if( visible ) 
        this.v = (is.ns4)? "show" : "visible"
    else
        this.v = (is.ns4)? "hide" : "hidden"
    this.bgColor=bgcolor
    this.z = zorder
    this.obj=this.name+"Object"
    this.parmArray = new Array
    this.numParms = 0
    this.hrefPrompt = 'javascript:;'
    this.foldertree=null
  
    var tocCheck = name.substr(0,3)
    if( !is.ns4 && tocCheck != 'toc' ) this.useIFrame=true
    if( is.ns5 ) this.useIFrame=true
    eval(this.obj+"=this")
    Scroll.list[Scroll.list.length]=this
}
{var p=Scroll.prototype
p.useIFrame=false
p.useV=true
p.useH=false
p.drawBorder=true
p.cornerImg=""
p.imgSet=ScrollImgSet
p.setDim=ScrollSetDim
p.setDim(20,20,30)
p.makeObjects=ScrollMakeObjects
p.build=ScrollBuild
p.activate=ScrollActivate
p.moveBars=ScrollWindowMoveBars
p.moveWindowH=ScrollBarMoveWindowH
p.moveWindowV=ScrollBarMoveWindowV
p.load=ScrollLoad
p.addParm=ScrollAddParm
p.showBlock=ScrollShowBlock
p.actionGoTo = ScrollActionNULL
p.actionPlay = ScrollActionNULL
p.actionStop = ScrollActionNULL
p.actionShow = ScrollActionShow
p.actionHide = ScrollActionHide
p.actionLaunch = ScrollActionNULL
p.actionExit = ScrollActionNULL
p.actionChangeContents = ScrollActionChangeContents
p.actionTogglePlay = ScrollActionNULL
p.actionToggleShow = ScrollActionToggleShow
}
function ScrollAddParm( newParm ) {
    this.parmArray[this.numParms++] = newParm;
}
function ScrollActionNULL( ) {
}
function ScrollActionShow( ) {
    if( !this.lyr ) {
        if( !this.activated ) setTimeout( this.obj + ".actionShow()", 1000 );
    }
    else this.lyr.actionShow();
}
function ScrollActionHide( ) {
    if( !this.lyr ) {
        if( !this.activated ) setTimeout( this.obj + ".actionHide()", 1000 );
    }
    else this.lyr.actionHide();
}
function ScrollActionChangeContents( newDoc ) {
    this.load( newDoc )
}
function ScrollActionToggleShow( ) {
    if( !this.lyr ) {
        if( !this.activated ) setTimeout( this.obj + ".actionToggleShow()", 1000 );
    }
    else this.lyr.actionToggleShow();
}
function ScrollImgSet(dir,barW,arrowH,boxH) {
    if( this.useIFrame ) return
    
    var a=arguments
    for (var i=4;i<12;i++) if (a[i]==null) a[i]=0
    this.setDim(barW,arrowH,boxH)
    if (this.useV) {
    this.dim.barV[1]+=a[4]
    this.dim.barV[3]+=a[5]
    this.dim.dn[1]+=a[8]
    }
    if (this.useH) {
    this.dim.barH[0]+=a[6]
    this.dim.barH[2]+=a[7]
    this.dim.rt[0]+=a[9]
    }
    this.makeObjects(dir)
    if (this.useV) {
        this.barV.setImages('scroll-bgv.gif','scroll-boxv.gif',a[10]?'scroll-sdv.gif':null,dir)
        this.upImg.setImages('scroll-up0.gif','scroll-up1.gif',dir)
        this.dnImg.setImages('scroll-dn0.gif','scroll-dn1.gif',dir)
    }
    if (this.useH) {
        this.barH.setImages('scroll-bgh.gif','scroll-boxh.gif',a[11]?'scroll-sdh.gif':null,dir)
        this.ltImg.setImages('scroll-lt0.gif','scroll-lt1.gif',dir)
        this.rtImg.setImages('scroll-rt0.gif','scroll-rt1.gif',dir)
    }
    if (this.useV && this.useH) this.cornerImg=dir+'scroll-corner.gif'
    this.window.border=1
}
function ScrollSetDim(barW,arrowH,boxH) {
    if( this.useIFrame ) return
    
    this.dim=new Object()
    if (this.useV) {
    	this.dim.barV=new Array(this.w,arrowH,barW,this.h-2*arrowH,barW,boxH)
    	this.dim.up=new Array(this.w,0,barW,arrowH)
    	this.dim.dn=new Array(this.w,this.h-arrowH,barW,arrowH)
    }
    if (this.useH) {
    	this.dim.barH=new Array(arrowH,this.h,this.w-2*arrowH,barW,boxH,barW)
    	this.dim.lt=new Array(0,this.h,arrowH,barW)
    	this.dim.rt=new Array(this.w-arrowH,this.h,arrowH,barW)
    }
}
function ScrollMakeObjects(dir) {
    if( this.useIFrame ) return
    
    var a
    if (this.useV) {
    	a=this.dim.barV; this.barV=new ScrollBar(a[0],a[1],a[2],a[3],a[4],a[5])
    	this.barV.onScroll=new Function(this.obj+'.moveWindowV()')
    	a=this.dim.up; this.upImg=new ScrollButtonImage(a[0],a[1],a[2],a[3])
    	a=this.dim.dn; this.dnImg=new ScrollButtonImage(a[0],a[1],a[2],a[3])
    	this.upImg.onDown=new Function(this.obj+'.window.up()')
    	this.upImg.onUp=new Function(this.obj+'.window.stop()')
    	this.dnImg.onDown=new Function(this.obj+'.window.down()')
    	this.dnImg.onUp=new Function(this.obj+'.window.stop()')
    }
    if (this.useH) {
    	a=this.dim.barH; this.barH=new ScrollBar(a[0],a[1],a[2],a[3],a[4],a[5])
    	this.barH.onScroll=new Function(this.obj+'.moveWindowH()')
    	a=this.dim.lt; this.ltImg=new ScrollButtonImage(a[0],a[1],a[2],a[3])
    	a=this.dim.rt; this.rtImg=new ScrollButtonImage(a[0],a[1],a[2],a[3])
    	this.ltImg.onDown=new Function(this.obj+'.window.left()')
    	this.ltImg.onUp=new Function(this.obj+'.window.stop()')
    	this.rtImg.onDown=new Function(this.obj+'.window.right()')
    	this.rtImg.onUp=new Function(this.obj+'.window.stop()')
    }
    this.window=new ScrollWindow(0,0,this.w,this.h,this.frame,null,this.bgColor)
    this.window.onScroll=new Function(this.obj+'.moveBars()')
}
function ScrollBuild() {
    if( this.useIFrame ) {
        this.css=css(this.name,this.x,this.y,this.w,this.h,this.v,this.z)
        this.divStart='<div id="'+this.name+'">\n'
        this.divEnd='</div>'
    }
    else {
        this.window.build()
        this.css=css(this.name,this.x,this.y,null,null,this.v,this.z)+this.window.css
        if (this.cornerImg!="") this.css+=css(this.name+'Corner',this.w,this.h,this.barV.w,this.barH.h)
        if (this.drawBorder) this.css+=css(this.name+'CornerT',0,0,this.w,1,null,null,'black')+css(this.name+'CornerL',0,0,1,this.h,null,null,'black')
        this.divStart='<div id="'+this.name+'">\n'
        if (this.useV) {
        	this.barV.boxvis='hidden'
        	this.barV.build()
        	this.upImg.build()
        	this.dnImg.build()
        	this.css+=this.barV.css+this.upImg.css+this.dnImg.css
        	this.divStart+=this.barV.div+this.upImg.div+this.dnImg.div
        }
        if (this.useH) {
        	this.barH.boxvis='hidden'
        	this.barH.build()
        	this.ltImg.build()
        	this.rtImg.build()
        	this.css+=this.barH.css+this.ltImg.css+this.rtImg.css
        	this.divStart+=this.barH.div+this.ltImg.div+this.rtImg.div
        }
        if (this.cornerImg!="") this.divStart+='<div id="'+this.name+'Corner"><img src="'+this.cornerImg+'" width='+this.barV.w+' height='+this.barH.h+'></div>\n'
        this.divStart+=this.window.divStart
        this.divEnd=this.window.divEnd
        if (this.drawBorder) this.divEnd+='<div id="'+this.name+'CornerT"></div><div id="'+this.name+'CornerL"></div>\n'
        this.divEnd+='\n</div>'
    }
    
    this.div = this.divStart

    for (var i=0; i < this.numParms; i++) {
        this.div = this.div + this.parmArray[i]
    }

    this.div = this.div + this.divEnd
}
function ScrollActivate(w,h,reset) {
    if (!this.activated) {
    	this.lyr=new DynLayer(this.name)
        if( this.lyr && this.lyr.css )
            this.lyr.css.visibility = this.v
        
        if( this.useIFrame ) {
            this.activated = true
            return
        }
        
		if (this.useV) {
			this.barV.activate()
			this.upImg.activate()
			this.dnImg.activate()
		}
		if (this.useH) {
			this.barH.activate()
			this.ltImg.activate()
			this.rtImg.activate()
		}
    }
    else if( this.useIFrame ) return
    
    this.window.activate(w,h)
    if (this.useV) {
		if (reset!=false) this.barV.boxlyr.moveTo(null,0)
		if (!this.window.enableVScroll) {
			this.barV.boxlyr.hide()
			if(this.activated) this.window.contentlyr.moveTo(null,0)
		}
		else {
			this.barV.boxlyr.css.visibility="inherit"
			var cH = this.window.contentHeight
			if(this.activated && cH>this.window.h && cH+this.window.contentlyr.y<this.window.h)this.window.contentlyr.moveTo(null,this.window.h-cH)
		}
    }
    if (this.useH) {
		if (reset!=false) this.barH.boxlyr.moveTo(0,null)
		if (!this.window.enableHScroll) {
			this.barH.boxlyr.hide()
			if( this.activated) this.window.contentlyr.moveTo(0,null)
		}
		else {
			this.barH.boxlyr.css.visibility="inherit"
			var cW = this.window.contentWidth
			if(this.activated && cW>this.window.w && cW+this.window.contentlyr.x<this.window.w)this.window.contentlyr.moveTo(this.window.w-cW,null)
		}
    }
    this.activated=true
}
function ScrollLoad(url) {
    if (this.useIFrame ) {
      if( !this.activated ) this.activate()
      this.lyr.write( '<iframe src=' + url + ' width=' + this.w + ' height=' + this.h + ' /></iframe>' )
    }
    else this.window.load(url)
}
function ScrollShowBlock(i) {
    this.window.showBlock(i,this.obj+'.activate()')
}
function ScrollWindowMoveBars() {
    if (this.useV && this.window.enableVScroll) this.barV.boxlyr.moveTo(null,this.window.getYfactor()*this.barV.offsetHeight)
    if (this.useH && this.window.enableHScroll) this.barH.boxlyr.moveTo(this.window.getXfactor()*this.barH.offsetWidth,null)
}
function ScrollBarMoveWindowV() {
    if (this.window.enableVScroll) this.window.contentlyr.moveTo(null,-this.barV.getYfactor()*this.window.offsetHeight)
}
function ScrollBarMoveWindowH() {
    if (this.window.enableHScroll) this.window.contentlyr.moveTo(-this.barH.getXfactor()*this.window.offsetWidth,null)
}
function ScrollTestActive() {
    if (!is.ns4) return false
    for (var i=0;i<Scroll.list.length;i++) {
		var s=Scroll.list[i]
		if (s.activated && ((s.useV && s.barV.dragActive)||(s.useH && s.barH.dragActive)||s.window.contentlyr.slideActive)) return true
    }
    return false
}
Scroll.list=new Array()

function ScrollWindow(x,y,width,height,frame,name,bgcolor) {
    this.name=(name!=null)? name : "ScrollWindow"+(ScrollWindow.count++)
    this.x=x
    this.y=y
    this.w=width
    this.h=height
    this.frame=(!is.ns4 && frame!=null)? window.top.frames[frame] : parent
    this.scrollFrame=null
    if( this.frame == null ) this.frame = parent
    if (bgcolor) this.bgColor=bgcolor
    this.obj=this.name+"Object"
    eval(this.obj+"=this")
}
{var p=ScrollWindow.prototype
p.inc=10
p.speed=20
p.border=1
p.borderColor='black'
p.bgColor='white'
p.build=ScrollWindowBuild
p.activate=ScrollWindowActivate
p.up=ScrollWindowUp
p.down=ScrollWindowDown
p.left=ScrollWindowLeft
p.right=ScrollWindowRight
p.stop=ScrollWindowStop
p.getXfactor=ScrollWindowGetXfactor
p.getYfactor=ScrollWindowGetYfactor
p.load=ScrollWindowLoad
p.reload=ScrollWindowReload
p.back=ScrollWindowBack
p.forward=ScrollWindowForward
p.writeContent=ScrollWindowWriteContent
p.showBlock=ScrollWindowShowBlock
p.jumpTo=ScrollWindowJumpTo
p.history=new Array()
p.historyLoc=-1
p.historyLen=-1
p.onScroll=new Function()
p.onLoad=new Function()
}
function ScrollWindowBuild() {
    var w=this.w
    var h=this.h
    var b=this.border
    var bc=this.borderColor
    this.css=css(this.name,this.x,this.y,w,h,null,null,this.bgColor)+
    css(this.name+'Screen',b,b,w-2*b,h-2*b,null,null,this.bgColor)
    if (this.border>0) this.css+=css(this.name+'BorderT',0,0,w,b,null,null,bc)+css(this.name+'BorderB',0,h-b,w,b,null,null,bc)+css(this.name+'BorderL',0,0,b,h,null,null,bc)+css(this.name+'BorderR',w-b,0,b,h,null,null,bc)
    this.css+=css(this.name+'Content',0,0,w-2*b,null,null,null,this.bgColor)
    this.divStart=(!is.ns4)? '<iframe name="'+this.name+'Frame" width=0 height=0 style="position:absolute; left:0; top:0; visibility:none"></iframe>\n':''
    this.divStart+='<div id="'+this.name+'">'+
    '<div id="'+this.name+'Screen">'
    this.divStart+='<div id="'+this.name+'Content">'
    this.divEnd='</div>'
    this.divEnd+='</div>'
    if (this.border>0) this.divEnd+='<div id="'+this.name+'BorderT"></div><div id="'+this.name+'BorderB"></div><div id="'+this.name+'BorderL"></div><div id="'+this.name+'BorderR"></div>\n'
    this.divEnd+='</div>'
    this.div=this.divStart+this.divEnd
}
function ScrollWindowActivate(w,h) {
    if (!this.activated) {
		this.lyr=new DynLayer(this.name)
		this.screenlyr=new DynLayer(this.name+'Screen')
		this.blocklyr=new Array()
		this.blockActive=0
    }
    if (!is.ns4 && this.scrollFrame.document.body.innerHTML) document.all[this.name+'Content'].innerHTML=this.scrollFrame.document.body.innerHTML
    this.contentlyr=new DynLayer(this.name+'Content')
    var c=this.contentlyr
    c.onSlide=new Function(this.obj+'.onScroll()')
    this.contentHeight=h||((is.ns)?c.doc.height:c.elm.scrollHeight)
    this.contentWidth=w||((is.ns)?c.doc.width:c.elm.scrollWidth)
    if (is.ns) {
        c.css.clip.bottom=Math.max(this.contentHeight,this.h)
        c.css.clip.right=Math.max(this.contentWidth,this.w)
    }
    this.offsetHeight=this.contentHeight-this.screenlyr.h
    this.offsetWidth=this.contentWidth-this.screenlyr.w
    this.enableVScroll=(this.offsetHeight>1)
    this.enableHScroll=(this.offsetWidth>1)
    this.onScroll()
    this.onLoad()
    this.activated=true
}
function ScrollWindowLoad(url) {
    if (url != this.url) {
		this.historyLoc+=1
		this.historyLen=this.historyLoc
		this.history[this.historyLen]=url
    }
    this.reload(0)
}
function ScrollWindowBack() {
    if (this.historyLoc>0) this.reload(-1)
}
function ScrollWindowForward() {
    if (this.historyLoc<this.historyLen) this.reload(1)
}
function locateScrollFrame( frameName, currFrame ) {
    if( currFrame[frameName] )
        return currFrame[frameName]
    else {
        var index = 0
        while( index < currFrame.length ) {
            var testFrame = locateFrame( frameName, currFrame[index] )
            if( testFrame )
                return testFrame
            index++
        }
    }
}
function ScrollWindowReload(i) {
    this.historyLoc+=i
    this.url=this.history[this.historyLoc]
    this.refresh=true
    if (is.ns) {
		this.contentlyr=new DynLayer(this.name+'Content')
		this.contentlyr.moveTo(0,0)
        if( is.ns5 ) this.contentlyr.elm.innerHTML="<iframe src='" + this.url + "'></iframe>"
		else this.contentlyr.elm.load(this.url,this.w-2*this.border)
    }
    else {
        var targFrameName = this.name+'Frame'
        var targFrame = locateScrollFrame( targFrameName, this.frame.frames )
    
        if( targFrame ) {            
            this.scrollFrame = targFrame
            this.scrollFrame.document.location=this.url
        }
    }
}
function ScrollWindowUp() {
    if (this.enableVScroll) this.contentlyr.slideTo(null,0,this.inc,this.speed)
}
function ScrollWindowDown() {
    if (this.enableVScroll) this.contentlyr.slideTo(null,-this.offsetHeight,this.inc,this.speed)
}
function ScrollWindowLeft() {
    if (this.enableHScroll) this.contentlyr.slideTo(0,null,this.inc,this.speed)
}
function ScrollWindowRight() {
    if (this.enableHScroll) this.contentlyr.slideTo(-this.offsetWidth+0,null,this.inc,this.speed)
}
function ScrollWindowStop() {
    if (this.activated) this.contentlyr.slideActive=false
}
function ScrollWindowGetXfactor() {
    if (this.offsetWidth==0) return 0
    return Math.min((this.offsetWidth-this.contentlyr.x)/this.offsetWidth-1,1)
}
function ScrollWindowGetYfactor() {
    if (this.offsetHeight==0) return 0
    return Math.min((this.offsetHeight-this.contentlyr.y)/this.offsetHeight-1,1)
}
function ScrollWindowWriteContent(doc) {
    if (!is.ns4) doc.write(css('content',0,0,this.w-2*this.window.border))
}
function ScrollWindowShowBlock(i,fn) {
    if (this.blockActive!=i) {
		this.blockActive=i
		this.contentlyr.hide()
		this.blocklyr[i].css.visibility='inherit'
		eval(fn)
    }
}
function ScrollWindowJumpTo(x,y) {
    this.contentlyr.moveTo((x!=null)?Math.max(-x,-this.offsetWidth):null,(y!=null)?Math.max(-y,-this.offsetHeight):null)
    this.onScroll()
}
ScrollWindow.count=0

function ScrollBar(x,y,width,height,boxW,boxH) {
    this.name="ScrollBar"+(ScrollBar.count++)
    this.x=x
    this.y=y
    this.w=width
    this.h=height
    this.boxW=boxW
    this.boxH=boxH
    this.offsetHeight=this.h-this.boxH
    this.offsetWidth=this.w-this.boxW
    this.obj=this.name+"Object"
    eval(this.obj+"=this")  
}
{var p=ScrollBar.prototype
p.bgColor=null
p.boxColor=null
p.inc=10
p.speed=20
p.active=false
p.boxvis=null
p.dragActive=false
p.build=ScrollBarBuild
p.activate=ScrollBarActivate
p.mousedown=ScrollBarMouseDown
p.mousemove=ScrollBarMouseMove
p.mouseup=ScrollBarMouseUp
p.finishSlide=ScrollBarFinishSlide
p.getXfactor=ScrollBarGetXfactor
p.getYfactor=ScrollBarGetYfactor
p.setImages=ScrollBarSetImages
p.onScroll=new Function()
}
function ScrollBarSetImages(bg,box,shade,dir) {
    if (!dir) dir=''
    this.bgImg=(bg!=null)?dir+bg:''
    this.boxImg=(box!=null)?dir+box:''
    this.shadeImg=(shade!=null)?dir+shade:''
}
function ScrollBarBuild() {
    with(this) {
		var bg=bgImg? 'background-image:URL('+bgImg+'); layer-background-image:URL('+bgImg+'); repeat:yes; ':''
		var box=boxImg? '<img src="'+boxImg+'" width='+boxW+' height='+boxH+'>' : ''
		var shade=shadeImg? '<div id="'+name+'Shade"><img src="'+shadeImg+'"></div>\n' : ''
		this.css=css(name,x,y,w,h,null,null,bgColor,bg)+
		css(name+'Box',0,0,boxW,boxH,boxvis,null,boxColor)+
		css(name+'C',0,0,w,h)
		if (shadeImg) this.css+=css(name+'Shade',0,0)
		this.div='<div id="'+name+'">'+shade+'<div id="'+name+'Box">'+box+'</div><div id="'+name+'C"></div></div>\n'
    }
}
function ScrollBarActivate() {
    this.lyr=new DynLayer(this.name)
    this.boxlyr=new DynLayer(this.name+'Box')
    this.boxlyr.slideInit()
    this.boxlyr.onSlide=new Function(this.obj+'.onScroll()')
    this.lyrc=new DynLayer(this.name+'C')
    this.lyrc.elm.scrollbar=this.obj
    if (is.ns4) this.lyrc.elm.captureEvents(Event.MOUSEDOWN | Event.MOUSEMOVE | Event.MOUSEUP)
    this.lyrc.elm.onmousedown=ScrollBarMouseSDown
    this.lyrc.elm.onmousemove=ScrollBarMouseSMove
    this.lyrc.elm.onmouseup=ScrollBarMouseSUp
    this.lyrc.elm.onmouseover=new Function(this.obj+'.active=true')
    this.lyrc.elm.onmouseout=new Function(this.obj+'.active=false')
}
function ScrollBarMouseSDown(e) {eval(this.scrollbar+'.mousedown('+(is.ns?e.layerX:event.offsetX)+','+(is.ns?e.layerY:event.offsetY)+')');return false}
function ScrollBarMouseSMove(e) {eval(this.scrollbar+'.mousemove('+(is.ns?e.layerX:event.offsetX)+','+(is.ns?e.layerY:event.offsetY)+')');return false}
function ScrollBarMouseSUp(e) {eval(this.scrollbar+'.mouseup()');return false}
function ScrollBarMouseDown(x,y) {
    this.mouseIsDown=true
    if (x>this.boxlyr.x && x<=this.boxlyr.x+this.boxlyr.w && y>this.boxlyr.y && y<=this.boxlyr.y+this.boxlyr.h) {
		this.dragX=x-this.boxlyr.x
		this.dragY=y-this.boxlyr.y
		this.dragActive=true
    }
    else if (!this.boxlyr.slideActive) {
		var newx=x-this.boxW/2
		var newy=y-this.boxH/2
		if (newx<0) newx=0
		if (newx>=this.offsetWidth) newx=this.offsetWidth
		if (newy<0) newy=0
		if (newy>=this.offsetHeight) newy=this.offsetHeight
		this.boxlyr.slideTo(newx,newy,this.inc,this.speed,this.obj+'.finishSlide()')
    }
}
function ScrollBarFinishSlide() {
    if (this.mouseIsDown) {
		this.dragX=this.boxW/2
		this.dragY=this.boxH/2
		this.dragActive=true
    }
}
function ScrollBarMouseMove(x,y) {
    if (!this.dragActive || this.boxlyr.slideActive) return
    var newx=x-this.dragX
    var newy=y-this.dragY
    if (x-this.dragX<0) newx=0
    if (x-this.dragX>=this.offsetWidth) newx=this.offsetWidth
    if (y-this.dragY<0) newy=0
    if (y-this.dragY>=this.offsetHeight) newy=this.offsetHeight
    this.boxlyr.moveTo(newx,newy)
    this.onScroll()
}
function ScrollBarMouseUp() {
    this.mouseIsDown=false
    this.dragActive=false
    this.boxlyr.slideActive=false
}
function ScrollBarGetXfactor() {
    return 1-(this.offsetWidth-this.boxlyr.x)/this.offsetWidth||0
}
function ScrollBarGetYfactor() {
    return 1-(this.offsetHeight-this.boxlyr.y)/this.offsetHeight||0
}
ScrollBar.count=0
function ScrollButtonImage(x,y,w,h) {
	this.x = x
	this.y = y
	this.w = w
	this.h = h
	this.name = "ScrollButtonImage"+(ScrollButtonImage.count++)
	this.obj = this.name+"Object"
	eval(this.obj+"=this")
}
{var p = ScrollButtonImage.prototype
p.setImages = ScrollButtonImageSetImages
p.build = ScrollButtonImageBuild
p.activate = ScrollButtonImageActivate
p.down = ScrollButtonImageDown
p.up = ScrollButtonImageUp
p.change = ScrollButtonImageChange
p.onDown = new Function()
p.onUp = new Function()}
function ScrollButtonImageSetImages(off,on,dir) {
this.i0 = new Image()
this.i = this.i0.src = (dir||'')+off
this.i1 = new Image()
this.i1.src = (dir||'')+on
}
function ScrollButtonImageBuild() {
	with(this) {
		this.css = css(name,x,y,w,h)+css(name+'C',0,0,w,h)
		this.div = '<div id="'+name+'"><img name="'+name+'Img" src="'+i+'" width='+w+' height='+h+
				   '><div id="'+name+'C">'+
				   '</div></div>\n'
	}
}
function ScrollButtonImageActivate() {
	this.lyr = new DynLayer(this.name)
	this.clyr = new DynLayer(this.name+'C')
	if (is.ns4) this.clyr.elm.captureEvents(Event.MOUSEDOWN | Event.MOUSEUP)
	this.clyr.elm.onmousedown = new Function(this.obj+".down(); return false;")
	this.clyr.elm.onmouseup = new Function(this.obj+".up(); return false;")
}
function ScrollButtonImageDown() {this.change(this.i1);this.onDown()}
function ScrollButtonImageUp() {this.change(this.i0);this.onUp()}
function ScrollButtonImageChange(img) {this.lyr.doc.images[this.name+"Img"].src = img.src}
ScrollButtonImage.count = 0
