
Type.createNamespace('Windex');Windex.AccordionButtonType=function(){};Windex.AccordionButtonType.prototype = {expand:1,collapse:2,toggle:3}
Windex.AccordionButtonType.createEnum('Windex.AccordionButtonType',false);Windex.CommandButtonTypes=function(){};Windex.CommandButtonTypes.prototype = {button:0,submit:1,reset:2}
Windex.CommandButtonTypes.createEnum('Windex.CommandButtonTypes',false);Windex.FormWindowState=function(){};Windex.FormWindowState.prototype = {normal:0,minimized:1,maximized:2}
Windex.FormWindowState.createEnum('Windex.FormWindowState',false);Windex.Keys=function(){};Windex.Keys.prototype = {a:65,add:107,alt:262144,apps:93,attn:246,b:66,back:8,browserBack:166,browserFavorites:171,browserForward:167,browserHome:172,browserRefresh:168,browserSearch:170,browserStop:169,c:67,cancel:3,capital:20,capsLock:20,clear:12,control:131072,controlKey:17,crsel:247,d:68,d0:48,d1:49,d2:50,d3:51,d4:52,d5:53,d6:54,d7:55,d8:56,d9:57,decimalKey:110,deleteKey:46,divide:111,down:40,e:69,end:35,enter:13,eraseEof:249,escape:27,execute:43,exsel:248,f:70,f1:112,f10:121,f11:122,f12:123,f13:124,f14:125,f15:126,f16:127,f17:128,f18:129,f19:130,f2:113,f20:131,f21:132,f22:133,f23:134,f24:135,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,finalMode:24,g:71,h:72,hanguelMode:21,hangulMode:21,hanjaMode:25,help:47,home:36,i:73,imeAccept:30,imeAceept:30,imeConvert:28,imeModeChange:31,imeNonconvert:29,insert:45,j:74,junjaMode:23,k:75,kanaMode:21,kanjiMode:25,keyCode:65535,l:76,launchApplication1:182,launchApplication2:183,launchMail:180,lButton:1,lControlKey:162,left:37,lineFeed:10,lMenu:164,lShiftKey:160,lWin:91,m:77,mButton:4,mediaNextTrack:176,mediaPlayPause:179,mediaPreviousTrack:177,mediaStop:178,menu:18,modifiers:-65536,multiply:106,n:78,next:34,noName:252,none:0,numLock:144,numPad0:96,numPad1:97,numPad2:98,numPad3:99,numPad4:100,numPad5:101,numPad6:102,numPad7:103,numPad8:104,numPad9:105,o:79,oem1:186,oem102:226,oem2:191,oem3:192,oem4:219,oem5:220,oem6:221,oem7:222,oem8:223,oemBackslash:226,oemClear:254,oemCloseBrackets:221,oemcomma:188,oemMinus:189,oemOpenBrackets:219,oemPeriod:190,oemPipe:220,oemplus:187,oemQuestion:191,oemQuotes:222,oemSemicolon:186,oemtilde:192,p:80,pa1:253,packet:231,pageDown:34,pageUp:33,pause:19,play:250,print:42,printScreen:44,prior:33,processKey:229,q:81,r:82,rButton:2,rControlKey:163,returnKey:13,right:39,rMenu:165,rShiftKey:161,rWin:92,s:83,scroll:145,select:41,selectMedia:181,separator:108,shift:65536,shiftKey:16,sleep:95,snapshot:44,space:32,subtract:109,t:84,tab:9,u:85,up:38,v:86,volumeDown:174,volumeMute:173,volumeUp:175,w:87,x:88,xButton1:5,xButton2:6,y:89,z:90,zoom:251}
Windex.Keys.createEnum('Windex.Keys',false);Windex.MouseEvent=function(){};Windex.MouseEvent.prototype = {over:1,out:2,down:4,up:8,move:16,click:32,dblClick:64}
Windex.MouseEvent.createEnum('Windex.MouseEvent',true);Windex.$create_AjaxResponse=function(){return {};}
Windex.$create_AggressiveOnChangeElement=function(){return {};}
Windex.VisibilityResult=function(){};Windex.VisibilityResult.prototype = {none:0,visible:1,above:2,below:4,left:8,right:16}
Windex.VisibilityResult.createEnum('Windex.VisibilityResult',true);Windex.RadioCheckBoxGroup=function(checkboxes){this.$0=[];this.$1=Delegate.create(this,this.$2);if(!isNullOrUndefined(checkboxes)){for(var $0=0;$0<checkboxes.length;$0++){this.add(checkboxes[$0]);}}}
Windex.RadioCheckBoxGroup.prototype={$1:null,$2:function(){var $0=window.event.srcElement;if($0.checked){for(var $1=0;$1<this.$0.length;$1++){var $2=this.$0[$1];if($2.checked&&$0!==$2){$2.checked=false;}}}},$3:function($p0){if($p0==null){return null;}if(typeof($p0)==='string'){return document.getElementById($p0);}if(Type.canCast($p0,ScriptFX.UI.Behavior)){return ($p0).get_domElement();}return $p0;},add:function(checkbox){var $0=this.$3(checkbox);if($0!=null&&!this.$0.contains($0)){this.$0.add($0);$0.attachEvent('onclick',this.$1);}},remove:function(checkbox){var $0=this.$3(checkbox);if($0!=null&&this.$0.contains($0)){this.$0.remove($0);$0.detachEvent('onclick',this.$1);}}}
Windex.Accordion=function(rootElement,keepPanelsOpen,keepFirstOpen){Windex.Accordion.constructBase(this,[rootElement]);this.$2_23=new Array(0);if(!isUndefined(keepPanelsOpen)){this.$2_24=keepPanelsOpen;}if(!isUndefined(keepFirstOpen)){this.$2_25=keepFirstOpen;}this.$2_26(rootElement);}
Windex.Accordion.prototype={add_click:function(value){this.$2_22=Delegate.combine(this.$2_22,value);},remove_click:function(value){this.$2_22=Delegate.remove(this.$2_22,value);},$2_22:null,$2_23:null,$2_24:false,$2_25:true,addPanel:function(panelElement){var $0=new Windex.AccordionPanel(panelElement,this);this.$2_23=this.$2_23.concat($0);if(this.$2_25&&this.$2_23.length===1){$0.expand();}$0.remove_click(Delegate.create(this,this.$2_27));$0.add_click(Delegate.create(this,this.$2_27));},$2_26:function($p0){var $0;for(var $1=0;$1<$p0.children.length;$1++){$0=$p0.children[$1];if((!String.isNullOrEmpty($0.className))&&($0.className.indexOf('AccordionPanel')>-1)){this.addPanel($0);}else if((!String.isNullOrEmpty($0.className))&&($0.className.indexOf('AccordionControl')>-1)){new Windex.Accordion($0);}else{this.$2_26($0);}}},$2_27:function($p0,$p1){var $0=$p0;if($0.get_isExpanded()){if(this.$2_24){$0.collapse();}else{this.collapseAllPanels();}}else{if(!this.$2_24){this.collapseAllPanels();}$0.expand();}if(this.$2_22!=null){this.$2_22.invoke($0,null);}},collapseAllPanels:function(){var $0;for(var $1=0;$1<this.$2_23.length;$1++){$0=this.$2_23[$1];$0.collapse();}}}
Windex.AccordionPanel=function(panelElement,parentAccordion){Windex.AccordionPanel.constructBase(this,[panelElement]);this.$2_2A=parentAccordion;this.$2_2B=new Array(0);this.$2_2C=new Array(0);this.$2_2D=new Array(0);this.$2_2E=new Array(0);this.$2_2F=new Array(0);if((!String.isNullOrEmpty(this.get_domElement().className))&&(this.get_domElement().className.indexOf('AccordionPanelExpanded')>-1)){this.$2_29=true;}else{this.$2_29=false;}this.$2_31(this.get_domElement());}
Windex.AccordionPanel.prototype={add_click:function(value){this.$2_28=Delegate.combine(this.$2_28,value);},remove_click:function(value){this.$2_28=Delegate.remove(this.$2_28,value);},$2_28:null,get_isExpanded:function(){return this.$2_29;},$2_29:false,$2_2A:null,$2_2B:null,$2_2C:null,$2_2D:null,$2_2E:null,$2_2F:null,expand:function(){this.$2_29=true;this.$2_30();},collapse:function(){this.$2_29=false;this.$2_30();},toggle:function(){this.$2_29=!this.$2_29;this.$2_30();return this.$2_29;},$2_30:function(){for(var $0=0;$0<this.$2_2E.length;$0++){this.$2_2E[$0].style.display=(this.$2_29)?String.Empty:'none';}for(var $1=0;$1<this.$2_2F.length;$1++){this.$2_2F[$1].style.display=(this.$2_29)?'none':String.Empty;}for(var $2=0;$2<this.$2_2B.length;$2++){this.$2_2B[$2].set_display(!this.$2_29);}for(var $3=0;$3<this.$2_2C.length;$3++){this.$2_2C[$3].set_display(this.$2_29);}},$2_31:function($p0){var $0;for(var $1=0;$1<$p0.children.length;$1++){$0=$p0.children[$1];if(!String.isNullOrEmpty($0.className)){if(($0.className.indexOf('AccordionExpandButton')>-1)||($0.className.indexOf('AccordionCollapseButton')>-1)||($0.className.indexOf('AccordionToggleButton')>-1)){this.$2_32($0);}if($0.className.indexOf('AccordionContentExpanded')>-1){this.$2_2E=this.$2_2E.concat($0);this.$2_31($0);}else if($0.className.indexOf('AccordionContentCollapsed')>-1){this.$2_2F=this.$2_2F.concat($0);this.$2_31($0);}else if($0.className.indexOf('AccordionControl')>-1){new Windex.Accordion($0);}else if($0.className.indexOf('AccordionPanel')>-1){this.$2_2A.addPanel($0);}else{this.$2_31($0);}}else{this.$2_31($0);}}this.$2_30();},$2_32:function($p0){var $0=new Windex.AccordionPanelButton($p0,this);$0.remove_click(Delegate.create(this,this.$2_33));$0.add_click(Delegate.create(this,this.$2_33));var $1=null;switch($0.get_type()){case 1:$1=this.$2_2B;break;case 2:$1=this.$2_2C;break;case 3:$1=this.$2_2D;break;}$1.add($0);},$2_33:function($p0,$p1){var $0=$p0;if(this.$2_28!=null){this.$2_28.invoke($0,null);}}}
Windex.AccordionPanelButton=function(buttonElement,parentPanel){Windex.AccordionPanelButton.constructBase(this,[buttonElement]);this.$2_25=parentPanel;buttonElement.attachEvent('onclick',Delegate.create(this,function(){
this.onClick(parentPanel);}));var $0=buttonElement.className;if(!String.isNullOrEmpty($0)){if($0.indexOf('AccordionExpandButton')>-1){this.$2_24=1;this.set_display(!parentPanel.get_isExpanded());}if(buttonElement.className.indexOf('AccordionCollapseButton')>-1){this.$2_24=2;this.set_display(parentPanel.get_isExpanded());}if(buttonElement.className.indexOf('AccordionToggleButton')>-1){this.$2_24=3;this.set_display(true);}}}
Windex.AccordionPanelButton.prototype={add_click:function(value){this.$2_23=Delegate.combine(this.$2_23,value);},remove_click:function(value){this.$2_23=Delegate.remove(this.$2_23,value);},$2_23:null,get_type:function(){return this.$2_24;},$2_24:0,$2_25:null,show:function(){this.set_display(true);},hide:function(){this.set_display(false);},toggleVisibility:function(){this.set_display(!this.get_display());},onClick:function(panel){if(this.$2_23!=null){this.$2_23.invoke(panel,null);}}}
Windex.CheckBox=function(){Windex.CheckBox.constructBase(this,[null]);this.$2_20=Windex.Util.createCheckbox();this.$2_20.id=Windex.Util.getRandomId();this.$2_21=document.createElement('label');this.$2_21.htmlFor = this.$2_20.id;this.get_domElement().appendChild(this.$2_20);this.get_domElement().appendChild(this.$2_21);}
Windex.CheckBox.prototype={$2_20:null,$2_21:null,get_text:function(){return this.$2_21.innerText;},set_text:function(value){this.$2_21.innerText=value;return value;},get_checked:function(){return this.$2_20.checked;},set_checked:function(value){this.$2_20.checked=value;return value;},onEnableChanged:function(){if(this.get_enabled()){this.$2_20.disabled=false;this.$2_21.style.color='';}else{this.$2_20.disabled=true;this.$2_21.style.color='silver';}Windex.CheckBox.callBase(this, 'onEnableChanged');}}
Windex.CommandButton=function(type){Windex.CommandButton.constructBase(this,[document.createElement('input')]);this.e=this.get_domElement();switch(type){case 0:this.e.type='button';break;case 1:this.e.type='submit';break;case 2:this.e.type='reset';break;}Windex.MouseBehavior.attach(this.e,Delegate.create(this,this.$2_20),32|64);this.enableTabStop(this.e);}
Windex.CommandButton.prototype={e:null,$2_20:function($p0,$p1){switch($p1.event){case 64:case 32:if(this.$2_21!=null){window.event.returnValue=false;}this.onClick(null);break;}},add_click:function(value){this.$2_21=Delegate.combine(this.$2_21,value);},remove_click:function(value){this.$2_21=Delegate.remove(this.$2_21,value);},$2_21:null,onClick:function(args){if(this.$2_21!=null){this.$2_21.invoke(this,args);}},onEnableChanged:function(){this.e.disabled=!this.get_enabled();},get_text:function(){return this.e.value;},set_text:function(value){this.e.value=value;return value;}}
Windex.DateField=function(){Windex.DateField.constructBase(this,[document.createElement('span')]);var $0=Windex.Util.createTable();this.get_domElement().appendChild($0);var $1=$0.insertRow(-1);this.set_clientArea($1.insertCell());this.$2_20=new Windex.TextField(false);this.get_controls().add(this.$2_20);this.$2_20.add_change(Delegate.create(this,this.$2_23));this.set_clientArea($1.insertCell(-1));this.$2_21=new Windex.DatePicker();this.get_controls().add(this.$2_21);this.$2_21.add_change(Delegate.create(this,this.$2_24));this.$2_21.alignTo=this.$2_20.get_domElement();this.set_height(26);this.set_width(120);}
Windex.DateField.prototype={$2_20:null,$2_21:null,$2_23:function($p0,$p1){var $0=Date.parse(this.$2_20.get_text());this.$2_21.set_value($0);this.onChange();},$2_24:function($p0,$p1){this.$2_20.set_text(this.$2_21.get_value().format(Windex.DateField.$2_22));this.onChange();},get_value:function(){return this.$2_21.get_value();},set_value:function(value){this.$2_21.set_value(value);this.$2_20.set_text(value.format(Windex.DateField.$2_22));return value;},get_width:function(){return Windex.DateField.callBase(this, 'get_width');},set_width:function(value){Windex.DateField.callBase(this, 'set_width',[value]);this.$2_20.set_width(value-28);this.$2_21.set_left(value-23);return value;}}
Windex.DatePicker=function(){Windex.DatePicker.constructBase(this,[document.createElement('span')]);this.$2_2B=Delegate.create(this,this.$2_2C);this.alignTo=this.get_domElement();this.$2_22=Date.get_today();this.$2_28=new Windex.SpriteButton(new Windex.ImageList('/skins/aero/571.png',ScriptFX.UI.$create_Size(23,64),ScriptFX.UI.$create_Size(23,16),new Windex.Point(0,0),1,4));this.$2_28.add_click(Delegate.create(this,this.$2_2F));this.$2_28.get_domElement().attachEvent('onmousedown',Delegate.create(this,this.$2_30));this.get_controls().add(this.$2_28);this.set_width(23);this.set_height(16);}
Windex.DatePicker.prototype={name:null,$2_22:null,$2_23:null,$2_24:null,$2_25:null,$2_26:null,$2_27:null,$2_28:null,$2_29:null,alignTo:null,$2_2A:false,stayOpenOnSelect:false,stayOpenOnBlur:false,$2_2B:null,$2_2C:function(){if(!this.stayOpenOnBlur){this.hide();}},hide:function(){this.$2_29.style.display='none';this.$2_2E=false;document.body.detachEvent('onmousedown',this.$2_2B);document.body.detachEvent('onkeydown',this.$2_2B);},$2_2D:function(){this.$2_31();document.body.appendChild(this.$2_29);this.$2_29.style.display='';this.$2_29.style.zIndex=32767;var $0=Windex.Util.getPoint(this.alignTo);this.$2_29.style.left=$0.x+'px';this.$2_29.style.top=($0.y+this.alignTo.offsetHeight)+'px';this.$2_2E=true;document.body.attachEvent('onmousedown',this.$2_2B);document.body.attachEvent('onkeydown',this.$2_2B);},$2_2E:false,$2_2F:function($p0,$p1){if(this.$2_2E){this.hide();}else{this.$2_2D();}},$2_30:function(){window.event.cancelBubble=true;},$2_31:function(){if(this.$2_2A){return;}this.$2_29=document.createElement('span');this.$2_29.attachEvent('onmousedown',Delegate.create(this,this.$2_30));this.$2_29.attachEvent('onkeydown',Delegate.create(this,this.$2_30));this.$2_29.style.position='absolute';this.$2_29.style.display='none';document.body.appendChild(this.$2_29);if(this.$2_2A){return;}var $0,$1;var $2,$3;var $4,$5,$6;this.$2_29.appendChild($0=document.createElement('table'));$0.style.cssText='\r\n\tbackground-color: white;\r\n\tbackground-image: url(/skins/luna/tabBack.png);\r\n\tfont-family: arial;\r\n\tfont-size: 10pt;\r\n\tborder-collapse: collapse;\r\n\tcursor: default;\r\n';$0.style.width='200px';$0.border = 1;$2=$0.insertRow(-1);$4=$2.insertCell(-1);$4.colSpan=7;$4.className='DatePickerHdr';$1=document.createElement('table');$1.style.width='100%';$4.appendChild($1);$1.border = 0;$3=$1.insertRow(-1);$5=$3.insertCell(-1);$5.title='Previous Month';this.$2_23=new Windex.SpriteButton(new Windex.ImageList('/skins/aero/934sm.png',ScriptFX.UI.$create_Size(16,64),ScriptFX.UI.$create_Size(16,16),new Windex.Point(0,0),1,4));this.$2_23.add_click(Delegate.create(this,this.$2_35));this.get_controls().add(this.$2_23);$5.appendChild(this.$2_23.get_domElement());$5=$3.insertCell(-1);$5.title='Select a month';this.$2_25=document.createElement('select');$5.appendChild(this.$2_25);this.$2_25.attachEvent('onchange',Delegate.create(this,this.$2_37));for(var $8=0;$8<12;$8++){var $9=document.createElement('option');$9.innerText=Windex.DatePicker.$2_20[$8];$9.value=$8.toString();this.$2_25.appendChild($9);}$5=$3.insertCell(-1);$5.title='Select Year';this.$2_26=document.createElement('select');$5.appendChild(this.$2_26);this.$2_26.attachEvent('onchange',Delegate.create(this,this.$2_38));for(var $A=Date.get_today().getFullYear()-25;$A<Date.get_today().getFullYear()+25;$A++){var $B=document.createElement('option');$B.innerText=$A.toString();$B.value=$A.toString();this.$2_26.appendChild($B);}Windex.Util.resizeSelect(this.$2_25);Windex.Util.resizeSelect(this.$2_26);$5=$3.insertCell(-1);$5.title='Next Month';this.$2_24=new Windex.SpriteButton(new Windex.ImageList('/skins/aero/936sm.png',ScriptFX.UI.$create_Size(16,64),ScriptFX.UI.$create_Size(16,16),new Windex.Point(0,0),1,4));this.$2_24.add_click(Delegate.create(this,this.$2_36));this.get_controls().add(this.$2_24);$5.appendChild(this.$2_24.get_domElement());$2=$0.insertRow(-1);for(var $C=0;$C<7;$C++){$6=document.createElement('th');$6.innerText=Windex.DatePicker.$2_21[$C];$2.appendChild($6);}this.$2_27=[];var $7=Delegate.create(this,this.$2_32);for(var $D=0;$D<6;$D++){this.$2_27[$D]=[];$2=$0.insertRow(-1);for(var $E=0;$E<7;$E++){var $F=$2.insertCell(-1);Windex.MouseBehavior.attach($F,$7);this.$2_27[$D][$E]=$F;this.$2_27[$D][$E].style.cssText='\r\n\ttext-align: center;\r\n';}}this.$2_2A=true;this.$2_3A();},$2_32:function($p0,$p1){switch($p1.event){case 32:var $0=$p0;var $1=$0.date;this.$2_22.setDate($1);if(this.$2_39!=null){this.$2_34(this.$2_39);}this.$2_39=$0;this.$2_33($0);this.onChange();if(!this.stayOpenOnSelect){this.hide();}break;}},$2_33:function($p0){$p0.style.backgroundColor='#3399ff';$p0.style.color='#ffffff';},$2_34:function($p0){$p0.style.backgroundColor='';$p0.style.color='';},$2_35:function($p0,$p1){if(this.$2_22.getMonth()===0){this.$2_22.setFullYear(this.$2_22.getFullYear()-1);this.$2_22.setMonth(11);}else{this.$2_22.setMonth(this.$2_22.getMonth()-1);}this.onChange();this.$2_3A();},$2_36:function($p0,$p1){if(this.$2_22.getMonth()===11){this.$2_22.setFullYear(this.$2_22.getFullYear()+1);this.$2_22.setMonth(0);}else{this.$2_22.setMonth(this.$2_22.getMonth()+1);}this.onChange();this.$2_3A();},$2_37:function(){this.$2_22.setMonth(Number.parse(this.$2_25.value));this.onChange();this.$2_3A();},$2_38:function(){this.$2_22.setFullYear(Number.parse(this.$2_26.value));this.onChange();this.$2_3A();},$2_39:null,$2_3A:function(){if(!this.$2_2A){return;}this.$2_3B();var $0=0;var $1=new Date(this.$2_22.getTime());var $2=$1.getMonth();for($1.setDate(1);$1.getMonth()===$2;$1.setTime($1.getTime()+86400000)){var $3=$1.getDay();this.$2_27[$0][$3].innerHTML=$1.getDate().toString();this.$2_27[$0][$3].date = $1.getDate();if($1.toDateString()===this.$2_22.toDateString()){this.$2_39=this.$2_27[$0][$3];this.$2_33(this.$2_39);}if($3===6){$0++;}}this.$2_25.value=$2.toString();this.$2_26.value=this.$2_22.getFullYear().toString();},$2_3B:function(){if(!this.$2_2A){return;}this.$2_39=null;for(var $0=0;$0<6;$0++){for(var $1=0;$1<7;$1++){var $2=this.$2_27[$0][$1];$2.innerText='';$2.date = null;this.$2_34($2);}}},get_value:function(){return this.$2_22;},set_value:function(value){this.$2_22=value;this.$2_3A();return value;}}
Windex.DropDownList=function(domElement){Windex.DropDownList.constructBase(this,[domElement||document.createElement('select')]);this.$2_20=this.get_domElement();this.$2_20.attachEvent('onchange',Delegate.create(this,this.onChange));Windex.Util.aggressiveOnChange(this.$2_20,Delegate.create(this,this.onChange));}
Windex.DropDownList.prototype={$2_20:null,add:function(text,value){if(isNullOrUndefined(text)){throw new Error('First parameter cannot be null.');}if(Windex.Util.isDOMElement(text)){this.$2_20.appendChild(text);}else{this.$2_20.appendChild(Windex.Util.createOption(text,value));}},remove:function(option){this.$2_20.removeChild(option);},removeAt:function(index){this.$2_20.remove(index);},clear:function(){Windex.Util.clearChildren(this.$2_20);},getItems:function(){return this.$2_20.options;},get_value:function(){return this.$2_20.value;},set_value:function(value){this.$2_20.value=value;return value;},onEnableChanged:function(){this.$2_20.disabled=!this.get_enabled();Windex.DropDownList.callBase(this, 'onEnableChanged');}}
Windex.Form=function(){this.$2_29=ScriptFX.UI.$create_Size(0,0);this.$2_32=0;Windex.Form.constructBase(this,[document.createElement('div')]);this.ph=document.createElement('div');this.get_domElement().style.position='relative';this.set_clientArea(document.createElement('div'));this.get_clientArea().style.position='absolute';this.get_clientArea().style.backgroundColor='#FFFFFF';this.get_domElement().style.backgroundColor='#0c2033';this.$2_21=document.createElement('span');this.$2_21.style.cssText='\r\n\t\t\t\tcolor: white;\r\n\t\t\t\tfont-family: Segoe UI, Arial;\r\n\t\t\t\tfont-size: 9pt;\r\n\t\t\t\tposition: absolute; \r\n\t\t\t\tleft: 31px;\r\n\t\t\t\ttop: 5px;\r\n\t\t\t\tcursor: default;\r\n\t\t\t';this.$2_22=new Windex.SpriteButton(new Windex.ImageList(Windex.Config.skinPath+'aero/wmin.png',ScriptFX.UI.$create_Size(26,76),ScriptFX.UI.$create_Size(26,19),new Windex.Point(0,0),1,4));this.$2_22.add_click(Delegate.create(this,this.$2_31));this.$2_22.enablePositioning();this.$2_23=new Windex.SpriteButton(new Windex.ImageList(Windex.Config.skinPath+'aero/wmax.png',ScriptFX.UI.$create_Size(25,76),ScriptFX.UI.$create_Size(25,19),new Windex.Point(0,0),1,4));this.$2_23.add_click(Delegate.create(this,this.$2_2E));this.$2_23.enablePositioning();this.$2_24=new Windex.SpriteButton(new Windex.ImageList(Windex.Config.skinPath+'aero/wres.png',ScriptFX.UI.$create_Size(25,76),ScriptFX.UI.$create_Size(25,19),new Windex.Point(0,0),1,4));this.$2_24.add_click(Delegate.create(this,this.$2_2B));this.$2_24.enablePositioning();this.$2_25=new Windex.SpriteButton(new Windex.ImageList(Windex.Config.skinPath+'aero/wclose.png',ScriptFX.UI.$create_Size(44,76),ScriptFX.UI.$create_Size(44,19),new Windex.Point(0,0),1,4));this.$2_25.add_click(Delegate.create(this,this.$2_2A));this.$2_25.enablePositioning();this.get_domElement().appendChild(this.$2_21);this.get_domElement().appendChild(this.$2_22.get_domElement());this.get_domElement().appendChild(this.$2_23.get_domElement());this.get_domElement().appendChild(this.$2_24.get_domElement());this.get_domElement().appendChild(this.$2_25.get_domElement());this.get_domElement().appendChild(this.get_clientArea());this.set_width(300);this.set_height(200);this.set_text('Form');this.$2_20=document.createElement('div');this.$2_20.style.cssText='\r\n\t\t\t\tposition: absolute;\r\n\t\t\t\ttop: 0px; \r\n\t\t\t\tleft: 0px;\r\n\t\t\t';Windex.Util.unselectable(this.get_domElement());this.$2_33();this.$2_27=Delegate.create(this,this.$2_2F);}
Windex.Form.test=function(){var $0=document.getElementById('test');var $1=new Windex.Form();$0.appendChild($1.get_domElement());}
Windex.Form.prototype={$2_20:null,ph:null,$2_21:null,$2_22:null,$2_23:null,$2_24:null,$2_25:null,$2_26:null,$2_27:null,add_closed:function(value){this.$2_28=Delegate.combine(this.$2_28,value);},remove_closed:function(value){this.$2_28=Delegate.remove(this.$2_28,value);},$2_28:null,onClosing:function(e){},onResize:function(){Windex.Form.callBase(this, 'onResize');this.$2_22.set_left(this.get_width()-103);this.$2_22.set_top(0);this.$2_23.set_left(this.$2_22.get_left()+this.$2_22.get_width());this.$2_23.set_top(0);this.$2_24.set_left(this.$2_23.get_left());this.$2_24.set_top(this.$2_23.get_top());this.$2_25.set_left(this.$2_23.get_left()+this.$2_23.get_width());this.$2_25.set_top(0);try{this.ph.style.width=this.get_width()+'px';this.ph.style.height=this.get_height()+'px';this.get_clientArea().style.top='28px';this.get_clientArea().style.left='8px';this.get_clientArea().style.width=(this.$2_29.width=this.get_width()-16)+'px';this.get_clientArea().style.height=(this.$2_29.height=this.get_height()-36)+'px';}catch($0){}},get_clientSize:function(){return this.$2_29;},get_clientWidth:function(){return this.$2_29.width;},get_clientHeight:function(){return this.$2_29.height;},$2_2A:function($p0,$p1){var $0=new Windex.ClosingEventArgs(false);this.onClosing($0);if($0.get_cancel()){return;}this.hide();},$2_2B:function($p0,$p1){if(this.$2_32!==0){if(this.$2_32===2){Windex.Util.swapNode(this.get_domElement(),this.ph);this.ph.parentNode.removeChild(this.ph);document.body.removeChild(this.$2_20);if(this.positioningEnabled){this.get_domElement().style.position='absolute';if(this.$2_2C!=null){this.set_left(this.$2_2C.x);this.set_top(this.$2_2C.y);}}else{this.get_domElement().style.position='relative';}}this.$2_32=0;this.set_width(this.$2_2D.width);this.set_height(this.$2_2D.height);this.get_clientArea().style.display='';try{window.detachEvent('onresize',Delegate.create(this,this.$2_2F));}catch($0){}}this.$2_33();},$2_2C:null,$2_2D:null,$2_2E:function($p0,$p1){this.$2_30();if(this.$2_32!==2){this.$2_32=2;document.body.appendChild(this.$2_20);this.$2_20.appendChild(this.ph);Windex.Util.swapNode(this.get_domElement(),this.ph);var $0=Windex.Util.getWindowSize();this.set_width($0.width);this.set_height($0.height);this.get_domElement().style.position='absolute';this.set_top(document.body.scrollTop);this.set_left(document.body.scrollLeft);window.attachEvent('onresize',this.$2_27);}this.$2_33();},$2_2F:function(){try{if(this.$2_32===2){var $0=Windex.Util.getWindowSize();this.set_width($0.width);this.set_height($0.height);}}catch($1){}},$2_30:function(){if(this.$2_32===0){this.$2_2D=ScriptFX.UI.$create_Size(this.get_width(),this.get_height());if(this.positioningEnabled){this.$2_2C=new Windex.Point(this.get_left(),this.get_top());}else{this.$2_2C=null;}}},$2_31:function($p0,$p1){this.$2_30();if(this.$2_32===2){this.$2_2B(null,null);}if(this.$2_32!==1){this.$2_32=1;this.get_clientArea().style.display='none';this.set_height(28);this.set_width(150);}this.$2_33();},get_windowState:function(){return this.$2_32;},set_windowState:function(value){switch(value){case 2:this.$2_2E(null,null);break;case 1:this.$2_31(null,null);break;case 0:this.$2_2B(null,null);break;}return value;},$2_33:function(){switch(this.$2_32){case 2:case 1:this.$2_24.set_visible(true);this.$2_23.set_visible(false);break;case 0:this.$2_24.set_visible(false);this.$2_23.set_visible(true);break;}},get_text:function(){return this.$2_21.innerText;},set_text:function(value){this.$2_21.innerText=value;return value;},setPopupBehavior:function(relative,mode){var $0=ScriptFX.UI.$create_PopupOptions(relative,mode);this.$2_26=new ScriptFX.UI.PopupBehavior(this.get_domElement(),$0);this.enablePositioning();},show:function(){if(this.$2_26!=null){this.$2_26.show();}else{this.get_domElement().style.display='';}this.focus();},hide:function(){if(this.$2_26!=null){this.$2_26.hide();}else{this.get_domElement().style.display='none';}this.onClosed();},onClosed:function(){if(this.$2_28!=null){this.$2_28.invoke(this,null);}}}
Windex.ClosingEventArgs=function(cancel){Windex.ClosingEventArgs.constructBase(this);this.$1_0=cancel;}
Windex.ClosingEventArgs.prototype={$1_0:false,get_cancel:function(){return this.$1_0;},set_cancel:function(value){this.$1_0=value;return value;}}
Windex.ImageList=function(path,imageSize,size,offset,cols,count){this.$0=path;this.$1=size;this.$2=cols;this.count=count;this.offset=offset;this.imageSize=imageSize;}
Windex.ImageList.prototype={imageSize:null,offset:null,$0:null,$1:null,$2:0,count:0,get_path:function(){return this.$0;},get_size:function(){return this.$1;},getPoint:function(index){var $0,$1;$0=index%this.$2;$1=(index-$0)/this.$2;return new Windex.Point(this.offset.x+($0*this.$1.width),this.offset.y+($1*this.$1.height));}}
Windex.Working=function(size){Windex.Working.constructBase(this,[Windex.Working.$1_B(size)]);this.$1_A=new Windex.Timer();this.$1_A.set_interval(20);this.$1_A.set_enabled(true);this.$1_A.add_tick(Delegate.create(this,this.$1_9));}
Windex.Working.$1_B=function($p0){return new Windex.ImageList('skins/aero/working'+$p0+'.png',ScriptFX.UI.$create_Size(25,450),ScriptFX.UI.$create_Size($p0,$p0),new Windex.Point(0,0),1,18);}
Windex.Working.prototype={$1_8:0,$1_9:function(){this.$1_8++;if(this.$1_8===this.imageList.count){this.$1_8=0;}this.set_index(this.$1_8);},$1_A:null,get_enabled:function(){return this.$1_A.get_enabled();},set_enabled:function(value){this.$1_A.set_enabled(value);this.get_domElement().style.display=(value)?'':'none';return value;}}
Windex.Sprite=function(imglist){Windex.Sprite.constructBase(this,[document.createElement('div'),'Sprite']);this.imageList=imglist;this.$1_0=document.createElement('div');this.get_domElement().appendChild(this.$1_0);this.$1_1=document.createElement('img');this.$1_0.style.position='relative';this.$1_0.appendChild(this.$1_1);this.$1_0.style.display='inline-block';this.$1_0.style.overflow='hidden';this.$1_0.style.width=this.imageList.get_size().width+'px';this.$1_0.style.height=this.imageList.get_size().height+'px';this.get_domElement().style.width=this.imageList.get_size().width+'px';this.get_domElement().style.height=this.imageList.get_size().height+'px';this.$1_1.style.position='absolute';this.$1_1.src=this.imageList.get_path();this.set_width(this.imageList.get_size().width);this.set_height(this.imageList.get_size().height);this.set_index(0);}
Windex.Sprite.prototype={$1_0:null,$1_1:null,imageList:null,$1_2:0,get_index:function(){return this.$1_2;},set_index:function(value){this.$1_2=value;var $0=this.imageList.getPoint(value);this.$1_1.style.left=(-1*$0.x*this.$1_3)+'px';this.$1_1.style.top=(-1*$0.y*this.$1_4)+'px';return value;},get_count:function(){return this.imageList.count;},$1_3:1,$1_4:1,$1_5:0,get_width:function(){return this.$1_5;},set_width:function(value){this.$1_5=value;this.$1_3=value/this.imageList.get_size().width;this.get_domElement().style.width=value+'px';this.$1_1.style.width=(this.imageList.imageSize.width*this.$1_3)+'px';this.set_index(this.$1_2);return value;},$1_6:0,get_height:function(){return this.$1_6;},set_height:function(value){this.$1_6=value;this.$1_4=value/this.imageList.get_size().height;this.get_domElement().style.height=value+'px';this.$1_1.style.height=(this.imageList.imageSize.height*this.$1_4)+'px';this.set_index(this.$1_2);return value;},$1_7:false,get_visible:function(){return this.$1_7;},set_visible:function(value){this.$1_7=value;if(value){this.$1_1.style.display='';}else{this.$1_1.style.display='none';}return value;}}
Windex.ToolBarImageInfo=function(path,imageSize,size,leftWidth,rightWidth){this.leftSide=new Windex.ImageList(path,imageSize,ScriptFX.UI.$create_Size(leftWidth,size.height),new Windex.Point(0,0),1,4);this.rightSide=new Windex.ImageList(path,imageSize,ScriptFX.UI.$create_Size(rightWidth,size.height),new Windex.Point(size.width-rightWidth,0),1,4);this.middle=new Windex.ImageList(path,imageSize,ScriptFX.UI.$create_Size(size.width-leftWidth-rightWidth,size.height),new Windex.Point(leftWidth,0),1,4);}
Windex.ToolBarImageInfo.prototype={leftSide:null,rightSide:null,middle:null}
Windex.Label=function(element){Windex.Label.constructBase(this,[element]);this.get_domElement().className='label';}
Windex.Label.prototype={onEnableChanged:function(){this.get_domElement().style.color=(this.get_enabled())?'':'silver';Windex.Label.callBase(this, 'onEnableChanged');},get_text:function(){return this.get_domElement().innerText;},set_text:function(value){this.get_domElement().innerText=value;return value;}}
Windex.ListItem=function(element){Windex.ListItem.constructBase(this,[(isUndefined(element))?document.createElement('div'):element]);this.$2_22=false;this.$2_21=false;this.setStyle(this.$2_22,this.$2_21);this.get_domElement().attachEvent('onclick',Delegate.create(this,this.$2_20));Windex.Util.unselectable(this.get_domElement());}
Windex.ListItem.create=function(text,value){var $0=new Windex.ListItem();$0.set_text(text);if(!isUndefined(value)){$0.set_value(value);}return $0;}
Windex.ListItem.prototype={$2_20:function(){if(!this.get_enabled()){return;}var $0=this.get_parent();while(!isNull($0)&&!Windex.ListViewBase.isListView($0)){$0=$0.get_parent();}($0).reportClick(this);window.event.cancelBubble=true;},onChange:function(args){(this.get_parent()).$2_25(this,args);},setStyle:function(selected,focused){var $0='listitem listitem-';var $1;if(selected){if(focused){$1='focusselect';}else{$1='select';}}else if(focused){$1='focus';}else{$1='cold';}this.get_clientArea().className=$0+$1;},$2_21:false,$2_22:false,setFocused:function(b){this.$2_21=b;this.setStyle(this.$2_22,this.$2_21);},setSelected:function(b){this.$2_22=b;this.setStyle(this.$2_22,this.$2_21);},get_selected:function(){return this.$2_22;},set_selected:function(value){if((value&!this.$2_22)===1){(this.get_parent()).selectedItems.add(this);}else if((this.$2_22&!value)===1){(this.get_parent()).selectedItems.remove(this);}return value;},get_text:function(){return this.get_clientArea().innerText;},set_text:function(value){this.get_clientArea().innerText=value;return value;},$2_23:null,get_value:function(){return this.$2_23;},set_value:function(value){this.$2_23=value;return value;},get_isVisible:function(){return true;},setOwner:function(owner){var $0;if(owner==null){$0='null';}else{$0=(owner).get_domElement().offsetLeft;}Windex.ListItem.callBase(this, 'setOwner',[owner]);},clone:function(){var $0=new Windex.ListItem();$0.set_text(this.get_text());return $0;}}
Windex.ListView=function(){Windex.ListView.constructBase(this);this.get_clientArea().className='listview listview-enabled';this.get_domElement().style.backgroundColor='white';}
Windex.ListView.prototype={onEnableChanged:function(){this.get_clientArea().className='listview listview-'+((this.get_enabled())?'enabled':'disabled');Windex.ListView.callBase(this, 'onEnableChanged');}}
Windex.ListViewBase=function(element){Windex.ListViewBase.constructBase(this,[(isUndefined(element))?document.createElement('div'):element]);this.__islistviewbase = true;this.enableTabStop('button');this.enableFocus();this.selectedItems=new Windex.FormControlCollection(null);this.selectedItems.protectOwner=true;this.get_controls().add_collectionChanged(Delegate.create(this,this.$2_21));this.selectedItems.add_collectionChanged(Delegate.create(this,this.$2_22));Windex.Util.unselectable(this.get_domElement());}
Windex.ListViewBase.isListView=function(o){return !isNullOrUndefined(o.__islistviewbase);}
Windex.ListViewBase.prototype={selectedItems:null,focusItem:null,lastNonShift:null,$2_20:false,get_selectedItem:function(){if(this.selectedItems.get_count()===0){return null;}return this.selectedItems.get_item(0);},set_selectedItem:function(value){this.selectedItems.clear();if(value!=null){value.set_selected(true);}return value;},get_selectedIndex:function(){if(this.selectedItems.get_count()===0){return -1;}return this.get_controls().getItems().indexOf(this.selectedItems.get_item(0));},set_selectedIndex:function(value){this.selectedItems.clear();(this.get_controls().get_item(value)).set_selected(true);this.onChange();return value;},get_focusIndex:function(){if(this.focusItem==null){return -1;}return this.get_controls().getItems().indexOf(this.focusItem);},set_focusIndex:function(value){this.$2_24(this.get_controls().get_item(value));return value;},get_multiple:function(){return this.$2_20;},set_multiple:function(value){this.$2_20=value;return value;},$2_21:function($p0,$p1){var $0=Type.safeCast($p1.get_item(),Windex.ListItem);switch($p1.get_action()){case 1:if($0==null){return;}$0.setSelected(false);$0.setFocused(false);if(this.selectedItems.get_baseCollection().contains($0)){this.selectedItems.remove($0);}if(this.focusItem===$0){this.$2_24(null);}break;case 0:if($0==null){return;}if(this.get_controls().get_count()===1){this.$2_24($0);}break;}},onFocusChanged:function(){Windex.ListViewBase.callBase(this, 'onFocusChanged');if(this.focusItem!=null){this.focusItem.setFocused(this.get_focused());}},onFocus:function(){},onCollectionChanged:function(sender,e){if(e.get_action()===0){Windex.Util.unselectable((e.get_item()).get_domElement());}Windex.ListViewBase.callBase(this, 'onCollectionChanged',[sender,e]);},$2_22:function($p0,$p1){var $0=$p1.get_item();switch($p1.get_action()){case 0:$0.setSelected(true);break;case 1:$0.setSelected(false);break;case 2:for(var $1=0;$1<this.get_controls().get_count();$1++){(this.get_controls().get_item($1)).setSelected(false);}break;}},reportClick:function(item){if(!this.get_enabled()){return;}this.$2_24(item);if(this.get_multiple()&&window.event.shiftKey){this.selectedItems.clear();var $0=-1;if(this.lastNonShift!=null){$0=this.get_controls().getItems().indexOf(this.lastNonShift);}if($0===-1){item.set_selected(true);}else{var $1=this.get_controls().getItems().indexOf(item);var $2;var $3;if($1>$0){$2=$0;$3=$1;}else{$2=$1;$3=$0;}for(var $4=$2;$4<=$3;$4++){(this.get_controls().get_item($4)).set_selected(true);}}this.onChange();}else if(this.get_multiple()&&window.event.ctrlKey){this.lastNonShift=item;item.set_selected(!item.get_selected());this.onChange();}else{this.lastNonShift=item;if((!item.get_selected()|this.selectedItems.get_count()>1)===1){this.selectedItems.clear();item.set_selected(true);this.onChange();}}},onKeyDown:function(){var $0=this.get_selectedIndex();var $1=this.get_focusIndex();var $2=this.get_controls().get_item($1);if(this.get_multiple()&&(window.event.ctrlKey&window.event.keyCode===32)===1){$2.set_selected(!$2.get_selected());this.onChange();}else if(this.get_multiple()&&(window.event.ctrlKey&window.event.keyCode===65)===1){for(var $3=0;$3<this.get_controls().get_count();$3++){(this.get_controls().get_item($3)).set_selected(true);}this.onChange();}else{switch(window.event.keyCode){case 38:if($1>0){$1=this.$2_23($1,-1);}else{break;}break;case 40:if($1<this.get_controls().get_count()-1){$1=this.$2_23($1,1);}else{break;}break;case 36:$1=this.$2_23(-1,1);break;case 35:$1=this.$2_23(this.get_controls().get_count(),-1);break;default:return;}this.set_focusIndex($1);if(window.event.shiftKey){this.reportClick(this.get_controls().get_item($1));}else if(window.event.ctrlKey){}else{this.lastNonShift=this.get_controls().get_item($1);this.set_selectedIndex($1);}window.event.returnValue=false;window.event.cancelBubble=true;}Windex.ListViewBase.callBase(this, 'onKeyPress');},$2_23:function($p0,$p1){var $0=$p0+$p1;var $1=this.get_controls().get_count();while(($0>=0&$0<$1)===1){var $2=this.get_controls().get_item($0);if($2.get_isVisible()){return $0;}$0+=$p1;}if($p0<0){$p0=0;}if($p0>=this.get_controls().get_count()){$p0=this.get_controls().get_count();}return $p0;},$2_24:function($p0){if(this.focusItem!=null){this.focusItem.setFocused(false);}if($p0!=null){var $0=Windex.Util.testVisibility($p0.get_clientArea(),this.get_domElement());if(($0&2)===2){this.get_domElement().scrollTop=$p0.get_clientArea().offsetTop;}else if(($0&4)===4){this.get_domElement().scrollTop=($p0.get_clientArea().offsetTop+$p0.get_clientArea().offsetHeight)-this.get_domElement().clientHeight;}if(($0&8)===8){this.get_domElement().scrollLeft=$p0.get_clientArea().offsetLeft;}$p0.setFocused(this.get_focused());}this.focusItem=$p0;},getSelectedItems:function(){var $0=[];var $1=this.get_controls().getItems();for(var $2=0;$2<$1.length;$2++){if($1[$2].get_selected()){$0.add($1[$2]);}}return $0;},getItems:function(){return this.get_controls().getItems();},getSelectedValues:function(){var $0=[];var $1=this.getSelectedItems();for(var $2=0;$2<$1.length;$2++){var $3=$1[$2];if($3.get_selected()){$0.add($3.get_value());}}return $0;},$2_25:function($p0,$p1){this.onChange($p1);}}
Windex.MouseBehavior=function(sender,domElement,handler,events){Windex.MouseBehavior.constructBase(this,[domElement,'MouseEvents']);this.$1_0=sender;this.$1_1=handler;if((events&1)>0){domElement.attachEvent('onmouseover',Delegate.create(this,this.$1_2));}if((events&2)>0){this.get_domElement().attachEvent('onmouseout',Delegate.create(this,this.$1_3));}if((events&4)>0){this.get_domElement().attachEvent('onmousedown',Delegate.create(this,this.$1_4));}if((events&8)>0){this.get_domElement().attachEvent('onmouseup',Delegate.create(this,this.$1_5));}if((events&16)>0){this.get_domElement().attachEvent('onmousemove',Delegate.create(this,this.$1_6));}if((events&32)>0){this.get_domElement().attachEvent('onclick',Delegate.create(this,this.$1_7));}if((events&64)>0){this.get_domElement().attachEvent('ondblclick',Delegate.create(this,this.$1_8));}else if((events&32)>0){this.get_domElement().attachEvent('ondblclick',Delegate.create(this,this.$1_7));}}
Windex.MouseBehavior.attach=function(domElement,handler,events){var $0=Type.safeCast((domElement),ScriptFX.UI.Behavior);if($0==null){$0=domElement;}else{domElement=($0).get_domElement();}if(isNullOrUndefined(events)){events=8|4|1|2|32;}domElement.MouseBehavior = new Windex.MouseBehavior($0,domElement,handler,events);}
Windex.MouseBehavior.prototype={$1_0:null,$1_1:null,$1_2:function(){this.$1_9(1);},$1_3:function(){this.$1_9(2);},$1_4:function(){this.$1_9(4);},$1_5:function(){this.$1_9(8);},$1_6:function(){this.$1_9(16);},$1_7:function(){this.$1_9(32);},$1_8:function(){this.$1_9(64);},$1_9:function($p0){this.$1_1.invoke(this.$1_0,new Windex.MouseEventArgs($p0));}}
Windex.MouseEventArgs=function(Event){Windex.MouseEventArgs.constructBase(this);this.event=Event;}
Windex.MouseEventArgs.prototype={event:0}
Windex.MultiView=function(){Windex.MultiView.constructBase(this);}
Windex.MultiView.prototype={onCollectionChanged:function(sender,e){Windex.MultiView.callBase(this, 'onCollectionChanged',[sender,e]);if(e.get_action()===0){(e.get_item()).set_display(false);}},$2_20:null,get_activeControl:function(){return this.$2_20;},set_activeControl:function(value){var $0=this.get_controls().getItems();for(var $1=0;$1<$0.length;$1++){var $2=$0[$1];$2.set_display(($2===value));}this.$2_20=value;return value;}}
Windex.Panel=function(){Windex.Panel.constructBase(this,[document.createElement('span')]);}
Windex.PlusBox=function(){Windex.PlusBox.constructBase(this,[Windex.PlusBox.$1_8()]);this.get_domElement().attachEvent('onclick',Delegate.create(this,this.$1_9));this.get_domElement().attachEvent('ondblclick',Delegate.create(this,this.$1_9));this.set_value(false);}
Windex.PlusBox.$1_8=function(){if(Windex.PlusBox.il==null){Windex.PlusBox.il=new Windex.ImageList(Windex.Config.skinPath+'aero/804.png',ScriptFX.UI.$create_Size(9,18),ScriptFX.UI.$create_Size(9,9),new Windex.Point(0,0),1,2);}return Windex.PlusBox.il;}
Windex.PlusBox.prototype={$1_9:function(){this.set_value(!this.get_value());if(this.$1_A!=null){this.$1_A.invoke(this,null);}},add_valueChanged:function(value){this.$1_A=Delegate.combine(this.$1_A,value);},remove_valueChanged:function(value){this.$1_A=Delegate.remove(this.$1_A,value);},$1_A:null,onValueChanged:function(args){if(this.$1_A!=null){this.$1_A.invoke(this,args);}},$1_B:false,get_value:function(){return this.$1_B;},set_value:function(value){this.$1_B=value;this.set_index((value)?0:1);return value;}}
Windex.SpriteButton=function(il){Windex.SpriteButton.constructBase(this,[document.createElement('span')]);this.sprite=new Windex.Sprite(il);Windex.MouseBehavior.attach(this.get_domElement(),Delegate.create(this,this.$2_21));this.$2_20=[0,1,2,3];this.get_domElement().appendChild(this.sprite.get_domElement());this.enableTabStop('button');this.click=Delegate.create(this,function(){
this.onClick(null);});}
Windex.SpriteButton.prototype={sprite:null,get_frames:function(){return this.get_frames();},set_frames:function(value){this.$2_20=value;this.sprite.set_index(this.$2_20[0]);return value;},$2_20:null,$2_21:function($p0,$p1){if(!this.get_enabled()){return;}if(this.$2_22!=null){this.$2_22.invoke(this,$p1);}if(window.event.cancelBubble){return;}switch($p1.event){case 8:case 1:this.sprite.set_index(this.$2_20[1]);break;case 2:this.sprite.set_index(this.$2_20[(this.get_focused())?1:0]);break;case 4:this.sprite.set_index(this.$2_20[2]);break;case 32:this.onClick($p1);break;}},add_mouse:function(value){this.$2_22=Delegate.combine(this.$2_22,value);},remove_mouse:function(value){this.$2_22=Delegate.remove(this.$2_22,value);},$2_22:null,onEnableChanged:function(){Windex.SpriteButton.callBase(this, 'onEnableChanged');this.sprite.set_index(this.$2_20[(this.get_enabled())?0:3]);},onFocusChanged:function(){Windex.SpriteButton.callBase(this, 'onFocusChanged');this.sprite.set_index(this.$2_20[(this.get_focused())?1:0]);},add_click:function(value){this.$2_23=Delegate.combine(this.$2_23,value);},remove_click:function(value){this.$2_23=Delegate.remove(this.$2_23,value);},$2_23:null,onKeyDown:function(){Windex.SpriteButton.callBase(this, 'onKeyDown');if(window.event.keyCode===32){this.sprite.set_index(this.$2_20[2]);}},onKeyUp:function(){Windex.SpriteButton.callBase(this, 'onKeyUp');if(window.event.keyCode===32){this.sprite.set_index(this.$2_20[1]);}},onClick:function(e){if(this.$2_23!=null){this.$2_23.invoke(this,e);}}}
Windex.TabControl=function(element){Windex.TabControl.constructBase(this,[element||document.createElement('span')]);this.$2_26=document.createElement('div');this.$2_26.innerHTML='&nbsp;';this.$2_20=document.createElement('table');this.$2_20.style.cssText='\r\n\twidth: 100%;\r\n\theight: 100%;\r\n';this.$2_20.setAttribute('cellSpacing',0);this.$2_20.setAttribute('cellPadding',0);var $0=this.$2_20.insertRow(-1);this.$2_23=$0;this.$2_21=$0.insertCell(-1);this.$2_21.className='tabcell';this.$2_21.style.width='1px';$0=this.$2_20.insertRow(-1);this.$2_22=$0.insertCell(-1);this.$2_22.style.verticalAlign='top';this.$2_24=document.createElement('table');this.$2_24.setAttribute('cellSpacing',0);this.$2_24.setAttribute('cellPadding',0);this.$2_25=this.$2_24.insertRow(-1);this.$2_2A=this.get_controls().get_baseCollection();this.get_tabPages().add_collectionChanged(Delegate.create(this,this.$2_29));var $1=0;var $2=new Array(0);for(var $3=0;$3<this.get_domElement().children.length;$3++){try{switch(this.get_domElement().children[$3].tagName.toLowerCase()){case 'script':throw new Error('Not valid');default:var $4=this.get_domElement().children[$3];Windex.Util.add($2,new Windex.TabPage($4));if($4.attributes.getNamedItem('open')!=null){$1=$2.length-1;}break;}}catch($5){}}this.$2_21.appendChild(this.$2_24);var $enum2=$2.getEnumerator();while($enum2.moveNext()){var $6=$enum2.get_current();this.get_tabPages().add($6);}this.$2_22.appendChild(this.$2_26);this.set_selectedIndex($1);this.get_domElement().appendChild(this.$2_20);this.set_formStyle(true);}
Windex.TabControl.prototype={$2_20:null,$2_21:null,$2_22:null,$2_23:null,$2_24:null,$2_25:null,$2_26:null,$2_27:false,get_formStyle:function(){return this.$2_27;},set_formStyle:function(value){this.$2_27=value;if(value){this.$2_22.className='tab-body';this.$2_21.className='tabcell';}else{this.$2_22.className='';this.$2_21.className='';}return value;},$2_28:true,get_showTabs:function(){return this.$2_28;},set_showTabs:function(value){this.$2_28=value;if(value){this.$2_23.style.display='';}else{this.$2_23.style.display='none';}this.onResize();return value;},$2_29:function($p0,$p1){var $0=$p1.get_item();switch($p1.get_action()){case 0:this.$2_25.appendChild($0.$2_20);this.$2_22.appendChild($0.get_domElement());break;case 1:this.$2_25.removeChild($0.$2_20);this.$2_22.removeChild($0.get_domElement());break;case 2:while(this.$2_25.firstChild!=null){this.$2_25.removeChild(this.$2_25.firstChild);}while(this.$2_22.firstChild!=null){this.$2_22.removeChild(this.$2_22.firstChild);}this.$2_22.appendChild(this.$2_26);break;}},$2_2A:null,get_tabPages:function(){return this.$2_2A;},hideEmptyTabs:function(){for(var $0=0;$0<this.get_tabPages().getLength();$0++){var $1=this.get_tabPages().getItem($0);if(($1.get_text().trim()===''|$1.get_domElement().innerText.trim()==='')===1){$1.set_visible(false);}}},onEnableChanged:function(){Windex.TabControl.callBase(this, 'onEnableChanged');},$2_2B:null,selectTab:function(tabPage){this.$2_2B=this.get_tabPages().getItems();var $0=this.$2_2B.indexOf(tabPage);if($0===-1){throw new Error('Page is not in TabControl');}this.set_selectedIndex($0);this.$2_2B=null;},get_selectedPage:function(){return this.get_tabPages().getItem(this.get_selectedIndex());},$2_2C:0,get_selectedIndex:function(){return this.$2_2C;},set_selectedIndex:function(value){this.$2_2C=value;this.$2_26.style.display='';if(this.$2_2B==null){this.$2_2B=this.get_tabPages().getItems();}for(var $0=0;$0<this.$2_2B.length;$0++){var $1=this.$2_2B[$0];if(value===$0){$1.get_domElement().style.display='';$1.$2_20.className='tab-item tab-selected';$1.$2_21.className='tableft tableft-selected';$1.$2_22.className='tabmiddle tabmiddle-selected';$1.$2_23.className='tabright tabright-selected';this.$2_26.style.display='none';}else{$1.get_domElement().style.display='none';$1.$2_20.className='tab-item';$1.$2_21.className='tableft tableft-neutral';$1.$2_22.className='tabmiddle tabmiddle-neutral';$1.$2_23.className='tabright tabright-neutral';}}this.$2_2B=null;this.onTabSelected();return value;},get_width:function(){return Windex.TabControl.callBase(this, 'get_width');},set_width:function(value){Windex.TabControl.callBase(this, 'set_width',[value]);this.$2_20.style.width=this.get_width()+'px';this.get_domElement().style.width='';return value;},get_height:function(){return Windex.TabControl.callBase(this, 'get_height');},set_height:function(value){Windex.TabControl.callBase(this, 'set_height',[value]);this.$2_20.style.height=this.get_height()+'px';this.$2_22.style.height=this.get_height()+'px';this.get_domElement().style.height='';return value;},add_tabSelected:function(value){this.$2_2D=Delegate.combine(this.$2_2D,value);},remove_tabSelected:function(value){this.$2_2D=Delegate.remove(this.$2_2D,value);},$2_2D:null,onTabSelected:function(){if(this.$2_2D!=null){this.$2_2D.invoke();}}}
Windex.TabPage=function(element){Windex.TabPage.constructBase(this,[element||document.createElement('span')]);this.$2_24=document.createElement('table');this.$2_24.setAttribute('cellSpacing',0);this.$2_24.setAttribute('cellPadding',0);var $0=this.$2_24.insertRow(-1);this.$2_21=$0.insertCell(-1);this.$2_21.className='tableft tableft-neutral';this.$2_22=$0.insertCell(-1);this.$2_22.noWrap=true;this.$2_22.className='tabmiddle tabmiddle-neutral';this.$2_23=$0.insertCell(-1);this.$2_23.className='tabright tabright-neutral';this.set_text(this.get_domElement().title);this.get_domElement().title='';this.$2_20=document.createElement('td');this.$2_20.noWrap=true;this.$2_20.appendChild(this.$2_24);this.$2_21.innerHTML='&nbsp;';this.$2_23.innerHTML='&nbsp;';this.$2_20.attachEvent('onclick',Delegate.create(this,this.$2_25));this.$2_20.attachEvent('onmouseover',Delegate.create(this,this.$2_26));this.$2_20.attachEvent('onmouseout',Delegate.create(this,this.$2_27));Windex.Util.unselectable(this.$2_20);this.$2_20.className='tab-item';var $1=[this.$2_20,this.$2_21,this.$2_22,this.$2_23,this.$2_24];var $enum1=$1.getEnumerator();while($enum1.moveNext()){var $2=$enum1.get_current();Windex.Util.unselectable($2);}}
Windex.TabPage.prototype={$2_20:null,$2_21:null,$2_22:null,$2_23:null,$2_24:null,$2_25:function(){if(this.get_enabled()){(this.get_parent()).selectTab(this);}},$2_26:function(){if((this.get_parent()).get_selectedPage()!==this){this.$2_21.className='tableft tableft-hover';this.$2_22.className='tabmiddle tabmiddle-hover';this.$2_23.className='tabright tabright-hover';}},$2_27:function(){if((this.get_parent()).get_selectedPage()!==this){this.$2_21.className='tableft tableft-neutral';this.$2_22.className='tabmiddle tabmiddle-neutral';this.$2_23.className='tabright tabright-neutral';}},onVisibilityChange:function(){this.$2_20.style.display=(this.get_visible())?'':'none';Windex.TabPage.callBase(this, 'onVisibilityChange');},get_text:function(){return this.$2_22.innerText;},set_text:function(value){this.$2_22.innerText=value;return value;},onEnableChanged:function(){Windex.TabPage.callBase(this, 'onEnableChanged');}}
Windex.TextField=function(a){Windex.TextField.constructBase(this,[(Type.getInstanceType(a)===Boolean)?((a)?document.createElement('textarea'):document.createElement('input')):(a)]);this.e=this.get_domElement();if(this.e.tagName.toLowerCase()==='textarea'){this.$2_21=true;}if(!this.$2_21){this.e.type='text';}this.$2_21=this.$2_21;this.e.attachEvent('onfocus',Delegate.create(this,this.$2_26));this.e.attachEvent('onblur',Delegate.create(this,this.$2_27));this.e.attachEvent('onchange',Delegate.create(this,this.$2_25));this.e.attachEvent('onkeydown',Delegate.create(this,this.$2_25));this.e.attachEvent('onkeydown',Delegate.create(this,this.onKeyDown));this.e.attachEvent('onkeypress',Delegate.create(this,this.onKeyPress));this.e.attachEvent('onkeyup',Delegate.create(this,this.onKeyUp));this.$2_20=new Windex.Timer();this.$2_20.set_interval(100);this.$2_20.set_enabled(false);this.$2_20.add_tick(Delegate.create(this,this.$2_25));this.$2_28();this.enableTabStop(this.e);}
Windex.TextField.prototype={$2_20:null,e:null,$2_21:false,$2_22:true,$2_23:false,$2_24:'',$2_25:function(){if(this.$2_24!==this.e.value){this.$2_24=this.e.value;this.onChange();}},$2_26:function(){this.$2_23=true;this.$2_28();this.$2_24=this.e.value;this.$2_20.set_enabled(true);},$2_27:function(){this.$2_23=false;this.$2_20.set_enabled(false);this.$2_25();this.$2_28();},onEnableChanged:function(){this.e.disabled=!this.get_enabled();if(this.get_enabled()){if(this.$2_23){this.$2_20.set_enabled(true);}}else{this.$2_23=false;this.$2_20.set_enabled(false);}},get_text:function(){return this.$2_24;},set_text:function(value){this.e.value=value;this.$2_24=value;if((value==null|value==='')===1){this.$2_22=true;}this.$2_28();return value;},sw:false,$2_28:function(){if(((!this.$2_23&this.$2_22)===1&((this.$2_24===''|this.$2_24==null)===1))===1){this.e.value=this.get_watermark()||'';this.e.style.color='silver';this.sw=true;}else{if(this.sw){this.e.value=this.$2_24||'';this.e.style.color='';this.sw=false;}}},$2_29:null,get_watermark:function(){return this.$2_29;},set_watermark:function(value){this.$2_29=value;this.$2_28();return value;}}
Windex.Timer=function(){this.$1=-1;this.set_interval(1000);}
Windex.Timer.prototype={add_tick:function(value){this.$0=Delegate.combine(this.$0,value);},remove_tick:function(value){this.$0=Delegate.remove(this.$0,value);},$0:null,$2:0,get_interval:function(){return this.$2;},set_interval:function(value){this.$2=value;this.$4();return value;},$3:false,get_enabled:function(){return this.$3;},set_enabled:function(value){this.$3=value;this.$4();return value;},$4:function(){if(this.$1!==-1){window.clearInterval(this.$1);this.$1=-1;}if(this.$3){this.$1=window.setInterval(Delegate.create(this,this.$5),this.get_interval());}},$5:function(){if(this.$0!=null){this.$0.invoke();}},dispose:function(){this.$3=false;this.$4();}}
Windex.TreeView=function(){Windex.TreeView.constructBase(this);this.$2_29=new Windex.FormControlCollection(this);this.$2_29.add_collectionChanged(Delegate.create(this,this.$2_26));this.get_domElement().style.position='relative';}
Windex.TreeView.prototype={onKeyDown:function(){var $0=this.get_selectedItem();if($0!=null){var $1=this.get_controls().get_baseCollection().getItems();var $2=$1.indexOf($0);var $3=($0.get_parentNode()!=null)?$1.indexOf($0.get_parentNode()):0;var $4=($0.get_nodes().get_count()!==0)?$1.indexOf($0.get_nodes().get_item(0)):0;var $5=this.get_focusIndex();switch(window.event.keyCode){case 37:if(((($0.get_nodes().get_count()===0|!$0.get_expanded())===1)&!isNullOrUndefined($0.get_parentNode()))===1){$5=$3;}else{$0.set_expanded(false);}break;case 39:if(($0.get_nodes().get_count()>0&$0.get_expanded())===1){$5=$4;}else if($0.get_nodes().get_count()!==0){$0.set_expanded(true);}break;default:Windex.TreeView.callBase(this, 'onKeyDown');return;}this.set_focusIndex($5);if(window.event.shiftKey){this.reportClick(this.get_controls().get_item($5));}else if(window.event.ctrlKey){}else{this.lastNonShift=this.get_controls().get_item($5);this.set_selectedIndex($5);}window.event.returnValue=false;window.event.cancelBubble=true;}else{Windex.TreeView.callBase(this, 'onKeyDown');}},$2_26:function($p0,$p1){switch($p1.get_action()){case 0:this.get_controls().add($p1.get_item());($p1.get_item()).render();break;}},onCollectionChanged:function(sender,e){switch(e.get_action()){case 0:var $0=Type.safeCast(e.get_item(),Windex.TreeNode);if(this.get_nodes().get_baseCollection().contains($0)){Windex.TreeView.callBase(this, 'onCollectionChanged',[sender,e]);}else{var $1=$0.get_parentNode();var $2=$1.get_nodes().get_baseCollection().getItems();var $3=$2.indexOf($0);var $4;if($3===0){$4=$1;}else{$4=$2[$3-1];if($4.get_nodes().get_count()!==0){$4=$4.getLastDescendant();}}var $5=this.get_controls().get_baseCollection().getItems();$5.remove($0);var $6=$5.indexOf($4);$5.insert($6+1,$0);}for(var $7=0;$7<$0.get_nodes().get_count();$7++){this.get_controls().add($0.get_nodes().get_item($7));}break;}},$2_27:function($p0,$p1){var $0=Type.safeCast($p1.get_item(),Windex.TreeNode);switch($p1.get_action()){case 0:$0.$2_3D(this);break;}},$2_28:false,get_checkBoxes:function(){return this.$2_28;},set_checkBoxes:function(value){this.$2_28=value;this.render();return value;},$2_29:null,get_nodes:function(){return this.$2_29;},render:function(){for(var $0=0;$0<this.get_nodes().get_count();$0++){this.get_nodes().get_item($0).render();}}}
Windex.TreeNode=function(){this.$2_39=[];this.ph=document.createElement('a');Windex.TreeNode.constructBase(this);this.$2_33=false;this.$2_2E=document.createElement('div');this.set_clientArea(this.$2_2E);this.get_clientArea().className=this.get_domElement().className;this.get_domElement().className='';var $0=document.createElement('table');$0.border = 0;$0.cellPadding = 0;$0.cellSpacing = 0;this.$2_2E.appendChild($0);var $1=$0.insertRow(-1);var $2;this.$2_2D=new Windex.PlusBox();this.$2_2D.set_value(true);this.$2_2D.add_valueChanged(Delegate.create(this,this.$2_38));$2=$1.insertCell(-1);$2.style.width='14px';$2.style.textAlign='center';$2.appendChild(Windex.Util.blank(14,0));$2.appendChild(this.$2_2D.get_domElement());this.$2_2C=new Windex.CheckBox();this.$2_2C.get_domElement().tabIndex = -1;$2=this.$2_30=$1.insertCell(-1);this.get_controls().add(this.$2_2C);$2.appendChild(this.$2_2C.get_domElement());this.$2_2B=document.createElement('img');this.$2_2B.style.width='16px';this.$2_2B.style.height='16px';this.$2_2B.style.position='relative';this.$2_2B.style.top=Windex.TreeNode.$2_24.top+'px';$2=this.$2_31=$1.insertCell(-1);$2.appendChild(this.$2_2B);this.$2_2A=new Windex.Label(null);this.$2_2A.set_text('Node');this.$2_2A.get_domElement().style.whiteSpace='nowrap';$2=$1.insertCell(-1);this.get_controls().add(this.$2_2A);$2.appendChild(this.$2_2A.get_domElement());this.$2_2F=document.createElement('div');this.$2_2F.style.paddingLeft='16px';this.$2_35=new Windex.FormControlCollection(this);this.$2_35.add_collectionChanged(Delegate.create(this,this.$2_3A));this.$2_3B();this.get_domElement().appendChild(this.$2_2E);this.get_domElement().appendChild(this.$2_2F);this.set_expanded(false);this.$2_31.style.display='none';this.$2_30.style.display='none';}
Windex.TreeNode.createNode=function(p,treeNode){var $0=new Windex.TreeNode();$0.set_text(p);if(treeNode!=null){for(var $1=0;$1<treeNode.length;$1++){$0.get_nodes().add(treeNode[$1]);}}return $0;}
Windex.TreeNode.prototype={$2_2A:null,$2_2B:null,$2_2C:null,$2_2D:null,$2_2E:null,$2_2F:null,$2_30:null,$2_31:null,add_populate:function(value){this.$2_32=Delegate.combine(this.$2_32,value);},remove_populate:function(value){this.$2_32=Delegate.remove(this.$2_32,value);},$2_32:null,onPopulate:function(args){if(this.$2_32!=null){this.$2_32.invoke(this,args);}},$2_33:false,get_expanded:function(){return !this.$2_2D.get_value();},set_expanded:function(value){this.$2_2D.set_value(!value);this.$2_38(this,null);return value;},get_isVisible:function(){if(!isNullOrUndefined(this.get_parentNode())){return this.get_parentNode().get_expanded()&&this.get_parentNode().get_isVisible();}else{return true;}},get_enabled:function(){return this.get_visible()&&Windex.TreeNode.callBase(this, 'get_enabled');},set_enabled:function(value){Windex.TreeNode.callBase(this, 'set_enabled',[value]);return value;},get_text:function(){return this.$2_2A.get_text();},set_text:function(value){this.$2_2A.set_text(value);return value;},$2_34:null,get_image:function(){return this.$2_34;},set_image:function(value){this.$2_2B.src=value;this.$2_34=value;this.render();return value;},$2_35:null,get_nodes:function(){return this.$2_35;},$2_36:null,get_parentNode:function(){if(this.$2_36!=null){if(this.$2_36.get_nodes().get_baseCollection().contains(this)){return this.$2_36;}}return null;},$2_37:function($p0){this.$2_36=$p0;this.render();},get_treeView:function(){return this.$2_3C;},$2_38:function($p0,$p1){if(this.get_expanded()&&!this.$2_33){var $0=new Windex.TreeViewEventArgs();$0.node=this;this.onPopulate($0);this.$2_33=true;}this.$2_2F.style.display=(this.get_expanded())?'':'none';},$2_3A:function($p0,$p1){var $0=$p1.get_item();switch($p1.get_action()){case 0:$0.setOwner(this.$2_3C);$0.$2_37(this);$0.$2_3D(this.$2_3C);this.$2_39.add($0);if(this.$2_3C!=null){this.$2_3C.get_controls().add($0);}this.$2_2F.appendChild($0.get_domElement());break;case 1:this.$2_39.remove($0);this.$2_3C.get_controls().remove($0);try{this.$2_2F.removeChild($0.get_domElement());}catch($1){}break;case 2:Windex.Util.clearChildren(this.$2_2F);for(var $2=0;$2<this.$2_39.length;$2++){this.$2_3C.get_controls().remove(this.$2_39[$2]);}this.$2_39.clear();break;}this.$2_3B();},$2_3B:function(){if(this.$2_39.length===0){this.$2_2D.set_visible(false);}else{this.$2_2D.set_visible(true);}},$2_3C:null,$2_3D:function($p0){this.$2_3C=$p0;for(var $0=0;$0<this.get_nodes().getLength();$0++){(this.get_nodes().getItem($0)).$2_3D($p0);}},get_parent:function(){return this.$2_3C;},setOwner:function(owner){if(owner==null){return;}if(Windex.ListViewBase.isListView(owner)){this.$2_3C=owner;}Windex.TreeNode.callBase(this, 'setOwner',[owner]);for(var $0=0;$0<this.get_nodes().getLength();$0++){(this.get_nodes().getItem($0)).setOwner(owner);}},render:function(){var $0=Windex.TreeNode.$2_26.left;var $1=Windex.TreeNode.$2_27.left;var $2=Windex.TreeNode.$2_24.left;var $3=Windex.TreeNode.$2_25.left;if(this.get_nodes().getLength()!==0){}else{}if(this.$2_3C!=null){if(this.$2_3C.get_checkBoxes()){this.$2_2C.get_domElement().style.display='';$2+=Windex.TreeNode.$2_29;$3+=Windex.TreeNode.$2_29;}else{this.$2_2C.get_domElement().style.display='none';}}if(this.get_image()!=null){this.$2_2B.style.display='';this.$2_2B.src=this.get_image();$3+=Windex.TreeNode.$2_28;}else{this.$2_2B.style.display='none';}this.$2_2D.get_domElement().style.left=$0.toString()+'px';this.$2_2C.get_domElement().style.left=$1.toString()+'px';this.$2_2B.style.left=$2.toString()+'px';this.$2_2A.get_domElement().style.left=$3.toString()+'px';if(this.get_expanded()){this.$2_2F.style.display='';}else{this.$2_2F.style.display='none';}for(var $4=0;$4<this.get_nodes().get_count();$4++){var $5=this.get_nodes().getItem($4);this.$2_2F.appendChild($5.get_domElement());$5.render();}Windex.TreeNode.callBase(this, 'render');},getLastDescendant:function(){if(this.get_nodes().get_count()===0){return null;}return ((this.get_nodes().get_item(this.get_nodes().get_count()-1)).getLastDescendant()||(this.get_nodes().get_item(this.get_nodes().get_count()-1)));}}
Windex.TreeViewEventArgs=function(){Windex.TreeViewEventArgs.constructBase(this);}
Windex.TreeViewEventArgs.prototype={node:null}
Windex.Ajax=function(){}
Windex.Ajax.deserialize=function(s){if(String.isNullOrEmpty(s)){return null;}if(Windex.Ajax.$0==null){Windex.Ajax.$0=new RegExp('[\'\"]\\\\\\/Date\\((-?[0-9]+)\\)\\\\\\/[\'\"]','gm');}s=s.replace(Windex.Ajax.$0,'new Date($1)');return eval('('+s+')');}
Windex.Ajax.serialize=function(o){if(isNullOrUndefined(o)){return String.Empty;}var $0=new StringBuilder();Windex.Ajax.$1($0,o);return $0.toString();}
Windex.Ajax.$1=function($p0,$p1){if(isNullOrUndefined($p1)){$p0.append('null');}else{switch(typeof($p1)){case 'boolean':$p0.append($p1.toString());return;case 'number':$p0.append((isFinite($p1))?$p1.toString():'null');return;case 'string':$p0.append(($p1).quote());return;case 'object':if(Array.isInstance($p1)){$p0.append('[');var $3=$p1;var $4=$3.length;var $5=true;for(var $6=0;$6<$4;$6++){if($5){$5=false;}else{$p0.append(',');}Windex.Ajax.$1($p0,$3[$6]);}$p0.append(']');return;}if(Date.isInstance($p1)){var $7=$p1;var $8=Date.UTC($7.getUTCFullYear(),$7.getUTCMonth(),$7.getUTCDate(),$7.getUTCHours(),$7.getUTCMinutes(),$7.getUTCSeconds(),$7.getUTCMilliseconds());$p0.append('\"\\/Date(');$p0.append($8);$p0.append(')\\/\"');return;}if(RegExp.isInstance($p1)){$p0.append($p1.toString());return;}$p0.append('{');var $0=true;var $1=$p1;var $2=null;for (var $2 in $1) { var x;var $9={ key: $2, value: $1[$2] };if($9.key.startsWith('$')||(Function.isInstance($9.value))){continue;}if($0){$0=false;}else{$p0.append(',');}$p0.append($9.key);$p0.append(':');Windex.Ajax.$1($p0,$9.value);};$p0.append('}');return;}$p0.append('null');}}
Windex.Ajax.doPostBack=function(formElement,uniqueid,data,context,responseCallback,exceptionCallback){var $0=Windex.Util.getFormFields(formElement);$0['__EVENTTARGET']=uniqueid;$0['__EVENTARGUMENT']=data;var $1=new Windex.AjaxRequest(window.location.pathname+window.location.search,null,$0,context,(responseCallback),(exceptionCallback));$1.invoke();}
Windex.Ajax.callAjax=function(path,method,args,context,responseCallback,exceptionCallback){var $0=new Windex.AjaxRequest(path,method,args,context,responseCallback,exceptionCallback);$0.invoke();}
Windex.Ajax.add_ajaxCalling=function(value){Windex.Ajax.$2=Delegate.combine(Windex.Ajax.$2,value);}
Windex.Ajax.remove_ajaxCalling=function(value){Windex.Ajax.$2=Delegate.remove(Windex.Ajax.$2,value);}
Windex.Ajax.$3=function($p0,$p1){if(Windex.Ajax.$2!=null){Windex.Ajax.$2.invoke($p0,$p1);}}
Windex.AjaxCallingEventArgs=function(){Windex.AjaxCallingEventArgs.constructBase(this);}
Windex.AjaxCallingEventArgs.prototype={args:null,path:null,method:null,context:null,headers:null}
Windex.AjaxRequest=function(path,method,args,context,responseCallback,exceptionCallback){this.context=context;this.path=path;this.method=method;this.args=args;this.responseCallback=responseCallback;this.exceptionCallback=exceptionCallback;}
Windex.AjaxRequest.prototype={request:null,responseCallback:null,exceptionCallback:null,context:null,path:null,method:null,args:null,invoke:function(){var $0=new Windex.AjaxCallingEventArgs();$0.args=this.args;$0.context=this.context;$0.method=this.method;$0.path=this.path;$0.headers={};Windex.Ajax.$3(this,$0);var $1;if(this.method==null){$1=Windex.Util.toQueryString($0.args);}else{$1=Windex.Ajax.serialize($0.args);}this.request=new XMLHttpRequest();this.request.onreadystatechange=Delegate.create(this,this.callback);var $2=$0.path;if(this.method!=null){if(!$2.endsWith('/')){$2+='/';}$2=$2+$0.method;}this.request.open('POST',$2);if(this.method==null){this.request.setRequestHeader('Content-Type','application/x-www-form-urlencoded');}else{this.request.setRequestHeader('Content-Type','application/json');}var $dict1=$0.headers;for(var $key2 in $dict1){var $3={key:$key2,value:$dict1[$key2]};try{this.request.setRequestHeader($3.key,$3.value);}catch($4){}}this.request.send($1);},callback:function(){if(this.request.readyState===4){this.request.onreadystatechange=Delegate.Null;var $0=this.request.responseText;var $1=null;var $2=null;var $3=null;if(this.request.status===12030){this.invoke();return;}if(this.request.status===200){if(this.method==null){$1=$0;}else{try{$3=Windex.Ajax.deserialize($0);if(!isUndefined($3.d)){$1=$3.d;}else{$2=$3;}}catch($4){$2=new Windex.AjaxException();$2.Message=$4.message;}}}else{$2=Windex.Ajax.deserialize($0);if(isNullOrUndefined($2.Message)){if(this.request.status.toString()==='500'){$2=new Windex.AjaxException();$2.ExceptionType=this.request.statusText;var $5=Windex.Util.getInner($0,'<!--','-->',0);$2.ExceptionType=Windex.Util.getInner($5,'[',']',0);$2.Message=Windex.Util.getInner($5,':','   at ',0);$2.StackTrace=Windex.Util.getInner($5+'</>',$2.Message,'</>',0);$2.Message=$2.Message.trim();}else{$2=new Windex.AjaxException();$2.ExceptionType='HttpRequestException';$2.Message=this.request.statusText;}}}if($2!=null){this.exceptionCallback.invoke($2,this.context);}else{this.responseCallback.invoke($1,this.context);}}}}
Windex.AjaxException=function(){}
Windex.AjaxException.prototype={Message:null,StackTrace:null,ExceptionType:null}
Windex.Config=function(){}
Windex.Cookies=function(){}
Windex.Cookies.prototype={get_item:function(key){var $0=document.cookie.split(';');var $1;var $2='';var $3='';for(var $4=0;$4<$0.length;$4++){$1=$0[$4].split('=',2);$2=$1[0].trim();if($2===key){if($1.length===1){return null;}else{return Windex.Ajax.deserialize(unescape($1[1]));}}}return null;},set_item:function(key,value){document.cookie=key+'='+escape(Windex.Ajax.serialize(value))+';path=/';return value;}}
Windex.FormControl=function(element){this.$2_7=-1;this.$2_8=-1;this.$2_9=-1;this.$2_A=-1;Windex.FormControl.constructBase(this,[Windex.FormControl.$2_0(element)]);this.set_clientArea(this.get_domElement());if(this.get_clientArea()!=null){this.get_domElement().__formControl = this;}this.get_domElement().attachEvent('onkeypress',Delegate.create(this,this.$2_1));}
Windex.FormControl.getFormControl=function(element){return element.__formControl;}
Windex.FormControl.$2_0=function($p0){if(isNullOrUndefined($p0)){return document.createElement('span');}return $p0;}
Windex.FormControl.resolveControlReference=function(obj,controls,preserveCase){if(typeof(preserveCase)==='undefined'){preserveCase=false;}var $0=controls['controls'];for(var $1=0;$1<$0.length;$1++){var $2=$0[$1];var $3=controls[$2];var $4=document.getElementById($3);if(!preserveCase){$2=$2.substr(0,1).toLowerCase()+$2.substr(1);}obj[$2] = $4;}}
Windex.FormControl.disposeAll=function(control){var $enum1=control.get_controls().getItems().getEnumerator();while($enum1.moveNext()){var $0=$enum1.get_current();try{Windex.FormControl.disposeAll($0);}catch($1){}}try{control.dispose();}catch($2){}}
Windex.FormControl.prototype={$2_1:function(){if((isNull(this.$2_3)&isNull(this.$2_4))===1){return;}var $0;if((window.event.keyCode===13&!isNull(this.$2_3))===1){if(Type.canCast(this.$2_3,ScriptFX.UI.Behavior)){$0=(this.$2_3).get_domElement();}else{$0=this.$2_3;}$0.click();window.event.returnValue=false;window.event.cancelBubble=true;}if((window.event.keyCode===27&!isNull(this.$2_4))===1){if(Type.canCast(this.$2_4,ScriptFX.UI.Behavior)){$0=(this.$2_4).get_domElement();}else{$0=this.$2_4;}$0.click();window.event.returnValue=false;window.event.cancelBubble=true;}},onCollectionChanged:function(sender,e){var $0=Type.safeCast(e.get_item(),Windex.FormControl);switch(e.get_action()){case 0:if($0==null){return;}this.get_clientArea().appendChild($0.get_domElement());break;case 1:if($0==null){return;}try{this.get_clientArea().removeChild($0.get_domElement());}catch($1){}break;case 2:Windex.Util.clearChildren(this.get_clientArea());this.$2_2();break;}},$2_2:function(){if(this.$2_15!=null){this.get_domElement().appendChild(this.$2_15);}},$2_3:null,get_acceptButton:function(){return this.$2_3;},set_acceptButton:function(value){this.$2_3=value;return value;},$2_4:null,get_cancelButton:function(){return this.$2_4;},set_cancelButton:function(value){this.$2_4=value;return value;},get_tooltip:function(){return this.get_domElement().title;},set_tooltip:function(value){this.get_domElement().title=value;return value;},$2_5:null,get_clientArea:function(){return this.$2_5;},set_clientArea:function(value){this.$2_5=value;return value;},$2_6:null,get_controls:function(){if(this.$2_6==null){this.$2_6=new Windex.FormControlCollection(this);this.$2_6.add_collectionChanged(Delegate.create(this,this.onCollectionChanged));}return this.$2_6;},get_width:function(){if(this.$2_7===-1){this.$2_7=Windex.Util.findWidth(this.get_domElement());}return this.$2_7;},set_width:function(value){this.$2_7=value;if(this.$2_7<0){this.$2_7=0;}this.get_domElement().style.width=this.$2_7.toString()+'px';this.onResize();return value;},get_height:function(){if(this.$2_8===-1){this.$2_8=Windex.Util.findHeight(this.get_domElement());}return this.$2_8;},set_height:function(value){this.$2_8=value;if(this.$2_8<0){this.$2_8=0;}this.get_domElement().style.height=this.$2_8.toString()+'px';this.onResize();return value;},get_top:function(){if(this.$2_9===-1){this.$2_9=this.get_domElement().offsetTop;}return this.$2_9;},set_top:function(value){this.$2_9=value;this.get_domElement().style.top=value.toString()+'px';this.onMove();return value;},get_left:function(){if(this.$2_A===-1){this.$2_A=this.get_domElement().offsetLeft;}return this.$2_A;},set_left:function(value){this.$2_A=value;this.get_domElement().style.left=value.toString()+'px';this.onMove();return value;},$2_B:true,get_visible:function(){return this.$2_B;},set_visible:function(value){this.$2_B=value;this.get_domElement().style.visibility=(value)?'visible':'hidden';this.onVisibilityChange();return value;},$2_C:true,get_display:function(){return this.$2_C;},set_display:function(value){this.$2_C=value;this.get_domElement().style.display=(value)?'':'none';this.onDisplayChange();return value;},suspendLayout:false,$2_D:true,get_enabled:function(){if(!this.$2_D){return false;}try{return this.get_parent().get_enabled();}catch($0){return this.$2_D;}},set_enabled:function(value){if((this.$2_D&!value)===1){this.$2_D=false;this.$2_F();}else if((!this.$2_D&value)===1){this.$2_D=true;this.$2_F();}return value;},$2_E:null,get_parent:function(){return Type.safeCast(this.$2_E,Windex.FormControl);},$2_F:function(){if(this.$2_15!=null){try{if(this.get_enabled()){this.get_domElement().appendChild(this.$2_15);}else{this.get_domElement().removeChild(this.$2_15);}}catch($0){}}try{this.onEnableChanged();}catch($1){throw $1;}finally{var $enum2=this.get_controls().getEnumerator();while($enum2.moveNext()){var $2=$enum2.get_current();$2.$2_F();}}},onEnableChanged:function(){},add_move:function(value){this.$2_10=Delegate.combine(this.$2_10,value);},remove_move:function(value){this.$2_10=Delegate.remove(this.$2_10,value);},$2_10:null,add_resize:function(value){this.$2_11=Delegate.combine(this.$2_11,value);},remove_resize:function(value){this.$2_11=Delegate.remove(this.$2_11,value);},$2_11:null,add_visibilityChange:function(value){this.$2_12=Delegate.combine(this.$2_12,value);},remove_visibilityChange:function(value){this.$2_12=Delegate.remove(this.$2_12,value);},$2_12:null,add_displayChange:function(value){this.$2_13=Delegate.combine(this.$2_13,value);},remove_displayChange:function(value){this.$2_13=Delegate.remove(this.$2_13,value);},$2_13:null,add_change:function(value){this.$2_14=Delegate.combine(this.$2_14,value);},remove_change:function(value){this.$2_14=Delegate.remove(this.$2_14,value);},$2_14:null,onMove:function(){if(this.$2_10!=null){this.$2_10.invoke(this,null);}},onResize:function(){if(this.$2_11!=null){this.$2_11.invoke(this,null);}},onVisibilityChange:function(){if(this.$2_12!=null){this.$2_12.invoke(this,null);}},onDisplayChange:function(){if(this.$2_13!=null){this.$2_13.invoke(this,null);}},onChange:function(args){if(this.$2_14!=null){this.$2_14.invoke(this,args);}},render:function(){},setOwner:function(owner){if(this.protectOwner){return;}this.$2_E=owner;},protectOwner:false,enablePositioning:function(){this.get_domElement().style.position='absolute';this.positioningEnabled=true;},positioningEnabled:false,dispose:function(){this.$2_E=null;Windex.FormControl.callBase(this, 'dispose');},$2_15:null,$2_16:false,enableTabStop:function(inputBehavior){if(typeof(inputBehavior)!=='string'){this.$2_15=inputBehavior;return;}if(this.$2_15==null){this.$2_15=document.createElement('input');this.$2_15.type=inputBehavior;this.$2_15.style.cssText='\r\nwidth: 0px;\r\nheight: 0px;\r\nposition: absolute;\r\n-moz-opacity: 0;\r\nopacity: 0;\r\ntop: -65535;\r\nleft: -65535;\r\nmargin: 0 0 0 0;\r\npadding: 0 0 0 0;\r\nborder: 0 0 0 0;\r\nbackground-color: red;\r\n';this.$2_15.attachEvent('onfocus',Delegate.create(this,this.$2_18));this.$2_15.attachEvent('onblur',Delegate.create(this,this.$2_19));this.$2_15.attachEvent('onkeydown',Delegate.create(this,this.onKeyDown));this.$2_15.attachEvent('onkeyup',Delegate.create(this,this.onKeyUp));this.$2_15.attachEvent('onkeypress',Delegate.create(this,this.onKeyPress));}this.get_domElement().appendChild(this.$2_15);},focus:function(){if(!this.get_enabled()){return false;}if(this.$2_15==null){for(var $0=0;$0<this.get_controls().get_count();$0++){if(this.get_controls().get_item($0).focus()){return true;}}return false;}this.$2_17();return true;},enableFocus:function(){if(this.$2_15==null){throw new Error('EnableTabStop first.');}this.get_domElement().attachEvent('onmousedown',Delegate.create(this,this.$2_17));this.get_domElement().attachEvent('onmouseup',Delegate.create(this,this.$2_17));},$2_17:function(){if(!this.get_enabled()){return;}if(window.event!=null){window.event.cancelBubble=true;}if(this.$2_16){return;}this.$2_15.focus();},$2_18:function(){this.$2_16=true;this.onFocusChanged();this.onFocus();},$2_19:function(){this.$2_16=false;this.onFocusChanged();this.onBlur();},get_focused:function(){return this.$2_16;},onFocus:function(){},onBlur:function(){},onFocusChanged:function(){},onKeyDown:function(){if(this.$2_1A!=null){this.$2_1A.invoke(this,null);}},onKeyUp:function(){if(this.$2_1B!=null){this.$2_1B.invoke(this,null);}},onKeyPress:function(){if(this.$2_1C!=null){this.$2_1C.invoke(this,null);}},add_keyDown:function(value){this.$2_1A=Delegate.combine(this.$2_1A,value);},remove_keyDown:function(value){this.$2_1A=Delegate.remove(this.$2_1A,value);},$2_1A:null,add_keyUp:function(value){this.$2_1B=Delegate.combine(this.$2_1B,value);},remove_keyUp:function(value){this.$2_1B=Delegate.remove(this.$2_1B,value);},$2_1B:null,add_keyPress:function(value){this.$2_1C=Delegate.combine(this.$2_1C,value);},remove_keyPress:function(value){this.$2_1C=Delegate.remove(this.$2_1C,value);},$2_1C:null,resolveControls:function(changeIDs,names){var $0=null;
				if (typeof(changeIDs) == 'string') {
					$0 = changeIDs;
					changeIDs = null;
				};if(isUndefined(changeIDs)){changeIDs=false;}if(isUndefined(names)){this.$2_1E(this.get_domElement(),changeIDs,$0);}else{document.body.appendChild(Windex.FormControl.$2_1D);Windex.Util.swapNode(Windex.FormControl.$2_1D,this.get_domElement());for(var $1=0;$1<names.length;$1++){var $2=names[$1];var $3=document.getElementById($2);if(changeIDs){$3.id='';}if(!isUndefined(this[$2])&&isNull(this[$2])){this[$2] = $3;}}Windex.Util.swapNode(Windex.FormControl.$2_1D,this.get_domElement());document.body.removeChild(Windex.FormControl.$2_1D);}},$2_1E:function($p0,$p1,$p2){var $0=$p0.id;if(!isNullOrUndefined($0)&&!String.isNullOrEmpty($0)){if(!String.isNullOrEmpty($p2)&&$0.startsWith($p2+'_')){$0=$0.substr($p2.length+1);}this[$0] = $p0;if($p1){$p0.id='';}}var $1=$p0.children;for(var $2=0;$2<$1.length;$2++){this.$2_1E($1[$2],$p1,$p2);}},attachChangeEvent:function(elements){for(var $0=0;$0<elements.length;$0++){var $1=elements[$0];$1.attachEvent('onchange',Delegate.create(this,this.onChange));}},$2_1F:null,get_uniqueID:function(){if(!isNull(this.$2_1F)){return this.$2_1F;}try{return this.get_parent().get_uniqueID();}catch($0){return this.$2_1F;}},set_uniqueID:function(value){this.$2_1F=value;return value;},doPostBack:function(data,context,callback,exceptionCallback){if(isUndefined(callback)){callback=Delegate.create(this,this.onPostBackResponse);}if(isUndefined(exceptionCallback)){exceptionCallback=Delegate.create(this,this.onPostBackException);}Windex.Ajax.doPostBack(Windex.Util.findForm(this.get_domElement()),this.get_uniqueID(),data,context,callback,exceptionCallback);},onPostBackResponse:function(data,context){},onPostBackException:function(ex,context){alert(ex.Message);}}
Windex.FormControlCollection=function(owner){this.$0=new ScriptFX.ObservableCollection(owner,true);this.$0.add_collectionChanged(Delegate.create(this,this.$2));}
Windex.FormControlCollection.prototype={protectOwner:false,$0:null,add_collectionChanged:function(value){this.$1=Delegate.combine(this.$1,value);},remove_collectionChanged:function(value){this.$1=Delegate.remove(this.$1,value);},$1:null,$2:function($p0,$p1){if(this.$1!=null){this.$1.invoke(this,$p1);}},getItems:function(){return this.$0.getItems().clone();},add:function(item){var $0=item.protectOwner;item.protectOwner=(this.protectOwner|item.protectOwner)===1;this.$0.add(item);item.protectOwner=$0;},remove:function(item){var $0=item.protectOwner;item.protectOwner=(this.protectOwner|item.protectOwner)===1;this.$0.remove(item);item.protectOwner=$0;},get_count:function(){return this.$0.getLength();},clear:function(){var $0=this.getItems().clone();var $1=new Array($0.length);for(var $2=0;$2<$0.length;$2++){$1[$2]=$0[$2].protectOwner;$0[$2].protectOwner=(this.protectOwner|$0[$2].protectOwner)===1;}this.$0.clear();for(var $3=0;$3<$0.length;$3++){$0[$3].protectOwner=$1[$3];}},dispose:function(){this.$0.dispose();},getItem:function(index){return this.$0.getItem(index);},getLength:function(){return this.$0.getLength();},getEnumerator:function(){return this.$0.getEnumerator();},get_baseCollection:function(){return this.$0;},$3:null,get_formItem:function(){return this.$3;},set_formItem:function(value){this.$3=value;this.formBind();return value;},get_formName:function(){return this.$3.name;},set_formName:function(value){if(!isNullOrUndefined(this.$3)&&!isNullOrUndefined(this.$3.fc_ismine)){this.$3.name=value;return;}var $0=document.getElementsByTagName('form')[0];var $1=$0.elements[value];if(isNullOrUndefined($1)){$1=Windex.Util.createHidden(value);$0.appendChild($1);$1.fc_ismine = true;}return value;},formBind:function(){},get_item:function(index){return this.$0.getItem(index);}}
Windex.ManagedDictionary=function(){this.$0=[];}
Windex.ManagedDictionary.prototype={get_items:function(){return this.$0;},get_count:function(){return this.$0.length;},getEnumerator:function(){return this.$0.getEnumerator();},$1:null,get_keys:function(){if(this.$1==null){this.$1=new Array(this.$0.length);for(var $0=0;$0<this.$0.length;$0++){this.$1[$0]=(this.$0[$0]).key;}}return this.$1;},$2:null,get_values:function(){if(this.$2==null){this.$2=new Array(this.$0.length);for(var $0=0;$0<this.$0.length;$0++){this.$2[$0]=(this.$0[$0]).value;}}return this.$2;},add:function(key,value){var $0={};$0.value = value;$0.key = key;this.$0.add($0);this.$2=null;this.$1=null;},clear:function(){this.$0=[];this.$2=null;this.$1=null;},contains:function(key){if(this.get_keys().indexOf(key)!==-1){return true;}return false;},remove:function(key){var $0=this.get_keys().indexOf(key);if($0===-1){throw new Error('Key not found.');}this.$0.removeAt($0);this.$2=null;this.$1=null;},get_item:function(key){var $0=this.get_keys().indexOf(key);if($0===-1){throw new Error('Key not found.');}return this.get_values()[$0];},set_item:function(key,value){var $0=this.get_keys().indexOf(key);if($0===-1){this.add(key,value);}else{this.$0[$0].value = value;}this.$2=null;return value;}}
Windex.Util=function(){}
Windex.Util.parseSingleNode=function(html){var $0=Windex.Util.parseHtml(html);return $0[0];}
Windex.Util.parseHtml=function(html,parent){var $0=false;if(parent==null){$0=true;parent=document.createElement('span');}if(typeof(parent)==='string'){parent=document.createElement(parent);}parent.innerHTML=html;if($0){var $1=new Array(parent.children.length);for(var $2=0;$2<parent.children.length;$2++){$1[$2]=parent.children[$2];}return $1;}return parent;}
Windex.Util.findParent=function(element,predicate){var $0=element.parentNode;while($0!=null&&!predicate.invoke($0)){$0=$0.parentNode;}return $0;}
Windex.Util.findForm=function(element){return Windex.Util.findParent(element,Delegate.create(null,function($p1_0){
return $p1_0.tagName==='FORM';}));}
Windex.Util.getFormFields=function(form){var $0={};for(var $1=0;$1<form.elements.length;$1++){var $2=form.elements[$1];var $3;if(isNullOrUndefined($2.type)){$3='other';}else{$3=$2.type.toLowerCase();}if($3!=='button'&&$3!=='submit'&&$3!=='image'&&typeof($2.name)==='string'&&!String.isNullOrEmpty($2.name)){$0[$2.name]=$2.value;}}return $0;}
Windex.Util.toQueryString=function(form){var $0=new StringBuilder();var $1=true;var $dict1=form;for(var $key2 in $dict1){var $2={key:$key2,value:$dict1[$key2]};if(typeof($2.key)==='string'){if(!$1){$0.append('&');}$1=false;$0.append(encodeURIComponent($2.key));$0.append('=');$0.append(encodeURIComponent(($2.value)));}}return $0.toString();}
Windex.Util.unhide=function(id){return Windex.Ajax.deserialize((document.getElementById(id)).value);}
Windex.Util.getRandomId=function(){Windex.Util.$0++;return 'kslrndid'+Windex.Util.$0.toString();}
Windex.Util.createRadioButton=function(name){var $0;try{$0=document.createElement('<input type=\"radio\" name=\"'+name+'\" />');}catch($1){$0=document.createElement('input');$0.setAttribute('type','radio');$0.setAttribute('name',name);}return $0;}
Windex.Util.getInner=function(Text,LeftSide,RightSide,Start){var $0;var $1;var $2;var $3;$1=Text.indexOf(LeftSide,Start);if($1>0){$2=$1+LeftSide.length;if($2>=Text.length){Start=0;$0='';return $0;}$3=Text.indexOf(RightSide,$2);if($3!==0){Start=$3;$0=Text.substr($2-1,$3-$2);return $0;}else{Start=0;$0='';return $0;}}else{Start=0;$0='';return $0;}}
Windex.Util.resizeSelect=function(select){select.style.width='1px';select.style.width='';}
Windex.Util.clearChildren=function(element){while(element.firstChild!=null){element.removeChild(element.firstChild);}}
Windex.Util.createTable=function(){var $0=document.createElement('table');$0.cellPadding = 0;$0.cellSpacing = 0;$0.style.padding='0 0 0 0';$0.style.margin='0 0 0 0';return $0;}
Windex.Util.add=function(a,o){a.add(o);}
Windex.Util.removeAt=function(a,index){a.removeAt(index);}
Windex.Util.squeeze=function(DOMElement,p){DOMElement.style.margin='0 0 0 0';DOMElement.style.padding='0 0 0 0';if(p){DOMElement.style.position='absolute';DOMElement.style.top='0px';DOMElement.style.left='0px';}}
Windex.Util.getSelectedOptions=function(lstArticles){var $0=new Array(0);for(var $1=0;$1<lstArticles.options.length;$1++){if((lstArticles.options[$1]).selected){Windex.Util.add($0,lstArticles.options[$1]);}}return $0;}
Windex.Util.getPoint=function(element){var $0=new Windex.Point(0,0);if(element.offsetParent!=null){$0.x=element.offsetLeft;$0.y=element.offsetTop;var $1=element.offsetParent;while($1!=null){$0.x+=$1.offsetLeft;$0.y+=$1.offsetTop;var $2=$1.tagName.toLowerCase();if($2!=='table'&&$2!=='body'&&$2!=='html'&&$2!=='div'&&$1.clientTop!==0&&$1.clientLeft!==0){$0.x+=$1.clientLeft;$0.y+=$1.clientTop;}$1=$1.offsetParent;}}return $0;}
Windex.Util.isVisible=function(e){var $0=e.parentNode;if(($0.scrollTop>e.offsetTop|$0.scrollTop+$0.offsetHeight<e.offsetTop+e.offsetHeight)===1){return false;}return true;}
Windex.Util.testVisibility=function(e,p){var $0=p||e.offsetParent;var $1=0;if($0.scrollTop>e.offsetTop){$1|=2;}else if($0.scrollTop+$0.offsetHeight<e.offsetTop+e.offsetHeight){$1|=4;}if($0.scrollLeft>e.offsetLeft){$1|=8;}else if($0.scrollLeft+$0.offsetWidth<e.offsetLeft+e.offsetWidth){$1|=16;}if($1===0){return 1;}else{return $1;}}
Windex.Util.unselectable=function(e,value){if(isUndefined(value)){value=true;}e.setAttribute('unselectable',(value)?'on':'off');e.style.mozUserSelect = (value)?'none':'normal';var $0=e.children;try{for(var $1=0;$1<$0.length;$1++){Windex.Util.unselectable($0[$1],value);}}catch($2){}}
Windex.Util.get_$2=function(){if(Windex.Util.$1==null){Windex.Util.$1=document.createElement('A');}return Windex.Util.$1;}
Windex.Util.findWidth=function(e){if(e.offsetWidth>0){return e.offsetWidth;}var $0=true;if(e.parentNode==null){$0=false;}if($0){e.parentNode.replaceChild(Windex.Util.get_$2(),e);}document.body.appendChild(e);var $1=e.offsetWidth;if($0){Windex.Util.get_$2().parentNode.replaceChild(e,Windex.Util.get_$2());}else{document.body.removeChild(e);}return $1;}
Windex.Util.findHeight=function(e){if(e.offsetHeight>0){return e.offsetHeight;}var $0=true;if(e.parentNode==null){$0=false;}if($0){e.parentNode.replaceChild(Windex.Util.get_$2(),e);}document.body.appendChild(e);var $1=e.offsetHeight;if($0){Windex.Util.get_$2().parentNode.replaceChild(e,Windex.Util.get_$2());}else{document.body.removeChild(e);}return $1;}
Windex.Util.swapNode=function(item1,item2){if(item1===item2){return;}var $0=Windex.Util.get_$2();var $1=item1.parentNode;var $2=item2.parentNode;if((isNull($1)&!isNull($2))===1){$2.replaceChild(item1,item2);}else if((!isNull($1)&isNull($2))===1){$1.replaceChild(item2,item1);}else if((isNull($1)&isNull($2))===1){}else{$1.replaceChild($0,item1);$2.replaceChild(item1,item2);$1.replaceChild(item2,$0);}}
Windex.Util.blank=function(width,height){var $0=document.createElement('img');$0.src=Windex.Config.skinPath+'blank.gif';$0.style.width=width+'px';$0.style.height=height+'px';return $0;}
Windex.Util.createHidden=function(name){var $0;try{$0=document.createElement('<input type=\"hidden\" name=\"'+name+'\" />');}catch($1){$0=document.createElement('input');$0.setAttribute('type','hidden');$0.setAttribute('name',name);}return $0;}
Windex.Util.createCheckbox=function(){var $0;try{$0=document.createElement('<input type=\"checkbox\" />');}catch($1){$0=document.createElement('input');$0.setAttribute('type','checkbox');}return $0;}
Windex.Util.removeEmpty=function(value){var $0=value;for(var $1=$0.length-1;$1>=0;$1--){var $2=$0[$1];if(isNullOrUndefined($2)||String.isNullOrEmpty($2)){$0.removeAt($1);}}return $0;}
Windex.Util.getWindowSize=function(){var $0=630;var $1=460;
if (parseInt(navigator.appVersion)>3) {
	if (navigator.appName=='Netscape' || navigator.appName=='Opera') {
		$0 = window.innerWidth;
		$1 = window.innerHeight;
	}
	if (navigator.appName.indexOf('Microsoft')!=-1) {
		$0 = document.body.offsetWidth;
		$1 = document.body.offsetHeight;
	}
	if (document.documentElement) {
		if (document.documentElement.offsetWidth < $0)
			$0 = document.documentElement.offsetWidth;
		if (document.documentElement.offsetHeight < $1)
			$1 = document.documentElement.offsetHeight;
	}
};return ScriptFX.UI.$create_Size($0,$1);}
Windex.Util.resolveHtmlEntities=function(html){return html.replace('&nbsp;','&#160;').replace('&iexcl;','&#161;').replace('&cent;','&#162;').replace('&pound;','&#163;').replace('&curren;','&#164;').replace('&yen;','&#165;').replace('&brvbar;','&#166;').replace('&sect;','&#167;').replace('&uml;','&#168;').replace('&copy;','&#169;').replace('&ordf;','&#170;').replace('&laquo;','&#171;').replace('&not;','&#172;').replace('&shy;','&#173;').replace('&reg;','&#174;').replace('&macr;','&#175;').replace('&deg;','&#176;').replace('&plusmn;','&#177;').replace('&sup2;','&#178;').replace('&sup3;','&#179;').replace('&acute;','&#180;').replace('&micro;','&#181;').replace('&para;','&#182;').replace('&middot;','&#183;').replace('&cedil;','&#184;').replace('&sup1;','&#185;').replace('&ordm;','&#186;').replace('&raquo;','&#187;').replace('&frac14;','&#188;').replace('&frac12;','&#189;').replace('&frac34;','&#190;').replace('&iquest;','&#191;').replace('&agrave;','&#192;').replace('&aacute;','&#193;').replace('&acirc;','&#194;').replace('&atilde;','&#195;').replace('&auml;','&#196;').replace('&aring;','&#197;').replace('&aelig;','&#198;').replace('&ccedil;','&#199;').replace('&egrave;','&#200;').replace('&eacute;','&#201;').replace('&ecirc;','&#202;').replace('&euml;','&#203;').replace('&igrave;','&#204;').replace('&iacute;','&#205;').replace('&icirc;','&#206;').replace('&iuml;','&#207;').replace('&eth;','&#208;').replace('&ntilde;','&#209;').replace('&ograve;','&#210;').replace('&oacute;','&#211;').replace('&ocirc;','&#212;').replace('&otilde;','&#213;').replace('&ouml;','&#214;').replace('&times;','&#215;').replace('&oslash;','&#216;').replace('&ugrave;','&#217;').replace('&uacute;','&#218;').replace('&ucirc;','&#219;').replace('&uuml;','&#220;').replace('&yacute;','&#221;').replace('&thorn;','&#222;').replace('&szlig;','&#223;').replace('&agrave;','&#224;').replace('&aacute;','&#225;').replace('&acirc;','&#226;').replace('&atilde;','&#227;').replace('&auml;','&#228;').replace('&aring;','&#229;').replace('&aelig;','&#230;').replace('&ccedil;','&#231;').replace('&egrave;','&#232;').replace('&eacute;','&#233;').replace('&ecirc;','&#234;').replace('&euml;','&#235;').replace('&igrave;','&#236;').replace('&iacute;','&#237;').replace('&icirc;','&#238;').replace('&iuml;','&#239;').replace('&eth;','&#240;').replace('&ntilde;','&#241;').replace('&ograve;','&#242;').replace('&oacute;','&#243;').replace('&ocirc;','&#244;').replace('&otilde;','&#245;').replace('&ouml;','&#246;').replace('&divide;','&#247;').replace('&oslash;','&#248;').replace('&ugrave;','&#249;').replace('&uacute;','&#250;').replace('&ucirc;','&#251;').replace('&uuml;','&#252;').replace('&yacute;','&#253;').replace('&thorn;','&#254;').replace('&yuml;','&#255;').replace('&fnof;','&#402;').replace('&alpha;','&#913;').replace('&beta;','&#914;').replace('&gamma;','&#915;').replace('&delta;','&#916;').replace('&epsilon;','&#917;').replace('&zeta;','&#918;').replace('&eta;','&#919;').replace('&theta;','&#920;').replace('&iota;','&#921;').replace('&kappa;','&#922;').replace('&lambda;','&#923;').replace('&mu;','&#924;').replace('&nu;','&#925;').replace('&xi;','&#926;').replace('&omicron;','&#927;').replace('&pi;','&#928;').replace('&rho;','&#929;').replace('&sigma;','&#931;').replace('&tau;','&#932;').replace('&upsilon;','&#933;').replace('&phi;','&#934;').replace('&chi;','&#935;').replace('&psi;','&#936;').replace('&omega;','&#937;').replace('&alpha;','&#945;').replace('&beta;','&#946;').replace('&gamma;','&#947;').replace('&delta;','&#948;').replace('&epsilon;','&#949;').replace('&zeta;','&#950;').replace('&eta;','&#951;').replace('&theta;','&#952;').replace('&iota;','&#953;').replace('&kappa;','&#954;').replace('&lambda;','&#955;').replace('&mu;','&#956;').replace('&nu;','&#957;').replace('&xi;','&#958;').replace('&omicron;','&#959;').replace('&pi;','&#960;').replace('&rho;','&#961;').replace('&sigmaf;','&#962;').replace('&sigma;','&#963;').replace('&tau;','&#964;').replace('&upsilon;','&#965;').replace('&phi;','&#966;').replace('&chi;','&#967;').replace('&psi;','&#968;').replace('&omega;','&#969;').replace('&thetasym;','&#977;').replace('&upsih;','&#978;').replace('&piv;','&#982;').replace('&bull;','&#8226;').replace('&hellip;','&#8230;').replace('&prime;','&#8242;').replace('&prime;','&#8243;').replace('&oline;','&#8254;').replace('&frasl;','&#8260;').replace('&weierp;','&#8472;').replace('&image;','&#8465;').replace('&real;','&#8476;').replace('&trade;','&#8482;').replace('&alefsym;','&#8501;').replace('&larr;','&#8592;').replace('&uarr;','&#8593;').replace('&rarr;','&#8594;').replace('&darr;','&#8595;').replace('&harr;','&#8596;').replace('&crarr;','&#8629;').replace('&larr;','&#8656;').replace('&uarr;','&#8657;').replace('&rarr;','&#8658;').replace('&darr;','&#8659;').replace('&harr;','&#8660;').replace('&forall;','&#8704;').replace('&part;','&#8706;').replace('&exist;','&#8707;').replace('&empty;','&#8709;').replace('&nabla;','&#8711;').replace('&isin;','&#8712;').replace('&notin;','&#8713;').replace('&ni;','&#8715;').replace('&prod;','&#8719;').replace('&sum;','&#8721;').replace('&minus;','&#8722;').replace('&lowast;','&#8727;').replace('&radic;','&#8730;').replace('&prop;','&#8733;').replace('&infin;','&#8734;').replace('&ang;','&#8736;').replace('&and;','&#8743;').replace('&or;','&#8744;').replace('&cap;','&#8745;').replace('&cup;','&#8746;').replace('&int;','&#8747;').replace('&there4;','&#8756;').replace('&sim;','&#8764;').replace('&cong;','&#8773;').replace('&asymp;','&#8776;').replace('&ne;','&#8800;').replace('&equiv;','&#8801;').replace('&le;','&#8804;').replace('&ge;','&#8805;').replace('&sub;','&#8834;').replace('&sup;','&#8835;').replace('&nsub;','&#8836;').replace('&sube;','&#8838;').replace('&supe;','&#8839;').replace('&oplus;','&#8853;').replace('&otimes;','&#8855;').replace('&perp;','&#8869;').replace('&sdot;','&#8901;').replace('&lceil;','&#8968;').replace('&rceil;','&#8969;').replace('&lfloor;','&#8970;').replace('&rfloor;','&#8971;').replace('&lang;','&#9001;').replace('&rang;','&#9002;').replace('&loz;','&#9674;').replace('&spades;','&#9824;').replace('&clubs;','&#9827;').replace('&hearts;','&#9829;').replace('&diams;','&#9830;').replace('&quot;','&#34;').replace('&amp;','&#38;').replace('&lt;','&#60;').replace('&gt;','&#62;').replace('&oelig;','&#338;').replace('&oelig;','&#339;').replace('&scaron;','&#352;').replace('&scaron;','&#353;').replace('&yuml;','&#376;').replace('&circ;','&#710;').replace('&tilde;','&#732;').replace('&ensp;','&#8194;').replace('&emsp;','&#8195;').replace('&thinsp;','&#8201;').replace('&zwnj;','&#8204;').replace('&zwj;','&#8205;').replace('&lrm;','&#8206;').replace('&rlm;','&#8207;').replace('&ndash;','&#8211;').replace('&mdash;','&#8212;').replace('&lsquo;','&#8216;').replace('&rsquo;','&#8217;').replace('&sbquo;','&#8218;').replace('&ldquo;','&#8220;').replace('&rdquo;','&#8221;').replace('&bdquo;','&#8222;').replace('&dagger;','&#8224;').replace('&dagger;','&#8225;').replace('&permil;','&#8240;').replace('&lsaquo;','&#8249;').replace('&rsaquo;','&#8250;').replace('&euro;','&#8364;');}
Windex.Util.attachEventHandler=function(element,eventName,eventHandler){element.attachEvent(eventName,Delegate.create(null,function(){
eventHandler.invoke(element,null);}));}
Windex.Util.addClass=function(element,className){var $0;if(!String.isNullOrEmpty(element.className)){$0=element.className.split(' ');}else{$0=new Array(0);}if(!$0.contains(className)){($0).add(className);}element.className=$0.join(' ');}
Windex.Util.removeClass=function(element,className){var $0;if(!String.isNullOrEmpty(element.className)){$0=element.className.split(' ');}else{$0=new Array(0);}if($0.contains(className)){($0).remove(className);}element.className=$0.join(' ');}
Windex.Util.standardButtonSize=function(button){button.set_width(86);button.set_height(24);}
Windex.Util.aggressiveOnChange=function(e,h,adaptive){if(isUndefined(adaptive)){adaptive=false;}e.attachEvent('onchange',h);var $0=e;Windex.Util.attachEventHandler(e,'onchange',Delegate.create(null,Windex.Util.$5));Windex.Util.attachEventHandler(e,'onfocus',Delegate.create(null,Windex.Util.$6));Windex.Util.attachEventHandler(e,'onblur',Delegate.create(null,Windex.Util.$7));if(adaptive){Windex.Util.attachEventHandler(e,'onkeydown',Delegate.create(null,Windex.Util.$4));}$0.aocOnChange=h;$0.aocValue=e.value;$0.aocAdaptive=adaptive;$0.aocWhatever1=false;$0.aocChangeTracked=false;}
Windex.Util.$4=function($p0,$p1){var $0=$p0;if(window.event.keyCode===13&&$0.aocValue!==$0.value){$0.aocOnChange.invoke();$0.aocValue=$0.value;}}
Windex.Util.$5=function($p0,$p1){var $0=$p0;$0.aocValue=$0.value;}
Windex.Util.$6=function($p0,$p1){var $0=$p0;Windex.Util.$3=$p0;$0.aocTimer=window.setInterval(Delegate.create(null,function(){
Windex.Util.$8($p0,null);}),500);}
Windex.Util.$7=function($p0,$p1){var $0=$p0;if(!isNullOrUndefined($0.aocTimer)&&$0.aocTimer!==-1){window.clearInterval($0.aocTimer);}$0.aocTimer=-1;if($0.aocChangeTracked){$0.aocOnChange.invoke();}$0.aocChangeTracked=false;}
Windex.Util.$8=function($p0,$p1){var $0=$p0;if($0.aocValue!==$0.value){if(!$0.aocAdaptive||!$0.aocWhatever1){$0.aocWhatever1=true;$0.aocOnChange.invoke();}else{$0.aocChangeTracked=true;}$0.aocValue=$0.value;}else{if($0.aocChangeTracked){$0.aocOnChange.invoke();}$0.aocWhatever1=false;$0.aocChangeTracked=false;}}
Windex.Util.createOption=function(text,value){var $0=document.createElement('option');$0.value=value;$0.text=text;$0.innerText=text;return $0;}
Windex.Util.isDOMElement=function(o){if(o.tagName!=null){return true;}else{return false;}}
Windex.Point=function(x,y){this.x=x;this.y=y;}
Windex.Point.prototype={x:0,y:0}
Type.createNamespace('Windex.Controls');Windex.Controls.PasswordField=function(){Windex.Controls.PasswordField.constructBase(this,[false]);(this.get_domElement()).type='password';}
Windex.Controls.PasswordField.prototype={get_watermark:function(){return Windex.Controls.PasswordField.callBase(this, 'get_watermark');},set_watermark:function(value){Windex.Controls.PasswordField.callBase(this, 'set_watermark',[value]);return value;}}
Windex.RadioCheckBoxGroup.createClass('Windex.RadioCheckBoxGroup');Windex.FormControl.createClass('Windex.FormControl',ScriptFX.UI.Control,IDisposable);Windex.Accordion.createClass('Windex.Accordion',Windex.FormControl);Windex.AccordionPanel.createClass('Windex.AccordionPanel',Windex.FormControl);Windex.AccordionPanelButton.createClass('Windex.AccordionPanelButton',Windex.FormControl);Windex.CheckBox.createClass('Windex.CheckBox',Windex.FormControl);Windex.CommandButton.createClass('Windex.CommandButton',Windex.FormControl);Windex.DateField.createClass('Windex.DateField',Windex.FormControl);Windex.DatePicker.createClass('Windex.DatePicker',Windex.FormControl);Windex.DropDownList.createClass('Windex.DropDownList',Windex.FormControl);Windex.Form.createClass('Windex.Form',Windex.FormControl);Windex.ClosingEventArgs.createClass('Windex.ClosingEventArgs',EventArgs);Windex.ImageList.createClass('Windex.ImageList');Windex.Sprite.createClass('Windex.Sprite',ScriptFX.UI.Behavior);Windex.Working.createClass('Windex.Working',Windex.Sprite);Windex.ToolBarImageInfo.createClass('Windex.ToolBarImageInfo');Windex.Label.createClass('Windex.Label',Windex.FormControl);Windex.ListItem.createClass('Windex.ListItem',Windex.FormControl);Windex.ListViewBase.createClass('Windex.ListViewBase',Windex.FormControl);Windex.ListView.createClass('Windex.ListView',Windex.ListViewBase);Windex.MouseBehavior.createClass('Windex.MouseBehavior',ScriptFX.UI.Behavior);Windex.MouseEventArgs.createClass('Windex.MouseEventArgs',EventArgs);Windex.MultiView.createClass('Windex.MultiView',Windex.FormControl);Windex.Panel.createClass('Windex.Panel',Windex.FormControl);Windex.PlusBox.createClass('Windex.PlusBox',Windex.Sprite);Windex.SpriteButton.createClass('Windex.SpriteButton',Windex.FormControl);Windex.TabControl.createClass('Windex.TabControl',Windex.FormControl);Windex.TabPage.createClass('Windex.TabPage',Windex.FormControl);Windex.TextField.createClass('Windex.TextField',Windex.FormControl);Windex.Timer.createClass('Windex.Timer',null,IDisposable);Windex.TreeView.createClass('Windex.TreeView',Windex.ListView);Windex.TreeNode.createClass('Windex.TreeNode',Windex.ListItem);Windex.TreeViewEventArgs.createClass('Windex.TreeViewEventArgs',EventArgs);Windex.Ajax.createClass('Windex.Ajax');Windex.AjaxCallingEventArgs.createClass('Windex.AjaxCallingEventArgs',EventArgs);Windex.AjaxRequest.createClass('Windex.AjaxRequest');Windex.AjaxException.createClass('Windex.AjaxException');Windex.Config.createClass('Windex.Config');Windex.Cookies.createClass('Windex.Cookies');Windex.FormControlCollection.createClass('Windex.FormControlCollection',null,IDisposable,IArray,IEnumerable,ScriptFX.INotifyCollectionChanged);Windex.ManagedDictionary.createClass('Windex.ManagedDictionary',null,IEnumerable);Windex.Util.createClass('Windex.Util');Windex.Point.createClass('Windex.Point');Windex.Controls.PasswordField.createClass('Windex.Controls.PasswordField',Windex.TextField);Windex.DateField.$2_22='MMM d, yyyy';Windex.DatePicker.$2_20=['January','February','March','April','May','June','July','August','September','October','November','December'];Windex.DatePicker.$2_21=['S','M','T','W','T','F','S'];Windex.PlusBox.il=null;Windex.TreeNode.$2_24=ScriptFX.UI.$create_Bounds(21,0,16,16);Windex.TreeNode.$2_25=ScriptFX.UI.$create_Bounds(23,1,0,14);Windex.TreeNode.$2_26=ScriptFX.UI.$create_Bounds(5,4,9,9);Windex.TreeNode.$2_27=ScriptFX.UI.$create_Bounds(21,0,16,16);Windex.TreeNode.$2_28=19;Windex.TreeNode.$2_29=19;Windex.Ajax.$0=null;Windex.Ajax.$2=null;Windex.Config.skinPath='/skins/';Windex.Cookies.items=new Windex.Cookies();Windex.FormControl.$2_1D=document.createElement('A');Windex.Util.disabledColor='#808080';Windex.Util.$0=0;Windex.Util.$1=null;Windex.Util.$3=null;
// ---- Do not remove this footer ----
// This script was generated using Script# v0.5.5.0 (http://projects.nikhilk.net/ScriptSharp)
// -----------------------------------
