
/*
	"Hemi" JavaScript Framework
	Engine for Web Applications 3.1
	Composite file "hemi.comp.js" release: 3.1.9
	Copyright 2002 - 2010. All Rights Reserved.
	Author: Stephen W. Cote
	Email: sw.cote@gmail.com
	Project: http://www.whitefrost.com/Hemi/
	BSD License: http://www.whitefrost.com/Hemi.license.txt
*/
(function(){H.include("hemi.event");H.namespace("driver",H,{service:null,serviceImpl:
function(){var t=this,_x=H.xml,_m=H.message.service;t.p={l:0,wl:0,wu:0,gc:0};t.o={application_config:0};t._terminate=function(){_m.setDeliveryDelay(0);_m.publish("destroy",window);};t.getConfig=function(){return t.o.a;};t.setConfig=function(o,b){t.p.l=1;t.o.a=o;if(b)_m.publish("application_config_loaded",o);};t._handle_window_unload=function(){this.destroy();};t.sigterm=function(){this.destroy(1);};t.destroy=function(b){var t=this;if(!t.p.wu){t.p.wu=1;t.o.a=0;if(!b)H.registry.service.sendSigterm();this._terminate();t.r=5;H.event.removeEventListener(window,"unbeforeload",t._prehandle_window_unload);H.event.removeEventListener(window,"unload",t._prehandle_window_unload);H.event.removeEventListener(window,"load",t._prehandle_window_load);}};t._handle_window_load=function(){t.p.wl=1;_m.publish("dom_event_window_load",this);};H.event.addScopeBuffer(t);H.IM(t,"base_object","driver_utility","3.1.9");H.registry.service.addObject(t);t.scopeHandler("window_load",0,0,1);t.scopeHandler("window_unload",0,0,1);H.event.addEventListener(window,"unbeforeload",t._prehandle_window_unload);H.event.addEventListener(window,"unload",t._prehandle_window_unload);H.event.addEventListener(window,"load",t._prehandle_window_load);t.r=4;}},1);}());
/* End Hemi Framework 3.1 */

