var cs=window;var dummy=function(){};rt={};rt.__sys={};rt.__sys.exception=null;rt.__sys.authorunList=[];rt.state={};rt.state.INITIALIZING=0;rt.state.WORK=1;rt.state.STOPPING=2;rt.state.TERMINATED=2;rt.state.CORRUPTED=2;rt.info={};rt.info.version={major:4,minor:5,revision:276};rt.info.state=rt.state.INITIALIZING;rt.services={};rt.config={};rt.config.allowDynamicConfig={debugMode:true,verbose:true,forceNoCache:true};rt.config.verbose=false;rt.config.debugMode=false;rt.config.forceNoCache=true;rt.config.detalizeScriptError=true;rt.config.supressDebugMessages=false;rt.config.serviceSite=rt.services;rt.config.runtimePath="RT/";rt.config.defaultAppsPath="";rt.__sys.__typeOfType=null;Type=function(a,e,c,g){var i=this;var d;var f;var h;var b;if(rt.__sys.__typeOfType==null){d="Type";f=null;h=null;b=Type.CLASS;i.Type=i;rt.__sys.__typeOfType=this}else{if(arguments.length==0){throw new Exception("Type information must be specified")}if(!a||isNaN(a)){throw new Exception("Incorrect object type specified")}if(typeof(e)!="string"||e==""){throw new Exception("Incorrect URI specified for the current type")}if(!!c&&typeof(c)!="function"){throw new Exception("Invalid argument value baseType. Can't inherit from not class instance")}b=a;d=e;f=c;if(!!g&&g.length==0){h=null}else{h=g}this.Type=rt.__sys.__typeOfType}this.toString=function(){return d};this.isInstanceOfType=function(j){return(!!j.Type&&j.Type.isDerrivedOf(i))};this.isDerrivedOf=function(m){var l=i;var n=m;if(n.Type!==i.Type){n=n.Type}var o=n.isInterface();var k;var j;do{if(o==true){j=l.interfaces;if(!j){continue}for(k=j.length;k>0;){if(j[--k].Type===n){j=null;return true}}}else{if(l===n){return true}}l=l.baseType}while(!!l);return false};this.fullName=function(){return d};this.name=function(){var j=d.lastIndexOf(".");return(j!=-1?d.substr(j+1):d)};this.baseClass=f;this.baseType=(!f?null:f.Type);this.interfaces=h;this.isClass=function(){return(b==Type.CLASS)};this.isInterface=function(){return(b==Type.INTERFACE)};this.isSingleton=function(){return(b==Type.SINGLETON)};this.isNamespace=function(){return(b==Type.NAMESPACE)};this.isUmanagedClass=function(){return(b==Type.UNMANAGED_CLASS)}};Type.UNMANAGED_CLASS=-1;Type.CLASS=1;Type.INTERFACE=2;Type.SINGLETON=4;Type.NAMESPACE=16;rt.__sys.__typeOfType=new Type();Exception=function Exception(f,e){var c=f;var d=e;var g="N/A";var b="N/A";var a=null;this.getMessage=function(){return c};this.getInnerException=function(){return d};this.setSourceObject=function(h){a=h};this.getSourceObject=function(){return a};this.setClassName=function(h){g=h};this.getClassName=function(){return g};this.setMethodName=function(h){b=h};this.getMethodName=function(){return b};this.toString=function(){return"Exception: "+((c==null)?"":c)+"."+((!!d)?"":" "+d.toString())};this.ctor=function(i,h){c=i;d=h};rt.__sys.exception=this};Exception.createException=function(e,c,d,a,f){var b=new Exception(e,c);b.setClassName(d);b.setMethodName(a);b.setSourceObject(f);return b};Exception.dumpException=function(a){var c="";if(a instanceof Error){c="error no: "+(a.number&65535)+" message: "+a.message+"\n	details: "+a.description}else{if(!a.getSourceObject){c=a.toString()+(!a.stack?"":a.stack.toString())}else{if(a.getSourceObject()!=null){c="\n    in instance "+a.getSourceObject().toString()}var b=a.getInnerException();if(!!b){c="\n    -- caused by "+((b instanceof Error)?"unmanaged error ":"")+Exception.dumpException(b)}c="Exception: "+((a.getMessage()==null)?"":a.getMessage())+"\n    class: "+((a.getClassName()==null)?"":a.getClassName())+" method: "+((a.getMethodName()==null)?"":a.getMethodName())+c}}return c};rt.logger={};rt.logger.writeLn=function writeLog(a){cs.status=a};writeLog=rt.logger.writeLn;writeLog("Logging is available at now (RT version:"+rt.info.version.major+"."+rt.info.version.minor+"."+rt.info.version.revision+")");rt.debug={};rt.debug.consoleAttached=false;rt.debug.currentWriter=null;rt.debug.writers=[{validate:function(){return((typeof(Debug)!=="undefined")&&Debug.writeln)},write:function(a){Debug.writeln(a)}},{validate:function(){return(!!cs.console&&!!cs.console.log)},write:function(a){cs.console.log(a)}},{validate:function(){return(!!cs.opera)},write:function(a){cs.opera.postError(a)}},{validate:function(){return(!!window.debugService)},write:function(a){cs.debugService.trace(a)}}];rt.debug.writeln=function writeDebug(d,a){if(rt.config.supressDebugMessages==true){return}var c=rt.debug.writers;if(!rt.debug.currentWriter){var b;for(b=0;b<c.length-1;b++){if(c[b].validate()==true){rt.debug.currentWriter=c[b];break}}}if(!!rt.debug.currentWriter&&rt.debug.currentWriter.validate()==true){if(rt.debug.consoleAttached==false){rt.debug.consoleAttached=true;rt.debug.currentWriter.write("Welcome to RT version:"+rt.info.version.major+"."+rt.info.version.minor+"."+rt.info.version.revision);rt.debug.currentWriter.write("System response new debugging session or other attached console. Have a nice debugging")}rt.debug.currentWriter.write(d)}else{rt.debug.consoleAttached=false;if(!a||a==false){writeLog(d)}}};writeDebug=rt.debug.writeln;verbose=function(a){if(rt.config.verbose==true){writeDebug("VERBOSE: "+a,false)}};var verboseMsg;if(rt.config.allowDynamicConfig){verboseMsg="Changes in config [";var dConf=window.location.search;dConf=dConf.substr(1,dConf.length-1);var isFirst=true;var dParams=dConf.split("&");var dParam;var oldValue;for(var index=0;index<dParams.length;index++){dParam=dParams[index].split("=");if(rt.config.allowDynamicConfig[dParam[0]]==true){if(dParam[0]=="allowDynamicConfig"){continue}oldValue=rt.config[dParam[0]];dParam[1]=decodeURI(dParam[1]);if(dParam[1]=="true"){dParam[1]=true}rt.config[dParam[0]]=dParam[1];if(isFirst==false){verboseMsg+=", "}verboseMsg+=dParam[0]+":"+dParam[1]+" ("+oldValue+")";isFirst=false}}verboseMsg+="]";isFirst=null;dConf=null;dParam=null;dParams=null;oldValue=null}else{verboseMsg="Dynamicaly configuration not allowed"}writeDebug("All debug messages you will be see in this attached console",true);verbose("VERBOSE mode is: "+(rt.config.verbose==true),false);verbose("Running RT version: "+rt.info.version.major+"."+rt.info.version.minor+"."+rt.info.version.revision);verbose(verboseMsg);verboseMsg=null;rt.watchdog={};rt.watchdog.errorCatcher=function(c,a,d){var b="WatchDog: Err#"+(Error.number&65535)+": "+a+" msg: "+c+" line: "+d;if(!!rt.__sys.exception){b+="\n"+Exception.dumpException(rt.__sys.exception)}writeLog(b);writeDebug(b);if(rt.debug.consoleAttached==false){alert(b)}if(rt.info.state!=rt.state.WORK){rt.info.state=rt.state.CORRUPTED;b="\nSystem abnormal shutdown";writeLog(b);writeDebug(b)}if(!!cs.event){cs.event.returnValue=false;cs.event.cancelBubble=true}return true};cs.onerror=rt.watchdog.errorCatcher;verbose("Error WatchDog attached as default exception handler");var registerNS=function(a){if(!a||typeof(a)!="string"){throw new Exception("Can't register namespace, bad URI specified")}var e=a.split(".");var f=cs;var c;var d=e.length;for(var b=0;b<d;){c=e[b++];if(!f[c]){f[c]={};f[c].Type=new Type(Type.NAMESPACE,(e.slice(0,b)).join("."));f=f[c]}else{f=f[c];if(d==b&&!f.Type&&f.Type.isNamespace()==false){throw Exception.createException("You try to register namespace at URI "+a+" but at this URI already exist some other object",null,null,null,f)}}}verbose("Reserved namespace with URI: "+a);f=null};registerNS("System");registerNS("System.Browsers");System.Browsers.engines=["N/A","Gecko","Trident","Presto","WebKit"];var identifyEngine=function(){var a=navigator;var c=a.userAgent.toLowerCase();var b=(!a.product?"":a.product.toLowerCase());if(b.indexOf("gecko")!=-1){return 1}if(c.indexOf("msie")>0){return 2}if(c.indexOf("opera")!=-1){return 3}if(c.indexOf("safari")!=-1){return 4}if(c.indexOf("compatible")==-1&&c.indexOf("mozilla")!=-1){return 1}return 0};rt.info.engine=identifyEngine();verbose("Current engine responsed as "+System.Browsers.engines[rt.info.engine]);if(rt.info.engine==0){throw new Exception("Urecognized browser engine")}else{writeLog("Browser engine: "+System.Browsers.engines[rt.info.engine])}rt.__sys._classes={};rt.ENTRY_CLASS_SHADOW="rt.__sys._classes";function GUID(){var b=System.Math.hex;var a=new Date();return b(Math.random()*1000000000000000000)+b(a.valueOf())}function objectByURI(URI){var object;try{eval("object = "+URI+";")}catch(e){throw new Exception("Can't lookup definition at URI: "+URI)}return object}function autorun(a,b){rt.__sys.authorunList.push({URI:a,path:b})}verbose("System ready to queue autorun applications");System._classWrapper="return this._i(arguments.callee,arguments);";registerNS("System.Math");System.Math.binaryDigits="01";System.Math.decimalDigits="0123456789";System.Math.hexadecimalDigits="0123456789abcdef";System.Math.bin=function bin(d){var b;var a="";var c=System.Math.binaryDigits;do{b=d%2;d-=b;a=c.charAt(b)+a;d=d/2}while(d>0);return a};System.Math.hex=function Hex(d){var b;var a="";var c=System.Math.hexadecimalDigits;do{b=d%16;d-=b;d=d/16;a=c.charAt(b)+a}while(d>0);return a};Object.prototype.inherit=function Inherit(a){if(!a){if(!this.__type.baseClass){this._isInCreating=2;return null}var b=this.__type.baseClass;this.__type=b.Type;var c=b.prototype.constructor.apply(this);c.Type=b.Type;return c}else{this.__type.__shadowCopy.apply(this);if(this._isInCreating==2){return}else{if(this.__type.baseClass==null){this._isInCreating=2}else{if(this._isInCreating==1){throw new Exception("Inheritance interrupted before reaching the end")}}}}};Object.prototype._i=function(c,a){if(!this._isInCreating){if(c.Type.isSingleton()==true&&c.Type.__instance!=null&&c.Type.__instance!=undefined){return c.Type.__instance}this._isInCreating=1;if(!this.__type){this.__type=c.Type}this.inherit(true);this._isInCreating=null;delete this._isInCreating;this.__type=null;delete this.__type;this.Type=c.Type;if(!!c._v){return}if(!!this.ctor){try{if(a.length>0){this.ctor.apply(this,a)}else{this.ctor.apply(this)}}catch(d){throw new Exception("Call constructor of type "+c.Type.fullName()+" throw a error, see details",d)}finally{delete this.ctor}}if(c.Type.isSingleton()==true){c.Type.__instance=this}}else{this.inherit(true);var b={};var f;for(f in this){b[f]=this[f]}this.base=b;return b}};rt.__sys.__registerClass=function(isSingleton,typeURI,baseType,interfaces){if(baseType===undefined){baseType=System.Object}var args=null;if(arguments.length>3){args=[];args.push.apply(args,arguments);args.shift();args.shift();args.shift()}var classType=new Type(((isSingleton==true)?Type.SINGLETON:Type.CLASS),typeURI,baseType,args);classType.__shadowCopyID="s"+GUID();var oc_sc=objectByURI(typeURI);classType.__shadowCopy=oc_sc;rt.__sys._classes[classType.__shadowCopyID]=oc_sc;eval(typeURI+' = new Function ("'+System._classWrapper+'")');var wrapperInstance=objectByURI(typeURI);var member;var oc_op=Object.prototype;for(member in oc_sc){if(!oc_op[member]&&typeof(oc_sc[member])=="function"){wrapperInstance[member]=oc_sc[member]}}oc_sc.__iShadowOf=typeURI;wrapperInstance.Type=classType;if(!!args){wrapperInstance._v=true;var instance=new wrapperInstance();var index;var inhertedInterface;var errorLog="";var itfcMember;var instanceMember;for(index=0;index<args.length;){inhertedInterface=args[index++];for(member in inhertedInterface){itfcMember=inhertedInterface[member];if(!!oc_op[member]||typeof(itfcMember)!="function"){continue}instanceMember=instance[member];if(!instanceMember||typeof(instanceMember)!="function"){errorLog+='\nmember: "'+member+'" of interface '+inhertedInterface.Type.fullName()}else{if(itfcMember.length!=instanceMember.length){errorLog+='\nmember: "'+member+'" of interface '+inhertedInterface.Type.fullName()+" implemented with an incorrect number of arguments"}}}}delete wrapperInstance._v;if(errorLog!=""){throw new Exception("Implementation error for class "+typeURI+". Members listed bellow must be implemented"+errorLog)}}};var registerClass=function(d,b,c){var a=[false];a.push.apply(a,arguments);rt.__sys.__registerClass.apply(null,a)};var registerSingleton=function(d,b,c){var a=[true];a.push.apply(a,arguments);rt.__sys.__registerClass.apply(null,a)};var registerInterface=function(interfaceURI){try{eval(interfaceURI+" = new "+interfaceURI+"()")}catch(e){throw new Exception("Can't register interface",e)}(objectByURI(interfaceURI)).Type=new Type(Type.INTERFACE,interfaceURI,null,null)};registerClass("Exception",null);notImplementedMember=function(){throw new Exception("Not implemented")};IDisposable=function(){this.dispose=function(){notImplementedMember()}};registerInterface("IDisposable");System.Event=function(){var b,d;var c=this;var a=dummy;this.name=function(){return b};var e=function(){try{for(var f=d.length;f>0;){if((d[--f].apply(null,arguments))==true){return true}}}catch(g){throw new Exception("Event handler of "+c.toString()+" event throw a error.",g)}};this.listenerCount=function(){if(!d){return 0}else{return d.length}};this.fireEvent=function(){return a.apply(this,arguments)};this.subscribe=function(f){if(typeof(f)!="function"){throw Exception.createException("Handler not specified or not a function",null,"System.Event","subscribe",null)}if(!d){d=new Array();a=e}d.push(f)};this.unsubscribe=function(g){if(typeof(g)!="function"){throw Exception.createException("Handler not specified or not a function",null,"System.Event","unsubscribe()",null)}if(!d){return}var f=d.indexOf(g);if(f>-1){d.splice(f,1);if(d.length=0){d=null;a=dummy}}};this.toString=function(){var f=(!d?0:d.length);return c.Type.fullName()+": "+b+" with "+(f>0?f:" no ")+" listeners"};this.ctor=function(f){if(typeof(f)!="string"||f==""){throw Exception.createException("Event name must be defined",null,"System.Event","constructor",null)}b=f}};registerClass("System.Event",null);Object.prototype.registerEvent=function(a){if(!this[a]){this[a]=new System.Event(a)}else{throw new Exception("Property or method with specified name already exists")}};System.Object=function(){var a=this;this.toString=function(){return a.Type.fullName()};this._isInCreating=2};registerClass("System.Object",null);registerNS("System.Data");System.Data.createXMLHTTPRequest=function(){if(cs.XMLHttpRequest){try{return new XMLHttpRequest()}catch(a){}}else{if(window.ActiveXObject){try{return new ActiveXObject("Msxml2.XMLHTTP.4.0")}catch(a){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(a){}try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(a){}}}return null};rt.__sys.defaultTransporter=System.Data.createXMLHTTPRequest();verbose((rt.__sys.defaultTransporter==null)?"Failed to create transporter":"Default tranporter successefuly created");rt.use=function use(g,d){if(!g){throw new Exception("URI must be specified")}var b;var c=(!d?rt.config.runtimePath:d);if(typeof(g)=="string"){b=[g]}else{if(g instanceof Array){b=g}else{throw new Exception("URI must be string or array of string value")}}var a=function(v){var t=v.split(".");var k=c+t.join("/");var q=cs;var s=false;var u;var o=null;var w=t.length;for(var p=0;p<w;){u=t[p++];if(!q[u]){q[u]={};q=q[u];q.Type=new Type(Type.NAMESPACE,(t.slice(0,p)).join("."))}else{q=q[u];s=(p==w);if(s==true){if(!q.Type&&q.Type.isNamespace()==false){throw Exception.createException("You try to register namespace at URI "+v+" but at this URI already exist some other object",null,null,null,tempNS)}writeDebug("Requested to publish already published namespace "+v);return true}}}u=null;try{var n=true;writeDebug("Loading namespace: '"+v+"'...");var m=rt.__sys.defaultTransporter;if(rt.config.debugMode==true){m.open("GET",k+".debug.js"+((rt.config.forceNoCache==true)?"?"+GUID():""),false);m.send(null);if(m.status!=200&&m.status!=304){verbose("No debug version for NS: "+v)}else{n=false}}if(n==true){m.open("GET",k+".js"+((rt.config.forceNoCache==true)?"?"+GUID():""),false);m.send(null);if(m.status!=200&&m.status!=304){throw new Exception("Can't loading NS: '"+v+"' return code #"+m.status)}}o=m.responseText}catch(r){throw new Exception("On loading NS: '"+v+"' occured error see details",r)}try{writeDebug("Publishing NS: "+v+"...");(new Function(o))();if(!q.version){verbose("NS: "+v+" version not specified")}else{verbose("NS: "+v+" version "+q.version.major+"."+q.version.minor+"."+q.version.revision)}writeDebug(v+" published successfully");return true}catch(r){if(rt.config.detalizeScriptError==true){var j="===================";j="\n"+j+j+j+j+j+j+"\n";writeDebug("Error occured on publishing namespace '"+v+"'\n"+Exception.dumpException(r)+j+"==   Try to catcing detailed error information...\n==   Look for WatchDog messages bellow, The following description and line number applies to the '"+v+"' namespace.\n==   File path: "+k+j);var l=cs.document.createElement("SCRIPT");l.language="javascript";l.type="text/javascript";l.src=k+((rt.config.forceNoCache==true)?"?"+GUID():"");cs.document.body.appendChild(l);l=null;throw new Exception("Namespace '"+v+"' published with errors.")}else{throw new Exception("Namespace '"+v+"' published with errors see details.\n"+Exception.dumpException(r))}}};try{for(var f=0;f<b.length;){a(b[f++])}}catch(h){throw new Exception("Can't initialize functionality",h)}};use=rt.use;verbose("Created infrastructure for loadinC:SwampWRDevelopmentWRCore.jsg functionality");rt.__sys._loader=function(){var a=this;var d=function(f,g){(rt.services.$manager.createTask(f,g)).run()};var e=function(){writeDebug("Startup autorun applications...");try{cs.autorun=d;var f;var g;for(f=0;f<rt.__sys.authorunList.length;){g=rt.__sys.authorunList[f++];try{verbose("Run process "+g.URI);d(g.URI,g.path)}catch(h){writeDebug("Some of autorun application not run. See details: "+Exception.dumpException(h))}}}catch(h){throw new Exception("Intitializing aborted, for reason see details",h)}writeDebug("System started")};var b=function(){writeDebug("Initializing...");e();verbose("System started")};var c=function(){try{use(["Adapters."+System.Browsers.engines[rt.info.engine],"JavaScript.Extension","System.Threads","System.Services","System.Services.Connections"]);rt.services.$manager=new System.Services.ProcessManager();verbose("Process manager created and ready to run other services...");rt.services.$manager.createService(System.Services.Connections.ConnectionManager);rt.services.ConnectionManager.run()}catch(f){throw new Exception("Intitializing aborted, for reason see details",f)}rt.info.state=rt.state.WORK};this.initialize=function(){c();if((cs.document.getElementsByTagName("BODY")).length==0&&(cs.document.getElementsByTagName("FRAMESET")).length==0){verbose("Loading delayed until the completion of initialization of the page");var f=cs.onload;if(typeof(f)!="function"){cs.onload=b}else{cs.onload=function(){f();b()}}}else{verbose("Page already initialized, used short start");b()}}};rt.__sys.loader=new rt.__sys._loader();verbose("Runtime initialization completed, running in progress...");rt.__sys.loader.initialize();