// ZNIPPets.com, "Zparam.js", by DocOzone... DHTML variables ...

window.onerror = null;

window.defaultStatus ="";
// that sets the status bar to " "

NS = (document.layers) ? 1:0
IE = (document.all) ? 1:0
gecko = (document.getElementById) ? 1:0
	loaded=0;
	layerstart = "";
	layerstyle = ""; 
	layerleft = ".left";
	layertop = ".top";
if (NS) {
	layerstart = "document.";
	layerstyle = "";  }
if (gecko || IE){
	layerstart = "document.getElementById('";
	layerstyle = "').style"; }
if (IE && !gecko){
	layerstart = "document.all.";
	layerstyle = ".style"; }
	
// Browser family definition

	function getFamily() {
if (IE) { if (!gecko) { return "IE4"; } else { return "IE5"; }}
if (NS) { return "NS4"; }
if (gecko) { return "gecko"; } else { return "crap"; }
	}

// end error trapping

// Begine primary variable creations...

	getZvalue = function(which) {
		for (m=0;m<Zparam.length;m++) {
		if (Zparam[m].getNumID() == which) { return Zparam[m].getNumValue(); }}
		return "null";}

	setZvalue = function(which,what) {
		for (m=0;m<Zparam.length;m++) {
		if (Zparam[m].getNumID() == which) { Zparam[m].setNumValue(what); }}}

function makeAnything(id,value,desc) {
	this.id = id;
	this.value = value;
	}

makeAnything.prototype.getNumID = function(which) {return this.id;}
makeAnything.prototype.setNumID = function(which) {this.id = which;}
makeAnything.prototype.getNumValue = function(what) {return this.value;}
makeAnything.prototype.setNumValue = function(what) {this.value = what;}

// basic screen attributes, height and width, etc...

	screenWide = screen.width;
	screenHigh = screen.height;
	availWide = screen.availWidth;
	availHigh = screen.availHeight;

	function getInners() {
if (NS || gecko) {
	innerWide = window.innerWidth;
	innerHigh = window.innerHeight; }
if (IE)  { 
	innerWide = document.body.clientWidth;
	innerHigh = document.body.clientHeight; }
	} 
	getInners();
	
// final definition block!

	Zparam = new Array();
Zparam[0] = new makeAnything('screenWidth',screenWide);
Zparam[1] = new makeAnything('screenHeight',screenHigh);
Zparam[2] = new makeAnything('availWidth',availWide);
Zparam[3] = new makeAnything('availHeight',availHigh);

Zparam[4] = new makeAnything('browserType',getFamily());

Zparam[5] = new makeAnything('innerWidth',innerWide);
Zparam[6] = new makeAnything('innerHeight',innerHigh);
Zparam[7] = new makeAnything('scrollX',0);
Zparam[8] = new makeAnything('scrollY',0);

	ZparamDesc = new Array();
ZparamDesc[0] = 'Width of the monitor display, in pixels.';
ZparamDesc[1] = 'Height of the monitor display, in pixels.';
ZparamDesc[2] = 'Available width of the monitor display, in pixels.';
ZparamDesc[3] = 'Available height of the monitor display, in pixels.';

ZparamDesc[4] = 'Possible values are NS4, IE4, IE5, gecko, and \'crap\'.';

ZparamDesc[5] = 'Inside width of the browser display, in pixels.<br>(This value updates automatically.)';
ZparamDesc[6] = 'Inside height of the browser display, in pixels.<br>(This value updates automatically.)';
ZparamDesc[7] = 'Horizontal scrolling, in pixels.<br>(This value updates automatically.)';
ZparamDesc[8] = 'Vertical scrolling, in pixels.<br>(This value updates automatically.)';


	getZdesc = function(num) {
		if (ZparamDesc[num]) { return ZparamDesc[num]; }
		else { return "";}}

