// ZNIPPets.com, "Zprime.js", by DocOzone... default basic setup...

window.onerror = function() { return true; }
window.defaultStatus ="";
// that sets the status bar to "" and disables error reporting.

function makeZflag() {
	this.NS = document.layers ? 1:0;
	this.IE = document.all ? 1:0;
	this.gecko = document.getElementById ? 1:0;
	this.mac = (navigator.appVersion.indexOf("Mac") > -1) ? 1:0;
	this.opera = (navigator.appName.indexOf("Opera") > -1) ? 1:0;
	}

Zflag = new makeZflag();

if (Zflag.NS) {
	location.href="/ourWalls/";
	layerstart = "document.";
	layerstyle = "";  }
if (Zflag.gecko){
	layerstart = "document.getElementById('";
	layerstyle = "').style"; }
if (Zflag.IE){
	layerstart = "document.all.";
	layerstyle = ".style"; }
	
	function getZbrowser() {
alert(navigator.appName + " - " + navigator.appVersion); }

// ZNIPPets.com, "Zbrowse.js", by DocOzone... basic browser variables...

function makeZbrowse() { this.id = "Zbrowse";}

makeZbrowse.prototype.width = function() {return Zflag.IE?document.body.clientWidth:window.innerWidth;}
makeZbrowse.prototype.height = function() {return Zflag.IE?document.body.clientHeight:window.innerHeight;}
makeZbrowse.prototype.scrollY = function() {return Zflag.IE?document.body.scrollTop:pageYOffset;}
makeZbrowse.prototype.scrollX = function() {return Zflag.IE?document.body.scrollLeft:pageXOffset;}

Zbrowse = new makeZbrowse();

// ZNIPPets.com, "Zimage.js", by DocOzone... default basic setup... (from changeminds.com)

function getZimage(name,wrapper,outerWrapper,outerOuterWrapper) {
if (document.layers) {
	returnString = "";
	if (outerOuterWrapper) returnString = returnString + "document." + outerOuterWrapper + ".";
	if (outerWrapper) returnString = returnString + "document." + outerWrapper + ".";
	if (wrapper) returnString = returnString + "document." + wrapper + ".";
	returnString = returnString + "document." + name;
	return eval(returnString);
	}
else if (document.all) {
	return eval("document.all." + name);
	}
else if (document.getElementById) {
	return document.getElementById(name);
	}
else { return false; }
}

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

function makeZobject(ID,wrapper,top,left,height,width,zindex,visibility,topGoal,leftGoal) {
	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";
	this.topGoal = topGoal ? topGoal:top;
	this.leftGoal = leftGoal ? leftGoal:left;
	}

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;
	}


