// Copyright (C) 1999 Dan Steinman, Distributed under the terms of the GNU Library General Public License
// Available at http://www.dansteinman.com/dynapi/
// Updated to support Netscape 6 by dhamilton@agency.com
function DynLayerSetbg(color) {
	if (is.ns) this.doc.bgColor = color
	else this.css.backgroundColor = color
}
DynLayer.prototype.setbg = DynLayerSetbg
function DynLayerGetRelativeX() {
	return (is.ns)? this.css.pageX : this.elm.offsetLeft
}
function DynLayerGetRelativeY() {
	return (is.ns)? this.css.pageY : this.elm.offsetTop
}
DynLayer.prototype.getRelativeX = DynLayerGetRelativeX
DynLayer.prototype.getRelativeY = DynLayerGetRelativeY
function DynLayerGetContentWidth() {
	if (is.ns) {return this.doc.width}
	else if (is.ie && !ns6) { return this.elm.scrollWidth}
	else {return this.elm.offsetWidth}
}
function DynLayerGetContentHeight() {
	if (is.ns) {return this.doc.height}
	else if (is.ie && !ns6) { return this.elm.scrollHeight}
	else {return this.elm.offsetHeight}
}
DynLayer.prototype.getContentWidth = DynLayerGetContentWidth
DynLayer.prototype.getContentHeight = DynLayerGetContentHeight
