/*
	Author: Stephen W. Cote
	Email: wranlon@hotmail.com
	
	Copyright 2002, All Rights Reserved.
	
	Do not copy, archive, or distribute without prior written consent of the author.
*/

_js_package("org.cote.js.ui.object");

org.cote.js.ui.object.newInstance=function(s,z){
	var o = org.cote.js.object.newInstance(s,z),i=0,v,e;

/*	id,names,status,objects,events,event_lookup*/

	if(typeof org.cote.js.class_imports[s]=="string"){
		if(typeof z=="undefined") z = "0.0";


		eval("v=" + org.cote.js.class_imports[s]);


		
		o.object_config.style_name_id = v.style_name_id;

		o.object_config.style_names = v.style_names;
		o.object_config.status = v.status;

		o.object_config.pointers = v.pointers;

		e=v.event_handlers;
		for(;i<e.length;i++){
			o._create_handler(e[i],0,0,(v.event_handler_impl?1:0));
		}
	}

	return o;
}

