Type.createNamespace("ScriptFX");ScriptFX.CollectionChangedAction=function(){};ScriptFX.CollectionChangedAction.prototype={add:0,remove:1,reset:2};ScriptFX.CollectionChangedAction.createEnum("ScriptFX.CollectionChangedAction",false);ScriptFX.$create__Core$1=function(e,d,b,a){var c={};c.$1=e;c.$0=d;c.$2=b;c.$3=a;return c};ScriptFX.IEventManager=function(){};ScriptFX.IEventManager.createInterface("ScriptFX.IEventManager");ScriptFX.ISupportInitialize=function(){};ScriptFX.ISupportInitialize.createInterface("ScriptFX.ISupportInitialize");ScriptFX.INotifyDisposing=function(){};ScriptFX.INotifyDisposing.createInterface("ScriptFX.INotifyDisposing");ScriptFX.HostName=function(){};ScriptFX.HostName.prototype={other:0,IE:1,mozilla:2,safari:3,opera:4};ScriptFX.HostName.createEnum("ScriptFX.HostName",false);ScriptFX.INotifyCollectionChanged=function(){};ScriptFX.INotifyCollectionChanged.createInterface("ScriptFX.INotifyCollectionChanged");ScriptFX.INotifyPropertyChanged=function(){};ScriptFX.INotifyPropertyChanged.createInterface("ScriptFX.INotifyPropertyChanged");ScriptFX.ITask=function(){};ScriptFX.ITask.createInterface("ScriptFX.ITask");ScriptFX.IObjectWithOwner=function(){};ScriptFX.IObjectWithOwner.createInterface("ScriptFX.IObjectWithOwner");ScriptFX.Application=function(){this.$9=[];this.$A=100;ScriptHost.add_load(Delegate.create(this,this.$18));ScriptHost.add_unload(Delegate.create(this,this.$19));this.$12=Delegate.create(this,this.$1C);window.attachEvent("onbeforeunload",this.$12);this.$13=Delegate.create(this,this.$1B);window.attachEvent("onerror",this.$13);var b=document.documentElement;var a=b.className;if(a.startsWith("$")){var c=this.get_host();a=a.replace("$browser",Enum.toString(ScriptFX.HostName,c.get_name()));a=a.replace("$majorver",c.get_majorVersion().toString());a=a.replace("$minorver",c.get_minorVersion().toString());b.className=a}};ScriptFX.Application.prototype={$0:null,$1:0,$2:null,$3:false,$4:false,$5:false,$6:null,$7:null,$8:null,$9:null,$A:0,$B:0,$C:null,$D:0,$E:null,$F:null,$10:null,$11:null,$12:null,$13:null,$14:null,$15:null,get_domain:function(){return window.document.domain},set_domain:function(a){window.document.domain=a;return a},get_$16:function(){if(!this.$8){this.$8=new ScriptFX.EventList()}return this.$8},get_history:function(){return this.$7},get_host:function(){if(!this.$0){this.$0=new ScriptFX.HostInfo()}return this.$0},get_idleFrequency:function(){return this.$A},set_idleFrequency:function(a){this.$A=a;return a},get_isFirstLoad:function(){return this.$5},get_isIE:function(){if(!this.$1){this.$1=(this.get_host().get_name()===1)?1:-1}return(this.$1===1)?true:false},get_sessionState:function(){return this.$6},add_error:function(a){this.get_$16().addHandler("error",a)},remove_error:function(a){this.get_$16().removeHandler("error",a)},add_idle:function(a){this.get_$16().addHandler("idle",a);if(!this.$B){if(!this.$14){this.$14=Delegate.create(this,this.$17)}this.$B=window.setTimeout(this.$14,this.$A)}},remove_idle:function(b){var a=this.get_$16().removeHandler("idle",b);if((!a)&&(this.$B)){window.clearTimeout(this.$B);this.$B=0}},add_load:function(a){if(this.$3){a.invoke(this,EventArgs.Empty)}else{this.get_$16().addHandler("load",a)}},remove_load:function(a){this.get_$16().removeHandler("load",a)},add_unload:function(a){this.get_$16().addHandler("unload",a)},remove_unload:function(a){this.get_$16().removeHandler("unload",a)},add_unloading:function(a){this.get_$16().addHandler("unloading",a)},remove_unloading:function(a){this.get_$16().removeHandler("unloading",a)},addTask:function(a){if(!this.$C){this.$C=[]}this.$C.enqueue(a);if(!this.$D){if(!this.$15){this.$15=Delegate.create(this,this.$1A)}this.$D=window.setTimeout(this.$15,0)}},enableHistory:function(){if(this.$7){return}this.$7=ScriptFX.HistoryManager.$8()},getService:function(b){if((b===IServiceContainer)||(b===ScriptFX.IEventManager)){return this}if(this.$11){var a=b.get_fullName().replace(".","$");return this.$11[a]}return null},$17:function(){this.$B=0;var a=this.get_$16().getHandler("idle");if(a){a.invoke(this,EventArgs.Empty);this.$B=window.setTimeout(this.$14,this.$A)}},$18:function(e,c){var b=$("__session");if(b){var f=b.value;if(String.isNullOrEmpty(f)){this.$5=true;this.$6={}}else{this.$6=ScriptFX.JSON.deserialize(f);if(isUndefined(this.$6.__appLoaded)){this.$5=true}}this.$6.__appLoaded=true}else{this.$5=true}if(this.$2){for(var d=0;d<this.$2.length;d+=2){this.$2[d].main(this.$2[d+1])}this.$2=null}this.$3=true;var a=this.get_$16().getHandler("load");if(a){a.invoke(this,EventArgs.Empty)}if(this.$7){this.$7.$A()}},$19:function(e,d){if(!this.$4){this.$4=true;if(this.$D){window.clearTimeout(this.$D)}if(this.$B){window.clearTimeout(this.$B)}var b=this.get_$16().getHandler("unload");if(b){b.invoke(this,EventArgs.Empty)}if(this.$C){while(this.$C.length){var a=this.$C.dequeue();if(Type.canCast(a,IDisposable)){(a).dispose()}}}if(this.$9.length){var c=this.$9.getEnumerator();while(c.moveNext()){var f=c.get_current();f.dispose()}this.$9.clear()}if(this.$7){this.$7.dispose();this.$7=null}window.detachEvent("onbeforeunload",this.$12);window.detachEvent("onerror",this.$13);this.$12=null;this.$13=null;this.$15=null;this.$14=null}},$1A:function(){this.$D=0;if(this.$C.length){var a=this.$C.dequeue();if(!a.execute()){this.$C.enqueue(a)}else{if(Type.canCast(a,IDisposable)){(a).dispose()}}if(this.$C.length){this.$D=window.setTimeout(this.$15,0)}}},$1B:function(){var b=this.get_$16().getHandler("error");if(b){var a=new ScriptFX.CancelEventArgs();a.set_canceled(true);b.invoke(this,a);if(a.get_canceled()){window.event.returnValue=false}}},$1C:function(){window.event.avoidReturn=true;var b=this.get_$16().getHandler("unloading");if(b){var a=new ScriptFX.ApplicationUnloadingEventArgs();b.invoke(this,a)}if(this.$6){var c=$("__session");c.value=ScriptFX.JSON.serialize(this.$6)}},raiseEvent:function(c,b,d){if(this.$E){var a=this.$E[c];if(a){a.invoke(b,d)}}},registerDisposableObject:function(a){if(!this.$4){this.$9.add(a)}},registerEvent:function(d,c,f){if(this.$E){var a=this.$E[d];if(a){a.invoke(c,f)}}if(!this.$10){this.$10=[]}if(!this.$F){this.$F={};this.$F[d]=1}else{var g=this.$F[d];if(isUndefined(g)){this.$F[d]=1}else{this.$F[d]=1+g}}var b=ScriptFX.$create__Core$1(d,c,f,this.$10.length);this.$10.add(b);return b.$3},registerEventHandler:function(c,d){var b=null;if(!this.$E){this.$E={}}else{b=this.$E[c]}this.$E[c]=Delegate.combine(b,d);if(!isNullOrUndefined(this.$F[c])){var e=this.$10.getEnumerator();while(e.moveNext()){var a=e.get_current();if(!a){continue}if(a.$1===c){d.invoke(a.$0,a.$2)}}}},registerService:function(c,a){if(!this.$11){this.$11={}}var b=c.get_fullName().replace(".","$");this.$11[b]=a},run:function(a,b){if(this.$3){a.main(b)}else{if(!this.$2){this.$2=[]}this.$2.add(a);this.$2.add(b)}},unregisterDisposableObject:function(a){if(!this.$4){this.$9.remove(a)}},unregisterEvent:function(c){var b=this.$10[c];var a=this.$F[b.$1];if(a===1){delete this.$F[b.$1]}else{this.$F[b.$1]=a-1}this.$10[c]=null},unregisterEventHandler:function(b,c){if(this.$E){var a=this.$E[b];if(a){a=Delegate.remove(a,c);if(!a){delete this.$E[b]}else{this.$E[b]=a}}}},unregisterService:function(b){if(this.$11){var a=b.get_fullName().replace(".","$");delete this.$11[a]}}};ScriptFX.CancelEventArgs=function(){ScriptFX.CancelEventArgs.constructBase(this)};ScriptFX.CancelEventArgs.prototype={$1_0:false,get_canceled:function(){return this.$1_0},set_canceled:function(a){this.$1_0=a;return a}};ScriptFX.CollectionChangedEventArgs=function(b,a){ScriptFX.CollectionChangedEventArgs.constructBase(this);this.$1_0=b;this.$1_1=a};ScriptFX.CollectionChangedEventArgs.prototype={$1_0:0,$1_1:null,get_action:function(){return this.$1_0},get_item:function(){return this.$1_1}};ScriptFX.ApplicationUnloadingEventArgs=function(){ScriptFX.ApplicationUnloadingEventArgs.constructBase(this)};ScriptFX.ApplicationUnloadingEventArgs.prototype={setUnloadPrompt:function(a){window.event.returnValue=a;window.event.avoidReturn=false}};ScriptFX.HistoryManager=function(a,b){this.$0=a;this.$1=b};ScriptFX.HistoryManager.$8=function(){var b=ScriptFX.Application.current.get_host().get_name();if((b!==1)&&(b!==2)){return new ScriptFX.HistoryManager(false,null)}var a=null;if(b===1){a=$("_historyFrame")}return new ScriptFX.HistoryManager(true,a)};ScriptFX.HistoryManager.prototype={$0:false,$1:null,$2:null,$3:null,$4:false,$5:false,$6:null,get_isEnabled:function(){return this.$0},add_navigated:function(a){this.$7=Delegate.combine(this.$7,a)},remove_navigated:function(a){this.$7=Delegate.remove(this.$7,a)},$7:null,addEntry:function(a){if(!this.$0){return}this.$4=true;if(this.$1){this.$5=true;this.$1.src=this.$2+a}else{this.$E(a)}},dispose:function(){if(this.$1){this.$1.detachEvent("onload",this.$3);this.$1=null}},$9:function(){var a=window.location.hash;if((a.length)&&(a.charAt(0)==="#")){a=a.substr(1)}return a},goBack:function(){window.history.back()},goForward:function(){window.history.forward()},$A:function(){if(!this.$0){return}ScriptFX.Application.current.add_idle(Delegate.create(this,this.$B));if(this.$1){this.$2=this.$1.src+"?";this.$3=Delegate.create(this,this.$C);this.$1.attachEvent("onload",this.$3)}this.$6=this.$9();this.$D(this.$6)},$B:function(c,b){var a=this.$9();if(a!==this.$6){if(this.$4){return}this.$6=a;this.$D(a)}else{this.$4=false}},$C:function(){var a=this.$1.contentWindow.location.search;if((a.length)&&(a.charAt(0)==="?")){a=a.substr(1)}this.$E(a);if(this.$5){this.$5=false;return}this.$D(a)},$D:function(a){if(this.$7){this.$7.invoke(this,new ScriptFX.HistoryEventArgs(a))}},$E:function(a){this.$6=a;window.location.hash=a}};ScriptFX.HistoryEventArgs=function(a){ScriptFX.HistoryEventArgs.constructBase(this);this.$1_0=a};ScriptFX.HistoryEventArgs.prototype={$1_0:null,get_entryName:function(){return this.$1_0}};ScriptFX.HostInfo=function(){var b=window.navigator.userAgent.toLowerCase();var a=null;var c;if((c=b.indexOf("opera"))>=0){this.$0=4;a=b.substr(c+6)}else{if((c=b.indexOf("msie"))>=0){this.$0=1;a=b.substr(c+5)}else{if((c=b.indexOf("safari"))>=0){this.$0=3;a=b.substr(c+7)}else{if((c=b.indexOf("firefox"))>=0){this.$0=2;a=b.substr(c+8)}else{if(b.indexOf("gecko")>=0){this.$0=2;a=window.navigator.appVersion}}}}}if(a){this.$1=parseFloat(a);this.$2=parseInt(this.$1);if((c=a.indexOf("."))>=0){this.$3=parseInt(a.substr(c+1))}}};ScriptFX.HostInfo.prototype={$0:0,$1:0,$2:0,$3:0,get_majorVersion:function(){return this.$2},get_minorVersion:function(){return this.$3},get_name:function(){return this.$0},get_version:function(){return this.$1}};ScriptFX.EventList=function(){};ScriptFX.EventList.prototype={$0:null,addHandler:function(a,b){if(!this.$0){this.$0={}}this.$0[a]=Delegate.combine(this.$0[a],b)},getHandler:function(a){if(this.$0){return this.$0[a]}return null},removeHandler:function(c,d){if(this.$0){var b=this.$0[c];if(b){var a=Delegate.remove(b,d);this.$0[c]=a;return(a)}}return false}};ScriptFX.JSON=function(){};ScriptFX.JSON.deserialize=function(s){if(String.isNullOrEmpty(s)){return null}if(!ScriptFX.JSON.$0){ScriptFX.JSON.$0=new RegExp("('|\")\\\\@(-?[0-9]+)@('|\")","gm")}s=s.replace(ScriptFX.JSON.$0,"new Date($2)");return eval("("+s+")")};ScriptFX.JSON.serialize=function(b){if(isNullOrUndefined(b)){return String.Empty}var a=new StringBuilder();ScriptFX.JSON.$1(a,b);return a.toString()};ScriptFX.JSON.$1=function(l,k){if(isNullOrUndefined(k)){l.append("null");return}var i=typeof(k);switch(i){case"boolean":l.append(k.toString());return;case"number":l.append((isFinite(k))?k.toString():"null");return;case"string":l.append((k).quote());return;case"object":if(Array.isInstance(k)){l.append("[");var h=k;var g=h.length;var f=true;for(var e=0;e<g;e++){if(f){f=false}else{l.append(",")}ScriptFX.JSON.$1(l,h[e])}l.append("]")}else{if(Date.isInstance(k)){var d=k;var c=Date.UTC(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate(),d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds());l.append('"\\@');l.append(c.toString());l.append('@"')}else{if(RegExp.isInstance(k)){l.append(k.toString())}else{l.append("{");var b=true;var m=k;for(var j in m){var a={key:j,value:m[j]};if((a.key).startsWith("$")||Function.isInstance(a.value)){continue}if(b){b=false}else{l.append(",")}l.append(a.key);l.append(":");ScriptFX.JSON.$1(l,a.value)}l.append("}")}}}return;default:l.append("null");return}};ScriptFX.PropertyChangedEventArgs=function(a){ScriptFX.PropertyChangedEventArgs.constructBase(this);this.$1_0=a};ScriptFX.PropertyChangedEventArgs.prototype={$1_0:null,get_propertyName:function(){return this.$1_0}};ScriptFX.ObservableCollection=function(a,b){this.$0=a;this.$1=[];this.$2=b};ScriptFX.ObservableCollection.prototype={$0:null,$1:null,$2:false,$3:null,add_collectionChanged:function(a){this.$3=Delegate.combine(this.$3,a)},remove_collectionChanged:function(a){this.$3=Delegate.remove(this.$3,a)},add:function(a){(a).setOwner(this.$0);this.$1.add(a);if(this.$3){this.$3.invoke(this,new ScriptFX.CollectionChangedEventArgs(0,a))}},clear:function(){if(this.$1.length){var b=this.$1.getEnumerator();while(b.moveNext()){var a=b.get_current();a.setOwner(null)}this.$1.clear();if(this.$3){this.$3.invoke(this,new ScriptFX.CollectionChangedEventArgs(2,null))}}},contains:function(a){return this.$1.contains(a)},dispose:function(){if(this.$2){var b=this.$1.getEnumerator();while(b.moveNext()){var a=b.get_current();a.dispose()}}this.$1=null;this.$0=null;this.$3=null},getEnumerator:function(){return this.$1.getEnumerator()},getItem:function(a){return this.$1[a]},getItems:function(){return this.$1},getLength:function(){return this.$1.length},remove:function(a){if(this.$1.contains(a)){(a).setOwner(null);this.$1.remove(a);if(this.$3){this.$3.invoke(this,new ScriptFX.CollectionChangedEventArgs(1,a))}}}};Type.createNamespace("ScriptFX.Net");ScriptFX.Net.HTTPStatusCode=function(){};ScriptFX.Net.HTTPStatusCode.prototype={canContinue:100,switchingProtocols:101,OK:200,created:201,partialContent:206,accepted:202,nonAuthoritativeInformation:203,noContent:204,resetContent:205,ambiguous:300,moved:301,redirect:302,redirectMethod:303,notModified:304,useProxy:305,temporaryRedirect:307,badRequest:400,methodNotAllowed:400,unauthorized:401,paymentRequired:402,forbidden:403,notFound:404,notAcceptable:406,proxyAuthenticationRequired:407,requestTimeout:408,conflict:409,gone:410,lengthRequired:411,preconditionFailed:412,requestEntityTooLarge:413,requestUriTooLong:414,unsupportedMediaType:415,requestedRangeNotSatisfiable:416,expectationFailed:417,internalServerError:500,notImplemented:501,badGateway:502,serviceUnavailable:503,gatewayTimeout:504,httpVersionNotSupported:505};ScriptFX.Net.HTTPStatusCode.createEnum("ScriptFX.Net.HTTPStatusCode",false);ScriptFX.Net.HTTPRequestState=function(){};ScriptFX.Net.HTTPRequestState.prototype={inactive:0,inProgress:1,completed:2,aborted:3,timedOut:4};ScriptFX.Net.HTTPRequestState.createEnum("ScriptFX.Net.HTTPRequestState",false);ScriptFX.Net.HTTPVerb=function(){};ScriptFX.Net.HTTPVerb.prototype={GET:0,POST:1,PUT:2,DELETE:3};ScriptFX.Net.HTTPVerb.createEnum("ScriptFX.Net.HTTPVerb",false);ScriptFX.Net.IHTTPResponse=function(){};ScriptFX.Net.IHTTPResponse.createInterface("ScriptFX.Net.IHTTPResponse");ScriptFX.Net.HTTPRequest=function(){};ScriptFX.Net.HTTPRequest.createRequest=function(c,d){var b=new ScriptFX.Net.HTTPRequest();if(!c.startsWith("{")){b.$0=c}else{var a=ScriptFX.JSON.deserialize(c);b.$0=a.__uri;if(a.__nullParams){b.$6=a.__transportType}else{b.$6=Type.getType(a.__transportType);delete a.__uri;delete a.__transportType;b.$7=a}}b.$1=d;return b};ScriptFX.Net.HTTPRequest.createURI=function(f,e){var c=new StringBuilder(f);if(f.indexOf("?")<0){c.append("?")}var a=0;var d=e;for(var b in d){var g={key:b,value:d[b]};if(a){c.append("&")}c.append(g.key);c.append("=");c.append(encodeURIComponent(g.value.toString()));a++}return c.toString()};ScriptFX.Net.HTTPRequest.prototype={$0:null,$1:0,$2:null,$3:null,$4:null,$5:null,$6:null,$7:null,$8:0,$9:null,$A:null,$B:0,$C:null,$D:null,$E:null,get_content:function(){return this.$2},set_content:function(a){this.$2=a;return a},get_hasCredentials:function(){return(!String.isNullOrEmpty(this.$4))},get_hasHeaders:function(){return(this.$3)},get_headers:function(){if(!this.$3){this.$3={}}return this.$3},get_password:function(){return this.$5},get_response:function(){return this.$D},get_state:function(){return this.$B},get_timeout:function(){return this.$8},set_timeout:function(a){this.$8=a;return a},get_timeStamp:function(){return this.$E},get_$F:function(){return this.$C},get_$10:function(){return this.$7},get_transportType:function(){return this.$6},get_URI:function(){return this.$0},get_userName:function(){return this.$4},get_verb:function(){return this.$1},abort:function(){if(this.$B===1){ScriptFX.Net.HTTPRequestManager.$5(this,false)}},dispose:function(){if(this.$C){this.abort()}},invoke:function(b,a){this.$9=b;this.$A=a;ScriptFX.Application.current.registerDisposableObject(this);ScriptFX.Net.HTTPRequestManager.$6(this)},$11:function(){ScriptFX.Application.current.unregisterDisposableObject(this);if(this.$C){this.$C.dispose();this.$C=null}if(this.$9){this.$9.invoke(this,this.$A);this.$9=null;this.$A=null}},$12:function(){this.$B=3;this.$11()},$13:function(a){this.$C=a;this.$B=1;this.$E=new Date()},$14:function(a){this.$D=a;this.$B=2;this.$11()},$15:function(){this.$B=4;this.$11()},setContentAsForm:function(e){this.get_headers()["Content-Type"]="application/x-www-form-urlencoded";var c=new StringBuilder();var a=true;var d=e;for(var b in d){var f={key:b,value:d[b]};if(!a){c.append("&")}c.append(f.key);c.append("=");c.append(encodeURIComponent(f.value.toString()));a=false}this.set_content(c.toString())},setContentAsJSON:function(a){this.get_headers()["Content-Type"]="text/json";this.set_content(ScriptFX.JSON.serialize(a))},setCredentials:function(b,a){this.$4=b;this.$5=a}};ScriptFX.Net.HTTPRequestManager=function(){};ScriptFX.Net.HTTPRequestManager.add_requestInvoking=function(a){ScriptFX.Net.HTTPRequestManager.$0=Delegate.combine(ScriptFX.Net.HTTPRequestManager.$0,a)};ScriptFX.Net.HTTPRequestManager.remove_requestInvoking=function(a){ScriptFX.Net.HTTPRequestManager.$0=Delegate.remove(ScriptFX.Net.HTTPRequestManager.$0,a)};ScriptFX.Net.HTTPRequestManager.add_requestInvoked=function(a){ScriptFX.Net.HTTPRequestManager.$1=Delegate.combine(ScriptFX.Net.HTTPRequestManager.$1,a)};ScriptFX.Net.HTTPRequestManager.remove_requestInvoked=function(a){ScriptFX.Net.HTTPRequestManager.$1=Delegate.remove(ScriptFX.Net.HTTPRequestManager.$1,a)};ScriptFX.Net.HTTPRequestManager.get_online=function(){return window.navigator.onLine};ScriptFX.Net.HTTPRequestManager.get_timeoutInterval=function(){return ScriptFX.Net.HTTPRequestManager.$2};ScriptFX.Net.HTTPRequestManager.set_timeoutInterval=function(a){ScriptFX.Net.HTTPRequestManager.$2=a;return a};ScriptFX.Net.HTTPRequestManager.$5=function(c,b){var a=c.get_$F();if(a){a.abort();ScriptFX.Net.HTTPRequestManager.$7(c,null,b)}};ScriptFX.Net.HTTPRequestManager.abortAll=function(){var b=ScriptFX.Net.HTTPRequestManager.$3;ScriptFX.Net.HTTPRequestManager.$3=[];var c=b.getEnumerator();while(c.moveNext()){var a=c.get_current();ScriptFX.Net.HTTPRequestManager.$5(a,false)}};ScriptFX.Net.HTTPRequestManager.$6=function(c){if(ScriptFX.Net.HTTPRequestManager.$0){var d=new ScriptFX.Net.PreHTTPRequestEventArgs(c);ScriptFX.Net.HTTPRequestManager.$0.invoke(null,d);if(d.get_isSuppressed()){c.$14(d.get_response());return}}var b=c.get_transportType();if(!b){b=ScriptFX.Net._Core$3}var a=new b(c);c.$13(a);ScriptFX.Net.HTTPRequestManager.$3.add(c);a.invoke();if(((ScriptFX.Net.HTTPRequestManager.$2)||(c.get_timeout()))&&(!ScriptFX.Net.HTTPRequestManager.$4)){ScriptFX.Net.HTTPRequestManager.$4=Delegate.create(null,ScriptFX.Net.HTTPRequestManager.$8);ScriptFX.Application.current.add_idle(ScriptFX.Net.HTTPRequestManager.$4)}};ScriptFX.Net.HTTPRequestManager.$7=function(d,c,b){ScriptFX.Net.HTTPRequestManager.$3.remove(d);if(c){d.$14(c)}else{if(b){d.$15()}else{d.$12()}}if(ScriptFX.Net.HTTPRequestManager.$1){var a=new ScriptFX.Net.PostHTTPRequestEventArgs(d,c);ScriptFX.Net.HTTPRequestManager.$1.invoke(null,a)}if((!ScriptFX.Net.HTTPRequestManager.$3.length)&&(ScriptFX.Net.HTTPRequestManager.$4)){ScriptFX.Application.current.remove_idle(ScriptFX.Net.HTTPRequestManager.$4);ScriptFX.Net.HTTPRequestManager.$4=null}};ScriptFX.Net.HTTPRequestManager.$8=function(h,g){if(!ScriptFX.Net.HTTPRequestManager.$3.length){return}var f=null;var e=(new Date()).getTime();var j=ScriptFX.Net.HTTPRequestManager.$3.getEnumerator();while(j.moveNext()){var d=j.get_current();var c=d.get_timeStamp().getTime();var b=d.get_timeout();if(!b){b=ScriptFX.Net.HTTPRequestManager.$2;if(!b){continue}}if((e-c)>b){if(!f){f=[]}f.add(d)}}if(f){var i=f.getEnumerator();while(i.moveNext()){var a=i.get_current();ScriptFX.Net.HTTPRequestManager.$5(a,true)}}};ScriptFX.Net.HTTPRequestManager.$9=function(b,a){ScriptFX.Net.HTTPRequestManager.$7(b,a,false)};ScriptFX.Net.HTTPTransport=function(a){this.$0=a};ScriptFX.Net.HTTPTransport.createURI=function(c,a,b){if(!b){return"{__nullParams: true, __uri:'"+c+"', __transportType: "+a.get_fullName()+"}"}else{b.__uri=c;b.__transportType=a.get_fullName();return ScriptFX.JSON.serialize(b)}};ScriptFX.Net.HTTPTransport.prototype={$0:null,get_parameters:function(){return this.$0.get_$10()},get_request:function(){return this.$0},getMethod:function(){return Enum.toString(ScriptFX.Net.HTTPVerb,this.$0.get_verb())},onCompleted:function(a){ScriptFX.Net.HTTPRequestManager.$9(this.$0,a)}};ScriptFX.Net.PostHTTPRequestEventArgs=function(b,a){ScriptFX.Net.PostHTTPRequestEventArgs.constructBase(this);this.$1_0=b;this.$1_1=a};ScriptFX.Net.PostHTTPRequestEventArgs.prototype={$1_0:null,$1_1:null,get_request:function(){return this.$1_0},get_response:function(){return this.$1_1}};ScriptFX.Net.PreHTTPRequestEventArgs=function(a){ScriptFX.Net.PreHTTPRequestEventArgs.constructBase(this);this.$1_0=a};ScriptFX.Net.PreHTTPRequestEventArgs.prototype={$1_0:null,$1_1:null,$1_2:false,get_isSuppressed:function(){return this.$1_2},get_request:function(){return this.$1_0},get_response:function(){return this.$1_1},suppressRequest:function(a){this.$1_2=true;this.$1_1=a}};ScriptFX.Net._Core$2=function(a,b){this.$3=new Date();this.$0=a;this.$1=b};ScriptFX.Net._Core$2.prototype={$0:null,$1:null,$2:null,$3:null,$4:null,$5:null,$6:null,get_contentLength:function(){return this.getText().length},get_contentType:function(){return this.$1.getResponseHeader("Content-Type")},get_headers:function(){if(!this.$2){var b=this.$1.getAllResponseHeaders();var a=b.split("\n");this.$2={};var c=a.getEnumerator();while(c.moveNext()){var e=c.get_current();var d=e.indexOf(":");this.$2[e.substr(0,d)]=e.substr(d+1).trim()}}return this.$2},get_request:function(){return this.$0},get_statusCode:function(){return this.$1.status},get_statusText:function(){return this.$1.statusText},get_timeStamp:function(){return this.$3},getHeader:function(a){return this.$1.getResponseHeader(a)},getObject:function(){if(!this.$5){this.$5=ScriptFX.JSON.deserialize(this.getText())}return this.$5},getText:function(){if(!this.$4){this.$4=this.$1.responseText}return this.$4},getXML:function(){if(!this.$6){var b=this.$1.responseXML;if((!b)||(!b.documentElement)){try{b=XMLDocumentParser.parse(this.$1.responseText);if((b)&&(b.documentElement)){this.$6=b}}catch(a){}}else{this.$6=b;if(ScriptFX.Application.current.get_isIE()){b.setProperty("SelectionLanguage","XPath")}}}return this.$6}};ScriptFX.Net._Core$3=function(a){ScriptFX.Net._Core$3.constructBase(this,[a])};ScriptFX.Net._Core$3.prototype={$1:null,abort:function(){if(this.$1){this.$1.onreadystatechange=Delegate.Null;this.$1.abort();this.$1=null}},dispose:function(){this.abort()},invoke:function(){var c=this.get_request();this.$1=new XMLHttpRequest();this.$1.onreadystatechange=Delegate.create(this,this.$2);if(!this.get_request().get_hasCredentials()){this.$1.open(this.getMethod(),c.get_URI(),true)}else{this.$1.open(this.getMethod(),c.get_URI(),true,c.get_userName(),c.get_password())}var a=(c.get_hasHeaders())?c.get_headers():null;if(a){var d=a;for(var b in d){var e={key:b,value:d[b]};this.$1.setRequestHeader(e.key,e.value)}}var f=c.get_content();if((f)&&((!a)||(!a["Content-Type"]))){this.$1.setRequestHeader("Content-Type","application/x-www-form-urlencoded")}this.$1.send(f)},$2:function(){if(this.$1.readyState===4){var a=new ScriptFX.Net._Core$2(this.get_request(),this.$1);this.$1.onreadystatechange=Delegate.Null;this.$1=null;this.onCompleted(a)}}};Type.createNamespace("ScriptFX.UI");ScriptFX.UI.AnimationStopState=function(){};ScriptFX.UI.AnimationStopState.prototype={complete:0,abort:1,revert:2};ScriptFX.UI.AnimationStopState.createEnum("ScriptFX.UI.AnimationStopState",false);ScriptFX.UI.$create_Bounds=function(e,d,c,a){var b={};b.left=e;b.top=d;b.width=c;b.height=a;return b};ScriptFX.UI.$create_DragDropData=function(d,a,c){var b={};b.mode=d;b.dataType=a;b.data=c;return b};ScriptFX.UI.DragMode=function(){};ScriptFX.UI.DragMode.prototype={move:0,copy:1};ScriptFX.UI.DragMode.createEnum("ScriptFX.UI.DragMode",false);ScriptFX.UI.IAction=function(){};ScriptFX.UI.IAction.createInterface("ScriptFX.UI.IAction");ScriptFX.UI.IDragDrop=function(){};ScriptFX.UI.IDragDrop.createInterface("ScriptFX.UI.IDragDrop");ScriptFX.UI.IDragSource=function(){};ScriptFX.UI.IDragSource.createInterface("ScriptFX.UI.IDragSource");ScriptFX.UI.IDropTarget=function(){};ScriptFX.UI.IDropTarget.createInterface("ScriptFX.UI.IDropTarget");ScriptFX.UI.IEditableText=function(){};ScriptFX.UI.IEditableText.createInterface("ScriptFX.UI.IEditableText");ScriptFX.UI.IStaticText=function(){};ScriptFX.UI.IStaticText.createInterface("ScriptFX.UI.IStaticText");ScriptFX.UI.IToggle=function(){};ScriptFX.UI.IToggle.createInterface("ScriptFX.UI.IToggle");ScriptFX.UI.IValidator=function(){};ScriptFX.UI.IValidator.createInterface("ScriptFX.UI.IValidator");ScriptFX.UI.Key=function(){};ScriptFX.UI.Key.prototype={backspace:8,tab:9,enter:13,escape:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,del:127};ScriptFX.UI.Key.createEnum("ScriptFX.UI.Key",false);ScriptFX.UI.$create_Location=function(c,b){var a={};a.left=c;a.top=b;return a};ScriptFX.UI.$create_OverlayOptions=function(a){var b={};b.cssClass=a;b.fadeInOutInterval=250;b.opacity=0.75;return b};ScriptFX.UI.PopupMode=function(){};ScriptFX.UI.PopupMode.prototype={center:0,anchorTopLeft:1,anchorTopRight:2,anchorBottomRight:3,anchorBottomLeft:4,alignTopLeft:5,alignTopRight:6,alignBottomRight:7,alignBottomLeft:8};ScriptFX.UI.PopupMode.createEnum("ScriptFX.UI.PopupMode",false);ScriptFX.UI.$create_PopupOptions=function(c,b){var a={};a.referenceElement=c;a.mode=b;a.id=null;a.xOffset=0;a.yOffset=0;return a};ScriptFX.UI.$create_Size=function(c,a){var b={};b.width=c;b.height=a;return b};ScriptFX.UI.Animation=function(a){if(!a){a=document.documentElement}this.$0=a;this.$1=1;ScriptFX.Application.current.registerDisposableObject(this)};ScriptFX.UI.Animation.prototype={$0:null,$1:0,$2:false,$3:0,$4:false,$5:false,$6:false,$7:0,$8:0,$9:false,add_repeating:function(a){this.$A=Delegate.combine(this.$A,a)},remove_repeating:function(a){this.$A=Delegate.remove(this.$A,a)},$A:null,add_starting:function(a){this.$B=Delegate.combine(this.$B,a)},remove_starting:function(a){this.$B=Delegate.remove(this.$B,a)},$B:null,add_stopped:function(a){this.$C=Delegate.combine(this.$C,a)},remove_stopped:function(a){this.$C=Delegate.remove(this.$C,a)},$C:null,get_autoReverse:function(){return this.$2},set_autoReverse:function(a){this.$2=a;return a},get_completed:function(){return this.$4},get_domElement:function(){return this.$0},get_isPlaying:function(){return this.$5},get_isReversed:function(){return this.$9},get_repeatCount:function(){return this.$1},set_repeatCount:function(a){this.$1=a;return a},get_repeatDelay:function(){return this.$3},set_repeatDelay:function(a){this.$3=a;return a},get_repetitions:function(){return this.$7},dispose:function(){if(this.$5){this.stop(1)}if(this.$0){this.$0=null;ScriptFX.Application.current.unregisterDisposableObject(this)}},$D:function(a){if(this.$B){this.$B.invoke(this,EventArgs.Empty)}this.performSetup();this.$5=true;this.$7=1;this.$9=a;this.playCore()},$E:function(b,a){this.stopCore(b,a);this.$4=b;this.$5=false;this.performCleanup();if(this.$C){this.$C.invoke(this,EventArgs.Empty)}},$F:function(c){if(this.$6){if((this.$3)&&((this.$8+this.$3)>c)){return false}}var b=this.progressCore(this.$6,c);this.$6=false;if(b&&((!this.$1)||(this.$1>this.$7))){b=false;this.$7++;if(this.$A){var a=new ScriptFX.CancelEventArgs();this.$A.invoke(this,a);b=a.get_canceled()}if(!b){this.$6=true;if(this.$2){this.$9=!this.$9}this.$8=c;this.performRepetition(this.$9)}}return b},performCleanup:function(){},performRepetition:function(a){},performSetup:function(){},play:function(){this.$4=false;ScriptFX.UI.AnimationManager.$4(this)},stop:function(a){ScriptFX.UI.AnimationManager.$5(this,a)}};ScriptFX.UI.AnimationManager=function(){};ScriptFX.UI.AnimationManager.get_FPS=function(){return ScriptFX.UI.AnimationManager.$0};ScriptFX.UI.AnimationManager.set_FPS=function(a){ScriptFX.UI.AnimationManager.$0=a;return a};ScriptFX.UI.AnimationManager.$3=function(){ScriptFX.UI.AnimationManager.$2=0;if(!ScriptFX.UI.AnimationManager.$1.length){return}var b=(new Date()).getTime();var a=ScriptFX.UI.AnimationManager.$1;var f=[];ScriptFX.UI.AnimationManager.$1=null;var c=a.getEnumerator();while(c.moveNext()){var e=c.get_current();var d=e.$F(b);if(d){e.$E(true,0)}else{f.add(e)}}if(f.length){ScriptFX.UI.AnimationManager.$1=f;if(!ScriptFX.UI.AnimationManager.$2){ScriptFX.UI.AnimationManager.$2=window.setTimeout(Delegate.create(null,ScriptFX.UI.AnimationManager.$3),1000/ScriptFX.UI.AnimationManager.$0)}}};ScriptFX.UI.AnimationManager.$4=function(a){if(!ScriptFX.UI.AnimationManager.$1){ScriptFX.UI.AnimationManager.$1=[]}ScriptFX.UI.AnimationManager.$1.add(a);a.$D(false);if(!ScriptFX.UI.AnimationManager.$2){ScriptFX.UI.AnimationManager.$2=window.setTimeout(Delegate.create(null,ScriptFX.UI.AnimationManager.$3),1000/ScriptFX.UI.AnimationManager.$0)}};ScriptFX.UI.AnimationManager.$5=function(b,a){b.$E(false,a);ScriptFX.UI.AnimationManager.$1.remove(b)};ScriptFX.UI.AnimationSequence=function(a){ScriptFX.UI.AnimationSequence.constructBase(this,[null]);this.$10=a;this.$12=-1};ScriptFX.UI.AnimationSequence.prototype={$10:null,$11:0,$12:0,$13:false,$14:0,get_successionDelay:function(){return this.$11},set_successionDelay:function(a){this.$11=a;return a},playCore:function(){if(!this.get_isReversed()){this.$12=0}else{this.$12=this.$10.length-1}this.$10[this.$12].$D(this.get_isReversed())},progressCore:function(d,c){if(d){if(!this.get_isReversed()){this.$12=0}else{this.$12=this.$10.length-1}this.$13=true}var b=this.$10[this.$12];if(this.$13){if((this.$11)&&((this.$14+this.$11)>c)){return false}this.$13=false;b.$D(this.get_isReversed())}var a=b.$F(c);if(a){b.$E(true,0);if(!this.get_isReversed()){this.$12++}else{this.$12--}this.$13=true;this.$14=c}return a&&((this.$12===this.$10.length)||(this.$12===-1))},stopCore:function(b,c){if(!b){var a=this.$10[this.$12];a.$E(false,c)}}};ScriptFX.UI.Behavior=function(c,e){ScriptFX.Application.current.registerDisposableObject(this);this.$0=c;this.$1=e;if(!String.isNullOrEmpty(e)){if(e==="control"){var a=c[e];if((a)&&(Type.getInstanceType(a)===ScriptFX.UI._Core$4)){delete c.control;ScriptFX.Application.current.unregisterDisposableObject(a);this.$3=a.get_$5()}}c[e]=this}if(e!=="control"){var d=c.control;if(!d){d=new ScriptFX.UI._Core$4(c)}}var b=c._behaviors;if(!b){b=[];c._behaviors=b}b.add(this)};ScriptFX.UI.Behavior.getBehavior=function(e,c){var b=e._behaviors;if(b){var d=b.getEnumerator();while(d.moveNext()){var a=d.get_current();if(c.isAssignableFrom(Type.getInstanceType(a))){return a}}}return null};ScriptFX.UI.Behavior.getBehaviors=function(c,b){var a=c._behaviors;if(isNullOrUndefined(a)||(!a.length)){return null}if(!b){return a.clone()}return a.filter(Delegate.create(null,function(d){return b.isAssignableFrom(Type.getInstanceType(d))}))};ScriptFX.UI.Behavior.getNamedBehavior=function(a,b){return a[b]};ScriptFX.UI.Behavior.prototype={$0:null,$1:null,$2:null,$3:null,$4:false,get_domElement:function(){return this.$0},get_domEvents:function(){if(!this.$2){this.$2=new ScriptFX.UI.DOMEventList(this.$0)}return this.$2},get_events:function(){if(!this.$3){this.$3=new ScriptFX.EventList()}return this.$3},get_$5:function(){return this.$3},get_isDisposed:function(){return(!this.$0)},get_isInitializing:function(){return this.$4},add_propertyChanged:function(a){this.get_events().addHandler("PropertyChanged",a)},remove_propertyChanged:function(a){this.get_events().removeHandler("PropertyChanged",a)},beginInitialize:function(){this.$4=true},dispose:function(){if(this.$2){this.$2.dispose()}if(this.$0){if(this.$1){if(ScriptFX.Application.current.get_isIE()){this.$0.removeAttribute(this.$1)}else{delete this.$0[this.$1]}}var a=this.$0._behaviors;a.remove(this);this.$0=null;ScriptFX.Application.current.unregisterDisposableObject(this)}},endInitialize:function(){this.$4=false},raisePropertyChanged:function(b){var a=this.get_events().getHandler("PropertyChanged");if(a){a.invoke(this,new ScriptFX.PropertyChangedEventArgs(b))}}};ScriptFX.UI.Color=function(c,b,a){this.$0=c;this.$1=b;this.$2=a};ScriptFX.UI.Color.format=function(c,b,a){return String.format("#{0:X2}{1:X2}{2:X2}",c,b,a)};ScriptFX.UI.Color.parse=function(c){if(String.isNullOrEmpty(c)){return null}if((c.length===7)&&c.startsWith("#")){var b=parseInt(c.substr(1,2),16);var a=parseInt(c.substr(3,2),16);var e=parseInt(c.substr(5,2),16);return new ScriptFX.UI.Color(b,a,e)}else{if(c.startsWith("rgb(")&&c.endsWith(")")){var d=c.substring(4,c.length-1).split(",");if(d.length===3){return new ScriptFX.UI.Color(parseInt(d[0].trim()),parseInt(d[1].trim()),parseInt(d[2].trim()))}}}return null};ScriptFX.UI.Color.prototype={$0:0,$1:0,$2:0,get_blue:function(){return this.$2},get_green:function(){return this.$1},get_red:function(){return this.$0},toString:function(){return ScriptFX.UI.Color.format(this.$0,this.$1,this.$2)}};ScriptFX.UI.Control=function(a){ScriptFX.UI.Control.constructBase(this,[a,"control"])};ScriptFX.UI.Control.getControl=function(a){return ScriptFX.UI.Behavior.getNamedBehavior(a,"control")};ScriptFX.UI.Control.prototype={add_disposing:function(a){this.get_events().addHandler("disposing",a)},remove_disposing:function(a){this.get_events().removeHandler("disposing",a)},dispose:function(){var b=this.get_domElement();if(b){var a=this.get_events().getHandler("disposing");if(a){a.invoke(this,EventArgs.Empty)}var e=ScriptFX.UI.Behavior.getBehaviors(b,null);if(e.length>1){var c=e.getEnumerator();while(c.moveNext()){var d=c.get_current();if(d!==this){d.dispose()}}}}ScriptFX.UI.Control.callBase(this,"dispose")}};ScriptFX.UI.DOMEventList=function(a){this.$0=a;this.$1={}};ScriptFX.UI.DOMEventList.prototype={$0:null,$1:null,attach:function(a,b){this.$0.attachEvent(a,b);this.$1[a]=b},detach:function(b){var a=this.$1[b];if(a){this.$0.detachEvent(b,a);delete this.$1[b];return true}return false},dispose:function(){if(this.$0){var c=this.$1;for(var b in c){var a={key:b,value:c[b]};this.$0.detachEvent(a.key,a.value)}this.$0=null;this.$1=null}},isAttached:function(a){return(this.$1[a])?true:false}};ScriptFX.UI.DragDropEventArgs=function(a){ScriptFX.UI.DragDropEventArgs.constructBase(this);this.$1_0=a};ScriptFX.UI.DragDropEventArgs.prototype={$1_0:null,get_dataObject:function(){return this.$1_0}};ScriptFX.UI.DragDropManager=function(){};ScriptFX.UI.DragDropManager.get_canDragDrop=function(){return(ScriptFX.UI.DragDropManager.$0)};ScriptFX.UI.DragDropManager.get_supportsDataTransfer=function(){return ScriptFX.UI.DragDropManager.$0.get_supportsDataTransfer()};ScriptFX.UI.DragDropManager.add_dragDropEnding=function(a){ScriptFX.UI.DragDropManager.$3=Delegate.combine(ScriptFX.UI.DragDropManager.$3,a)};ScriptFX.UI.DragDropManager.remove_dragDropEnding=function(a){ScriptFX.UI.DragDropManager.$3=Delegate.remove(ScriptFX.UI.DragDropManager.$3,a)};ScriptFX.UI.DragDropManager.add_dragDropStarting=function(a){ScriptFX.UI.DragDropManager.$2=Delegate.combine(ScriptFX.UI.DragDropManager.$2,a)};ScriptFX.UI.DragDropManager.remove_dragDropStarting=function(a){ScriptFX.UI.DragDropManager.$2=Delegate.remove(ScriptFX.UI.DragDropManager.$2,a)};ScriptFX.UI.DragDropManager.$5=function(){if(ScriptFX.UI.DragDropManager.$3){ScriptFX.UI.DragDropManager.$3.invoke(null,new ScriptFX.UI.DragDropEventArgs(ScriptFX.UI.DragDropManager.$4))}ScriptFX.UI.DragDropManager.$4=null};ScriptFX.UI.DragDropManager.registerDragDropImplementation=function(a){ScriptFX.UI.DragDropManager.$0=a};ScriptFX.UI.DragDropManager.registerDropTarget=function(a){ScriptFX.UI.DragDropManager.$1.add(a)};ScriptFX.UI.DragDropManager.startDragDrop=function(g,h,c,f,d){if(ScriptFX.UI.DragDropManager.$4){return false}var b=[];var e=ScriptFX.UI.DragDropManager.$1.getEnumerator();while(e.moveNext()){var a=e.get_current();if(a.supportsDataObject(g)){b.add(a)}}if(!b.length){return false}ScriptFX.UI.DragDropManager.$4=g;if(ScriptFX.UI.DragDropManager.$2){ScriptFX.UI.DragDropManager.$2.invoke(null,new ScriptFX.UI.DragDropEventArgs(g))}ScriptFX.UI.DragDropManager.$0.dragDrop(new ScriptFX.UI._Core$0(f),d,b,h,c,ScriptFX.UI.DragDropManager.$4);return true};ScriptFX.UI.DragDropManager.unregisterDropTarget=function(a){ScriptFX.UI.DragDropManager.$1.remove(a)};ScriptFX.UI._Core$0=function(a){this.$0=a};ScriptFX.UI._Core$0.prototype={$0:null,get_domElement:function(){return this.$0.get_domElement()},onDragStart:function(a){if(this.$0){this.$0.onDragStart(a)}},onDrag:function(a){if(this.$0){this.$0.onDrag(a)}},onDragEnd:function(b,a){if(this.$0){this.$0.onDragEnd(b,a)}ScriptFX.UI.DragDropManager.$5()}};ScriptFX.UI.Element=function(){};ScriptFX.UI.Element.addCSSClass=function(b,c){var a=b.className;if(a.indexOf(c)<0){b.className=a+" "+c}};ScriptFX.UI.Element.containsCSSClass=function(a,b){return a.className.split(" ").contains(b)};ScriptFX.UI.Element.getBounds=function(b){var a=ScriptFX.UI.Element.getLocation(b);return ScriptFX.UI.$create_Bounds(a.left,a.top,b.offsetWidth,b.offsetHeight)};ScriptFX.UI.Element.getLocation=function(c){var b=0;var a=0;for(var d=c;d;d=d.offsetParent){b+=d.offsetLeft;a+=d.offsetTop}return ScriptFX.UI.$create_Location(b,a)};ScriptFX.UI.Element.getSize=function(a){return ScriptFX.UI.$create_Size(a.offsetWidth,a.offsetHeight)};ScriptFX.UI.Element.removeCSSClass=function(c,d){var b=" "+c.className+" ";var a=b.indexOf(" "+d+" ");if(a>=0){var e=b.substr(0,a)+" "+b.substr(a+d.length+1);c.className=e}};ScriptFX.UI.Element.setLocation=function(b,a){b.style.left=a.left+"px";b.style.top=a.top+"px"};ScriptFX.UI.Element.setSize=function(b,a){b.style.width=a.width+"px";b.style.height=a.height+"px"};ScriptFX.UI.FadeEffect=function(c,b,a){ScriptFX.UI.FadeEffect.constructBase(this,[c,b]);this.$14=a};ScriptFX.UI.FadeEffect.prototype={$13:false,$14:0,get_isFadingIn:function(){return this.$13},fadeIn:function(){if(this.get_isPlaying()){this.stop(0)}this.$13=true;this.play()},fadeOut:function(){if(this.get_isPlaying()){this.stop(0)}this.$13=false;this.play()},performCleanup:function(){ScriptFX.UI.FadeEffect.callBase(this,"performCleanup");if(!this.$13){this.$15(0);this.get_domElement().style.display="none"}},performSetup:function(){ScriptFX.UI.FadeEffect.callBase(this,"performSetup");if(this.$13){this.$15(0);this.get_domElement().style.display=""}},performTweening:function(a){if(this.$13){this.$15(this.$14*a)}else{this.$15(this.$14*(1-a))}},$15:function(a){if(ScriptFX.Application.current.get_isIE()){this.get_domElement().style.filter="alpha(opacity="+(a*100)+")"}else{this.get_domElement().style.opacity=a.toString()}}};ScriptFX.UI._Core$4=function(a){ScriptFX.UI._Core$4.constructBase(this,[a])};ScriptFX.UI.OverlayBehavior=function(c,b){ScriptFX.UI.OverlayBehavior.constructBase(this,[c,b.id]);this.$7=document.createElement("div");this.$7.className=b.cssClass;var a=this.$7.style;a.display="none";a.top="0px";a.left="0px";a.width="100%";if(ScriptFX.Application.current.get_isIE()&&(ScriptFX.Application.current.get_host().get_majorVersion()<7)){a.position="absolute"}else{this.$8=true;a.position="fixed";a.height="100%"}document.body.appendChild(this.$7);if(b.fadeInOutInterval){this.$9=new ScriptFX.UI.FadeEffect(this.$7,b.fadeInOutInterval,b.opacity);this.$9.set_easingFunction(Delegate.create(null,ScriptFX.UI.TimedAnimation.easeInOut));this.$9.add_stopped(Delegate.create(this,this.$C))}};ScriptFX.UI.OverlayBehavior.prototype={$7:null,$8:false,$9:null,$A:null,$B:false,get_isVisible:function(){return this.$B},add_visibilityChanged:function(a){this.get_events().addHandler(ScriptFX.UI.OverlayBehavior.$6,a)},remove_visibilityChanged:function(a){this.get_events().removeHandler(ScriptFX.UI.OverlayBehavior.$6,a)},dispose:function(){if(this.$9){this.$9.dispose();this.$9=null}if(this.$A){window.detachEvent("onresize",this.$A);this.$A=null}ScriptFX.UI.OverlayBehavior.callBase(this,"dispose")},hide:function(){if((!this.$B)||this.$9.get_isPlaying()){return}if(this.$A){window.detachEvent("onresize",this.$A);this.$A=null}if(this.$9){this.$9.fadeOut()}else{this.$7.style.display="none";this.$B=false;var a=this.get_events().getHandler(ScriptFX.UI.OverlayBehavior.$6);if(a){a.invoke(this,EventArgs.Empty)}}},$C:function(c,b){this.$B=this.$9.get_isFadingIn();var a=this.get_events().getHandler(ScriptFX.UI.OverlayBehavior.$6);if(a){a.invoke(this,EventArgs.Empty)}},$D:function(){this.$7.style.height=document.documentElement.offsetHeight+"px"},show:function(){if(this.$B||this.$9.get_isPlaying()){return}if(!this.$8){this.$7.style.height=document.documentElement.offsetHeight+"px";this.$A=Delegate.create(this,this.$D);window.attachEvent("onresize",this.$A)}if(this.$9){this.$9.fadeIn()}else{this.$7.style.display="";this.$B=true;var a=this.get_events().getHandler(ScriptFX.UI.OverlayBehavior.$6);if(a){a.invoke(this,EventArgs.Empty)}}}};ScriptFX.UI.PopupBehavior=function(b,a){ScriptFX.UI.PopupBehavior.constructBase(this,[b,a.id]);this.$6=a;b.style.position="absolute";b.style.display="none"};ScriptFX.UI.PopupBehavior.prototype={$6:null,$7:null,dispose:function(){if(this.get_domElement()){this.hide()}ScriptFX.UI.PopupBehavior.callBase(this,"dispose")},hide:function(){this.get_domElement().style.display="none";if(this.$7){this.$7.parentNode.removeChild(this.$7);this.$7=null}},show:function(){var i=this.get_domElement().offsetParent;if(!i){i=document.documentElement}this.get_domElement().style.display="block";var h=0;var g=0;var f=1;var e=1;var d=false;var c=ScriptFX.UI.Element.getBounds(i);var b=ScriptFX.UI.Element.getBounds(this.get_domElement());var a=ScriptFX.UI.Element.getBounds(this.$6.referenceElement);var m=a.left-c.left;var l=a.top-c.top;switch(this.$6.mode){case 0:h=Math.round(a.width/2-b.width/2);g=Math.round(a.height/2-b.height/2);break;case 1:h=0;g=-b.height;break;case 2:h=a.width-b.width;g=-b.height;break;case 3:h=a.width-b.width;g=a.height;break;case 4:h=0;g=a.height;break;case 5:h=a.left;g=a.top;d=true;break;case 6:h=a.left+a.width-b.width;g=a.top;f=-1;d=true;break;case 7:h=a.left+a.width-b.width;g=a.top+a.height-b.height;f=-1;e=-1;d=true;break;case 8:h=a.left;g=a.top+a.height-b.height;e=-1;d=true;break}if(!d){h+=m+this.$6.xOffset;g+=l+this.$6.yOffset}else{h+=m+this.$6.xOffset*f;g+=l+this.$6.yOffset*e}var k=document.body.clientWidth;if(h+b.width>k-2){h-=(h+b.width-k+2)}if(h<0){h=2}if(g<0){g=2}ScriptFX.UI.Element.setLocation(this.get_domElement(),ScriptFX.UI.$create_Location(h,g));var j=ScriptFX.Application.current.get_host();if((j.get_name()===1)&&(j.get_majorVersion()<7)){this.$7=document.createElement("IFRAME");this.$7.src="javascript:false;";this.$7.scrolling="no";this.$7.style.position="absolute";this.$7.style.display="block";this.$7.style.border="none";this.$7.style.filter="progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)";this.$7.style.left=h+"px";this.$7.style.top=g+"px";this.$7.style.width=b.width+"px";this.$7.style.height=b.height+"px";this.$7.style.zIndex=1;this.get_domElement().parentNode.insertBefore(this.$7,this.get_domElement())}}};ScriptFX.UI.TimedAnimation=function(b,a){ScriptFX.UI.TimedAnimation.constructBase(this,[b]);this.$10=a};ScriptFX.UI.TimedAnimation.easeIn=function(a){return a*a};ScriptFX.UI.TimedAnimation.easeInOut=function(a){a=a*2;if(a<1){return a*a/2}return -((--a)*(a-2)-1)/2};ScriptFX.UI.TimedAnimation.easeOut=function(a){return -a*(a-2)};ScriptFX.UI.TimedAnimation.prototype={$10:0,$11:null,$12:0,get_duration:function(){return this.$10},set_duration:function(a){this.$10=a;return a},get_easingFunction:function(){return this.$11},set_easingFunction:function(a){this.$11=a;return a},playCore:function(){this.$12=(new Date()).getTime();this.progressCore(false,this.$12)},progressCore:function(d,c){var b=0;var a=false;if(!d){b=(c-this.$12)/this.$10;if(!this.get_isReversed()){a=(b>=1);b=Math.min(1,b)}else{b=1-b;a=(b<=0);b=Math.max(0,b)}if((!a)&&(this.$11)){b=this.$11.invoke(b)}}else{this.$12=c;if(this.get_isReversed()){b=1}}this.performTweening(b);return a},stopCore:function(a,b){if(!a){if(!b){this.performTweening(1)}else{if(b===2){this.performTweening(0)}}}}};ScriptFX.Application.createClass("ScriptFX.Application",null,IServiceProvider,IServiceContainer,ScriptFX.IEventManager);ScriptFX.CancelEventArgs.createClass("ScriptFX.CancelEventArgs",EventArgs);ScriptFX.CollectionChangedEventArgs.createClass("ScriptFX.CollectionChangedEventArgs",EventArgs);ScriptFX.ApplicationUnloadingEventArgs.createClass("ScriptFX.ApplicationUnloadingEventArgs",EventArgs);ScriptFX.HistoryManager.createClass("ScriptFX.HistoryManager",null,IDisposable);ScriptFX.HistoryEventArgs.createClass("ScriptFX.HistoryEventArgs",EventArgs);ScriptFX.HostInfo.createClass("ScriptFX.HostInfo");ScriptFX.EventList.createClass("ScriptFX.EventList");ScriptFX.JSON.createClass("ScriptFX.JSON");ScriptFX.PropertyChangedEventArgs.createClass("ScriptFX.PropertyChangedEventArgs",EventArgs);ScriptFX.ObservableCollection.createClass("ScriptFX.ObservableCollection",null,IDisposable,IArray,IEnumerable,ScriptFX.INotifyCollectionChanged);ScriptFX.Net.HTTPRequest.createClass("ScriptFX.Net.HTTPRequest",null,IDisposable);ScriptFX.Net.HTTPRequestManager.createClass("ScriptFX.Net.HTTPRequestManager");ScriptFX.Net.HTTPTransport.createClass("ScriptFX.Net.HTTPTransport",null,IDisposable);ScriptFX.Net.PostHTTPRequestEventArgs.createClass("ScriptFX.Net.PostHTTPRequestEventArgs",EventArgs);ScriptFX.Net.PreHTTPRequestEventArgs.createClass("ScriptFX.Net.PreHTTPRequestEventArgs",EventArgs);ScriptFX.Net._Core$2.createClass("ScriptFX.Net._Core$2",null,ScriptFX.Net.IHTTPResponse);ScriptFX.Net._Core$3.createClass("ScriptFX.Net._Core$3",ScriptFX.Net.HTTPTransport);ScriptFX.UI.Animation.createClass("ScriptFX.UI.Animation",null,IDisposable);ScriptFX.UI.AnimationManager.createClass("ScriptFX.UI.AnimationManager");ScriptFX.UI.AnimationSequence.createClass("ScriptFX.UI.AnimationSequence",ScriptFX.UI.Animation);ScriptFX.UI.Behavior.createClass("ScriptFX.UI.Behavior",null,IDisposable,ScriptFX.ISupportInitialize,ScriptFX.INotifyPropertyChanged);ScriptFX.UI.Color.createClass("ScriptFX.UI.Color");ScriptFX.UI.Control.createClass("ScriptFX.UI.Control",ScriptFX.UI.Behavior,ScriptFX.INotifyDisposing);ScriptFX.UI.DOMEventList.createClass("ScriptFX.UI.DOMEventList",null,IDisposable);ScriptFX.UI.DragDropEventArgs.createClass("ScriptFX.UI.DragDropEventArgs",EventArgs);ScriptFX.UI.DragDropManager.createClass("ScriptFX.UI.DragDropManager");ScriptFX.UI._Core$0.createClass("ScriptFX.UI._Core$0",null,ScriptFX.UI.IDragSource);ScriptFX.UI.Element.createClass("ScriptFX.UI.Element");ScriptFX.UI.TimedAnimation.createClass("ScriptFX.UI.TimedAnimation",ScriptFX.UI.Animation);ScriptFX.UI.FadeEffect.createClass("ScriptFX.UI.FadeEffect",ScriptFX.UI.TimedAnimation);ScriptFX.UI._Core$4.createClass("ScriptFX.UI._Core$4",ScriptFX.UI.Control);ScriptFX.UI.OverlayBehavior.createClass("ScriptFX.UI.OverlayBehavior",ScriptFX.UI.Behavior);ScriptFX.UI.PopupBehavior.createClass("ScriptFX.UI.PopupBehavior",ScriptFX.UI.Behavior);ScriptFX.Application.current=new ScriptFX.Application();ScriptFX.JSON.$0=null;ScriptFX.Net.HTTPRequestManager.$0=null;ScriptFX.Net.HTTPRequestManager.$1=null;ScriptFX.Net.HTTPRequestManager.$2=0;ScriptFX.Net.HTTPRequestManager.$3=[];ScriptFX.Net.HTTPRequestManager.$4=null;ScriptFX.UI.AnimationManager.$0=100;ScriptFX.UI.AnimationManager.$1=null;ScriptFX.UI.AnimationManager.$2=0;ScriptFX.UI.DragDropManager.$0=null;ScriptFX.UI.DragDropManager.$1=[];ScriptFX.UI.DragDropManager.$2=null;ScriptFX.UI.DragDropManager.$3=null;ScriptFX.UI.DragDropManager.$4=null;ScriptFX.UI.OverlayBehavior.$6="visibilityChanged";