﻿// AutoScroll.action v4.1.1 - March 12, 2010
// Copyright © 2000 by Walter Blady
// All rights reserved
var ASisNav4 = navigator.appName.indexOf("Netscape") >= 0 && parseInt(navigator.appVersion.charAt(0)) == 4;
var ASisNN6 = navigator.userAgent.indexOf("Netscape6") >= 0;
var ASisIE = window.navigator.userAgent.indexOf("MSIE") >= 0;
var ASisIE4 = navigator.appVersion.indexOf("MSIE 4") >= 0;
var ASisW3C = document.getElementById ? true : false;
var ASisOpera = navigator.userAgent.indexOf("Opera") >= 0;
var ASsuff = ASisOpera ? "" : "px";
var ASObject0 = new Object(), ASObject1 = new Object(), ASObject2 = new Object(), ASObject3 = new Object();
var W3CinitFlag = false, ASparamsDiv, ASaction, ASElementObj, ASget;
function WBAutoScroll(action) {
	if (ASVersion()) {
	ASaction = action;
	var obj = eval("ASObject" + action[1]);
	if (obj && obj.clipingBoxDiv && obj.clipingBoxDiv.cursorScrolling) return;
	obj.ASaction = action;
	if (action[2] == 6) {
		if (obj.ASrep > 0) clearTimeout(obj.ASrep);
		if (obj.ASrepeat > 0) clearInterval(obj.ASrepeat);
		obj.ASstopFlag = true;
		return;
	}
	if (action[2] == 4 || action[2] == 5) {
		if (obj.ASrep > 0) clearTimeout(obj.ASrep);
		if (obj.ASrepeat > 0) clearInterval(obj.ASrepeat);
		obj.ASpauseFlag = false;
		if (ASaction[2] == 5) {
			if (obj.idx == 0 && !obj.ASstopFlag) obj.ASrepeat = setInterval("ASObject0.doscroll()", obj.ASdelay);
			if (obj.idx == 1 && !obj.ASstopFlag) obj.ASrepeat = setInterval("ASObject1.doscroll()", obj.ASdelay);
			if (obj.idx == 2 && !obj.ASstopFlag) obj.ASrepeat = setInterval("ASObject2.doscroll()", obj.ASdelay);
			if (obj.idx == 3 && !obj.ASstopFlag) obj.ASrepeat = setInterval("ASObject3.doscroll()", obj.ASdelay);
		}
		return;
	}
	if (action[2] == 11) { obj.ASlines += parseInt(action[13]); return; }
	if (action[2] == 12) {
		if (obj.ASlines - parseInt(action[13]) >= 1) { 
			obj.ASlines -= parseInt(action[13]);
		}
		return;
	}
		ASget = setInterval("{ ASGetElement(); if (ASElementObj) WBAutoScroll2() }", 50);
	}
	return;
}
function ASGetElement() {
	ASElementObj = eval("document.getElementById('" + ASaction[5] + "')")
	return;
}
function WBAutoScroll2() {
	if (ASVersion()) {
		clearInterval(ASget);
		var obj = eval("ASObject" + ASaction[1]);
		obj.ASaction = ASaction;
		obj.id = "ASObject" + ASaction[1];
		if (!obj.init) {
			obj.idx = ASaction[1];
			obj.init = true;
			obj.ASupDown = ASaction[2] == 0 || ASaction[2] == 1;
			obj.doinit = ASDoInit;
			obj.doinit2 = ASDoInit2;
			obj.doinit();
		}
		if (obj.contentBox.wrapBox && !obj.clipingBoxDiv.cursorScrolling) obj.doinit2();
		if (obj.contentBox.wrapBox) obj.ASyOrig = 0;
		if (obj.contentBox.wrapBox) obj.ASxOrig = 0;
		obj.ASstartDelay = parseInt(ASaction[7])*1000;
		obj.ASendDelay = parseInt(ASaction[8])*1000;
		if (ASaction[9].toLowerCase() == "full") {
			 if (ASaction[3] == 0 || ASaction[3] == 1) obj.ASpixelLines = obj.clipBoxHeight - 10;
			 if (ASaction[3] == 2 || ASaction[3] == 3) obj.ASpixelLines = obj.clipBoxWidth - 10;
		}
		else {
			obj.ASpixelLines = parseInt(ASaction[9]);
		}
		obj.ASlineDelay = parseInt(ASaction[10])*1000;
		obj.ASlines = obj.ASaction[2] == 7 || obj.ASaction[2] == 8 ? 0 : parseInt(ASaction[13]);
		obj.ASdelay = parseInt(ASaction[14]);
		obj.AShotzone = parseInt(ASaction[15]);
		obj.ASpauseFlag = false;
		if (obj.ASrep > 0) clearTimeout(obj.ASrep);
		if (obj.ASrepeat > 0) clearInterval(obj.ASrepeat);
		if (ASaction[2] == 0 || ASaction[2] == 8) {
			obj.ASupDown = true;
			obj.ASminus = false;
			if (obj.idx == 0) obj.ASrepeat = setInterval("ASObject0.doscroll()", obj.ASdelay);
			if (obj.idx == 1) obj.ASrepeat = setInterval("ASObject1.doscroll()", obj.ASdelay);
			if (obj.idx == 2) obj.ASrepeat = setInterval("ASObject2.doscroll()", obj.ASdelay);
			if (obj.idx == 3) obj.ASrepeat = setInterval("ASObject3.doscroll()", obj.ASdelay);
		}
		if (ASaction[2] == 1) {
			obj.ASupDown = true;
			obj.ASminus = true;
			if (obj.idx == 0) obj.ASrepeat = setInterval("ASObject0.doscroll()", obj.ASdelay);
			if (obj.idx == 1) obj.ASrepeat = setInterval("ASObject1.doscroll()", obj.ASdelay);
			if (obj.idx == 2) obj.ASrepeat = setInterval("ASObject2.doscroll()", obj.ASdelay);
			if (obj.idx == 3) obj.ASrepeat = setInterval("ASObject3.doscroll()", obj.ASdelay);
		}
		if (ASaction[2] == 2 || ASaction[2] == 7) {
			obj.ASupDown = false;
			obj.ASminus = false;
			if (obj.idx == 0) obj.ASrepeat = setInterval("ASObject0.doscroll()", obj.ASdelay);
			if (obj.idx == 1) obj.ASrepeat = setInterval("ASObject1.doscroll()", obj.ASdelay);
			if (obj.idx == 2) obj.ASrepeat = setInterval("ASObject2.doscroll()", obj.ASdelay);
			if (obj.idx == 3) obj.ASrepeat = setInterval("ASObject3.doscroll()", obj.ASdelay);
		}
		if (ASaction[2] == 3) {
			obj.ASupDown = false;
			obj.ASminus = true;
			if (obj.idx == 0) obj.ASrepeat = setInterval("ASObject0.doscroll()", obj.ASdelay);
			if (obj.idx == 1) obj.ASrepeat = setInterval("ASObject1.doscroll()", obj.ASdelay);
			if (obj.idx == 2) obj.ASrepeat = setInterval("ASObject2.doscroll()", obj.ASdelay);
			if (obj.idx == 3) obj.ASrepeat = setInterval("ASObject3.doscroll()", obj.ASdelay);
		}
	}
	return;
}
function ASDoScroll() {
	var panx = 0, pany = 0;
	if (!this.ASpauseFlag && this.ASautoFlag) {
		this.scrollto(this.contentBox, this.ASxloc, this.ASyloc, panx, pany);
		this.ASpauseFlag = true;
		this.ASautoFlag = false;
		if (this.idx == 0) this.ASrep = setTimeout("ASObject0.pause()", this.ASstartDelay);
		if (this.idx == 1) this.ASrep = setTimeout("ASObject1.pause()", this.ASstartDelay);
		if (this.idx == 2) this.ASrep = setTimeout("ASObject2.pause()", this.ASstartDelay);
		if (this.idx == 3) this.ASrep = setTimeout("ASObject3.pause()", this.ASstartDelay);
	}
	if (!this.ASpauseFlag && this.ASpixelLines > 0 && this.ASpixCount >= this.ASpixelLines) {
		this.ASpixCount = 0;
		this.ASpauseFlag = true;
		if (this.idx == 0) this.ASrep = setTimeout("ASObject0.pause()", this.ASlineDelay);
		if (this.idx == 1) this.ASrep = setTimeout("ASObject1.pause()", this.ASlineDelay);
		if (this.idx == 2) this.ASrep = setTimeout("ASObject2.pause()", this.ASlineDelay);
		if (this.idx == 3) this.ASrep = setTimeout("ASObject3.pause()", this.ASlineDelay);
	}
	if (!this.ASpauseFlag) {
		var origin, posOrig;
		if (this.ASupDown) {
			if (this.ASminus) {
				this.end = this.ASyloc <= this.ASyDest;
				if (!this.end) {
					origin = this.contentBox.wrapBox ? this.ASyDest : this.ASyOrig;
					posOrig = origin >= 0 ? this.ASyloc - this.ASlines <= origin : this.ASyloc - this.ASlines >= origin;
					if (this.contentBox.wrapBox) {
						this.ASyloc = posOrig ? this.ASyloc - this.ASlines : origin;
					}
					else {
						this.ASyloc = this.ASyloc - this.ASlines;
					}
					pany = this.ASyloc <= 0 ? this.contBoxHeight : -this.contBoxHeight;
				}
			}
			else {
				this.end = this.ASyloc >= Math.abs(this.ASyDestu);
				if (!this.end) {
					origin = this.contentBox.wrapBox ? this.ASyDestu : this.ASyOrig;
					posOrig = origin >= 0 ? this.ASyloc + this.ASlines <= origin : this.ASyloc + this.ASlines >= origin;
					if (this.contentBox.wrapBox) {
						this.ASyloc = posOrig ? this.ASyloc + this.ASlines : origin;
					}
					else {
						this.ASyloc = this.ASyloc + this.ASlines;
					}
					pany = this.ASyloc <= 0 ? this.contBoxHeight : -this.contBoxHeight;
				}
			}
		}
		else {
			if (this.ASminus) {
				this.end = this.ASxloc <= this.ASxDest;
				if (!this.end) {
					origin = this.contentBox.wrapBox ? this.ASxDest : this.ASxOrig;
					posOrig = origin >= 0 ? this.ASxloc - this.ASlines <= origin : this.ASxloc - this.ASlines >= origin;
					if (this.contentBox.wrapBox) {
						this.ASxloc = posOrig ? this.ASxloc - this.ASlines : origin;
					}
					else {
						this.ASxloc = this.ASxloc - this.ASlines;
					}
					panx = this.ASxloc <= 0 ? this.contBoxWidth : -this.contBoxWidth;
				}
			}
			else {
				this.end = this.ASxloc >= Math.abs(this.ASxDestl);
				if (!this.end) {
					origin = this.contentBox.wrapBox ? this.ASxDestl : this.ASxOrig;
					posOrig = origin >= 0 ? this.ASxloc + this.ASlines <= origin : this.ASxloc + this.ASlines >= origin;
					if (this.contentBox.wrapBox) {
						this.ASxloc = posOrig ? this.ASxloc + this.ASlines : origin;
					}
					else {
						this.ASxloc = this.ASxloc + this.ASlines;
					}
					panx = this.ASxloc <= 0 ? this.contBoxWidth : -this.contBoxWidth;
				}
			}
		}
		this.scrollto(this.contentBox, this.ASxloc, this.ASyloc, panx, pany);
		this.ASpixCount += this.ASlines;
	}
	if (this.end) {
		this.end = false;
		if (this.ASloop) {
			this.ASpauseFlag = true;
			this.ASautoFlag = true;
			this.ASyloc = this.ASyOrig;
			this.ASxloc = this.ASxOrig;
			this.ASpixCount = 0;
			if (this.contentBox.wrapBox) {
				this.scrollto(this.contentBox, this.ASxloc, this.ASyloc, panx, pany);
				this.ASpixCount += this.ASlines;
			}
			if (this.idx == 0) this.ASrep = setTimeout("ASObject0.pause()", this.ASendDelay);
			if (this.idx == 1) this.ASrep = setTimeout("ASObject1.pause()", this.ASendDelay);
			if (this.idx == 2) this.ASrep = setTimeout("ASObject2.pause()", this.ASendDelay);
			if (this.idx == 3) this.ASrep = setTimeout("ASObject3.pause()", this.ASendDelay);
		}
		else {
			if (this.ASrepeat > 0) clearInterval(this.ASrepeat);
			if (this.ASrep > 0) clearTimeout(this.ASrep);
		}
	}
	return;
}
function ASScrollTo(obj, x, y, panx, pany) {
	if (ASisW3C) {
		obj.left = x + ASsuff;
		obj.top = y + ASsuff;
		if (obj.wrapBox) {
			obj.wrapBox.left = (x + panx) + ASsuff;
			obj.wrapBox.top = (y + pany) + ASsuff;
		}
	}
	return;
}
function ASPause() {
	this.ASpauseFlag = false;
	clearTimeout(this.ASrep);
	return;
}
function ASGetObject(objName) {
	var params;
	if (ASisW3C) {
		params = eval('document.getElementById("' + objName + '").style');
		ASparamsDiv = eval('document.getElementById("' + objName + '")');
	}
	return params;
}
function ASFindLayerObject(layer, thisLayer) {
	if (thisLayer) {
		var thisDocument = thisLayer.document;
	}
	else {
		var thisDocument = document;
	}
	var layerObj = thisDocument[layer];
	if (layerObj) {
		return layerObj;
	}
	else {
		for (var i = 0; i < thisDocument.layers.length; i++) {
			layerObj = ASFindLayerObject(layer, thisDocument.layers[i]); 
			if (layerObj) {
				break;
			}
		}
	}
	return layerObj;
}
function ASListenOn() {
	if (this.addEventListener) {
		this.addEventListener("mousemove", ASAutoScrollControl, false);
		this.addEventListener("mouseover", ASAutoScrollControl, false);
	}
	else if (document.attachEvent) {
		if (!ASisIE) {
			this.attachEvent("onmousemove", ASAutoScrollControl);
			this.attachEvent("onmouseover", ASAutoScrollControl);
		}
		else {
			this.onmousemove = ASAutoScrollControl;
			this.onmouseover = ASAutoScrollControl;
		}
	}
	return;
}
function ASBorderListenOn() {
	if (this.addEventListener) {
		this.addEventListener("mousemove", ASAutoScrollBorderControl, false);
	}
	else if (this.attachEvent) {
		if (!ASisIE) {
			this.attachEvent("onmousemove", ASAutoScrollBorderControl);
		}
		else {
			this.onmousemove = ASAutoScrollBorderControl;
		}
	}
	return;
}
function ASListenOff() {
	if (this.addEventListener) {
		this.removeEventListener("mousemove", ASAutoScrollControl, false);
		this.removeEventListener("mouseover", ASAutoScrollControl, false);
		this.removeEventListener("mousemove", ASAutoScrollBorderControl, false);
	}
	else if (this.attachEvent) {
		if (!ASisIE) {
			this.detachEvent("onmousemove", ASAutoScrollControl);
			this.detachEvent("onmouseover", ASAutoScrollControl);
			this.detachEvent("onmousemove", ASAutoScrollBorderControl);
		}
		else {
			this.onmousemove = null;
			this.onmouseover = null;
		}
	}
	return;
}
function ASAutoScrollControl(e) {
	var e = (ASisIE) ? event : e;
	this.x = e.pageX ? e.pageX : window.event.clientX;
	this.y = e.pageY ? e.pageY : window.event.clientY;
	var st = document.body.scrollTop + document.documentElement.scrollTop;
	var sl = document.body.scrollLeft + document.documentElement.scrollLeft;
	this.x = ASisIE ? this.x + sl : this.x;
	this.y = ASisIE ? this.y + st : this.y;
	if (!this.inbounds(e)) {
		clearTimeout(this.obj.ASrep);
		clearInterval(this.obj.ASrepeat);
		this.hotspoton = false;
		this.obj.clipingBoxDiv.cursorScrolling = false;
		this.obj.init = false;
	}
	if (this.hotspoton) {
		if (this.obj.ASaction[2] == 7) {
			this.obj.ASupDown = false;
			this.obj.ASminus = this.x >= this.obj.div.hmidpoint;
			var l = (((this.x-this.obj.div.clipBoxLeft) * -100 / (this.obj.div.clipBoxWidth/2)) + 100) *.1;
			var r = (((this.x-this.obj.div.clipBoxLeft) * 100 / (this.obj.div.clipBoxWidth/2)) - 100) *.1;
			this.obj.ASlines = this.x >= this.obj.div.hmidpoint ? r : l;
		}
		else if (this.obj.ASaction[2] == 8) {
			this.div.obj.ASupDown = true;
			this.obj.ASminus = this.y >= this.obj.div.vmidpoint;
			var t = (((this.y-this.obj.div.clipBoxTop) * -100 / (this.obj.div.clipBoxHeight/2)) + 100) *.1;
			var b = (((this.y-this.obj.div.clipBoxTop) * 100 / (this.obj.div.clipBoxHeight/2)) - 100) *.1;
			this.obj.ASlines = this.y >= this.obj.div.vmidpoint ? b : t;
		}
	}
	else {
		this.hotspoton = this.hotspot(e);
	}
	return;
}
function ASInBounds(e) {
	var e = (ASisIE) ? event : e;
	this.x = e.pageX ? e.pageX : window.event.clientX;
	this.y = e.pageY ? e.pageY : window.event.clientY;
	var st = document.body.scrollTop + document.documentElement.scrollTop;
	var sl = document.body.scrollLeft + document.documentElement.scrollLeft;
	this.x = ASisIE ? this.x + sl : this.x;
	this.y = ASisIE ? this.y + st : this.y;
	return this.x > this.obj.div.clipBoxLeft+7 && this.x < (this.obj.div.clipBoxLeft + this.obj.div.clipBoxWidth)-7 && this.y > this.obj.div.clipBoxTop+7 && this.y < (this.obj.div.clipBoxTop + this.obj.div.clipBoxHeight)-7;
}
function ASHotSpot(e) {
	var e = (ASisIE) ? event : e;
	this.x = e.pageX ? e.pageX : window.event.clientX;
	this.y = e.pageY ? e.pageY : window.event.clientY;
	var st = document.body.scrollTop + document.documentElement.scrollTop;
	var sl = document.body.scrollLeft + document.documentElement.scrollLeft;
	this.x = ASisIE ? this.x + sl : this.x;
	this.y = ASisIE ? this.y + st : this.y;
	if (this.obj.ASaction[2] == 7) return this.x < this.obj.div.hmidpoint+30 && this.x > this.obj.div.hmidpoint-30 && this.y < this.obj.div.vmidpoint+20 && this.y > this.obj.div.vmidpoint-20;
	else if (this.obj.ASaction[2] == 8) return this.x < this.obj.div.hmidpoint+20 && this.x > this.obj.div.hmidpoint-20 && this.y < this.obj.div.vmidpoint+30 && this.y > this.obj.div.vmidpoint-30;
}
function ASAutoScrollBorderControl(e) {
	var e = (ASisIE) ? event : e;
	this.x = e.pageX ? e.pageX : window.event.clientX;
	this.y = e.pageY ? e.pageY : window.event.clientY;
	var st = document.body.scrollTop + document.documentElement.scrollTop;
	var sl = document.body.scrollLeft + document.documentElement.scrollLeft;
	this.x = ASisIE ? this.x + sl : this.x;
	this.y = ASisIE ? this.y + st : this.y;
	if (this.inborderbounds(e)) {
		if (!this.obj.div.scrolling) {
			if (this.obj.ASaction[2] == 9) {
				this.obj.ASminus = this.x >= this.obj.div.hmidpoint;
				if (this.obj.idx == 0) this.ASrepeat = setInterval("ASObject0.doscroll()", this.obj.ASdelay);
				if (this.obj.idx == 1) this.ASrepeat = setInterval("ASObject1.doscroll()", this.obj.ASdelay);
				if (this.obj.idx == 2) this.ASrepeat = setInterval("ASObject2.doscroll()", this.obj.ASdelay);
				if (this.obj.idx == 3) this.ASrepeat = setInterval("ASObject3.doscroll()", this.obj.ASdelay);
			}
			if (this.obj.ASaction[2] == 10) {
				this.obj.ASminus = this.y >= this.obj.div.vmidpoint;
				if (this.obj.idx == 0) this.ASrepeat = setInterval("ASObject0.doscroll()", this.obj.ASdelay);
				if (this.obj.idx == 1) this.ASrepeat = setInterval("ASObject1.doscroll()", this.obj.ASdelay);
				if (this.obj.idx == 2) this.ASrepeat = setInterval("ASObject2.doscroll()", this.obj.ASdelay);
				if (this.obj.idx == 3) this.ASrepeat = setInterval("ASObject3.doscroll()", this.obj.ASdelay);
			}
			this.obj.div.scrolling = true;
		}
	}
	else {
		clearTimeout(this.ASrep);
		clearInterval(this.ASrepeat);
		this.obj.div.scrolling = false;
		if (this.obj.ASxloc < 0) this.obj.contentBox.wrapBox.left = this.obj.ASxloc + this.obj.contBoxWidth + "px";
	}
	return;
}
function ASInBorderBounds(e) {
	var e = (ASisIE) ? event : e;
	this.x = e.pageX ? e.pageX : window.event.clientX;
	this.y = e.pageY ? e.pageY : window.event.clientY;
	var st = document.body.scrollTop + document.documentElement.scrollTop;
	var sl = document.body.scrollLeft + document.documentElement.scrollLeft;
	this.x = ASisIE ? this.x + sl : this.x;
	this.y = ASisIE ? this.y + st : this.y;
	var l1 = this.obj.div.clipBoxLeft, l2 = this.obj.div.clipBoxLeft+this.obj.AShotzone; r1 = this.obj.div.clipBoxLeft+this.obj.div.clipBoxWidth-this.obj.AShotzone, r2 = this.obj.div.clipBoxLeft+this.obj.div.clipBoxWidth;
	var t1 = this.obj.div.clipBoxTop, t2 = this.obj.div.clipBoxTop+this.obj.AShotzone; b1 = this.obj.div.clipBoxTop+this.obj.div.clipBoxHeight-this.obj.AShotzone, b2 = this.obj.div.clipBoxTop+this.obj.div.clipBoxHeight;
	//
	if (this.obj.ASaction[2] == 9) var isin = ((this.x > l1 && this.x < l2) || (this.x > r1 && this.x < r2)) && this.y > t1 && this.y < b2;
	else if (this.obj.ASaction[2] == 10) var isin = ((this.y > t1 && this.y < t2) || (this.y > b1 && this.y < b2)) && this.x > l1 && this.x < r2;
	return isin;
}
function ASDoInit() {
	this.getobject = ASGetObject;
	this.scrollto = ASScrollTo;
	this.pause = ASPause;
	this.doscroll = ASDoScroll;
	this.clipingBox = this.getobject(this.ASaction[4]);
	this.clipingBoxDiv = ASparamsDiv;
	this.clipingBoxDiv.ASaction = this.ASaction;
	document.obj = this;
	document.obj.div = this.clipingBoxDiv;
	document.listenon = ASListenOn;
	document.listenoff = ASListenOff;
	document.hotspot = ASHotSpot;
	document.hotspoton = false;
	document.inbounds = ASInBounds;
	document.inborderbounds = ASInBorderBounds;
	document.listenborderon = ASBorderListenOn;
	document.hotborderspoton = false;
	this.contentBox = this.getobject(this.ASaction[5]);
	this.contentBoxDiv = ASparamsDiv;
	this.contentBox.wrapBox = null;
	if (this.ASaction[6] != "") {
		this.contentBox.wrapBox = this.getobject(this.ASaction[6]);
	}
	this.ASloop = this.contentBox.wrapBox ? true : this.ASaction[11];
	this.ASscrollOut = this.contentBox.wrapBox ? true : this.ASaction[12];
	this.ASstopFlag = false;
 	this.ASrepeat = 0;
 	this.ASrep = 0;
	this.ASstartDelay = 0;
	this.ASlineDelay = 0;
	this.ASendDelay = 0;
	this.ASyDest = 0;
	this.ASyOrig = 0;
	this.ASyloc = 0;
	this.ASxDest = 0;
	this.ASxOrig = 0;
	this.ASxloc = 0;
	this.ASpixCount = 0;
	this.ASpauseFlag = false;
	this.ASautoFlag = this.ASaction[3] == 0 ? true : false;
	this.ASstopFlag = false;
	this.end = false;
	if (ASisW3C) {
		var clipingBox = document.getElementById(this.ASaction[4]);
		var contentBox = document.getElementById(this.ASaction[5]);
		this.contBoxWidth = contentBox.clientWidth;
		this.contBoxHeight = contentBox.clientHeight;
		this.contBoxTop = contentBox.offsetTop;
		this.contBoxLeft = contentBox.offsetLeft;
		this.clipBoxWidth = clipingBox.clientWidth;
		this.clipBoxHeight = clipingBox.clientHeight;
		this.clipBoxTop = clipingBox.offsetTop;
		this.clipBoxLeft = clipingBox.offsetLeft;
		this.clipingBoxDiv.clipBoxWidth = clipingBox.clientWidth;
		this.clipingBoxDiv.clipBoxHeight = clipingBox.clientHeight;
		this.clipingBoxDiv.clipBoxTop = parseInt(this.clipBoxTop);
		this.clipingBoxDiv.clipBoxLeft = parseInt(this.clipBoxLeft);
		this.clipingBox.clip = "rect(" + 0 + "px " + clipingBox.clientWidth + "px " + clipingBox.clientHeight + "px " + 0 + "px)";
		this.clipingBox.overflow = "hidden";
	}
	var opy = this.clipingBoxDiv.offsetParent ? this.clipingBoxDiv.offsetParent.offsetTop : 0;
	var opx = this.clipingBoxDiv.offsetParent ? this.clipingBoxDiv.offsetParent.offsetLeft : 0;
	this.clipingBoxDiv.hmidpoint = this.clipingBoxDiv.clipBoxLeft + (this.clipBoxWidth / 2 + opy);
	this.clipingBoxDiv.vmidpoint = this.clipingBoxDiv.clipBoxTop + (this.clipBoxHeight / 2) + opx;
	this.clipingBoxDiv.obj = this;
	if (this.contentBox.wrapBox) {
		if (ASisW3C) {
			if (this.ASupDown) {
				this.contentBox.wrapBox.left = this.contBoxLeft;
				this.contentBox.wrapBox.top = this.contBoxTop < 0 ? this.contBoxTop + this.contBoxHeight + ASsuff : this.contBoxTop - this.contBoxHeight + ASsuff;
			}
			else {
				this.contentBox.wrapBox.top = this.contBoxTop;
				this.contentBox.wrapBox.left = this.contBoxLeft < 0 ? this.contBoxLeft + this.contBoxWidth + ASsuff : this.contBoxLeft - this.contBoxWidth + ASsuff;
			}
		}
	}
	this.ASyOrig = this.contBoxTop;
	this.ASxOrig = this.contBoxLeft;
	this.ASyloc = this.contBoxTop;
	this.ASxloc = this.contBoxLeft;
	this.ASminus = this.ASaction[2] == 1 || this.ASaction[2] == 3;
	if (this.ASscrollOut) {
		this.ASyDest = -1*this.contBoxHeight;
		this.ASyDestu = this.contBoxHeight;
		this.ASxDest = -1*this.contBoxWidth;
		this.ASxDestl = this.contBoxWidth;
	}
	else {
		this.ASyDest = -1*(this.contBoxHeight - this.clipBoxHeight);
		this.ASyDestu = 0;
		this.ASxDest = -1*(this.contBoxWidth - this.clipBoxWidth);
		this.ASxDestl = 0;
	}
	if (this.ASaction[2] == 7 || this.ASaction[2] == 8) {
		document.listenoff();
		document.listenon();
		this.clipingBoxDiv.cursorScrolling = true;
	}
	if (this.ASaction[2] == 9 || this.ASaction[2] == 10) {
		document.listenoff();
		document.listenborderon();
		this.clipingBoxDiv.cursorScrolling = true;
	}
	return;
}
function ASDoInit2() {
	if (ASisW3C) {
		var clipingBox = document.getElementById(this.ASaction[4]);
		var contentBox = document.getElementById(this.ASaction[5]);
		this.contBoxWidth = contentBox.clientWidth;
		this.contBoxHeight = contentBox.clientHeight;
		this.contBoxTop = contentBox.offsetTop;
		this.contBoxLeft = contentBox.offsetLeft;
		this.clipBoxWidth = clipingBox.clientWidth;
		this.clipBoxHeight = clipingBox.clientHeight;
		this.clipBoxTop = clipingBox.offsetTop;
		this.clipBoxLeft = clipingBox.offsetLeft;
		this.clipingBoxDiv.clipBoxWidth = clipingBox.clientWidth;
		this.clipingBoxDiv.clipBoxHeight = clipingBox.clientHeight;
		this.clipingBoxDiv.clipBoxTop = parseInt(this.clipBoxTop);
		this.clipingBoxDiv.clipBoxLeft = parseInt(this.clipBoxLeft);
		this.clipingBox.clip = "rect(" + 0 + "px " + clipingBox.clientWidth + "px " + clipingBox.clientHeight + "px " + 0 + "px)";
		this.clipingBox.overflow = "hidden";
	}
	this.clipingBoxDiv.hmidpoint = this.clipingBoxDiv.clipBoxLeft + (this.clipBoxWidth / 2);
	this.clipingBoxDiv.vmidpoint = this.clipingBoxDiv.clipBoxTop + (this.clipBoxHeight / 2);
	this.clipingBoxDiv.obj = this;
	this.scrolling = false;
	if (this.contentBox.wrapBox) {
		if (ASisW3C) {
			if (this.ASupDown) {
				this.contentBox.wrapBox.left = this.contBoxLeft;
				this.contentBox.wrapBox.top = this.ASminus ? this.contBoxTop + this.contBoxHeight + ASsuff : this.contBoxTop - this.contBoxHeight + ASsuff;
			}
			else {
				this.contentBox.wrapBox.top = this.contBoxTop;
				this.contentBox.wrapBox.left = this.ASminus ? this.contBoxLeft + this.contBoxWidth + ASsuff : this.contBoxLeft - this.contBoxWidth + ASsuff;
			}
		}
	}
	this.ASyOrig = this.contBoxTop;
	this.ASxOrig = this.contBoxLeft;
	this.ASyloc = this.contBoxTop;
	this.ASxloc = this.contBoxLeft;
	return;
}
function ASVersion() {
	return true;
}
//

