DynObj.ver=2.13;

if(!Array.push) Array.prototype.push=function(i){this[this.length]=i;}

function Browser(){
	var d=document;
	var n=navigator;
	var nua=n.userAgent;

	this.DOM=(d.getElementById&&d.createElement)?true:false;
	this.NS=(n.appName=="Netscape");
	this.IE=(d.all)?true:false;
	this.VER=(this.NS)?parseFloat(n.appVersion):parseFloat(nua.substr(nua.indexOf("MSIE")+5,nua.length));

	this.NS4=(this.NS&&!this.DOM);
	this.NS6=(this.NS&&this.DOM);
	
	this.IE4=(this.IE&&!this.DOM);
	this.IE5UP=(this.IE&&this.DOM);
	this.IE50=(this.IE5UP&&this.VER>=5&&this.VER<5.5);
	this.IE55=(this.IE5UP&&this.VER==5.5);
	this.IE6UP=(this.IE5UP&&this.VER>=6);
	this.IE60=(this.IE5UP&&this.VER==6);

	this.MAC=(n.platform.toLowerCase().indexOf("mac")>-1);
	this.WIN=(n.platform=="Win32"||!this.MAC);
}
b=new Browser();


function DynObj(name,parent){
	if(DynObj.getObj(name)!=null||document.dynobj[name]!=null){
		alert("DynObj Error:\n\nAn object with the name '"+name+"' already exists!");
		return document.dynobj[name];
	}else{
		this.name=name;
		this.parent=null;
		this.children=new Array();
		if(parent){
			this.parent=parent;
			this.parent.children.push(this);
			this.parent.children[name]=this;
		}

		document.dynobj.push(this);
		document.dynobj[name]=this;

		this.obj=(parent)?DynObj.createObj(name,parent.obj):DynObj.createObj(name);
		this.id=this.obj.id;
		if(b.NS4)this.obj.style=this.obj;
		this.style=this.obj.style;

		if(b.NS4) this.obj.document.id=this.id;
		document.getdynobj[this.obj.id]=this;
	}

	this.visible=false;
	if(!parent)this.setVisible(false);
	else this.visible=parent.visible;
	this.html="";
	this.nsw=-1;
	this.nsh=-1;
	this.keepInParent=false;
}	






if(b.MAC&&b.IE)onunload=DynObj.destroyAll;
