/*


 				MACHINE GENERATED FILE - DO NOT EDIT



		File generated on: Fri, 17 Jun 2011 17:15:08

		Copyright (c) 2008-2009 Group Logic Incorporated. All rights reserved.

		This source code may be used only by organizations licensed to use MassTransit, in conjunction with normal MassTransit usage. No portion 
		of it may be redistributed or modified without the written permission of Group Logic, Inc. See the Group Logic Software License Agreement 
		for more information.

*/




var Base=function(){};Base.extend=function(_instance,_static){var extend=Base.prototype.extend;Base._prototyping=true;var proto=new this;extend.call(proto,_instance);delete Base._prototyping;var constructor=proto.constructor;var klass=proto.constructor=function(){if(!Base._prototyping){if(this._constructing||this.constructor==klass){this._constructing=true;constructor.apply(this,arguments);delete this._constructing;}else if(arguments[0]!=null){return(arguments[0].extend||extend).call(arguments[0],proto);}}};klass.ancestor=this;klass.extend=this.extend;klass.forEach=this.forEach;klass.implement=this.implement;klass.prototype=proto;klass.toString=this.toString;klass.valueOf=function(type){return(type=="object")?klass:constructor.valueOf();};extend.call(klass,_static);if(typeof klass.init=="function")klass.init();return klass;};Base.prototype={extend:function(source,value){if(arguments.length>1){var ancestor=this[source];if(ancestor&&(typeof value=="function")&&(!ancestor.valueOf||ancestor.valueOf()!=value.valueOf())&&/\bbase\b/.test(value)){var method=value.valueOf();value=function(){var previous=this.base||Base.prototype.base;this.base=ancestor;var returnValue=method.apply(this,arguments);this.base=previous;return returnValue;};value.valueOf=function(type){return(type=="object")?value:method;};value.toString=Base.toString;}
this[source]=value;}else if(source){var extend=Base.prototype.extend;if(!Base._prototyping&&typeof this!="function"){extend=this.extend||extend;}
var proto={toSource:null};var hidden=["constructor","toString","valueOf"];var i=Base._prototyping?0:1;while(key=hidden[i++]){if(source[key]!=proto[key]){extend.call(this,key,source[key]);}}
for(var key in source){if(!proto[key])extend.call(this,key,source[key]);}}
return this;},base:function(){}};Base=Base.extend({constructor:function(){this.extend(arguments[0]);}},{ancestor:Object,version:"1.1",forEach:function(object,block,context){for(var key in object){if(this.prototype[key]===undefined){block.call(context,object[key],key,object);}}},implement:function(){for(var i=0;i<arguments.length;i++){if(typeof arguments[i]=="function"){arguments[i](this.prototype);}else{this.prototype.extend(arguments[i]);}}
return this;},toString:function(){return String(this.valueOf());}});
(function(){function _register(ns){var nsBits=ns.split(".");var rootObj=window;for(var i=0;i<nsBits.length;i++){rootObj[nsBits[i]]=rootObj[nsBits[i]]||{};rootObj=rootObj[nsBits[i]];}};var rootObj=window;rootObj.com=rootObj.com||{};rootObj=rootObj.com;rootObj.grouplogic=rootObj.grouplogic||{};rootObj=rootObj.grouplogic;rootObj.globals=rootObj.globlals||{};window.$R=_register;window.$G=window.com.grouplogic.globals;})();
$R('com.grouplogic.Handlers');(function(){var undefined;com.grouplogic.Handlers=function(){this.constructor();};com.grouplogic.Handlers.prototype={constructor:function(){},addLoadEventHandler:function(w,func){var curHandler=w.onload;if(typeof w.onload!='function'){w.onload=func;}else{w.onload=function(h,f){return function(){if(h){h();}
f();}}(curHandler,func);}},addUnloadEventHandler:function(w,func){var curHandler=w.onunload;if(typeof w.onunload!='function'){w.onunload=func;}else{w.onunload=function(h,f){return function(){if(h){h();}
f();}}(curHandler,func);}},addErrorEventHandler:function(w,func){var curHandler=w.onerror;if(typeof w.onerror!='function'){w.onerror=func;}else{w.onerror=function(h,f){return function(){if(h){h();}
f();}}(curHandler,func);}}};})();$G.handlers=new com.grouplogic.Handlers();
$R('com.grouplogic.Debug');(function(){var undefined;com.grouplogic.Debug=function(){this.constructor();};com.grouplogic.Debug.prototype={mDebug:false,mDisplayExceptionsInConsole:false,constructor:function(){this.mDebugConsole=null;this.mManySpaces='                              ';},dbgtrace:function(module,submodule,op,msg,color){if(!this.isValid(color))color="#1D1D1D";var myModule=module+(': '+this.mManySpaces);var s=this.isValid(submodule)?submodule:'';var o=this.isValid(op)?op:'';var d=new Date();var dt=$G.gliUtils.substr(String('0'+d.getHours()),-2,2)+':'+$G.gliUtils.substr(String('0'+d.getMinutes()),-2,2)+':'+$G.gliUtils.substr(String('0'+d.getSeconds()),-2,2)+'.'+$G.gliUtils.substr(String('000'+d.getMilliseconds()),-4,4);if(this.mDebug){if(o=='-'){this.writeToDebugConsole('');}else{var m='<pre><font color="'+color+'">'+$G.gliUtils.substr(myModule,0,16);if(s)
s+=': ';s+=this.mManySpaces;if(o)
o+=': ';o+=this.mManySpaces;this.writeTraceToDebugConsole(dt,$G.gliUtils.substr(myModule,0,12),$G.gliUtils.substr(s,0,12),$G.gliUtils.substr(o,0,12),msg,color);}}},isDebug:function(){return this.mDebug;},dbg:function(msg){if(this.mDebug){this.writeToDebugConsole(msg);}},dbg_error:function(msg){var dt=new Date();this.dbg(dt.getTime()+" "+msg);},dbg_error:function(msg){var dt=new Date();this.dbg(dt.getTime()+" "+msg);},alert:function(v){if(this.mDebug)alert(v);},confirm:function(v){if(this.mDebug)return confirm(v);},assertEquals:function(txt,v,ev){if(v!=ev){this.alert('ASSERT FAILED: expected \"'+txt+'\" to be '+ev+' but got '+v);}},isNull:function(val){return(val==null);},isUndefined:function(v){return(typeof(v)==undefined);},isValid:function(v){return!(this.isNull(v)||this.isUndefined(v));},haveDebugConsole:function(){return(this.mDebugConsole!=null);},displayExceptionsInConsole:function(){return this.mDisplayExceptionsInConsole;},createConsole:function(msg){if(com.grouplogic.DebugConsole==undefined){if(window.console){window.console.log(e.message);}else{alert(e.message);}}else{this.mDebugConsole=new com.grouplogic.DebugConsole();}},writeExceptionToConsole:function(e,js){if(this.isDebug()){if(!this.haveDebugConsole()){this.createConsole();}
this.mDebugConsole.writeExceptionToConsole(e,js);}},writeToDebugConsole:function(msg){if(this.isDebug()){if(!this.haveDebugConsole()){this.createConsole();}
this.mDebugConsole.writeToDebugConsole(msg);}},writeTraceToDebugConsole:function(dt,module,submodule,op,msg,color){if(this.isDebug()){if(!this.haveDebugConsole()){this.createConsole();}
this.mDebugConsole.writeTraceToDebugConsole(dt,module,submodule,op,msg,color);}},releaseDebugConsole:function(){if(this.mDebugConsole){this.mDebugConsole.releaseDebugConsole();}
this.mDebugConsole=null;}};})();$G.debug=new com.grouplogic.Debug();function dbg(msg){$G.debug.dbg(msg);}
function dbg_error(msg){$G.debug.dbg_error(msg);}
