//      Cross-Browser Dynamic Html Script
//      Written By David E Haasnoot
//      Copyright © 1998 WriteDesign
n6 = document.getElementById ? 1 : 0;
ie = document.all ? 1 : 0;
n = document.layers ? 1 : 0;

function dynLayer(id, nestref, obj) {
	if (n) {
		this.css = document.layers[id];
		this.x = this.css.left;
		this.y = this.css.top;
	} else {
		if (ie) {
			this.css = document.all[id].style;
			this.x = this.css.pixelLeft;
			this.y = this.css.pixelTop;
		} else {
			if (n6) {
				this.css = document.getElementById(id).style;
				this.x = this.css.left;
				this.y = this.css.top;
			}
		}				
	}
	this.obj = id + "Object";
	eval(this.obj + "=this");
	this.moveTo = dynLayerMoveTo;
	this.show = dynLayerShow;
	this.hide = dynLayerHide;
	this.id = id;
}

function dynLayerMoveTo(x,y) {
	this.x = x;
	this.css.left = this.x;
	this.y = y;
	this.css.top = this.y;
}

function dynLayerShow() {
	if (n) this.css.visibility = "show";
	else if (ie || n6) this.css.visibility = "visible";
}

function dynLayerHide() {
	if (n) this.css.visibility = "hide";
	else if (ie || n6) this.css.visibility = "hidden";
}
//END
