// ZNIPPets.com, "makeZobject.js", by DocOzone... 
// "prototype" functions for the makeZobject() function.

// Note: This is the "Basic" stripped down version.

function makeZobject(
	ID,wrapper,top,left,height,width,zindex,visibility) {
	this.ID = ID ? ID : "Zobject"+(Zobject.length);
	this.DHTML = (wrapper && Zflag.NS) ? eval(layerstart + wrapper + "." + layerstart + this.ID + layerstyle) : eval(layerstart + this.ID + layerstyle);
	this.top = top ? top:0;
	this.left = left ? left:0;
	this.height = height ? height:0;
	this.width = width ? width:0;
	this.zindex = zindex ? zindex:(Zobject.length+1)*1000;
	this.visibility = visibility ? visibility:"visible";
	}

makeZobject.prototype.setZall = function() {
	this.DHTML.top = this.top; 
	this.DHTML.left = this.left;
	this.DHTML.zIndex = this.zindex;
	this.DHTML.height = this.height;
	this.DHTML.width = this.width;
	this.DHTML.visibility = this.visibility;
	}

// these minimal functions will return the 'num' from the Zobject array based on the name.

function getZnum(ID) {
	for (m=0;m<Zobject.length;m++){ if (Zobject[m].ID==ID){ return m;} }
	return false;}

function getZwindowNum(ID) {
	for (m=0;m<Zwindow.length;m++){ if (Zwindow[m].ID==ID){ return m;} }
	return false;}
