var aS=0
var lh=0
var T
var gE=(document.getElementById?1:0)
var a=(document.all?1:0)
var l=(document.layers?1:0)
var D=(gE||a||l)
		
function gO(n) {
	if(gE){
		this.o=document.getElementById(n)
		this.s=document.getElementById(n).style
	}else if(a){
		this.o=document.all[n]
		this.s=document.all[n].style
	}else if(l){
		this.o=document.layers[n]
		this.s=document.layers[n]
	}
}
function pL() {
	if(!D)return false
	for(var i=0;i<nbS;i++){
		var x=new gO('section'+i)
		if(l){
			lh=x.s.clip.bottom
			lh+=20
			x.s.clip.top = ct
			x.s.clip.left = 0
			x.s.clip.right = cw
			x.s.clip.bottom = cb
		}else if(gE||a){
			x.s.top=tp
			x.s.left=lf
			x.s.width=cw
			lh=x.o.offsetHeight+20
			x.s.clip='rect('+ct+' '+cw+' '+cb+' 0)'
		}
		if(is_mac&&a) {
			sl('section'+i,1,100)
			sc()
		}
		x.s.visibility="visible"
	}
}
function ds(d){
	sl(gA(),-d*sa,sd)
}
function sl(ln,am,ti){
	if(!D)return false
	var tl=new gO(ln)
	if(tl)rs(ln,am,ti)
}
function rs(ln,am,ti){
	if(!D)return false
	ct+=am
	cb+=am
	tp-=am
	var tl=new gO(ln)
	if(ct<0||cb>lh){
		ct-=am
		cb-=am
		tp+=am
		return
	}
	if(gE||a){
		tl.s.clip='rect('+ct+' '+cw+' '+cb+' 0)'
		tl.s.top=tp
	}else if(l){
		tl.s.clip.top=ct
		tl.s.clip.bottom=cb
		tl.s.top=tp
	}
	T=setTimeout('rs("'+ln+'",'+am+','+ti+')',ti)
}
function sc(){
	if(T)clearTimeout(T)
}
function gA () {
	return 'section'+aS
}
