///////////////////////////////////////////////////////////////////////////////
// 							Cross Browser DOM Extensions
//	Dependencies:	Netscape_is.js		  				
//	Prefix:	xb		  				
//	Calls:		  				
//	Called By:	 				
//	Displays:	 
//	Variables:	
//	Subroutines: 
//	Functions:				
//	Author:		Paul Coleman  
//	Written:	 8/16/1999
//	Modified:	 9/16/1999
///////////////////////////////////////////////////////////////////////////////
if (!is) {
	alert("Cross Browser DOM Extention (xbdx.js) requires Netscape_is.js to be loaded.  Contact the WebMaster to report this problem.");
} else {
	is.DHTMLup = (is.ie4up || is.nav4up) && (is.js >= 1.2);
	xbdx = new Object();
	xbdx.Version = "0.3";
	xbdx.ModifyDate = "9.16.1999";
	xbdx.Status = "Beta";
//	with (window.document) {
		window.document.IntervalFactor = 5;
//		IntervalFactor = 5;
		if(is.nav4up) {
			window.document.IntervalFactor = 30;
//			IntervalFactor = 30;
		} else if(is.ie4up) {
			window.document.IntervalFactor = 10;
//			IntervalFactor = 10;
		};
//	};

	if(is.nav4up) {
		document.all = document;
	} else if(is.ie4up) {
		// IE compatability code here
	};
	window.getInnerWidth = xbGetInnerWidth;
	window.getInnerHeight = xbGetInnerHeight;
};

function xbInit() {
	if(is.nav4up) {
		// NN compatibility code here
	} else if(is.ie4up) {
		// IE compatibility code here
	};

};
//SSL = Style Sheet Layer
function xbSSLInit(obj,tagName) {
	if(is.nav4up) {
		if(eval("window.document.all." + obj.name)== null){
			eval("window.document.all." + obj.name + " = obj");
		};
		eval("window.document.all." + obj.name + ".document.all = window.document.all." + obj.name + ".document");	
	    obj.tagName=tagName;
		obj.style = obj;
	} else if(is.ie4up) {
		obj.moveTo = xbMoveTo;
		obj.moveBy = xbMoveBy;
	};
	obj.getClientWidth = xbGetClientWidth;
	obj.getClientHeight = xbGetClientHeight;
	obj.Write = xbWrite;
	obj.AddWrite = xbAddWrite;
	obj.CurrentContent = "";
};
function xbImgInit(oImg) {
	if(!oImg.Installed) {
	    if(is.nav4up) {
			if(eval("window.document." + oImg.name)== null){
				eval("window.document." + oImg.name + " = oImg");
			};
		    oImg.tagName="IMG";;
	    };
		oImg.Installed = true;
	};
};
function xbGetInnerWidth() {
var InnerWidth = null;
	if(is.nav4up) {
		InnerWidth = window.innerWidth;
	} else if(is.ie4up) {
		InnerWidth = document.body.clientWidth;
	};
	return InnerWidth;
};
function xbGetInnerHeight() {
var InnerHeight = null;
	if(is.nav4up) {
		InnerHeight = window.innerHeight;
	} else if(is.ie4up) {
		InnerHeight = document.body.clientHeight;
	};
	return InnerHeight;
};
function xbGetClientWidth() {
var ClientWidth = null;
	if(is.nav4up) {
		ClientWidth = this.clip.width;
	} else if(is.ie4up) {
		ClientWidth = this.clientWidth;
	};
	return ClientWidth;
};
function xbGetClientHeight() {
var ClientHeight = null;
	if(is.nav4up) {
		ClientHeight = this.clip.height;
	} else if(is.ie4up) {
		ClientHeight = this.clientHeight;
	};
	return ClientHeight;
};
function xbWrite(txt) {
	if(is.nav4up) {
		this.document.open();
		this.document.write(txt);
		this.document.close();
//		with (this.document) {
//			open();
//			write(txt);
//			close();
//		};
	} else if(is.ie4up) {
		this.innerHTML = txt;
	};
	this.CurrentContent = txt;
};
function xbAddWrite(txt) {
	txt = this.CurrentContent + txt
	this.bcWrite(txt);
	this.CurrentContent = txt;
};
function xbMoveTo(x,y) {
	this.left = x;
	this.top = y;
};
function xbMoveBy(deltax,deltay) {
	var posx = parseInt(this.style.left);
	var posy = parseInt(this.style.top);

	this.style.left = posx + deltax;
	this.style.top = posy + deltay;
};

